/* ==========================================================================
   3rothers — styles (colours follow the company logo)
   1 tokens, 2 base, 3 links, 4 components, 5 sections,
   6 motion, 7 focus, 8 reduced motion.
   ========================================================================== */

/* ---------- 0. Font, served from our own folder ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.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;
}

/* ---------- 1. Tokens ---------- */

:root {
  --ink: #2B2F36;
  --signal: #4CCBA3;
  --loods: #F3F5F5;
  --wit: #FFFFFF;
  --staal: #5B626B;
  --naad: #D6DBDD;

  --ink-deep: #1B1E23;
  --ink-line: #474D57;
  --board: #22252B;
  --flap-top: #3D434D;
  --flap-bottom: #353A43;
  --flap-text: #F4F6F6;
  --board-muted: #A8AFB8;
  --on-ink-muted: #BCC2CA;
  --error: #B42318;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --narrow: 74%;
  --step--2: 1rem;
  --step--1: 1rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-4: clamp(2.75rem, 1.2rem + 5.6vw, 6rem);
  --step-5: clamp(3rem, 0.8rem + 8.4vw, 9.5rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --section-y: clamp(4rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 78rem;
  --header-h: 4.75rem;
  --overhang: 3rem;

  --r-control: 2px;
  --r-flap: 3px;
  --r-chip: 4px;
  --r-photo: 6px;
  --r-housing: 10px;

  --shadow-sheet: 0 1px 0 var(--naad), 0 28px 48px -36px rgb(43 47 54 / 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --measure: 62ch;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 56rem) {
  :root { --overhang: 5rem; }
}

/* ---------- 2. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

/* entrances that move sideways can never create a horizontal scrollbar */
main,
.site-footer { overflow-x: clip; }
main:focus { outline: none; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; line-height: 1.1; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4); top: var(--s-2);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  border-radius: var(--r-control);
  transform: translateY(-200%);
}
.skip-link,
.skip-link:visited { color: var(--wit); }
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Links ---------- */

a,
a:visited {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(43 47 54 / 0.4);
  text-underline-offset: 0.22em;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.section-ink a,
.site-footer a { text-decoration-color: rgb(255 255 255 / 0.45); }
.section-ink a:hover,
.site-footer a:hover { text-decoration-color: currentColor; }
/* ---------- 4. Components ---------- */

.texture { position: relative; isolation: isolate; }
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
}

.icon { width: 2rem; height: 2rem; flex: none; }

/* Photos: one treatment for all of them (slightly muted colour) */
.photo {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--loods);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  filter: saturate(0.85);
}

/* Buttons */
.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: var(--s-3) var(--s-5);
  border: 2px solid var(--ink);
  border-radius: var(--r-control);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink-deep);
  background-image: linear-gradient(var(--sweep, #474D57), var(--sweep, #474D57));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 380ms var(--ease), color 280ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.button:hover,
.button:focus-visible { background-size: 100% 100%; }
.button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink-deep); }
.button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-deep); }
.button-ink,
.button-ink:visited { background-color: var(--ink); color: var(--wit); }
.button-outline,
.button-outline:visited { --sweep: var(--ink); background-color: var(--wit); color: var(--ink); }
.button-outline:hover,
.button-outline:focus-visible { color: var(--wit); }

