/* ==========================================================================
   Numori basisstijl
   Kleuren: mist (achtergrond), inkt (tekst), signaal (actie), amber (afwijking)
   ========================================================================== */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans-italic.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --mist: #EEF1F4;
    --surface: #FFFFFF;
    --ink: #14213D;
    --ink-soft: #2A3858;
    --muted: #55637A;
    --line: #CAD3DE;
    --signal: #0E7C6B;
    --signal-strong: #0A6355;
    --signal-light: #3FC7A8;
    --amber: #F2B53A;
    --amber-ink: #8A5A00;
    --amber-wash: #FDF3DC;

    --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Typografische schaal (ratio ~1.25) */
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.5625rem;
    --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);

    --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
    --section: clamp(4rem, 3rem + 5vw, 7.5rem);
    --radius: 14px;
    --radius-small: 8px;
}

/* --- Basis ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    font-feature-settings: "kern", "liga";
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--signal-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--mist);
    border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

/* --- Knoppen -------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.4rem;
    border: 2px solid var(--signal);
    border-radius: 999px;
    background: var(--signal);
    color: #FFFFFF;
    font: 600 var(--step-0)/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.button:hover { background: var(--signal-strong); border-color: var(--signal-strong); }

.button--ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--mist); }

.button--small {
    min-height: 2.5rem;
    padding: 0.5rem 1.1rem;
    font-size: var(--step--1);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(238 241 244 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    text-decoration: none;
}
.wordmark__mark { width: 2rem; height: 2rem; }
.wordmark__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1;
}
.wordmark--light { color: var(--mist); }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    list-style: none;
}
.site-nav__list a:not(.button) {
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
}
.site-nav__list a:not(.button):hover { color: var(--signal); }

.nav-toggle { display: none; }

@media (max-width: 52rem) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem; height: 2.75rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        cursor: pointer;
    }
    .nav-toggle__bar,
    .nav-toggle__bar::before,
    .nav-toggle__bar::after {
        display: block;
        width: 1.1rem; height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 150ms ease, opacity 150ms ease;
    }
    .nav-toggle__bar { position: relative; }
    .nav-toggle__bar::before,
    .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bar::before { top: -6px; }
    .nav-toggle__bar::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--mist);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .site-nav__list a:not(.button) { font-size: var(--step-1); }

    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: block; }
}

/* Zonder JavaScript blijft het menu gewoon zichtbaar */
@media (max-width: 52rem) {
    html:not(.js) .site-nav { position: static; display: block; padding: 0 0 1rem; border: 0; }
    html:not(.js) .site-header__inner { flex-wrap: wrap; }
    html:not(.js) .nav-toggle { display: none; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--section); }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: center;
}

.hero__title {
    font-size: var(--step-4);
    font-stretch: 82%;
    font-weight: 750;
    line-height: 0.98;
    letter-spacing: -0.025em;
    max-width: 12ch;
}

.hero__lead {
    margin-top: 1.5rem;
    max-width: 34rem;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Vraagconsole */
.console {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgb(20 33 61 / 0.35);
    overflow: hidden;
}

.console__bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step--1);
}
.console__title { font-weight: 600; }
.console__note { color: var(--muted); }

.console__question {
    padding: 1.25rem 1.25rem 1rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.25;
    min-height: 5.6rem;
}
.console__prompt.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px; height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.12em;
    background: var(--signal);
    animation: caret 900ms steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.console__answer {
    padding: 1.1rem 1.25rem 1.25rem;
    border-top: 1px dashed var(--line);
    background: #F7F9FB;
    transition: opacity 400ms ease;
}
.console.is-waiting .console__answer { opacity: 0; }

.console__summary { font-size: var(--step-0); }
.console__summary strong { font-weight: 700; }

.bars {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
}
.bars__row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3.5rem;
    align-items: center;
    gap: 0.75rem;
}
.bars__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.bars__track { height: 0.55rem; background: #E3E8EE; border-radius: 999px; overflow: hidden; }
.bars__fill {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--ink);
    border-radius: inherit;
}
.bars__value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.console__signal {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.1rem;
    padding: 0.75rem 0.9rem;
    background: var(--amber-wash);
    border-radius: var(--radius-small);
    color: #4A3500;
    font-size: var(--step--1);
    line-height: 1.5;
}

