/* =====================================================================
   v2.0 – Moderne contentsecties, timeline, impact, animaties
   ===================================================================== */
/* Reveal-varianten */
html.js .reveal[data-reveal="left"] { transform: translateX(-36px); }
html.js .reveal[data-reveal="right"] { transform: translateX(36px); }
html.js .reveal[data-reveal="scale"] { transform: scale(.94); }
html.js .reveal[data-reveal="up"] { transform: translateY(28px); }
html.js .reveal { transition-duration: .8s; }
html.js .reveal.is-in { transform: none; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); z-index: 200; transition: width .1s linear; }

/* Content rows: sticky media + body */
.content-rows .container { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.crow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.crow--flip .crow__media { order: 2; }
.crow__media { position: sticky; top: 110px; }
.crow__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); transform-style: preserve-3d; }
.crow__frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15,82,255,.25), transparent 45%, rgba(10,15,31,.45)); z-index: 1; pointer-events: none; }
.crow__frame img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.crow__frame:hover img { transform: scale(1.04); }
.crow__badge { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.crow__badge .ic { color: var(--green); }
.crow__media::after { content: ""; position: absolute; inset: 14% -22px -22px 14%; border-radius: var(--r-xl); background: repeating-linear-gradient(45deg, var(--blue-soft) 0 6px, transparent 6px 14px); z-index: -1; }
.crow--flip .crow__media::after { inset: 14% 14% -22px -22px; }
.crow__num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); opacity: .55; margin-bottom: .5rem; }
.crow__body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
.crow__lead p { font-size: 1.15rem; color: var(--ink); font-weight: 500; line-height: 1.6; padding-left: 1.1rem; border-left: 3px solid var(--blue); margin-bottom: 1.4rem; }
.crow__body .prose p { font-size: 1rem; }
.crow__body .prose h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.crow__body .prose ul:not(.checklist) li::marker { color: var(--blue); }
@media (max-width: 900px) { .crow { grid-template-columns: 1fr; } .crow--flip .crow__media { order: 0; } .crow__media { position: static; } .crow__frame img { aspect-ratio: 16/10; } .crow__media::after { display: none; } }

/* Timeline (tekstsecties) */
.timeline { position: relative; padding-left: 4.2rem; }
.timeline__line { position: absolute; left: 1.55rem; top: 1rem; bottom: 1rem; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.timeline__fill { display: block; width: 100%; height: 0; background: linear-gradient(180deg, var(--blue-2), var(--blue)); transition: height .15s linear; }
.timeline ol { display: grid; gap: 2.2rem; }
.tl { position: relative; }
.tl__dot { position: absolute; left: -4.2rem; top: .3rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--ink-3); transition: all .35s var(--ease); z-index: 1; }
.tl.is-active .tl__dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 8px var(--blue-soft); transform: scale(1.06); }
.tl__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 2.2rem; transition: box-shadow .35s, border-color .35s, transform .35s var(--ease); }
.tl.is-active .tl__card { box-shadow: var(--shadow); border-color: transparent; }
.tl__card h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: .9rem; }
.tl__lead p { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 1.2rem; }
.tl__body p { font-size: .98rem; }
.tl__body h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.section--alt .tl__card { border-color: transparent; }
@media (max-width: 640px) { .timeline { padding-left: 3rem; } .timeline__line { left: 1rem; } .tl__dot { left: -3rem; width: 2.2rem; height: 2.2rem; font-size: .75rem; } .tl__card { padding: 1.4rem; } }

/* Prose-blokken (dienst- en stadspagina's) */
.pblock { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.pblock:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pblock__head { display: flex; gap: 1rem; align-items: baseline; }
.pblock__num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); opacity: .6; flex: none; }
.pblock__head h2 { margin-top: 0 !important; }
.prose__fig { margin: 1.25rem 0 1.75rem; }
.prose__fig img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.prose__fig figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .6rem; padding-left: .6rem; border-left: 2px solid var(--blue); }

