/* ==========================================================================
   Rosa Ordelman – stylesheet
   Letters: Bricolage Grotesque (naam, koppen, navigatie, knoppen)
            Newsreader (subregel, intro, lopende tekst)
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License – zie assets/fonts) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Terugvalletter met aangepaste maat (gemeten), zodat de naam niet verspringt tijdens het laden */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 92.5%;
}

/* Tokens ----------------------------------------------------------------- */
:root {
  --linnen: #E9E4DA;      /* basis achtergrond */
  --papier: #F6F2EA;      /* navigatie, lichte vlakken */
  --eiken: #CDB89F;       /* warm vlak */
  --lijn: #D3CABB;        /* dunne lijnen */
  --taupe: #6B6054;       /* secundaire tekst (4,8:1 op linnen) */
  --bruin: #2E231C;       /* tekst (12:1 op linnen) */
  --bruin-zacht: #4A3B30; /* hover donkere knop */
  --terra: #B5442A;       /* accent, uit de blouse op foto 5 (4,9:1 met papier) */
  --terra-donker: #96371F;/* hover accent */

  --font-sans: "Bricolage Grotesque", "Bricolage Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --max: 1680px;
  --gutter: clamp(20px, 2.8vw, 40px);
  --nav-top: clamp(12px, 1.4vw, 20px);
  --nav-h: 58px;
}

/* Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--linnen);
  color: var(--bruin);
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--bruin);
  outline-offset: 3px;
}
.band--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--papier); }
[id] { scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 24px); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--bruin);
  color: var(--papier);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: var(--nav-top); }

/* Knoppen ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25em;
  border: 0;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.button--accent { background: var(--terra); color: var(--papier); }
.button--accent:hover { background: var(--terra-donker); }
.button--dark { background: var(--bruin); color: var(--papier); }
.button--dark:hover { background: var(--bruin-zacht); }

/* Zwevende navigatie ----------------------------------------------------- */
.site-nav {
  position: fixed;
  z-index: 50;
  top: var(--nav-top);
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;           /* alleen de balk zelf vangt klikken */
}
.site-nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
  padding: 6px 6px 6px 18px;
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 3px;
}

/* Naam in de balk: verschijnt pas als de grote naam uit beeld is */
.site-nav__name {
  max-width: 0;
  margin-right: -12px;            /* heft de gap op zolang de naam verborgen is */
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  visibility: hidden;
}
.is-named .site-nav__name {
  max-width: 12em;
  margin-right: 6px;
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav__name {
    transition: max-width .4s ease, margin-right .4s ease, opacity .25s ease, visibility 0s .4s;
  }
  .is-named .site-nav__name {
    transition: max-width .4s ease, margin-right .4s ease, opacity .3s ease .1s, visibility 0s;
  }
}

.site-nav__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__links a {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav__links a:hover { text-decoration-line: underline; }

.site-nav__cta { font-size: .9375rem; padding: 0 1em; }

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6em;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--bruin);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.site-nav__toggle-close { display: none; }
.is-open .site-nav__toggle-open { display: none; }
.is-open .site-nav__toggle-close { display: inline; }

/* Mobiel menu: een paneel onder de balk */
@media (max-width: 899.98px) {
  .site-nav__menu {
    pointer-events: auto;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px 24px 20px;
    background: var(--papier);
    border: 1px solid var(--lijn);
    border-radius: 3px;
  }
  .site-nav__links li + li { border-top: 1px solid var(--lijn); }
  .site-nav__links a {
    min-height: 64px;
    font-size: 1.875rem;
    letter-spacing: -0.02em;
  }
  .js .site-nav__menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
  }
  .js .is-open .site-nav__menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .js .site-nav__menu { transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
    .js .is-open .site-nav__menu { transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  }
  /* Zonder JavaScript: links als compacte rij in de balk, geen menuknop */
  html:not(.js) .site-nav__menu {
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }
  html:not(.js) .site-nav__links { display: flex; gap: 10px; }
  html:not(.js) .site-nav__links li + li { border: 0; }
  html:not(.js) .site-nav__links a { min-height: 44px; font-size: .9375rem; letter-spacing: 0; }
  html:not(.js) .site-nav__toggle,
  html:not(.js) .site-nav__cta { display: none; }
}
/* Smalle telefoons: balk compacter, zodat naam + knop + menu altijd passen */
@media (max-width: 439.98px) {
  .site-nav__bar { gap: 6px; padding-left: 14px; }
  .site-nav__name { margin-right: -6px; font-size: .9375rem; }
  .is-named .site-nav__name { margin-right: 4px; }
  .site-nav__cta { padding: 0 .8em; font-size: .9375rem; }
  .site-nav__toggle { padding: 0 6px; font-size: .9375rem; }
}

