:root {
  --frontplaat: #14181b;
  --frontplaat-2: #1c2226;
  --staal: #3b454b;
  --staal-licht: #8d989e;
  --schaallicht: #fbb140;
  --licht: #eef0f1;
  --wit: #ffffff;
  --tekst: #16191b;
  --tekst-zacht: #545f66;
  --lijn: #d0d6d9;
  --goud-tekst: #8a5f1f;
  --ep: #1e9b38;
  --sinuss: #2254a0;
  --vobis: #dc0c15;
  --breed: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --saira: "Saira", "Arial Narrow", sans-serif;
  --krant: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--saira);
  font-stretch: 100%;
  color: var(--tekst);
  background: var(--licht);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--schaallicht); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 var(--gutter); }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--frontplaat); color: #fff; padding: 8px 14px; z-index: 60; }
h1, h2, h3 { margin: 0; font-family: var(--saira); font-weight: 700; line-height: 1.04; }
.ep { --k: var(--ep); }
.sinuss { --k: var(--sinuss); }
.vobis { --k: var(--vobis); }

/* ---------- Kopregel ---------- */
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.kop .logo img { height: 34px; width: auto; }
.kop nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 1rem; font-stretch: 92%; }
.kop nav a { text-decoration: none; color: var(--tekst-zacht); }
.kop nav a:hover { color: var(--tekst); }
.kop.donker { background: var(--frontplaat); }
.kop.donker nav a { color: #c7cfd3; }
.kop.donker nav a:hover { color: #fff; }

/* ---------- De radio ---------- */
.radio {
  --rand: max(var(--gutter), calc((100% - var(--breed)) / 2 + var(--gutter)));
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--frontplaat-2), var(--frontplaat) 40%);
  color: #fff;
  padding: clamp(28px, 4.5vw, 56px) var(--rand) clamp(22px, 4vw, 48px);
}