.button-accent,
.button-accent:visited { --sweep: #7FDCC0; background-color: var(--signal); border-color: var(--signal); color: var(--ink); box-shadow: 0 3px 0 #2E9C7C; }
.button-accent:hover { box-shadow: 0 4px 0 #2E9C7C; }
.button-light,
.button-light:visited { --sweep: var(--wit); background-color: transparent; border-color: var(--wit); color: var(--wit); }
.button-light:hover,
.button-light:focus-visible { color: var(--ink); }
.hero :focus-visible { outline-color: var(--wit) !important; }

.text-link,
.text-link:visited { display: inline-block; font-weight: 600; text-decoration-thickness: 2px; }

/* Logo: emblem and name taken from the company's own logo */
.wordmark,
.wordmark:visited { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; }
.wordmark-logo { width: auto; height: 2rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--wit);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--naad); box-shadow: 0 10px 24px -20px rgb(43 47 54 / 0.5); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
  transition: height 240ms var(--ease);
}
.is-compact .header-bar { height: 3.75rem; }
.site-nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: var(--s-5); }
.menu-links { display: flex; gap: var(--s-1); }
.menu-links a,
.menu-links a:visited {
  display: block;
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-3);
  font-size: var(--step--1);
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--r-control);
}
.menu-links a:hover { background: var(--loods); }
.menu-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-phone,
.header-phone:visited { font-size: var(--step--1); text-decoration: none; white-space: nowrap; }
.header-phone-label { color: var(--staal); }
.quick { display: flex; gap: var(--s-2); margin-left: auto; }
.quick-link,
.quick-link:visited { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid var(--ink); border-radius: var(--r-control); }
.quick-link svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-bar .quick + .site-nav { margin-left: calc(var(--s-2) - var(--s-5)); }
@media (min-width: 75rem) { .quick { display: none; } .header-bar .quick + .site-nav { margin-left: 0; } }
.is-quiet .header-cta,
.is-quiet .header-cta:visited { --sweep: var(--ink); background-color: var(--wit); border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink-deep); }
.is-quiet .header-cta:hover,
.is-quiet .header-cta:focus-visible { color: var(--wit); }
@media (max-width: 74.99rem) {
  .is-quiet .menu .header-cta { --sweep: #7FDCC0; background-color: var(--signal); border-color: var(--signal); color: var(--ink); }
}

/* Action bar wherever the header button is tucked into the menu */
.dock { display: none; }
@media (max-width: 74.99rem) {
  .dock { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-3); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--wit); border-top: 1px solid var(--naad); box-shadow: 0 -12px 24px -20px rgb(43 47 54 / 0.6); translate: 0 110%; visibility: hidden; transition: translate 260ms var(--ease), visibility 0s linear 260ms; }
  .dock .button { padding-inline: var(--s-2); }
  .dock.is-shown { translate: 0; visibility: visible; transition: translate 260ms var(--ease), visibility 0s; }
  .menu-open .dock { visibility: hidden; }
  .menu-actions .header-phone { padding-block: 0.6rem; }
  html { scroll-padding-bottom: 6rem; }
}
@media (min-width: 48rem) and (max-width: 74.99rem) {
  .dock { grid-template-columns: repeat(2, minmax(0, 18rem)); justify-content: center; }
}
@media (max-width: 29.99rem) {
  .wordmark-logo { height: 1.6rem; }
  .menu-toggle { justify-content: center; width: 3rem; height: 3rem; min-height: 0; padding: 0; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 3.125rem;
  padding: var(--s-2) var(--s-4);
  background: var(--wit);
  border: 2px solid var(--ink);
  border-radius: var(--r-control);
  box-shadow: 0 3px 0 var(--ink-deep);
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
  transition: background-color 170ms var(--ease);
}
.menu-toggle:hover { background: var(--loods); }
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1rem; height: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 74.99rem) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-6);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--s-5) var(--gutter) var(--s-7);
    background: var(--wit);
    border-bottom: 1px solid var(--naad);
    box-shadow: 0 24px 40px -28px rgb(43 47 54 / 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 240ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
  }
  .is-compact .menu { inset-block-start: 3.75rem; max-height: calc(100dvh - 3.75rem); }
  .menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 240ms var(--ease), transform 320ms var(--ease), visibility 0s;
  }
  .menu-links { flex-direction: column; gap: 0; }
  .menu-links li + li { border-top: 1px solid var(--naad); }
  .menu-links a,
  .menu-links a:visited { padding: var(--s-4) 0; font-size: var(--step-1); font-stretch: var(--narrow); font-weight: 650; }
  .menu-actions { flex-direction: column; align-items: flex-start; }
  .menu-actions .button { width: 100%; }
  .menu-actions .header-phone { font-size: var(--step-0); }
}

/* ---------- 5. Sections ---------- */

.section { padding-block: var(--section-y); }
.section-loods { background: var(--loods); }
.section-ink { background: var(--ink); color: var(--wit); }

.section-title { font-size: var(--step-3); font-stretch: var(--narrow); line-height: 1; letter-spacing: -0.015em; }
.section-intro { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-lead { max-width: 44ch; color: var(--staal); font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 56rem) {
  .section-intro { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: end; }
  .section-intro .section-title { grid-column: 1 / span 6; }
  .section-intro .section-lead { grid-column: 8 / span 5; }
}

/* Hero: one wide photo, the words on a charcoal wash */
.hero { position: relative; isolation: isolate; display: flex; padding-top: var(--header-h); min-height: min(calc(100svh - 8rem), 46rem); color: var(--wit); background: var(--ink-deep); }
.hero .photo-hero { position: absolute; inset: var(--header-h) 0 0; z-index: -2; aspect-ratio: auto; border-radius: 0; --focus: 62% 55%; }
.hero::after { content: ""; position: absolute; inset: var(--header-h) 0 0; z-index: -1; background: linear-gradient(180deg, rgb(27 30 35 / 0.78), rgb(27 30 35 / 0.66) 55%, rgb(27 30 35 / 0.92)); }
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-6); }
.hero-copy { margin-block: auto 0; }
.hero-title { max-width: 13ch; font-size: clamp(3.25rem, 1rem + 7vw, 7.25rem); font-stretch: 68%; font-weight: 780; line-height: 0.92; letter-spacing: -0.02em; }
.hero-sub { max-width: 34ch; margin-top: var(--s-5); font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem); line-height: 1.45; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hero-trust li { padding: var(--s-1) var(--s-3); border: 1px solid rgb(255 255 255 / 0.4); border-left: 4px solid var(--signal); border-radius: var(--r-control); background: rgb(27 30 35 / 0.55); font-weight: 600; }
.hero-actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 30rem) { .hero-actions { grid-template-columns: auto auto; justify-content: start; } }
.hero-facts { display: grid; gap: var(--s-4); margin: 0; padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.28); }
.hero-facts dt { font-size: var(--step--2); color: var(--on-ink-muted); }
.hero-facts dd { margin: 0; font-weight: 650; line-height: 1.4; }
@media (min-width: 48rem) { .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); } }
@media (min-width: 64rem) { .hero-facts { grid-template-columns: 1.4fr 0.8fr 1.1fr; } }
@media (min-width: 56rem) {
  .hero::after { background: linear-gradient(90deg, rgb(27 30 35 / 0.92), rgb(27 30 35 / 0.72) 45%, rgb(27 30 35 / 0.2)), linear-gradient(0deg, rgb(27 30 35 / 0.85), transparent 42%); }
}

