/* De Zwaluw — sinds 1930.
   Rustig, ruim en papierachtig. Rood alleen waar het iets betekent: de route, de cijfers,
   het lint in het logo. Geen kaders waar een haarlijn volstaat. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --papier: #f3eee5;
  --papier-licht: #faf7f1;
  --papier-donker: #e9e2d5;
  --inkt: #141311;
  --inkt-zacht: #3f3b35;
  --grijs: #7c7569;
  --lijn: rgb(20 19 17 / 12%);
  --rood: #b5352a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --zacht: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--inkt); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* Papierkorrel: één vaste laag, niet per sectie, en nooit klikbaar. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
em { font-style: italic; }
p { margin: 0; }
svg use { pointer-events: none; }
::selection { background: var(--rood); color: var(--papier-licht); }
:focus-visible { outline: 1.5px solid var(--rood); outline-offset: 4px; border-radius: 2px; }

.naar-inhoud { position: absolute; left: 12px; top: -48px; z-index: 60; background: var(--inkt); color: var(--papier); padding: 10px 14px; border-radius: 6px; }
.naar-inhoud:focus { top: 12px; }

.label { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--grijs); }
.groot { font-size: clamp(44px, 6.4vw, 104px); line-height: .95; }
.groot em { color: var(--inkt-zacht); }

/* --- Knoppen en links --- */
.knop {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px;
  border-radius: 999px; background: var(--inkt); color: var(--papier-licht); font: 500 15px/1 var(--sans); letter-spacing: .01em;
  overflow: hidden; isolation: isolate; will-change: transform;
}
.knop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rood); transform: translateY(101%); transition: transform .5s var(--zacht); }
.knop:hover::before { transform: translateY(0); }
.knop span { display: inline-block; }
.knop.klein { height: 42px; padding: 0 20px; font-size: 14px; }
.pijl-link { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--sans); padding: 6px 0; }
.pijl-link::after { content: "→"; transition: transform .35s var(--zacht); }
.pijl-link:hover::after { transform: translateX(5px); }
.pijl-link::before { content: ""; position: absolute; left: 0; right: 24px; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--zacht); }
.pijl-link:hover::before { transform: scaleX(1); transform-origin: left; }

/* --- Kop --- */
.kop {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 76px; padding: 0 var(--rand);
  transition: transform .5s var(--zacht), background-color .4s, box-shadow .4s;
}
.kop.vast { background: rgb(243 238 229 / 86%); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--lijn); }
.kop.weg { transform: translateY(-100%); }
.woordmerk { display: flex; align-items: center; gap: 10px; font: 400 24px/1 var(--serif); letter-spacing: -0.01em; }
.woordmerk .mini { width: 44px; height: 30px; color: var(--inkt); }
.menu { display: flex; gap: 34px; margin-left: auto; }
.menu a { position: relative; font-size: 14px; color: var(--inkt-zacht); }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--zacht); }
.menu a:hover::after { transform: scaleX(1); }

/* --- Opening --- */
.held { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--rand) clamp(56px, 10vh, 120px); overflow: hidden; }
.spoor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Geen non-scaling-stroke: dat rekent ook de streepjes in schermpixels en dan klopt het tekenen niet meer. */
.spoor path { fill: none; stroke: var(--rood); stroke-width: 1.4; stroke-linecap: round; }
.held-inhoud { position: relative; z-index: 2; max-width: 980px; }
.held h1 { font-size: clamp(68px, 12.5vw, 214px); line-height: .88; margin: 26px 0 22px; }
.held h1 .regel { display: block; overflow: hidden; padding-bottom: .06em; }
.held h1 .regel > * { display: inline-block; }
.held h1 em { color: var(--inkt-zacht); }
.sinds-regel { font: italic 400 26px/1 var(--serif); color: var(--rood); margin-bottom: 40px; }
.acties { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.held-vogel { position: absolute; z-index: 1; right: calc(var(--rand) * .4); top: clamp(90px, 14vh, 160px); width: clamp(260px, 44vw, 720px); aspect-ratio: 2052 / 1386; color: var(--inkt); }
.held-vogel svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 40px rgb(20 19 17 / 10%)); }
.scroll-hint { position: absolute; z-index: 2; right: var(--rand); bottom: clamp(56px, 10vh, 120px); width: 1px; height: 72px; background: var(--lijn); overflow: hidden; }
.scroll-hint span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: var(--inkt); animation: hint 2.4s var(--zacht) infinite; }
@keyframes hint { 0% { transform: translateY(-30px); } 100% { transform: translateY(72px); } }