/* Desktop: losse, gecentreerde balk */
@media (min-width: 900px) {
  .site-nav { justify-content: center; }
  .site-nav__bar { gap: 28px; padding-left: 26px; }
  .site-nav__name { margin-right: -28px; }
  .is-named .site-nav__name { margin-right: 4px; }
  .site-nav__links { display: flex; gap: 20px; }
  .site-nav__links a { min-height: 44px; padding-inline: 4px; font-size: 1rem; }
  .site-nav__toggle { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(20px, 3.4vw, 48px));
}
.hero__text {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Het woordmerk: de naam vult de volle breedte van de kolom.
   Deler = breedte van "Rosa Ordelman" in em, gemeten in Bricolage 500 met -0.03em spatiëring. */
.hero__name {
  --name-ratio: 6.2;
  margin: 0 0 0 -0.045em;
  font-family: var(--font-sans);
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / var(--name-ratio));
  font-weight: 500;
  line-height: .88;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero__name span { display: inline; }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(24px, 2.6vw, 36px);
}
.hero__sub {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 0.9rem + 1.15vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.hero__meta .button {
  min-height: 54px;
  padding: 0 1.6em;
  font-size: 1.0625rem;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}
@media (min-width: 640px) {
  .hero__photo img {
    aspect-ratio: 12 / 5;
    max-height: 78vh;
    object-position: 50% 30%;
  }
}

/* Smal scherm: naam op twee regels, zo groot mogelijk */
@media (max-width: 639.98px) {
  .hero__name {
    --name-ratio: 3.98;           /* breedte van "Ordelman" in em */
    line-height: .86;
  }
  .hero__name span { display: block; }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Intro ------------------------------------------------------------------ */
/* Grote stelling over bijna de volle breedte, de toelichting ingesprongen
   eronder: een redactionele opening na de hero. */
.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(96px, 11vw, 184px) var(--gutter) clamp(112px, 12vw, 200px);
}
.intro__text { display: contents; }
.intro__statement {
  grid-column: 1 / span 10;
  max-width: 15em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro__body {
  grid-column: 6 / span 6;
  margin-top: clamp(40px, 5vw, 80px);
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
  line-height: 1.55;
}
.intro__body p { margin: 0 0 1em; text-wrap: pretty; }
.intro__body p:last-child { margin-bottom: 0; }
@media (max-width: 1023.98px) {
  .intro__statement { grid-column: 1 / -1; }
  .intro__body { grid-column: 4 / -1; }
}
@media (max-width: 639.98px) {
  .intro { display: block; }
}

/* Hulpklasse: alleen voor schermlezers en zoekmachines ------------------- */
.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;
}

/* Wat ik doe: vier diensten --------------------------------------------- */
/* Twee kolommen, de rechter verspringt naar beneden. Elke dienst begint met
   een lijn die zich tekent. Geen kaarten, geen iconen. */
.services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(72px, 8vw, 128px);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(120px, 14vw, 220px);
}
.services__head {
  grid-column: 1 / span 6;
  align-self: center;
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
  line-height: 1.5;
}
.services__head p { max-width: 30em; margin: 0 0 1em; text-wrap: pretty; }
.services__head p:last-child { margin-bottom: 0; }
.services__title,

.service { position: relative; padding-top: clamp(28px, 2.6vw, 40px); }
.service--1, .service--3 { grid-column: 1 / span 5; }
.service--2, .service--4 { grid-column: 8 / -1; }
.service--2 { margin-top: clamp(120px, 12vw, 220px); }
.service--4 { margin-top: clamp(120px, 12vw, 220px); }
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terra);
  transform-origin: left center;
}
.service__title {
  margin: 0 0 clamp(20px, 2vw, 28px);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.025em;
  hyphens: manual;
}
.service p { margin: 0 0 1em; max-width: 32em; text-wrap: pretty; }
.service .service__lead {
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.4;
}
.service .service__close {
  margin: 1.4em 0 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}
@media (prefers-reduced-motion: no-preference) {
  .js .service::before {
    transform: scaleX(0);
    transition: transform 1.1s cubic-bezier(.2, .7, .15, 1);
  }
  .js .service.is-drawn::before { transform: scaleX(1); }
}


@media (max-width: 1023.98px) {
  .services__head { grid-column: 1 / span 10; }
  .service--1, .service--3 { grid-column: 1 / span 6; }
  .service--2, .service--4 { grid-column: 7 / -1; }
  }
@media (max-width: 767.98px) {
  .services { display: block; }
  .service { margin-top: 72px; }
  .service--2, .service--4 { margin-top: 72px; margin-left: 8%; }
  }