/* wide but not tall (most laptops): tighten the hero so the first row of the
   board is in the first view; the facts repeat lower on the page */
@media (min-width: 56rem) and (max-height: 62rem) {
  .hero { min-height: calc(100svh - 14rem); }
  .board-band.texture { padding-top: var(--s-4); }
  .board-band .board-housing { padding-block: var(--s-4); }
  .hero-inner { justify-content: center; padding-block: var(--s-6); }
  .hero-facts { display: none; }
  .hero-copy { margin-block: 0; }
  .hero-title { font-size: clamp(3.25rem, 10svh, 7.25rem); }
  .hero-sub { margin-top: var(--s-4); }
  .hero-trust { margin-top: var(--s-4); }
  .hero-actions { margin-top: var(--s-5); }
}

/* Board band */
.board-band { background: var(--ink); color: var(--wit); padding-block: var(--s-5) var(--s-8); }
.board-housing {
  position: relative;
  padding: clamp(var(--s-4), 2.8vw, var(--s-6));
  background: var(--board);
  color: var(--flap-text);
  border-radius: var(--r-housing);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 0 0 6px var(--ink-deep), 0 40px 60px -36px rgb(0 0 0 / 0.7);
}
.bolt { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #59606C; box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.12); }
.bolt-tl { top: 9px; left: 9px; }
.bolt-tr { top: 9px; right: 9px; }
.bolt-bl { bottom: 9px; left: 9px; }
.bolt-br { bottom: 9px; right: 9px; }
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--ink-line);
}
.board-name { font-stretch: var(--narrow); font-weight: 700; font-size: var(--step-1); }

.board-body {
  /* characters per column; main.js sets them from the content */
  --c1: 10; --c2: 15;
  --total: calc(var(--c1) + var(--c2));
  --cgap: 3px;
  --colgap: clamp(1rem, 4vw, 3rem);
  container-type: inline-size;
}
.board-head,
.board-row {
  --cell: min(2.6rem, calc((100cqi - var(--cgap) * (var(--total) - 2) - var(--colgap)) / var(--total)));
  display: grid;
  grid-template-columns:
    calc(var(--c1) * var(--cell) + (var(--c1) - 1) * var(--cgap))
    calc(var(--c2) * var(--cell) + (var(--c2) - 1) * var(--cgap));
  column-gap: var(--colgap);
}
.board-head { margin-bottom: var(--s-2); font-size: var(--step--1); color: var(--board-muted); }
.board-rows { display: grid; gap: calc(var(--s-2) + 2px); margin: 0; padding: 0; list-style: none; }
.seg {
  display: flex;
  gap: var(--cgap);
  align-items: center;
  height: calc(var(--cell) * 1.42);
  font-stretch: 82%;
  font-weight: 600;
  font-size: calc(var(--cell) * 0.9);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.js .seg:not(.is-built) { visibility: hidden; }

.cell {
  position: relative;
  flex: 0 0 var(--cell);
  width: var(--cell);
  height: 100%;
  border-radius: var(--r-flap);
  overflow: hidden;
}
/* a position without a letter has no flap at all */
.cell.is-void { visibility: hidden; }
.cell .half { position: absolute; inset: 0; display: grid; place-items: center; }
.cell .t { background: var(--flap-top); clip-path: inset(0 0 50% 0); }
.cell .b { background: var(--flap-bottom); clip-path: inset(50% 0 0 0); }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--board); }

.seg-dienst .cell { color: var(--signal); }