.signal-dot {
    flex: none;
    width: 0.6rem; height: 0.6rem;
    margin-top: 0.4em;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px rgb(242 181 58 / 0.25);
}

@media (max-width: 60rem) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__title { max-width: 14ch; }
}
@media (max-width: 30rem) {
    .bars__row { grid-template-columns: minmax(0, 1fr) 3.25rem; }
    .bars__track { grid-column: 1 / -1; grid-row: 2; }
}

/* --- Secties -------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--mist); }

.section__intro { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section__title {
    font-size: var(--step-3);
    font-stretch: 88%;
    max-width: 22ch;
}

.section__lead {
    margin-top: 1rem;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--muted);
    max-width: 40rem;
}
.section--ink .section__lead { color: #C4CCDA; }

/* --- Tijdlijn: maanden tegenover dagen ----------------------------------- */

.timeline {
    display: grid;
    gap: 1.75rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.timeline__name {
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: var(--step--1);
    color: var(--muted);
}

.timeline__phases {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    list-style: none;
}

.timeline__phase {
    grid-column: span var(--span);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 6.5rem;
    padding: 0.8rem 0.9rem;
    background: #E3E8EE;
    border-radius: 6px;
    font-size: var(--step--1);
    line-height: 1.4;
}
.timeline__phase:first-child { border-radius: var(--radius-small) 6px 6px var(--radius-small); }
.timeline__phase--end {
    background: repeating-linear-gradient(-45deg, #E3E8EE 0 8px, #D6DDE6 8px 16px);
    border-radius: 6px var(--radius-small) var(--radius-small) 6px;
}
.timeline__when { font-weight: 700; color: var(--ink); }
.timeline__what { color: var(--ink-soft); }

.timeline__numori {
    display: grid;
    grid-template-columns: max(2.6%, 10px) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}
.timeline__sprint {
    height: 2.75rem;
    background: var(--signal);
    border-radius: var(--radius-small);
}
.timeline__sprint-label { font-size: var(--step-0); line-height: 1.45; }
.timeline__sprint-label strong { font-family: var(--font-display); font-size: var(--step-1); }

.timeline__scale {
    font-size: var(--step--1);
    color: var(--muted);
}

@media (max-width: 44rem) {
    .timeline__phases { grid-template-columns: 1fr; }
    .timeline__phase { grid-column: auto; min-height: 0; flex-direction: row; gap: 0.75rem; }
    .timeline__phase:first-child,
    .timeline__phase--end { border-radius: 6px; }
    .timeline__phase[style*="--span: 3"] { min-height: 6.5rem; }
    .timeline__when { flex: none; width: 7.5rem; }
}

/* Problemen */
.problems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem clamp(2rem, 1rem + 4vw, 5rem);
    margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
    padding: 0;
    list-style: none;
}
.problem {
    padding-top: 1.25rem;
    border-top: 2px solid var(--ink);
}
.problem__title {
    margin-bottom: 0.5rem;
    font-size: var(--step-1);
    font-stretch: 92%;
}
.problem p { color: var(--ink-soft); max-width: 34rem; }

@media (max-width: 44rem) {
    .problems { grid-template-columns: 1fr; }
}

/* --- Stappen -------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.step { position: relative; }
.step__number {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    font-stretch: 75%;
    line-height: 1;
    color: var(--signal);
}
.step__title {
    margin-bottom: 0.5rem;
    font-size: var(--step-1);
    font-stretch: 92%;
}
.step p { color: var(--ink-soft); }

@media (max-width: 60rem) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
    .steps { grid-template-columns: 1fr; }
    .step {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr);
        column-gap: 1rem;
    }
    .step__number { grid-row: span 2; margin: 0; font-size: 2.75rem; }
}

/* --- Proactief ------------------------------------------------------------ */

.proactive {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 1rem + 5vw, 5rem);
    align-items: start;
}