/* Register: lijst met lijnen. Lijnen zijn pseudo-elementen, zodat ze kunnen 'tekenen'. */
.register {
  --lijn-register: #C3B8A6;
  position: relative;
  margin: clamp(32px, 3.4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.4;
}
.register::before,
.register li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--lijn-register);
  transform-origin: left center;
}
.register::before { top: 0; }
.register li {
  position: relative;
  padding: 15px 0 16px;
}
.register li::after { bottom: 0; }

/* Beweging 1: lijnen tekenen zich van links naar rechts zodra het register in beeld komt.
   Alleen met JavaScript en als de bezoeker beweging niet heeft uitgezet; de tekst zelf blijft altijd zichtbaar. */
@media (prefers-reduced-motion: no-preference) {
  .js .register::before,
  .js .register li::after {
    transform: scaleX(0);
    transition: transform 1.1s cubic-bezier(.2, .7, .15, 1);
  }
  .js .register li::after { transition-delay: calc(var(--i, 0) * 90ms + 90ms); }
  .js .register.is-drawn::before,
  .js .register.is-drawn li::after { transform: scaleX(1); }
}

/* Projecten -------------------------------------------------------------- */
/* Uitgelichte opdrachten als lijst over de volle breedte; dezelfde tekenende
   lijnen als het register. Uitleg klapt open met <details> (werkt zonder JS). */
.projects {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(112px, 12vw, 200px);
}
.projects__title {
  margin: 0 0 clamp(40px, 4.4vw, 72px);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
}
.register.projects__list {
  margin: 0;
  font-size: 1rem;
}
.register.projects__list li { padding: 0; }

.project__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding: clamp(24px, 2.6vw, 36px) 0;
  cursor: pointer;
  list-style: none;
}
.project__row::-webkit-details-marker { display: none; }
.project__row::marker { content: ""; }
.project__row:focus-visible { outline-offset: 6px; }

.project__name {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}
.project__meta {
  grid-column: 8 / span 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--taupe);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.35;
}
.project__toggle {
  grid-column: 11 / -1;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  white-space: nowrap;
}
.project__row:hover .project__toggle { text-decoration-color: var(--terra); }
.project__toggle-close { display: none; }
details[open] .project__toggle-open { display: none; }
details[open] .project__toggle-close { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .project__toggle { transition: text-decoration-color .15s ease; }
}

.project__body {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 32px;
  padding: 0 0 clamp(36px, 3.6vw, 56px);
}
.project__lead {
  grid-column: 1 / span 6;
  max-width: 28em;
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.project__facts {
  grid-column: 8 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.project__facts div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
}
.project__facts dt {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}
.project__facts dd {
  margin: 0;
  line-height: 1.5;
}

/* Soepel openklappen in browsers die dat ondersteunen; anders klapt hij direct open */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .projects { interpolate-size: allow-keywords; }
    .project details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .45s cubic-bezier(.2, .7, .15, 1), content-visibility .45s allow-discrete;
    }
    .project details[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 767.98px) {
  .project__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px;
  }
  .project__name { grid-column: 1 / -1; }
  .project__meta { grid-column: 1; }
  .project__toggle { grid-column: 2; align-self: end; }
  .project__body { display: block; }
  .project__facts { margin-top: 28px; }
  .project__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Over Rosa -------------------------------------------------------------- */