/* with small flaps the hinge line hides the bar of an "e" */
@container (max-width: 64rem) {
  .cell::after { display: none; }
  .cell .t, .cell .b { background: var(--flap-top); }
}

/* narrow screens: service and role on their own lines */
@container (max-width: 34rem) {
  .board-head { display: none; }
  .board-row { --cell: min(2.2rem, calc((100cqi - var(--cgap) * (var(--c2) - 1)) / var(--c2))); grid-template-columns: max-content; row-gap: var(--cgap); }
  .board-rows { gap: var(--s-4); }
  .board-body { --cgap: 2px; }
  .seg { font-size: max(1rem, calc(var(--cell) * 0.96)); }
}
@media (max-width: 29.99rem) {
  .board-band .container { padding-inline: var(--s-4); }
}

/* Two doors: employers and job seekers, each with people at work */
.doors { display: grid; gap: var(--s-7); }
.door { position: relative; display: grid; justify-items: start; align-content: start; gap: var(--s-3); }
.door .photo { --ratio: 4 / 3; justify-self: stretch; margin-bottom: var(--s-2); }
.photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.door-title { font-size: var(--step-2); font-stretch: var(--narrow); }
.door p { max-width: 40ch; color: var(--staal); }
.door-link,
.door-link:visited { padding-block: var(--s-2); font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.door-link::after { content: " \2192"; }
.door-link::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-photo); }
/* on wide screens the clip takes the right side and fades into the charcoal,
   so both faces stay beside the words and the picture stays sharp */
.photo-hero video { object-position: 72% 30%; filter: saturate(0.95); }
@media (min-width: 56rem) {
  .hero .photo-hero { left: 30%; }
  .photo-hero video { object-position: 50% 25%; }
  .hero::after { background: linear-gradient(90deg, rgb(27 30 35) 30%, rgb(27 30 35 / 0.72) 42%, rgb(27 30 35 / 0.05) 62%), linear-gradient(0deg, rgb(27 30 35 / 0.6), transparent 30%); }
}
/* no control on screen; keyboard users still reach a pause button */
.video-toggle { position: absolute; right: var(--gutter); top: calc(var(--header-h) + var(--s-3)); padding: var(--s-3) var(--s-4); background: var(--wit); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-control); font-weight: 650; opacity: 0; pointer-events: none; }
.video-toggle:focus-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 48rem) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }

/* Zo werkt het: a timeline, left to right on wide screens */
.how-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: var(--s-5); align-content: start; padding-bottom: var(--s-5); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: calc(2rem - 1.5px); top: 4rem; bottom: calc(-1 * var(--s-5)); width: 3px; background: var(--ink); }
.step:last-child::before { display: none; }
.step-mark { grid-row: span 2; display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--ink); border-radius: var(--r-chip); }
.step-mark svg { width: 3.5rem; height: 3.5rem; }
.step-mark path { fill: none; stroke: var(--signal); stroke-width: 2.8; stroke-linecap: round; }
.step-title { margin-bottom: var(--s-2); font-size: var(--step-2); font-stretch: var(--narrow); }
.step p { color: var(--staal); }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); padding: 0 var(--s-6) 0 0; }
  .step::before { left: 4rem; right: calc(-1 * var(--s-5)); top: calc(2rem - 1.5px); bottom: auto; width: auto; height: 3px; }
  .step-mark { grid-row: auto; margin-bottom: var(--s-5); }
}

@media (max-width: 22rem) {
  .wordmark-logo { height: 1.3rem; }
  .header-bar .quick { gap: var(--s-1); }
}

/* Diensten: three equal panels on one shared surface. From 48rem the
   panels share row tracks, so photos, names, texts and role lists line up. */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); max-width: 30rem; margin-inline: auto; }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; padding-bottom: var(--s-5); background: var(--loods); border-radius: var(--r-photo); }