.capabilities {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.capability {
    padding-left: 1.25rem;
    border-left: 2px solid var(--signal-light);
}
.capability dt {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-1);
    line-height: 1.25;
}
.capability dd { margin-top: 0.3rem; color: #C4CCDA; max-width: 34rem; }

.proactive__closing {
    margin-top: 2.5rem;
    font-size: var(--step-1);
    line-height: 1.5;
    max-width: 34rem;
}

/* Strategiebord */
.board {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--ink-soft);
    border: 1px solid #3A4A6E;
    border-radius: var(--radius);
}
.board__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: #9FB0C8;
}
.board__goal,
.board__item {
    padding: 1rem 1.1rem;
    background: var(--ink);
    border-radius: var(--radius-small);
    font-size: var(--step--1);
    line-height: 1.5;
}
.board__goal-text {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    line-height: 1.15;
}
.board__progress {
    height: 0.5rem;
    margin-top: 0.9rem;
    background: #2E3D60;
    border-radius: 999px;
    overflow: hidden;
}
.board__progress span {
    display: block;
    width: var(--w);
    height: 100%;
    background: var(--signal-light);
    border-radius: inherit;
}
.board__status { margin-top: 0.5rem; color: #C4CCDA; }

.board__item--alert {
    background: var(--amber-wash);
    color: #3D2C00;
}
.board__item--alert .board__label { color: var(--amber-ink); }
.board__item--action .board__label { color: var(--signal-light); }

.board__caption {
    font-size: var(--step--1);
    color: #9FB0C8;
    text-align: right;
}

@media (max-width: 60rem) {
    .proactive { grid-template-columns: 1fr; }
}

/* --- Koppelingen ---------------------------------------------------------- */

.connectors {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
}
.connectors__number {
    font-family: var(--font-display);
    font-size: clamp(5rem, 3rem + 9vw, 10rem);
    font-weight: 800;
    font-stretch: 75%;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.connectors__title {
    margin-top: 0.75rem;
    font-size: var(--step-2);
    font-stretch: 88%;
    max-width: 14ch;
}
.connectors__body .section__lead { margin-top: 0; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding: 0;
    list-style: none;
}
.tags li {
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: var(--step--1);
    font-weight: 500;
}
.connectors__note { margin-top: 1.75rem; color: var(--muted); }

@media (max-width: 52rem) {
    .connectors { grid-template-columns: 1fr; }
}

/* --- Contact -------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
}

.form {
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    background: var(--mist);
    border-radius: var(--radius);
}
.form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field__optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #B7C2D0;
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--step-0);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--signal-light);
    outline-offset: 0;
    border-color: var(--signal);
}

.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
}
.form__privacy { font-size: var(--step--1); color: var(--muted); }

.form__message {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-small);
    font-weight: 500;
}
.form__message--ok { background: #DDF3EC; color: #064A3F; }
.form__message--error { background: var(--amber-wash); color: #4A3500; }

@media (max-width: 52rem) {
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
    .form__grid { grid-template-columns: 1fr; }
}

/* --- 404 ------------------------------------------------------------------ */

.notfound { min-height: 50vh; }
.notfound .button { margin-top: 2rem; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
    padding-block: 3rem;
    background: var(--ink);
    color: var(--mist);
    border-top: 1px solid #2E3D60;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 2.5rem;
}
.site-footer__tagline { color: #C4CCDA; font-size: var(--step--1); }
.site-footer__meta { color: #9FB0C8; font-size: var(--step--1); }

@media (max-width: 44rem) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* --- Minder beweging ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Taalwissel ----------------------------------------------------------- */

.site-nav__lang a {
    padding-left: 1.75rem;
    border-left: 1px solid var(--line);
}
@media (max-width: 52rem) {
    .site-nav__lang a { padding-left: 0; border-left: 0; }
}

/* --- Staging -------------------------------------------------------------- */

.staging-bar {
    padding: 0.5rem var(--gutter);
    background: var(--amber);
    color: #2B1F00;
    font-size: var(--step--1);
    font-weight: 600;
    text-align: center;
}