/* Grote foto links tot de schermrand (spiegelbeeld van Werkwijze), verhaal rechts.
   De foto schuift tijdens het scrollen licht horizontaal binnen zijn kader. */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(96px, 10vw, 168px) var(--gutter) clamp(112px, 12vw, 200px) 0;
}
.about__photo {
  grid-column: 1 / span 7;
  margin: 0;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 72% 50%;
  background: var(--eiken);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__photo img {
      animation: about-pan linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes about-pan {
  from { object-position: 60% 50%; }
  to   { object-position: 82% 50%; }
}

.about__text {
  grid-column: 9 / -1;
  max-width: 34em;
}
.about__title {
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
}
.about__text p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text .about__motto {
  margin-top: 1.6em;
}
.about__motto span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.about__text .about__lead {
  margin-bottom: 1.1em;
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  line-height: 1.3;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .about__photo { grid-column: 1 / span 6; }
  .about__text { grid-column: 7 / -1; }
  .about__photo img { aspect-ratio: 4 / 5; }
}
@media (max-width: 639.98px) {
  .about {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__text { padding: 48px var(--gutter) 0; }
}

/* Scheidingslijn: de oranje draad ---------------------------------------- */
/* Een terracotta lijn over de volle breedte die halverwege één tree omlaag stapt
   en eindigt in een punt: de 'draad' door het verhaal. Hij tekent zich in drie
   delen als hij in beeld komt. --flip spiegelt hem, zodat de tree afwisselend valt. */
.divider {
  --tree: 62%;
  --hoogte: 40px;
  position: relative;
  height: var(--hoogte);
  margin-right: var(--gutter);
}
.divider--flip {
  margin-right: 0;
  margin-left: var(--gutter);
  transform: scaleX(-1);
}
.divider__a,
.divider__b,
.divider__c,
.divider__dot {
  position: absolute;
  background: var(--terra);
}
.divider__a { left: 0; top: 0; width: var(--tree); height: 2px; transform-origin: left center; }
.divider__b { left: calc(var(--tree) - 2px); top: 0; width: 2px; height: var(--hoogte); transform-origin: center top; }
.divider__c { left: calc(var(--tree) - 2px); right: 0; bottom: 0; height: 2px; transform-origin: left center; }
.divider__dot {
  right: -5px;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
@media (max-width: 639.98px) {
  .divider { --tree: 55%; --hoogte: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .divider__a { transform: scaleX(0); transition: transform .9s cubic-bezier(.6, 0, .4, 1); }
  .js .divider__b { transform: scaleY(0); transition: transform .25s linear .9s; }
  .js .divider__c { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .6, .3, 1) 1.15s; }
  .js .divider__dot { transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1) 1.8s; }
  .js .divider.is-drawn .divider__a,
  .js .divider.is-drawn .divider__c { transform: scaleX(1); }
  .js .divider.is-drawn .divider__b { transform: scaleY(1); }
  .js .divider.is-drawn .divider__dot { transform: scale(1); }
}

/* Fotocollage bij 'Waar ik bij help' ------------------------------------ */
.services__photos {
  grid-column: 8 / -1;
  position: relative;
  padding-bottom: 18%;
}
.services__photo { display: block; background: var(--eiken); }
.services__photo--main {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.services__photo--inset {
  position: absolute;
  left: -14%;
  bottom: 0;
  width: 40%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0 0 clamp(8px, .9vw, 14px) var(--linnen);   /* ring in achtergrondkleur, geen schaduw */
}
@media (max-width: 1023.98px) {
  .services__photos { grid-column: 1 / -1; margin-left: 14%; }
}
@media (max-width: 767.98px) {
  .services__photos { margin: 56px 0 0 12%; padding-bottom: 30%; }
  .services__photo--inset { left: -14%; width: 42%; }
}

/* Donkere banden (Werkwijze, Reviews) ----------------------------------- */
.band--dark {
  --lijn-op-donker: #5C4C40;
  background: var(--bruin);
  color: var(--papier);
}
.band--dark .review__role { color: var(--eiken); }       /* 8:1 op diepbruin */
.band--dark .review p { color: var(--papier); }

/* Contact ---------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(96px, 10vw, 168px) var(--gutter) clamp(112px, 12vw, 200px);
}
.contact__photo {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-h) + 32px);
  margin: 0;
}
.contact__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--eiken);
}
.contact__main { grid-column: 6 / -1; }
.contact__title {
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
}
.contact__main > p { max-width: 32em; margin: 0 0 .8em; text-wrap: pretty; }
.contact__main > .contact__lead {
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  line-height: 1.3;
  margin-bottom: 1em;
}
.contact__appointment {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2em !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}
.contact__appointment::before {                 /* het punt van de oranje draad */
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terra);
}
.contact__lines {
  margin: 20px 0 clamp(56px, 6vw, 88px);
  padding: 0;
  list-style: none;
  border-top: 1px solid #C3B8A6;
}
.contact__lines li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #C3B8A6;
  font-family: var(--font-sans);
}
.contact__label { font-size: 1rem; color: var(--taupe); }
.contact__lines a,
.contact__lines li > span:last-child {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.contact__lines a {
  text-decoration: none;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.contact__lines a:hover { text-decoration-line: underline; }

/* Formulier */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form label {
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #B3A794;
  border-radius: 2px;
  background: var(--papier);
  color: var(--bruin);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
}
.form textarea { min-height: 168px; resize: vertical; }
.form input:focus,
.form textarea:focus { border-color: var(--bruin); }
.form [aria-invalid="true"] { border-color: var(--terra-donker); }
.form__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.form__check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--terra);
}
.form__check label {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
}
.form__error {
  margin: 0;
  color: var(--terra-donker);          /* 5,6:1 op linnen */
  font-family: var(--font-sans);
  font-size: .9375rem;
}
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__submit .button { min-height: 54px; padding: 0 1.6em; font-size: 1.0625rem; }
.form__submit .button[disabled] { opacity: .6; cursor: progress; }
.form__status { margin: 0; font-family: var(--font-sans); font-size: 1rem; }
.form__status.is-error { color: var(--terra-donker); }
.form__sent {
  padding: 28px 0;
  border-top: 2px solid var(--terra);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  line-height: 1.4;
}
.form__done { display: none; }
.form__done:target {
  display: block;
  padding: 20px 0;
  border-top: 2px solid var(--terra);
  font-size: 1.25rem;
}

@media (max-width: 1023.98px) {
  .contact__photo { grid-column: 1 / span 5; position: static; }
  .contact__main { grid-column: 7 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .contact__lines li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 767.98px) {
  .contact { display: block; }
  .contact__photo { width: 70%; margin-bottom: 56px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__lines li { grid-template-columns: 1fr; gap: 2px; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--bruin);
  color: var(--papier);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(72px, 8vw, 128px) var(--gutter) 28px;
}
.site-footer__name {
  margin: 0 0 clamp(48px, 5vw, 80px) -0.045em;
  color: var(--eiken);
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 6.2);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 28px var(--gutter);
  padding-top: 28px;
  border-top: 1px solid #5C4C40;
}
.site-footer__col { margin: 0; font-style: normal; }
.site-footer__col strong { font-weight: 500; }
.site-footer a {
  color: var(--papier);
  text-decoration-color: var(--eiken);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.site-footer a:hover { text-decoration-color: var(--papier); }
.site-footer__credit {
  margin: clamp(48px, 5vw, 72px) 0 0;
  font-size: .8125rem;
  color: var(--eiken);
}
.site-footer__credit a { color: var(--eiken); text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }

/* Logo's bij Projecten ---------------------------------------------------- */
/* Rustig in één kleur (diepbruin); in hun eigen kleuren bij hover of als het project open is. */
.project__row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.project__logo {
  grid-column: 1 / span 3;
  display: flex;
  align-items: center;
  height: 72px;
}
.project__logo .logo { display: block; height: var(--logo-h, 40px); width: auto; max-width: 100%; }
.logo path, .logo polygon { fill: var(--bruin); }
.logo .logo__accent { fill: var(--taupe); }
.logo .logo__plate { fill: transparent; }
.logo .logo__on-plate { fill: var(--bruin); }
.logo .logo__knockout { fill: transparent; }
.project__row:hover .logo path,
.project__row:hover .logo polygon,
.project__row:hover .logo rect,
.project details[open] .logo path,
.project details[open] .logo polygon,
.project details[open] .logo rect { fill: var(--c); }
.project__row:hover .logo .logo__on-plate,
.project__row:hover .logo .logo__knockout,
.project details[open] .logo .logo__on-plate,
.project details[open] .logo .logo__knockout { fill: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  .logo path, .logo polygon, .logo rect { transition: fill .3s ease; }
}
.project__name {
  grid-column: 4 / span 4;
  font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.5rem);
}
@media (max-width: 767.98px) {
  .project__row { grid-template-columns: minmax(0, 1fr) auto; }
  .project__logo { grid-column: 1 / -1; height: auto; margin-bottom: 4px; }
  .project__name { grid-column: 1 / -1; }
}

/* LinkedIn-knop bij Over Rosa */
.button--outline {
  gap: 12px;
  border: 1.5px solid var(--bruin);
  background: transparent;
  color: var(--bruin);
}
.button--outline:hover { background: var(--bruin); color: var(--papier); }
.about__linkedin { margin-top: 32px; min-height: 52px; padding: 0 1.3em; }
.icon-linkedin { width: 20px; height: 20px; flex: none; }

/* Diensten als blokken (op verzoek, geïnspireerd op zwiqr.nl) ------------- */
/* Vlakke blokken in twee warme tinten, zonder schaduw of ronde hoeken. Elk blok
   opent met een kort oranje lijntje dat zich tekent. */
.services__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.services__grid .service {
  grid-column: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.6vw, 60px) clamp(24px, 3.4vw, 56px) clamp(32px, 3.4vw, 52px);
  background: #F3EEE6;
}
.services__grid .service--2,
.services__grid .service--3 { background: #DFD7C9; }
.services__grid .service::before {
  top: clamp(32px, 3.6vw, 60px);
  left: clamp(24px, 3.4vw, 56px);
  right: auto;
  width: 48px;
}
.services__grid .service__title {
  margin-top: 28px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
}
.services__grid .service p { max-width: 34em; }
.services__grid .service .service__close {
  margin-top: auto;
  padding-top: 1.6em;
}
@media (max-width: 767.98px) {
  .services { display: grid; grid-template-columns: minmax(0, 1fr); }
  .services > * { grid-column: 1 / -1; }
  .services__head, .services__photos,
  .services__grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .services__grid .service--2, .services__grid .service--4 { margin-left: 0; }
  .services__grid .service--2 { background: #DFD7C9; }
  .services__grid .service--3 { background: #F3EEE6; }
  .services__grid .service--4 { background: #DFD7C9; }
}

/* Contact: LinkedIn met logo */
.contact__linkedin .contact__label { display: flex; align-items: center; }
.contact__linkedin .icon-linkedin {
  width: 30px;
  height: 30px;
  color: var(--bruin);
}
.contact__linkedin a:hover .icon-linkedin,
.contact__linkedin:hover .icon-linkedin { color: #0A66C2; }
@media (prefers-reduced-motion: no-preference) {
  .contact__linkedin .icon-linkedin { transition: color .2s ease; }
}
@media (max-width: 1023.98px) {
  .contact__linkedin { grid-template-columns: auto minmax(0, 1fr) !important; gap: 14px !important; align-items: center !important; }
}

/* Intro: foto links naast de toelichting --------------------------------- */
.intro { align-items: start; }
.intro__photo {
  grid-column: 1 / span 4;
  grid-row: 2;
  margin: clamp(40px, 5vw, 80px) 0 0;
}
.intro__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--eiken);
}
.intro__body { grid-row: 2; }
@media (max-width: 1023.98px) {
  .intro__photo { grid-column: 1 / span 5; }
  .intro__body { grid-column: 6 / -1; }
}
@media (max-width: 639.98px) {
  .intro__photo { width: 64%; margin: 40px 0 0 auto; }
  .intro__body { margin-top: 40px; }
}

/* Projecten: ruimte na de donkere Werkwijze-band */
.projects { padding-top: clamp(96px, 10vw, 168px); }

/* Reviews: compact in één rij ------------------------------------------- */
/* Desktop: drie naast elkaar. Kleinere schermen: horizontaal swipen, de volgende
   review piekt in beeld zodat duidelijk is dat er meer is. */
.reviews {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(88px, 9vw, 144px) var(--gutter);
}
.reviews__title {
  margin: 0 0 clamp(36px, 4vw, 64px);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}
.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 56px);
}
.reviews__row:focus-visible { outline-offset: 8px; }
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #5C4C40;
}
.review blockquote { margin: 0; }
.review p {
  margin: 0;
  color: var(--papier);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.4;
  text-indent: -0.38em;
  text-wrap: pretty;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
}
.review figcaption::before {
  content: "";
  width: 32px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--terra);
  transform-origin: left center;
}
.review__name { font-weight: 500; }
.review__role { color: var(--eiken); }
@media (prefers-reduced-motion: no-preference) {
  .js .review figcaption::before { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.15,1) .2s; }
  .js .review.is-drawn figcaption::before { transform: scaleX(1); }
}
@media (max-width: 1023.98px) {
  .reviews__row {
    display: flex;
    gap: 20px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #5C4C40 transparent;
  }
  .review {
    flex: 0 0 min(78%, 420px);
    scroll-snap-align: start;
  }
  .review p { padding-left: .38em; }
}