.service > :not(.photo):not(.service-icon) { margin-inline: var(--s-5); }
.photo-service { --ratio: 4 / 3; border-radius: var(--r-photo) var(--r-photo) 0 0; }
.service-bouw .photo-service { --focus: 38% 50%; }
.service-schoon .photo-service { --focus: 55% 50%; }
.service-icon {
  position: relative;
  z-index: 1;
  width: 3.5rem; height: 3.5rem;
  margin: -1.75rem 0 var(--s-4) var(--s-5);
  padding: 0.55rem;
  background: var(--wit);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-chip);
  transition: background-color 180ms var(--ease), rotate 320ms var(--ease-back), scale 320ms var(--ease-back);
}
.service:hover .service-icon,
.service:focus-within .service-icon { background: var(--signal); }
.service-link,
.service-link:visited { text-decoration: none; }
.service-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-photo); }
.service-name { font-size: clamp(1.75rem, 0.9rem + 1.7vw, 2.5rem); font-stretch: 68%; font-weight: 750; line-height: 1; overflow-wrap: break-word; }
.service-lead { margin-top: var(--s-2); line-height: 1.45; color: var(--staal); }
.roles { align-self: start; margin-top: var(--s-5); border-top: 3px solid currentColor; font-weight: 600; font-size: var(--step--1); }
.roles li { padding-block: var(--s-2); border-bottom: 1px solid var(--naad); overflow-wrap: break-word; hyphens: auto; }
.roles li:last-child { border-bottom: 0; }
.role-note { display: block; font-weight: 450; line-height: 1.4; opacity: 0.8; }
@media (min-width: 48rem) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-4); align-items: stretch; max-width: none; }
  .service { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
@media (min-width: 64rem) {
  .services { column-gap: var(--s-5); }
}


/* Statement */
.statement { padding-block: var(--section-y); }
.statement-grid { display: grid; gap: var(--s-7); align-items: center; }
.statement-title { max-width: 13ch; font-size: var(--step-5); font-stretch: 62%; font-weight: 800; line-height: 0.92; letter-spacing: -0.02em; }
.statement-title span { display: block; }
.statement-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.photo-statement { --ratio: 4 / 3; --focus: 45% 35%; }
@media (min-width: 56rem) {
  .statement-grid { grid-template-columns: 7fr 5fr; column-gap: var(--s-8); }
  .statement-title { font-size: clamp(4rem, 7.4vw, 8rem); }
  .photo-statement { --ratio: 4 / 5; }
}

/* Waarom: a wide photo with the three points lifted over its lower edge */
.photo-why { --ratio: 4 / 3; --focus: 55% 50%; }
.why-points { position: relative; z-index: 1; display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.why-point { padding: var(--s-6) var(--s-5); background: var(--wit); border-radius: var(--r-photo); box-shadow: 0 0 0 1px var(--naad), 0 30px 50px -34px rgb(27 30 35 / 0.5); }
.why-icon { width: 3.5rem; height: 3.5rem; margin-bottom: var(--s-5); padding: 0.65rem; background: var(--signal); color: var(--ink); border-radius: var(--r-chip); }
.why-point h3 { margin-bottom: var(--s-2); font-size: var(--step-2); font-stretch: var(--narrow); }
.why-point p { max-width: 34ch; color: var(--staal); }
@media (min-width: 56rem) {
  .photo-why { --ratio: 21 / 9; }
  .why-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: -5rem var(--s-6) 0; }
}

/* Betrouwbaarheid: set out like entries in a register */
.trust { border-top: 3px solid var(--ink); }
.trust-item { display: grid; gap: var(--s-2) var(--s-5); padding-block: var(--s-5); border-bottom: 1px solid var(--naad); }
.trust-item h3 { font-size: var(--step-2); font-stretch: var(--narrow); }
.trust-item p { max-width: 52ch; color: var(--staal); }
.trust-link { display: inline-block; justify-self: start; padding-block: var(--s-2); font-weight: 650; }
@media (min-width: 56rem) {
  .trust-item { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .trust-item h3 { grid-column: 1 / span 5; grid-row: span 2; }
  .trust-item p, .trust-link { grid-column: 6 / span 7; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 56rem) {
  .faq-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .faq-layout { grid-template-rows: auto 1fr; }
  .faq-intro { grid-column: 1 / span 4; grid-row: 1; }
  .faq { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: start; }
  .photo-faq { grid-column: 1 / span 4; grid-row: 2; align-self: start; }
}
.photo-faq { --ratio: 3 / 2; }
@media (min-width: 56rem) { .photo-faq { --ratio: 1 / 1; } }
.faq-intro .section-lead { margin-top: var(--s-4); }
.faq-mail,
.faq-mail:visited { display: inline-block; margin-top: var(--s-4); font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }
.faq { display: grid; gap: var(--s-3); align-content: start; }
.faq-item { background: var(--loods); border-radius: var(--r-photo); padding-inline: var(--s-5); }
.faq-q { font-size: var(--step-1); text-wrap: wrap; }
.faq-q button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  width: 100%;
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.faq-icon { position: relative; flex: 0 0 2rem; height: 2rem; border: 2px solid var(--ink); border-radius: var(--r-control); transition: background-color 200ms var(--ease), rotate 420ms var(--ease); }
.faq-q button:hover .faq-icon { background: var(--signal); }
.faq-icon::before,
.faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.875rem; height: 2px; background: var(--ink); translate: -50% -50%; transition: transform 300ms var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon { background: var(--ink); rotate: 180deg; }
.faq-q button[aria-expanded="true"] .faq-icon::before,
.faq-q button[aria-expanded="true"] .faq-icon::after { background: var(--wit); }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 360ms var(--ease), visibility 0s linear 360ms; }
.faq-a.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 360ms var(--ease), visibility 0s; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-inner p { max-width: var(--measure); padding: 0 var(--s-7) var(--s-5) 0; color: #40454D; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 56rem) {
  .contact-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .contact-intro { grid-column: 1 / span 4; }
  .contact-box { grid-column: 6 / span 7; }
}
.contact-intro .section-lead { margin-top: var(--s-4); }
.contact-direct { display: grid; justify-items: start; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 3px solid var(--ink); }
.contact-direct-label { font-size: var(--step--2); font-weight: 650; color: var(--staal); }
.contact-direct-label:not(:first-child),
.contact-direct > [data-needs] > .contact-direct-label { margin-top: var(--s-5); }
.contact-phone,
.contact-phone:visited { font-size: var(--step-2); font-stretch: var(--narrow); font-weight: 750; line-height: 1.2; text-decoration: none; }
.contact-mail { font-size: var(--step-1); font-weight: 650; overflow-wrap: anywhere; }
.hours { display: grid; gap: var(--s-1); justify-self: stretch; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-4); max-width: 18rem; }
.hours dd { font-weight: 650; }
.hours-stacked div { display: block; }
.hours-stacked div + div { margin-top: var(--s-2); }
.hours-stacked dt { color: var(--on-ink-muted); }
.contact-box { min-width: 0; overflow: hidden; border-radius: var(--r-photo); background: var(--wit); border-top: 3px solid var(--ink); box-shadow: var(--shadow-sheet); }

.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--naad); }
.tab { position: relative; min-height: 3.75rem; padding: var(--s-4) var(--s-3); background: var(--loods); border: 0; font-weight: 650; line-height: 1.2; color: var(--staal); cursor: pointer; transition: color 180ms var(--ease), background-color 180ms var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--ink); transform: scaleX(0); transition: transform 320ms var(--ease); }
.tab:first-child::after { transform-origin: right; }
.tab:last-child::after { transform-origin: left; }
.tab:hover { color: var(--ink); background: #F3F5F5; }
.tab[aria-selected="true"] { color: var(--ink); background: var(--wit); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { padding: var(--s-6) clamp(var(--s-4), 3vw, var(--s-6)); }
.tab-panel.is-entering,
.form-success.is-entering { animation: panel-in 320ms var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(0.375rem); } to { opacity: 1; transform: none; } }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field label, .field .label, .choice-group legend { font-weight: 650; font-size: var(--step--1); }
.field .optional, .choice-group .optional { font-weight: 400; color: var(--staal); }
.field-hint { max-width: var(--measure); font-size: var(--step--1); color: var(--staal); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: var(--s-3);
  background: var(--wit);
  border: 1px solid var(--staal);
  border-radius: var(--r-control);
  line-height: 1.4;
  outline: 3px solid transparent;
  outline-offset: 8px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), box-shadow 280ms var(--ease), outline-color 200ms var(--ease), outline-offset 280ms var(--ease);
}
input:not([type="checkbox"], [type="radio"]):focus, textarea:focus { border-color: var(--ink); background: #F3F5F5; outline-offset: 2px; }
textarea { min-height: 7.5rem; resize: vertical; }
input:hover, textarea:hover { border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: var(--step--1); font-weight: 500; }
.field-error::before { content: "Let op: "; font-weight: 700; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: var(--s-2); padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.field .choice { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3); border: 1px solid var(--staal); border-radius: var(--r-control); font-size: var(--step-0); font-weight: 400; cursor: pointer; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.choice input, .service-choice input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--ink); }
.field .choice:hover, .field .service-choice:hover { border-color: var(--ink); background: #F3F5F5; }
.field .choice:has(input:checked), .field .service-choice:has(input:checked) { border-color: var(--ink); background: var(--loods); box-shadow: inset 0 0 0 1px var(--ink); }
.service-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s-2); }
.field .service-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; padding: var(--s-3); border: 1px solid var(--staal); border-radius: var(--r-control); font-size: var(--step--1); font-weight: 600; cursor: pointer; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.service-choice .icon { width: 1.75rem; height: 1.75rem; }
.service-choice span { grid-column: 1 / -1; overflow-wrap: anywhere; }
.field .choice.choice-consent { display: flex; align-items: flex-start; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--step--1); }
.field .choice.choice-consent:has(input:checked) { background: none; box-shadow: none; }
.choice-consent input { margin-top: 0.2rem; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.field .file-button { font-size: var(--step-0); }
.file-name { min-width: 0; font-size: var(--step--1); color: var(--staal); overflow-wrap: anywhere; }
.file-clear { padding: 0; background: none; border: 0; font-size: var(--step--1); text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: var(--s-5); font-size: var(--step--1); color: var(--staal); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--naad); }
.form-status { max-width: 40ch; color: var(--error); font-size: var(--step--1); font-weight: 500; }
.form-status:empty { display: none; }
.button.is-busy { cursor: progress; }
.button.is-busy::after { content: ""; width: 0.6rem; height: 0.6rem; margin-left: var(--s-3); border-radius: 50%; background: var(--ink); }
.form-success { padding-block: var(--s-4); }
.form-success:focus { outline: none; }
.success-mark { width: auto; height: 3rem; margin-bottom: var(--s-5); }
.form-success h3 { margin-bottom: var(--s-3); font-size: var(--step-3); font-stretch: var(--narrow); }
.form-success p { max-width: 44ch; margin-bottom: var(--s-6); }
/* without the script a form cannot do anything; the mail link beside it still works */
html:not(.js) .contact-box { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--wit); padding-bottom: var(--s-6); font-size: var(--step--1); }
.footer-call { display: grid; justify-items: start; gap: var(--s-3); padding-block: clamp(var(--s-7), 7vw, var(--s-9)); border-bottom: 1px solid var(--ink-line); }
.footer-call-text { max-width: 18ch; color: var(--on-ink-muted); font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); font-stretch: var(--narrow); font-weight: 750; line-height: 1.05; }
.footer-call-link,
.footer-call-link:visited { position: relative; max-width: 100%; padding-bottom: var(--s-3); font-size: clamp(1.75rem, 0.8rem + 3.8vw, 4.25rem); font-stretch: 68%; font-weight: 750; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.footer-call-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--signal); transform-origin: left; }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-5); padding-top: var(--s-7); }
.footer-grid > div { flex: 1 1 12rem; min-width: 0; overflow-wrap: break-word; }
.footer-grid > .footer-bottom { flex-basis: 100%; }
.footer-brand p { margin-top: var(--s-3); color: var(--on-ink-muted); }
.footer-title { margin-bottom: var(--s-2); font-size: var(--step--2); font-weight: 650; color: var(--on-ink-muted); }
.footer-list, .footer-facts { display: grid; gap: var(--s-2); }
.footer-facts div { display: flex; gap: var(--s-2); }
.footer-facts dt { min-width: 2.5rem; color: var(--on-ink-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--ink-line); color: var(--on-ink-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-legal a, .footer-legal a:visited { color: var(--wit); }
/* links that stand on their own are at least 44px high */
.contact-mail, .faq-mail, .footer-call-link { padding-top: var(--s-2); }
.site-footer address a, .footer-list a, .footer-legal a, .footer-grid a { display: inline-block; padding-block: 0.6rem; }

/* Privacy page */
.legal { max-width: 52rem; padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--s-9); }
.legal h1 { font-size: var(--step-3); font-stretch: var(--narrow); margin-bottom: var(--s-4); }
.legal h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--step-1); }
.legal p, .legal ul { max-width: var(--measure); margin-bottom: var(--s-4); }
.legal li { margin-bottom: var(--s-2); }