/* --- Werkwijze --- */
.waarom { padding: clamp(96px, 18vh, 200px) var(--rand); }
.punten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--lijn); }
.punt { padding: 36px 40px 0 0; }
.punt + .punt { padding-left: 40px; border-left: 1px solid var(--lijn); }
.nr { display: block; font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--rood); font-variant-numeric: tabular-nums; margin-bottom: 72px; }
.punt h2 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; margin-bottom: 16px; }
.punt p { color: var(--inkt-zacht); max-width: 300px; }

/* --- Bestemmingen --- */
.overal { position: relative; background: var(--papier-donker); }
.overal-binnen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 8vh, 90px); padding: clamp(96px, 14vh, 160px) var(--rand); }
.overal-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.overal-kop p { color: var(--inkt-zacht); max-width: 320px; }
.baan { position: relative; width: 100%; aspect-ratio: 1200 / 300; }
.baan-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.baan-svg path { fill: none; stroke-linecap: round; }
.baan-grond { stroke: rgb(20 19 17 / 18%); stroke-width: 1; stroke-dasharray: 2 7; }
.baan-lijn { stroke: var(--rood); stroke-width: 1.6; }
/* Zonder animatie zit de zwaluw boven Apeldoorn (30,230 van 1200×300); met animatie zet GSAP hem op de lijn. */
.baan-vogel { --b: clamp(64px, 7vw, 110px); position: absolute; left: 2.5%; top: 76.7%; margin: calc(var(--b) * -.844) 0 0 calc(var(--b) * -.45); width: var(--b); aspect-ratio: 2052 / 1386; color: var(--inkt); z-index: 3; }
.baan-vogel svg { width: 100%; height: 100%; display: block; transform: scaleX(-1); } /* op weg naar het oosten */
.haltes { list-style: none; margin: 0; padding: 0; }
.haltes li { position: absolute; transform: translate(-50%, 0); padding-top: 22px; font: 400 clamp(16px, 1.6vw, 22px)/1 var(--serif); color: var(--grijs); white-space: nowrap; transition: color .5s; }
.haltes li::before { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--papier-donker); box-shadow: inset 0 0 0 1.5px var(--grijs); transition: background .4s, box-shadow .4s, transform .4s var(--zacht); }
.haltes li.bereikt { color: var(--inkt); }
.haltes li.bereikt::before { background: var(--rood); box-shadow: inset 0 0 0 1.5px var(--rood); transform: scale(1.15); }