/* Mobiel: alles op dezelfde linkerlijn ---------------------------------- */
@media (max-width: 767.98px) {
  .services__photos { margin: 48px 0 0 14%; }
  .service--2, .service--4 { margin-left: 0; }
  .divider { margin-right: var(--gutter); }
  .divider--flip { margin-left: var(--gutter); }
}

/* Oranje draad niet direct tegen een donkere band aan */
.band + .divider { margin-top: clamp(56px, 6vw, 96px); }

/* Woordmerk altijd in de display-snit, zodat de breedte op elk scherm klopt */
.hero__name,
.site-footer__name { font-variation-settings: "opsz" 96; }

/* Mobiel: introfoto over de volle tekstbreedte, op dezelfde linkerlijn */
@media (max-width: 639.98px) {
  .intro__photo { width: 100%; margin: 40px 0 0; }
  .intro__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
}

/* Diensten: kort met 'Lees meer' ----------------------------------------- */
/* Titel en de pakkende openingsvraag staan altijd; de rest klapt uit.
   <details> werkt ook zonder JavaScript en met het toetsenbord. */
.services__grid { align-items: start; }
.services__grid .service { padding-bottom: clamp(24px, 2.6vw, 40px); }
.service__more { margin-top: 4px; }
.service__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.service__toggle::-webkit-details-marker { display: none; }
.service__toggle::marker { content: ""; }
.service__toggle::after {                 /* klein plusje dat een min wordt */
  content: "";
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--terra), var(--terra)) center / 11px 2px no-repeat,
    linear-gradient(var(--terra), var(--terra)) center / 2px 11px no-repeat;
}
.service__more[open] .service__toggle::after {
  background: linear-gradient(var(--terra), var(--terra)) center / 11px 2px no-repeat;
}
.service__toggle-close { display: none; }
.service__more[open] .service__toggle-open { display: none; }
.service__more[open] .service__toggle-close { display: inline; }
.service__more[open] .service__toggle { margin-top: 4px; }
.service__rest { padding-top: 12px; }
.services__grid .service__rest .service__close { margin-top: .4em; padding-top: 0; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .services { interpolate-size: allow-keywords; }
    .service__more::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .4s cubic-bezier(.2, .7, .15, 1), content-visibility .4s allow-discrete;
    }
    .service__more[open]::details-content { block-size: auto; }
  }
}
/* Gesloten blokken even hoog per rij; 'Lees meer' onderaan op één lijn */
.services__grid { align-items: stretch; }
.service__more { margin-top: auto; padding-top: 8px; }

