/* De fundering (homepage), oktober 2026.
   Vier losse bedrijven schuiven bij het scrollen samen tot één netwerk.
   Bron: Claude/Projects/Homepage fundering 2026-10/bouw/; wordt door
   scripts/fundering_okt.py naar assets/css/ gekopieerd. Niet hier wijzigen. */

/* .band-donker knipt af met overflow: hidden; dat breekt position: sticky.
   Het afknippen gebeurt hieronder op .fdn-doos zelf. */
.fundering { overflow: visible; padding: 0 0 104px; }
.fdn-scroll { position: relative; height: 210vh; }
.fdn-podium { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center;
  box-sizing: border-box; padding-top: var(--fdn-boven, 72px); }
.fdn-podium > .wrap { width: 100%; position: relative; }

.fdn-teksten { display: grid; }
.fdn-kop { grid-area: 1 / 1; text-align: center; max-width: 860px; margin: 0 auto 52px; will-change: opacity, transform, filter; }
.fdn-kop .eyebrow { margin-bottom: 26px; }
.fundering .fdn-kop h2, .fundering .fdn-h2 {
  font-family: var(--font-head); font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 600; color: #fff; margin: 0;
}
.fdn-kop h2 span, .fdn-h2 span { display: block; }
.fundering .fdn-zacht { color: rgba(255, 255, 255, .44); }
.fdn-sub {
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .72);
  max-width: 620px; margin: 26px auto 0; text-wrap: balance;
}

/* Het podium van het schema. Het binnenwerk is op vaste ontwerpmaten gebouwd
   en wordt in zijn geheel geschaald; .fdn-doos knipt af zodat de onge-
   schaalde layoutbreedte nooit een horizontale scrollbalk geeft. */
.fdn-doos { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; }
@supports (overflow: clip) { .fdn-doos { overflow: clip; overflow-clip-margin: 48px; } }
.fdn-binnen { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fdn-binnen.v { display: none; }
.fdn-binnen svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.fdn-boog { fill: none; stroke: rgba(234, 79, 48, .7); stroke-width: 1.8; stroke-dasharray: 5 6;
  animation: fdn-mars 1.4s linear infinite; }
@keyframes fdn-mars { to { stroke-dashoffset: -22; } }
.fdn-booglabel { font-family: var(--font-body); font-size: 13px; fill: #F4937F; }
.fdn-stip { fill: var(--hotline); filter: drop-shadow(0 0 6px rgba(234, 79, 48, .9)); }
.fdn-pulsspoor { stroke: var(--ping); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(182, 248, 153, .7)); }
.fdn-puls { fill: var(--ping); filter: drop-shadow(0 0 9px rgba(182, 248, 153, 1)); }

.fdn-capsule { position: absolute; border: 1.4px solid rgba(182, 248, 153, .6); background: rgba(182, 248, 153, .07);
  border-radius: 14px 44px 14px 14px; opacity: 0; overflow: hidden; transition: box-shadow .6s ease; }
.fdn-capsule.gloed { box-shadow: 0 0 60px -10px rgba(182, 248, 153, .35); }
.fdn-veeg { position: absolute; top: 0; bottom: 0; width: 240px; left: -240px;
  background: linear-gradient(90deg, rgba(182, 248, 153, 0), rgba(182, 248, 153, .32), rgba(182, 248, 153, 0)); }
.fdn-binnen.v .fdn-veeg { left: 0; right: 0; width: auto; height: 160px; top: -160px;
  background: linear-gradient(180deg, rgba(182, 248, 153, 0), rgba(182, 248, 153, .32), rgba(182, 248, 153, 0)); }
.fdn-scheid { position: absolute; background: rgba(182, 248, 153, .3); opacity: 0; }

.fdn-tegel { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px; border: 1.2px solid rgba(255, 255, 255, .22); background: rgb(18, 52, 62); }
.fdn-t1 { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -.01em; white-space: nowrap; line-height: 1.2; }
.fdn-t2 { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 2px; overflow: hidden; white-space: nowrap; line-height: 1.3; }
.fdn-binnen.v .fdn-t1 { font-size: 17px; }
.fdn-binnen.v .fdn-tegel { flex-direction: row; gap: 10px; }
.fdn-binnen.v .fdn-t2 { margin-top: 0; }

.fdn-onder { position: absolute; left: 0; right: 0; margin: 0; text-align: center; opacity: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ping); }

.fdn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Voetregel onder het vastgezette deel, zodat hij op geen enkel scherm wegvalt */
.fdn-voet {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px;
  font-size: 14px; color: rgba(255, 255, 255, .62);
}
.fdn-feit { display: inline-flex; align-items: center; gap: 9px; }
.fdn-voet svg { width: 16px; height: 16px; stroke: var(--ping); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fdn-voet a {
  font-family: var(--font-head); font-weight: 600; color: var(--ping); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.fdn-voet a::after { content: "\2192"; transition: transform .2s ease; }
.fdn-voet a:hover { color: #fff; }
.fdn-voet a:hover::after { transform: translateX(3px); }

/* Grote schermen (ultrawide): kop en schema groeien mee */
@media (min-width: 1800px) and (min-height: 1000px) {
  .fundering .fdn-podium > .wrap { max-width: 1440px; }
  .fdn-doos { max-width: 1260px; }
  .fundering .fdn-kop h2, .fundering .fdn-h2 { font-size: 96px; }
  .fdn-sub { font-size: 23px; max-width: 760px; }
  .fdn-kop { max-width: 1100px; margin-bottom: 64px; }
}

@media (max-width: 760px) {
  .fdn-binnen.h { display: none; } .fdn-binnen.v { display: block; }
  .fdn-doos { max-width: 320px; }
  .fdn-kop { text-align: left; margin-bottom: 26px; }
  .fundering .fdn-kop h2, .fundering .fdn-h2 { font-size: 38px; }
  .fdn-sub { font-size: 16px; margin: 14px 0 0; }
  .fdn-kop .eyebrow { margin-bottom: 16px; }
  .fdn-voet { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 12px; }
  .fundering { padding-bottom: 80px; }
}

/* Zonder JavaScript of met minder beweging: alleen de eindstand, niets vastgezet */
html:not(.js) .fdn-scroll { height: auto; }
html:not(.js) .fdn-podium { position: static; height: auto; padding: 120px 0 56px; }
html:not(.js) .fdn-kop[data-staat="1"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fdn-scroll { height: auto; }
  .fdn-podium { position: static; height: auto; padding: 120px 0 56px; }
  .fdn-kop[data-staat="1"] { display: none; }
  .fdn-boog { animation: none; }
}