/* --- Zakelijk --- */
.zakelijk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: center; padding: clamp(110px, 20vh, 220px) var(--rand); }
.zakelijk-tekst p { margin: 28px 0 34px; font-size: 19px; color: var(--inkt-zacht); max-width: 430px; }
.bon {
  margin: 0; justify-self: center; width: min(100%, 440px); background: var(--papier-licht); border-radius: 4px; padding: 30px 30px 24px;
  box-shadow: 0 1px 0 var(--lijn), 0 40px 80px -30px rgb(20 19 17 / 28%), 0 12px 24px -12px rgb(20 19 17 / 12%);
  transform: rotate(-1.2deg); font-size: 15px;
}
.bon-kop { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px dashed rgb(20 19 17 / 22%); font: 400 28px/1 var(--serif); }
.bon-kop svg { width: 64px; height: 44px; color: var(--inkt); --papier: var(--papier-licht); }
.bon-regels { list-style: none; margin: 0; padding: 0; }
.bon-regels li, .bon-voet { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--lijn); }
.bon b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bon-regels b::after { content: "×"; margin-left: 2px; color: var(--grijs); font-weight: 400; }
.bon-voet { border-bottom: none; padding-top: 18px; font-weight: 500; }
.bon-voet b { font: 400 30px/1 var(--serif); color: var(--rood); }
.bon-bijlage { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 4px; background: var(--papier); font-size: 13px; color: var(--inkt-zacht); line-height: 1.4; }
.bestand { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 42px; border-radius: 3px; background: #1d6b40; color: #fff; font: 600 10px/1 var(--sans); letter-spacing: .04em; }

/* --- Sinds 1930 --- */
.sinds { padding: clamp(110px, 20vh, 220px) var(--rand); text-align: center; border-top: 1px solid var(--lijn); }
.teller { display: inline-flex; font: 400 clamp(120px, 26vw, 420px)/1 var(--serif); letter-spacing: -0.04em; margin: 10px 0 6px; font-variant-numeric: lining-nums; }
.cijfer { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
/* Zoals een kilometerteller: de rollende cijfers verdwijnen zacht onder de rand, niet met een harde snede. */
.js .cijfer { -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.cijfer .kolom { display: flex; flex-direction: column; }
.cijfer .kolom span { height: 1em; display: block; }
.sinds-sub { font: italic 400 clamp(24px, 2.4vw, 34px)/1 var(--serif); color: var(--inkt-zacht); }

/* --- Contact --- */
.contact { background: var(--inkt); color: var(--papier); padding: clamp(110px, 18vh, 200px) var(--rand) clamp(80px, 12vh, 140px); }
.contact .groot em { color: #bdb4a6; }
.groot-tel { position: relative; display: inline-block; margin: clamp(30px, 6vh, 64px) 0 clamp(50px, 9vh, 100px); font: 400 clamp(52px, 9.6vw, 160px)/1 var(--serif); letter-spacing: -0.02em; color: var(--papier-licht); }
.groot-tel::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; background: var(--rood); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--zacht); }
.groot-tel:hover::after { transform: scaleX(1); }
.contact-rij { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(243 238 229 / 16%); }
.contact-rij a { display: flex; flex-direction: column; gap: 10px; padding: 30px 40px 0 0; font-size: 19px; color: #e8e1d4; }
.contact-rij a + a { padding-left: 40px; border-left: 1px solid rgb(243 238 229 / 16%); }
.contact .label { color: #8f877a; }
.contact .pijl { margin-top: 6px; font-size: 14px; color: var(--papier-licht); transition: color .3s; }
.contact-rij a:hover .pijl { color: #e2675b; }

.voet { background: var(--inkt); color: #8f877a; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 36px var(--rand) 44px; font-size: 13px; border-top: 1px solid rgb(243 238 229 / 10%); }
.voet svg { width: 52px; height: 36px; color: #e8e1d4; --papier: var(--inkt); }
.voet p:last-child { margin-left: auto; }

/* --- Beginstand voor animaties (alleen als JavaScript ze ook uitvoert) --- */
.js .onthul, .js .overal-kop, .js .zakelijk-tekst > *, .js .bon, .js .sinds > *:not(.teller) { opacity: 0; }
.js .held h1 .regel > * { transform: translateY(105%); }
.js .held-vogel { opacity: 0; }

@media (max-width: 900px) {
  .menu { display: none; }
  .kop { justify-content: space-between; }
  .punten { grid-template-columns: 1fr; }
  .punt, .punt + .punt { padding: 32px 0 40px; border-left: none; border-bottom: 1px solid var(--lijn); }
  .nr { margin-bottom: 28px; }
  .zakelijk { grid-template-columns: 1fr; }
  .held { align-items: flex-end; }
  .held-vogel { right: -8vw; top: 96px; width: 78vw; opacity: .95; }
  .contact-rij { grid-template-columns: 1fr; }
  .contact-rij a, .contact-rij a + a { padding: 26px 0; border-left: none; border-bottom: 1px solid rgb(243 238 229 / 16%); }
  /* Op een smal scherm staan de haltes onder elkaar: een route van 380 pixels breed met zeven namen is niet te lezen. */
  .baan { aspect-ratio: auto; }
  .baan-svg, .baan-vogel { display: none; }
  .haltes { display: grid; gap: 0; border-left: 1px solid var(--rood); margin-left: 6px; }
  .haltes li { position: relative; transform: none; left: auto !important; top: auto !important; padding: 12px 0 12px 26px; font-size: 26px; color: var(--inkt); }
  .haltes li::before { left: -6px; top: 50%; margin: -5.5px 0 0; background: var(--rood); box-shadow: none; }
}
@media (max-width: 560px) {
  .kop .knop span { font-size: 13px; }
  .woordmerk span { display: none; }
  .voet p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
  .knop::before, .pijl-link::before, .pijl-link::after, .groot-tel::after, .kop { transition: none; }
}