/* Cookiemelding ---------------------------------------------------------- */
/* Klein, rustig kaartje linksonder; blokkeert de pagina niet. */
.cookies {
  position: fixed;
  z-index: 60;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 20px;
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-top: 2px solid var(--terra);
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(46, 35, 28, .12);
  font-family: var(--font-sans);
}
.cookies[hidden] { display: none; }
.cookies__text { margin: 0 0 16px; font-size: .9375rem; line-height: 1.5; }
.cookies__text a { text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cookies__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies__buttons .button { width: 100%; }

.site-footer__cookies {
  padding: 0;
  border: 0;
  background: none;
  color: var(--papier);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--eiken);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.site-footer__cookies[hidden] { display: none; }

/* Subpagina's: privacyverklaring, algemene voorwaarden, 404 -------------- */
.page {
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--nav-top) + var(--nav-h) + clamp(64px, 8vw, 128px)) var(--gutter) clamp(96px, 10vw, 160px);
}
.page > * { max-width: 40rem; }
.page .page__title {
  max-width: none;
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 1.3rem + 5vw, 6rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.page__meta { margin: 0 0 1.5em; color: var(--taupe); font-family: var(--font-sans); font-size: 1rem; }
.page__lead { margin: 0 0 2em; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.4; }
.page h2 {
  margin: 2.2em 0 .5em;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page p { margin: 0 0 1em; text-wrap: pretty; }
.page a:not(.button) { text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.page__actions .button { min-height: 54px; padding: 0 1.6em; font-size: 1.0625rem; }
.page__link { font-family: var(--font-sans); font-weight: 500; }

/* Projecten: kop + omschrijving links, feiten rechts ---------------------- */
.project__intro { grid-column: 1 / span 6; }
.project__headline {
  max-width: 22em;
  margin: 0 0 .7em;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.project__intro .project__lead {
  grid-column: auto;
  font-size: clamp(1.125rem, 1.03rem + .35vw, 1.3125rem);
  line-height: 1.5;
}

/* Maatwerk binnen de trainingen */
.service__subtitle {
  margin: 1.8em 0 .5em;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Na het weghalen van Werkwijze: projecten volgen op de oranje draad */
.divider + .projects { padding-top: clamp(80px, 8vw, 128px); }

/* Over Rosa: staand portret (tijdelijk zwart-wit) */
.about__photo--portret { grid-column: 2 / span 5; }
.about__photo--portret img {
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__photo--portret img { animation-name: about-pan-v; }
  }
}
@keyframes about-pan-v {
  from { object-position: 50% 10%; }
  to   { object-position: 50% 55%; }
}
.about:has(.about__photo--portret) { padding-left: var(--gutter); }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .about__photo--portret { grid-column: 1 / span 6; }
}
@media (max-width: 639.98px) {
  .about:has(.about__photo--portret) { padding-left: 0; }
  .about__photo--portret { width: 78%; margin: 0 auto 0 var(--gutter); }
  .about__photo--portret img { aspect-ratio: 4 / 5; }
}

/* Mobiel: "Waar ik bij help" als echte sectietitel, dichter op de intro ----- */
@media (max-width: 767.98px) {
  .intro { padding-bottom: 64px; }
  .services__title {
    margin-bottom: 28px;
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -0.03em;
  }
}

/* Intro: op telefoon kort, de rest onder 'Lees meer' --------------------- */
/* Zonder JavaScript en op grotere schermen staat de hele tekst er gewoon. */
.intro__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bruin);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.intro__toggle[hidden] { display: none; }
.intro__toggle::after {
  content: "";
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--terra), var(--terra)) center / 11px 2px no-repeat,
    linear-gradient(var(--terra), var(--terra)) center / 2px 11px no-repeat;
}
.intro__toggle[aria-expanded="true"]::after {
  background: linear-gradient(var(--terra), var(--terra)) center / 11px 2px no-repeat;
}
.intro__toggle-close { display: none; }
.intro__toggle[aria-expanded="true"] .intro__toggle-open { display: none; }
.intro__toggle[aria-expanded="true"] .intro__toggle-close { display: inline; }
.intro__rest { display: grid; grid-template-rows: 1fr; }
.intro__rest-inner { min-height: 0; overflow: hidden; }
.intro__body.is-ingeklapt .intro__rest { grid-template-rows: 0fr; visibility: hidden; }
.intro__body.is-ingeklapt > p:nth-of-type(2) { margin-bottom: 0; }
.intro__toggle[aria-expanded="true"] { margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .intro__rest { transition: grid-template-rows .45s cubic-bezier(.2,.7,.15,1), visibility 0s; }
  .intro__body.is-ingeklapt .intro__rest { transition: grid-template-rows .35s ease, visibility 0s .35s; }
}