/* de hero: de radio vult precies één scherm, op elk apparaat */
.held {
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column;
  padding-top: 0; padding-bottom: clamp(16px, 3.2vh, 40px);
}
.balk { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: clamp(56px, 9vh, 84px); flex: none; }
.balk .logo img { height: clamp(26px, 4vh, 34px); width: auto; }
.balk nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 1rem; font-stretch: 92%; }
.balk nav a { text-decoration: none; color: #c7cfd3; }
.balk nav a:hover { color: #fff; }
.held .radio-kop { margin-top: clamp(4px, 2.4vh, 28px); flex: none; }
.radio-kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.radio h1 { font-size: clamp(1.75rem, min(4.4vw, 6.4vh), 3.6rem); font-stretch: 86%; letter-spacing: -.01em; max-width: 24ch; }
.radio .sinds { margin: clamp(6px, 1.4vh, 12px) 0 0; color: var(--staal-licht); font-size: clamp(1rem, 1.6vw, 1.2rem); font-stretch: 92%; }

/* afstemknop: draait mee met de naald */
.knop {
  will-change: transform;
  flex: none; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0 4deg, rgba(0,0,0,.18) 4deg 8deg),
    radial-gradient(circle at 35% 30%, #5a666d, #232a2e 70%);
  box-shadow: 0 0 0 5px #0d1012, 0 0 0 6px #2b3338, 0 12px 24px rgba(0,0,0,.45);
  position: relative;
}
.knop::after { content: ""; position: absolute; left: 50%; top: 9%; width: 4px; height: 24%; margin-left: -2px; border-radius: 2px; background: var(--schaallicht); }

/* schaal en knop naast elkaar, zoals op een radio */
.afstemmer { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); margin-top: clamp(14px, 3.6vh, 40px); flex: none; }
.afstemmer .schaal { flex: 1; margin-top: 0; }

/* de verlichte schaal */
.schaal {
  position: relative; margin-top: clamp(28px, 4vw, 44px);
  height: clamp(92px, min(13vw, 17vh), 158px);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(251,177,64,.30), rgba(251,177,64,.08) 55%, transparent 75%),
    #0b0d0e;
  box-shadow: inset 0 0 0 1px rgba(251,177,64,.28), inset 0 10px 30px rgba(0,0,0,.7);
  touch-action: pan-y;
  cursor: ew-resize;
  contain: layout paint;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
.schaal .draad { position: absolute; left: 3%; right: 3%; top: 46%; height: 1px; background: linear-gradient(90deg, transparent, rgba(251,177,64,.55) 6%, rgba(251,177,64,.55) 94%, transparent); }
.schaal .streepjes {
  position: absolute; left: 4%; right: 4%; top: 18%; height: 26%;
  background:
    repeating-linear-gradient(90deg, rgba(251,177,64,.85) 0 2px, transparent 2px 10%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(251,177,64,.45) 0 1px, transparent 1px 2%) 0 60% / 100% 40% no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.zenders { border: 0; margin: 0; padding: 0; position: absolute; inset: 0; }
.zenders label {
  position: absolute; top: 54%; left: var(--x); transform: translateX(-9px);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 600; font-stretch: 85%;
  color: var(--schaallicht); opacity: .42;
  text-shadow: 0 0 12px rgba(251,177,64,.55);
  cursor: pointer; padding: 6px 4px;
  will-change: opacity;
}
.zenders label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px #0b0d0e, 0 0 0 3.5px rgba(255,255,255,.45); }
.zenders input { position: absolute; opacity: 0; pointer-events: none; }
.zenders label:has(input:focus-visible) { outline: 2px solid var(--schaallicht); outline-offset: 2px; border-radius: 6px; }
.naald {
  position: absolute; top: 8%; bottom: 8%; left: 0; width: 3px; margin-left: -1.5px;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 26px rgba(251,177,64,.55);
  will-change: transform;
  pointer-events: none;
}
.naald::before { content: ""; position: absolute; left: 50%; top: -6px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; }
.hint { flex: none; margin: clamp(8px, 1.4vh, 14px) 0 0; color: var(--staal-licht); font-size: .95rem; font-stretch: 92%; }

/* zonder script: naald en winkel volgen de keuze via CSS */
html:not(.js) .schaal:has(#z-ep:checked) { --naald-pos: 16.667%; }
html:not(.js) .schaal:has(#z-sinuss:checked) { --naald-pos: 50%; }
html:not(.js) .schaal:has(#z-vobis:checked) { --naald-pos: 83.333%; }
html:not(.js) .naald { left: var(--naald-pos, 50%); transition: left .3s ease; }
html:not(.js) .zenders label:has(input:checked) { opacity: 1; }

/* ---------- De afgestemde winkel ---------- */
.ontvangst { margin-top: clamp(12px, 3vh, 36px); position: relative; display: grid; grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; }
.zender {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: center; min-height: 0;
  visibility: hidden; opacity: 0;
}
html:not(.js) .radio:has(#z-ep:checked) #zender-ep,
html:not(.js) .radio:has(#z-sinuss:checked) #zender-sinuss,
html:not(.js) .radio:has(#z-vobis:checked) #zender-vobis { visibility: visible; opacity: 1; }
/* met script: radio.js wisselt de klassen en laat de overgang op de grafische chip lopen */
.js .zender { will-change: transform, opacity; }
.js .zender.aan, .js .zender.vertrekt { visibility: visible; opacity: 1; }
.js .zender.vertrekt { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .schaal { animation: opwarmen 1.1s ease-out both; }
  @keyframes opwarmen { from { opacity: .3; } to { opacity: 1; } }
}
.zender h2 { font-size: clamp(2.1rem, min(6.5vw, 8.4vh), 5.2rem); font-stretch: 82%; letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.zender h2::before { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--k); flex: none; }
.zender .wat { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; font-stretch: 90%; margin: 8px 0 0; }
.zender .uitleg { color: #c7cfd3; margin: 12px 0 0; max-width: 36ch; }
.zender ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zender li { border: 1px solid #47535a; border-radius: 999px; padding: 4px 14px; font-size: .95rem; color: #e3e8ea; }
.zender .acties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 3vh, 26px); }
.zender figure { margin: 0; height: 100%; min-height: 0; }
.zender figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.bel { color: var(--staal-licht); margin: 14px 0 0; font-size: .95rem; }
.bel a { color: #fff; text-decoration: none; border-bottom: 1px solid #5a666d; }

.pil {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-stretch: 92%; font-size: 1.05rem; text-decoration: none;
  background: var(--k, var(--tekst)); color: #fff;
  transition: transform .1s ease-out, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pil:hover { filter: brightness(1.1); }
.pil:active { transform: scale(.97); }
.pil.rand { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.pil.donker { --k: var(--frontplaat); }

/* ---------- Geschiedenis: een lichte schaal ---------- */
.geschiedenis { padding: clamp(80px, 11vw, 140px) 0 clamp(56px, 7vw, 96px); }
.sectiekop { font-size: clamp(2.2rem, 5vw, 3.8rem); font-stretch: 86%; letter-spacing: -.01em; max-width: 18ch; }
.sectiesub { color: var(--tekst-zacht); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 48ch; margin: 14px 0 0; }
.tijdschaal { list-style: none; margin: clamp(44px, 6vw, 72px) 0 0; padding: 34px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tijdschaal::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--staal) 0 2px, transparent 2px 12.5%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--staal-licht) 0 1px, transparent 1px 2.5%) 0 100% / 100% 45% no-repeat;
  border-bottom: 2px solid var(--staal);
}
.tijdschaal li { position: relative; }
.tijdschaal li::before { content: ""; position: absolute; top: -21px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--frontplaat); box-shadow: 0 0 0 4px var(--licht); }
.tijdschaal li:first-child::before { background: var(--schaallicht); }
.tijdschaal .wanneer { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; font-stretch: 86%; line-height: 1; }
.tijdschaal .wanneer.zacht { color: var(--tekst-zacht); font-weight: 600; }
.tijdschaal p { margin: 10px 0 0; color: var(--tekst-zacht); max-width: 30ch; }
.tijdschaal .nummer { display: inline-block; margin-top: 18px; font-size: clamp(2.6rem, 4.2vw, 3.6rem); font-weight: 700; font-stretch: 80%; line-height: 1; color: var(--goud-tekst); }
.tijdschaal .nummer small { display: block; font-size: .875rem; font-weight: 400; font-stretch: 100%; color: var(--tekst-zacht); margin-top: 6px; line-height: 1.35; max-width: 24ch; }

/* ---------- Verhaal ---------- */
.verhaal { background: var(--wit); padding: clamp(72px, 10vw, 128px) 0; }
.verhaal .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; }
.verhaal figure { margin: 0 0 clamp(16px, 3vw, 32px); grid-column: 1 / -1; }
.verhaal figure img { border-radius: 18px; aspect-ratio: 21 / 10; object-fit: cover; object-position: 50% 28%; width: 100%; }
.verhaal-kop { position: sticky; top: 24px; }
.verhaal figcaption { font-size: .9rem; color: var(--tekst-zacht); margin-top: 10px; }
.verhaal h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-stretch: 86%; }
.verhaal .logo101 { width: 210px; margin-bottom: 26px; }
.verhaal p { font-family: var(--krant); font-size: 1.22rem; line-height: 1.62; margin: 0 0 1.05em; max-width: 62ch; }
.verhaal blockquote { margin: 40px 0; padding: 0 0 0 22px; border-left: 4px solid var(--schaallicht); font-family: var(--krant); font-style: italic; font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.28; }
.verhaal blockquote cite { display: block; margin-top: 12px; font-family: var(--saira); font-style: normal; font-size: 1rem; color: var(--tekst-zacht); }
.verhaal .noot { font-family: var(--saira); font-size: .95rem; color: var(--tekst-zacht); border-top: 1px solid var(--lijn); padding-top: 14px; margin-top: 28px; }

/* ---------- Innovatie ---------- */
.innovatie { padding: clamp(72px, 10vw, 128px) 0; }
.projecten { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--frontplaat); }
.projecten li { border-bottom: 1px solid var(--lijn); }
.projecten a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 6px 32px; padding: 24px 0; text-decoration: none; align-items: baseline; }
.projecten .met { color: var(--goud-tekst); font-weight: 600; font-stretch: 92%; }
.projecten h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); font-stretch: 88%; line-height: 1.15; }
.projecten p { margin: 0; color: var(--tekst-zacht); }
.projecten a:hover h3 { text-decoration: underline; text-decoration-color: var(--schaallicht); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.subsidie { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: 40px; }
.subsidie img { height: 76px; width: auto; }
.subsidie img.snn { height: 98px; }

/* ---------- Contact: de radio nog één keer ---------- */
.contact .radio { padding-bottom: clamp(28px, 4vw, 48px); }
.contact-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-stretch: 86%; }
.contact address { font-style: normal; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 500; font-stretch: 90%; line-height: 1.25; margin: 14px 0 22px; }
.contact .pil { --k: var(--schaallicht); color: var(--frontplaat); }
.lijnen { list-style: none; margin: 0; padding: 0; }
.lijnen li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr); gap: 4px 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid #2c3438; }
.lijnen li:last-child { border-bottom: 1px solid #2c3438; }
.lijnen strong { font-size: 1.5rem; font-stretch: 85%; display: flex; align-items: center; gap: 10px; }
.lijnen strong::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); }
.lijnen a { color: #e3e8ea; text-decoration: none; overflow-wrap: anywhere; }
.lijnen a:hover { color: #fff; text-decoration: underline; }
.voet { color: var(--tekst-zacht); font-size: .9rem; padding: 18px 0 28px; }
.voet .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.voet nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.voet a { color: var(--tekst); text-decoration: none; }
.voet a:hover { text-decoration: underline; }

/* ---------- Subpagina ---------- */
.pagina { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.pagina h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-stretch: 84%; letter-spacing: -.01em; }
.project { padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--lijn); scroll-margin-top: 16px; }
.project .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 72px); }
.project .met { font-family: var(--saira); font-size: 1rem; color: var(--goud-tekst); font-weight: 600; font-stretch: 92%; margin: 0 0 8px; }
.project h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-stretch: 86%; }
.project p { font-family: var(--krant); font-size: 1.18rem; line-height: 1.62; max-width: 62ch; margin: 0 0 1em; }
.project .duo { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-top: 24px; align-items: start; }
.project figure { margin: 0; }
.project figure img { border-radius: 14px; }
.project figcaption { font-size: .9rem; color: var(--tekst-zacht); margin-top: 8px; }
.project .subsidielogo { height: 64px; width: auto; margin-top: 10px; }
.project .subsidielogo.snn { height: 92px; }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .verhaal .wrap, .contact-raster, .project .wrap { grid-template-columns: minmax(0, 1fr); }
  .zender { display: flex; flex-direction: column; align-items: stretch; gap: clamp(12px, 2vh, 20px); height: 100%; }
  .zender figure { order: -1; flex: 1; min-height: 90px; }
  .zender .uitleg { display: none; }
  .verhaal-kop { position: static; }
  .verhaal figure img { aspect-ratio: 3 / 2; }
  .tijdschaal { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .projecten a { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .kop nav .anker { display: none; }
  .afstemmer .knop { display: none; }
  .balk nav .anker { display: none; }
  .zender h2 { gap: 10px; }
  .zender ul { margin-top: 12px; }
  .zender li { padding: 3px 12px; font-size: .9rem; }
  .zender .acties { gap: 8px; }
  .zender .pil { min-height: 42px; padding: 8px 16px; font-size: 1rem; }
  .radio-kop { align-items: flex-start; }
  .tijdschaal { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 30px; }
  .tijdschaal::before { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: var(--staal); border: 0; }
  .tijdschaal li::before { top: 6px; left: -30px; }
  .lijnen li { grid-template-columns: minmax(0, 1fr); }
  .project .duo { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .zender .pil .nummer { display: none; }
}
@media (max-width: 360px) {
  .zenders label { font-size: .92rem; gap: 5px; transform: translateX(-8px); }
  .zenders label::before { width: 8px; height: 8px; }
}
@media (max-height: 760px) {
  .hint { display: none; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .zender ul { display: none; }
  .radio .sinds { display: none; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .zender .uitleg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pil { transition: none; }
}