/* Sectoren */
.sector { position: relative; padding: 1.4rem 1.4rem 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s; }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sector__ic { width: 34px; height: 34px; padding: .45rem; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-bottom: .7rem; }

/* Impact-sectie */
.impact { background: var(--bg-2); position: relative; overflow: hidden; }
.impact::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(15,82,255,.10), transparent 65%); top: -300px; right: -200px; pointer-events: none; }
.impact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.impact__bars, .impact__risk { background: #fff; border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.impact__legend { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.impact__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.impact__sw { width: 14px; height: 8px; border-radius: 4px; display: inline-block; }
.impact__sw--before { background: #CBD5E1; }
.impact__sw--after { background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.ibar { margin-bottom: 1.35rem; }
.ibar__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.ibar__head > .ic { width: 34px; height: 34px; padding: .45rem; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: none; }
.ibar__head strong { display: block; font-size: .95rem; color: var(--ink); }
.ibar__head small { color: var(--ink-3); font-size: .78rem; }
.ibar__val { margin-left: auto; font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.15rem; }
.ibar__track { position: relative; height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ibar__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.ibar__fill--before { background: #CBD5E1; }
.ibar__fill--after { background: linear-gradient(90deg, var(--blue-2), var(--blue)); box-shadow: 0 0 14px rgba(15,82,255,.45); }
.ibar__fill--after::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: shine 2.4s 1.6s infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.impact__note { font-size: .82rem; color: var(--ink-3); margin: .5rem 0 0; }
.impact__risk h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: 1.25rem; }
.impact__risk h3 .ic { color: var(--accent); }
.risk { position: relative; padding-left: 2.2rem; display: grid; gap: 1.1rem; }
.risk__line { position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.risk__fill { display: block; width: 100%; height: 0; background: linear-gradient(180deg, #F59E0B, var(--red)); transition: height .15s linear; }
.risk__item { position: relative; padding: .9rem 1rem; border-radius: var(--r); background: var(--bg-2); border-left: 3px solid transparent; transition: all .35s var(--ease); }
.risk__item.is-active { background: #fff; box-shadow: var(--shadow-sm); }
.risk__item--low.is-active { border-left-color: #F59E0B; }
.risk__item--mid.is-active { border-left-color: var(--accent); }
.risk__item--high.is-active { border-left-color: var(--red); background: #FEF2F2; }
.risk__dot { position: absolute; left: -2.2rem; top: 1.1rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: all .35s; }
.risk__item.is-active .risk__dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255,107,26,.18); }
.risk__item--high.is-active .risk__dot { border-color: var(--red); box-shadow: 0 0 0 5px rgba(220,38,38,.18); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 50% { box-shadow: 0 0 0 10px rgba(220,38,38,.05); } }
.risk__when { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .15rem; }
.risk__item strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--ink); }
.risk__item p { font-size: .86rem; color: var(--ink-3); margin: .25rem 0 0; }
.risk__cta { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.risk__cta strong { font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.impact__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.istat { background: var(--navy); color: #B8C2D9; border-radius: var(--r-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.istat::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--blue); filter: blur(50px); opacity: .5; right: -40px; bottom: -60px; }
.istat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem; position: relative; }
.istat span { font-size: .86rem; position: relative; }
@media (max-width: 960px) { .impact__grid { grid-template-columns: 1fr; } .impact__stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .impact__stats { grid-template-columns: 1fr; } .impact__bars, .impact__risk { padding: 1.4rem; } }

/* Kleine extra's */
.step { position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; inset: auto -30px -30px auto; width: 120px; height: 120px; border-radius: 50%; background: var(--blue-soft); opacity: 0; transition: opacity .3s, transform .5s var(--ease); transform: scale(.6); }
.step:hover::after { opacity: 1; transform: scale(1); }

/* lijstmarkers uit */
ol.risk, .timeline ol { list-style: none; margin: 0; }
.timeline ol { padding: 0; }
.tl, .risk__item { list-style: none; }