/* Reviews: indicator en pijlen op telefoon en tablet --------------------- */
.reviews__nav { display: none; }
@media (max-width: 1023.98px) {
  .reviews__row { scrollbar-width: none; }
  .reviews__row::-webkit-scrollbar { display: none; }
  .reviews__nav:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
  }
  .reviews__dots { display: flex; gap: 6px; }
  .reviews__dot {
    position: relative;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .reviews__dot::before {               /* het streepje zelf */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #5C4C40;
  }
  .reviews__dot[aria-current="true"]::before { background: var(--terra); height: 3px; }
  .reviews__arrows { display: flex; gap: 8px; }
  .reviews__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #5C4C40;
    background: none;
    color: var(--papier);
    cursor: pointer;
  }
  .reviews__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .reviews__arrow:hover:not(:disabled) { border-color: var(--eiken); }
  .reviews__arrow:disabled { color: #5C4C40; cursor: default; }
  .reviews__dot:focus-visible,
  .reviews__arrow:focus-visible { outline: 2px solid var(--papier); outline-offset: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reviews__dot::before { transition: background-color .25s ease, height .25s ease; }
}

/* Mobiel: 'Waar ik bij help' compact (variant A) -------------------------- */
/* Geen fotocollage op de telefoon; de tekst loopt direct door in strakkere blokken. */
@media (max-width: 767.98px) {
  .services { row-gap: 0; }
  .services__title { margin-bottom: 20px; }
  .services__photos { display: none; }
  .services__grid { margin-top: 36px; gap: 10px; }
  .services__grid .service { padding: 28px 24px 20px; }
  .services__grid .service::before { top: 28px; left: 24px; }
  .services__grid .service__title { margin-top: 22px; font-size: 1.6rem; }
}

/* Laptop en tablet: 'Waar ik bij help' ook compact (variant A) ----------- */
/* Geen fotocollage; titel links, toelichting rechts, uitgelijnd op de blokken eronder. */
@media (min-width: 768px) {
  .services { row-gap: clamp(48px, 5vw, 72px); }
  .services__photos { display: none; }
  .services__head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(12px, 1.4vw, 20px);
    align-items: start;
  }
  .services__head .services__title {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -0.03em;
  }
  .services__head p { grid-column: 2; }
}

/* Contact op de telefoon: titel eerst, foto breed, formulier in een eigen vlak */
.form__title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .form__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .contact { display: flex; flex-direction: column; }
  .contact__main { display: contents; }
  .contact__title { order: 1; }
  .contact__main > p:not(.contact__appointment) { order: 2; }
  .contact__photo { order: 3; width: 100%; margin: 28px 0 32px; }
  .contact__photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; }
  .contact__appointment { order: 4; margin-top: 0; }
  .contact__lines { order: 5; align-self: stretch; width: 100%; margin-bottom: 40px; }
  .form { align-self: stretch; }
  .form { order: 6; padding: 28px 24px 32px; background: #DFD7C9; }
  .form input:not([type="checkbox"]), .form textarea { background: var(--papier); }
  .form__done { order: 7; }
}

/* Logo's die via het CMS als PNG zijn geüpload: eerst rustig in één tint, in eigen kleuren bij hover of open */
.project__logo .logo--img { display: block; height: var(--logo-h, 40px); width: auto; max-width: 100%; filter: grayscale(1) sepia(.35) brightness(.42) contrast(1.1); }
.project__row:hover .logo--img,
.project details[open] .logo--img { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .project__logo .logo--img { transition: filter .3s ease; }
}
