/* DCRS – cinema-stijl: elk onderdeel vult het scherm, foto beweegt mee met muis en scroll. */
  :root {
    --zwart: #0d0d0e;
    --wit: #fff;
    --grijs: #c9c9c9;
    --goud: #c8953e;
    --wa: #25d366;
  }
  * { box-sizing: border-box; }
  html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
  body { margin: 0; background: var(--zwart); color: var(--wit); font: 1.0625rem/1.55 system-ui, "Segoe UI", Roboto, sans-serif; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }

  header { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px 20px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
  header .logo img { height: 40px; width: auto; }
  header nav { display: none; gap: 28px; font-weight: 600; font-size: .95rem; }
  header nav a { opacity: .8; }
  header nav a:hover { opacity: 1; color: var(--goud); }
  header .offerte { margin-left: auto; border: 1.5px solid var(--wit); padding: 9px 18px; font-weight: 700; font-size: .9rem; }
  header .offerte:hover { background: var(--wit); color: var(--zwart); }

  /* Stippen-navigatie */
  .stippen { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 10; display: none; flex-direction: column; gap: 12px; }
  .stippen a { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--wit); opacity: .7; }
  .stippen a:hover { background: var(--goud); border-color: var(--goud); opacity: 1; }

  /* Elke scène vult het scherm */
  .scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; scroll-snap-align: start; }
  .scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  /* Beweging: de foto kantelt licht mee met de muis (waarden gezet door beweging.js) */
  .scene { perspective: 1400px; }
  .scene > img {
    transform: scale(1.12) translate3d(var(--x, 0px), var(--y, 0px), 0) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
  }
  @media (prefers-reduced-motion: reduce) { .scene > img { transform: none; transition: none; } }
  .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .1) 100%); }
  .tekst { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px 88px; }
  .teller { font-size: .8rem; font-weight: 700; letter-spacing: .25em; color: var(--goud); display: block; margin-bottom: 14px; }
  h1, h2 { margin: 0 0 16px; line-height: .95; letter-spacing: -.035em; font-weight: 800; }
  h1 { font-size: clamp(3rem, 10vw, 8rem); }
  h2 { font-size: clamp(3rem, 12vw, 9rem); }
  .tekst p { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--grijs); max-width: 38ch; margin: 0 0 24px; }
  .link { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; border-bottom: 2px solid var(--goud); padding-bottom: 4px; }
  .link:hover { color: var(--goud); }

  .knoppen { display: flex; flex-wrap: wrap; gap: 10px; }
  .knop { display: inline-block; padding: 15px 24px; font-weight: 700; }
  .knop-goud { background: var(--goud); color: var(--zwart); }
  .knop-wa { background: var(--wa); color: #062b14; }
  .knop-rand { border: 1.5px solid var(--wit); }
  .knop-rand:hover { background: var(--wit); color: var(--zwart); }

  .rij { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0 0 24px; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; }
  .rij li::before { content: "— "; color: var(--goud); }

  /* Laatste scène: contact, zonder foto */
  .slot { background: var(--zwart); align-items: center; }
  .slot::after { display: none; }
  .slot .tekst { padding-top: 96px; }
  .nummer { display: block; font-size: clamp(2.2rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 28px; }
  .nummer:hover { color: var(--goud); }
  .voet { margin-top: 64px; padding-top: 20px; border-top: 1px solid #2a2a2a; color: #888; font-size: .85rem; }

  .mobielbalk { position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; }
  .mobielbalk a { padding: 15px; text-align: center; font-weight: 700; }

  @media (min-width: 900px) {
    header { padding: 20px 40px; }
    header nav { display: flex; margin-left: 32px; }
    .stippen { display: flex; }
    .tekst { padding: 0 40px 80px; }
    .mobielbalk { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* --- Stijl 7: extra leven ------------------------------------------------------- */

  /* 1. Tekst schuift zacht binnen (alleen als JavaScript werkt; anders gewoon zichtbaar) */
  .js .tekst > * { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
  .js .in-beeld .tekst > * { opacity: 1; transform: none; }
  .js .in-beeld .tekst > :nth-child(2) { transition-delay: .1s; }
  .js .in-beeld .tekst > :nth-child(3) { transition-delay: .2s; }
  .js .in-beeld .tekst > :nth-child(4) { transition-delay: .3s; }
  .js .in-beeld .tekst > :nth-child(5) { transition-delay: .4s; }

  /* 2. Diepte bij het scrollen: foto beweegt trager dan de tekst (--p gezet door levend.js) */
  .scene > img {
    transform: scale(1.2) translate3d(var(--x, 0px), calc(var(--y, 0px) + var(--p, 0) * -60px), 0) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  }

  /* 3. Vloeiende overgang naar een andere pagina (als die pagina dit ook heeft) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .35s ease both uit; }
  ::view-transition-new(root) { animation: .45s ease both in; }
  @keyframes uit { to { opacity: 0; transform: translateY(-24px); } }
  @keyframes in { from { opacity: 0; transform: translateY(24px); } }

  /* 4. Werkwijze: lange scène, tekst blijft staan, lijn vult zich bij het scrollen (--vul gezet door levend.js) */
  /* overflow: clip i.p.v. hidden, anders werkt 'sticky' niet binnen deze scène */
  .scene.lang { min-height: 190vh; align-items: flex-start; overflow: clip; }
  .scene.lang::after { background: rgba(0, 0, 0, .72); }
  .scene.lang .tekst { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
  .tijdlijn { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; position: relative; padding-left: 34px; max-width: 560px; }
  .tijdlijn::before, .tijdlijn::after { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, .2); }
  .tijdlijn::after { background: var(--goud); bottom: auto; height: calc(var(--vul, 0) * (100% - 12px)); }
  .tijdlijn li { position: relative; opacity: .35; transition: opacity .5s; }
  .tijdlijn li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: var(--zwart); transition: background .4s, border-color .4s; z-index: 1; }
  .tijdlijn li.actief { opacity: 1; }
  .tijdlijn li.actief::before { background: var(--goud); border-color: var(--goud); }
  .tijdlijn b { display: block; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
  .tijdlijn span { color: var(--grijs); }
  @media (min-width: 900px) {
    .tijdlijn { grid-template-columns: repeat(4, 1fr); max-width: none; padding-left: 0; padding-top: 34px; gap: 28px; }
    .tijdlijn::before, .tijdlijn::after { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
    .tijdlijn::after { right: auto; width: calc(var(--vul, 0) * 100%); }
    .tijdlijn li::before { left: 0; top: -34px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .js .tekst > * { opacity: 1; transform: none; transition: none; }
    .scene > img { transform: none; transition: none; }
    @view-transition { navigation: none; }
  }