/* ---------- 6. Motion ----------
   One reveal system: main.js adds .in-view once. Scoped to .js so the page
   stays readable if the script does not load. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Variants change only the start position and the pace. Longhands, so the
   group stagger (transition-delay above) keeps working. */

/* large text: longer rise, slower */
.js .reveal-text { transform: translateY(28px); transition-duration: .7s; }
.js .statement-title.reveal-text { transition-duration: .9s; }
.js .statement-title.reveal-text:not(.in-view) { transform: translateY(56px); }

/* photos: settle from slightly enlarged, no vertical move */
.js .reveal-photo { transform: scale(1.03); transition-duration: .8s; }

/* service cards and step marks: grow from 0.9 and overshoot */
.js .reveal-pop {
  transform: scale(0.9);
  transition-duration: .4s, .55s;
  transition-timing-function: cubic-bezier(.22,1,.36,1), cubic-bezier(.34,1.56,.64,1);
}

/* ordinary content stands still: only headings, photos and the route move */
.js .reveal:not(.reveal-text):not(.reveal-photo) { opacity: 1 !important; transform: none !important; }

/* Zo werkt het tells its order: stroke, line, next stroke */
.js .step-mark path { stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05; transition: stroke-dashoffset 300ms var(--ease) 200ms; }
.js .step.in-view .step-mark path { stroke-dashoffset: 0; }
.js .step.in-view .step-mark path:nth-child(2) { transition-delay: 350ms; }
.js .step.in-view .step-mark path:nth-child(3) { transition-delay: 500ms; }
.js .step::before { transform: scaleY(0); transform-origin: top; transition: transform 450ms var(--ease) 600ms; }
.js .step.in-view::before { transform: none; }
@media (min-width: 56rem) {
  .js .step::before { transform: scaleX(0); transform-origin: left; transition-duration: 500ms; transition-timing-function: linear; }
  .js .step.in-view::before { transform: none; }
  .js .step:nth-child(1)::before { transition-delay: 550ms; }
  .js .step:nth-child(2)::before { transition-delay: 1550ms; }
  .js .step:nth-child(2).in-view .step-mark path { transition-delay: 1050ms; }
  .js .step:nth-child(2).in-view .step-mark path:nth-child(2) { transition-delay: 1200ms; }
  .js .step:nth-child(3).in-view .step-mark path { transition-delay: 2050ms; }
  .js .step:nth-child(3).in-view .step-mark path:nth-child(2) { transition-delay: 2200ms; }
  .js .step:nth-child(3).in-view .step-mark path:nth-child(3) { transition-delay: 2350ms; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .step-mark path { stroke-dashoffset: 0; transition: none; }
  .js .step::before { transform: none; transition: none; }
}

/* Hover and focus: icons redraw their own strokes and tip slightly. The dash
   values are set on the svg, so they reach the paths inside <use> too. */
@media (prefers-reduced-motion: no-preference) {
  .service:hover .service-icon,
  .service:focus-within .service-icon { rotate: -6deg; scale: 1.1; stroke-dasharray: 1.01 3; animation: redraw 700ms var(--ease); }
  .service-choice:hover .icon,
  .service-choice:focus-within .icon { stroke-dasharray: 1.01 3; animation: redraw 700ms var(--ease); }

  .step-mark svg { transition: rotate 320ms var(--ease-back), scale 320ms var(--ease-back); }
  .step:hover .step-mark svg,
  .track:has(.button:focus-visible) .step-mark svg { rotate: -6deg; scale: 1.1; }
  .js .step.in-view:hover .step-mark path,
  .js .track:has(.button:focus-visible) .step.in-view .step-mark path { animation: redraw 420ms var(--ease) backwards; }
  .js .step.in-view .step-mark path:nth-child(2) { animation-delay: 110ms; }
  .js .step.in-view .step-mark path:nth-child(3) { animation-delay: 220ms; }

  .button.is-busy { animation: busy 700ms ease-in-out infinite; }
  .button.is-busy::after { animation: blink 700ms ease-in-out infinite; }

}
@keyframes redraw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes busy { 50% { scale: 0.97; } }
@keyframes blink { 50% { opacity: 0.25; } }
.statement { overflow: hidden; }

/* Photos are never hidden while waiting: the frame is always filled and the
   picture itself zooms in and then drifts with the scroll. */
.js .reveal.reveal-photo { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal-text:not(.in-view) { transform: translateY(44px); }

  .js .photo img { transform: translateY(var(--py, 0%)) scale(1.06); }
  .js .reveal-photo img { scale: 1.08; transition: scale 1.4s var(--ease); }
  .js .reveal-photo.in-view img { scale: 1; }

}

/* Phones: the clip is a clear band on top, the words sit under it */
@media (max-width: 47.99rem) {
  .hero { flex-direction: column; min-height: 0; background: var(--ink-deep); }
  .hero .photo-hero { position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 16 / 9; }
  .hero::after { display: none; }
  .photo-hero video { object-position: 50% 30%; filter: none; }
  .hero-inner { justify-content: flex-start; gap: var(--s-6); padding-top: var(--s-4); }
  .hero-copy { display: flex; flex-direction: column; margin: 0; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero-sub { margin-top: var(--s-3); }
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-4); }
  .hero-actions .button { padding-inline: var(--s-2); }
  .hero-trust { order: 1; margin-top: var(--s-4); }
  .video-toggle { right: var(--s-3); }
}

/* the section button repeats the one in the action bar */
@media (max-width: 74.99rem) {
  .js .statement-offer { display: none; }
}

/* Waarom and the register draw themselves once, when they come into view */
.js .why-icon { stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05; transition: stroke-dashoffset 800ms var(--ease) calc(250ms + var(--i, 0) * 250ms); }
.js .why-point.in-view .why-icon { stroke-dashoffset: 0; }
.js .trust-item { position: relative; border-bottom-color: transparent; }
.js .trust-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease) calc(var(--i, 0) * 250ms); }
.js .trust-item.in-view::after { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .why-icon { stroke-dashoffset: 0; transition: none; }
  .js .trust-item::after { transform: none; transition: none; }
}

/* ---------- 7. Focus: last, so no component shadow hides it ---------- */

:focus-visible { outline: 3px solid var(--ink) !important; outline-offset: 2px; box-shadow: 0 0 0 7px var(--signal) !important; }
.section-ink :focus-visible,
.site-footer :focus-visible,
.board-band :focus-visible { outline-color: var(--wit) !important; }
.tab:focus-visible, .tab-panel:focus-visible { outline-offset: -3px !important; }

.file-input:focus-visible + .file-button { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--signal); }

/* ---------- 8. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
