/*
 * Starter theme for missing.css 1.3 (FRONTEND.md, "missing.css starter"). Keep it next to
 * missing.min.css, open-props.min.css and fonts/; a site links this file, a tool app.css.
 * Order of preference: missing's default, then its component, utility or variable
 * (missing.style/docs), and only then a rule here, each with its reason. The values live in
 * the token block, taken from Open Props' scales (sizes, type, radii, shadows:
 * open-props.style), so a project picks steps where Open Props has one;
 * the few rem widths set column counts and stay rem on purpose. Layout is missing's:
 * .container for the page width, .grid with data-cols spans for columns,
 * .flex-row/.flex-column/.tool-bar for rows and stacks.
 *
 * AI Interims: the token block carries the approved design's values, and the design's own
 * components are the Own CSS part at the end (docs/decisions.md, "The approved design wins
 * over the house look").
 */

@import url("missing.min.86098bd08360.css") layer(missing);
/* Open Props 1.7.23, only its value scales (sizes, fonts, borders, shadows, layers, ratios):
   the tokens below name its steps. It defines variables only, none of missing's names. */
@import url("open-props.min.c7919458d7cf.css") layer(props);

/* The design's fonts, vendored next to this file by tools/vendor.py: Outfit for text and
   headings, JetBrains Mono for labels, numbers and the menu's small print. Latin only. */
@font-face {
    font-family: "Outfit";
    font-weight: 300;
    font-display: swap;
    src: url("fonts/outfit-latin-300-normal.9b74615df586.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/outfit-latin-400-normal.23191c444b9e.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-weight: 500;
    font-display: swap;
    src: url("fonts/outfit-latin-500-normal.c5138e4c72ea.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/outfit-latin-600-normal.778dd8bec372.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-400-normal.caf0dfde4e44.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-weight: 500;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-500-normal.a21e038a03f7.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------------- */

:root {
    /* Fonts: the design's, the system's as the fallback. */
    --main-font: "Outfit", var(--font-system-ui);
    --display-font: var(--main-font);
    --ff: var(--main-font);
    --ff-mono: "JetBrains Mono", var(--font-mono);

    /* missing's own spacing (its components' --gap) is the root line height x --density. */
    --rhythm: 1rlh;
    --density: calc(2 / 3);

    /* Spacing roles on Open Props' sizes, for what the starter draws (the error pages' flow,
       the forms' grid); the design's bands use the design's own scale below. */
    --space-tight: var(--size-1);
    --space-related: var(--size-2);
    --space-inside: var(--size-3);
    --space-blocks: var(--size-5);
    --space-pad: var(--size-fluid-2);
    --space-section: var(--size-fluid-4);
    --space-band: clamp(var(--size-8), 6vw, var(--size-10));

    /* Widths: the design's page is 1440 px wide with a fluid gutter. */
    --max: 1440px;
    --line-length: var(--max);
    --gutter: clamp(1.25rem, 0.7rem + 2.4vw, 3.25rem);
    --page-pad: max(var(--gutter), (100% - var(--line-length)) / 2);
    --text-width: var(--size-content-3);
    --heading-width: var(--size-header-3);
    --card-min: 17rem;
    --field-min: 16rem;
    --choice-col: 14rem;
    --menu-min: 12rem;
    --panel-width: var(--size-14);
    --dialog-width: 36rem;
    --dialog-picture: 60rem;

    /* The design's scale: 12 columns with a fluid gap, a fluid band height, a 68 px header. */
    --col-gap: clamp(1rem, 0.55rem + 1.4vw, 1.75rem);
    --sec: clamp(4.25rem, 3rem + 5vw, 7.5rem);
    --hh: 68px;

    /* Type: the design's display scale, one heading weight (500). */
    --fs-xl: clamp(2.6rem, 1.3rem + 5.4vw, 6.5rem);
    --fs-l: clamp(2rem, 1.3rem + 2.7vw, 3.875rem);
    --fs-m: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
    --fs-body: 1.0625rem;
    --fs-sm: 0.9375rem;
    --fs-xs: 0.8125rem;
    --fs-mono: 0.71875rem;
    --text-lg: 1.125rem;
    --h3: var(--font-size-3);
    --h2: var(--fs-l);
    --h1: var(--fs-xl);
    --hero: var(--fs-xl);
    --heading-leading: 1.02;
    --heading-tracking: -0.035em;
    --heading-weight: 500;
    --weight-medium: 500;

    --control: 2.5rem;
    --control-sm: var(--size-7);
    --control-lg: 3.25rem;    /* the design's 52 px button */
    --logo: 35px;
    --icon: 22px;
    --check: var(--icon);
    /* Square corners everywhere: the design draws hairline frames, not rounded boxes. */
    --border-radius: 0;
    --interactive-border-radius: 0;
    --line: var(--border-width) var(--border-style) var(--hair-2);

    /* Depth: flat bands and hairline panels; only what floats casts a shadow. */
    --shadow-box: none;
    --shadow-card: none;
    --shadow-overlay: 0 12px 30px -8px rgb(0 0 0 / 0.5);
    --picture-ratio: var(--ratio-landscape);

    --scrim: rgb(13 14 14 / 0.7);
    /* Motion: the starter's 150 ms colour change on what answers the pointer; the design's
       reveals and lines use their own curve and duration. */
    --motion: 150ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 650ms;
    --shadow: none;
    --shadow-focus: none;
    --shadow-active: none;
    --pressed-shadow: none;
    --pressed-shadow-focus: none;
    --pressed-shadow-active: none;

    /* The brand slot: the logo's teal. The design fixes every derived shade itself (teal ink
       for text on light bands, mint for focus on dark ones), so they are its values, each
       measured by the contrast check in tests/test_browser.py. */
    --brand: #14B8A0;
    --accent: #14B8A0;      /* the logo's teal: buttons, marks, numbers on dark */
    --accent-hi: #2ACDB4;   /* a primary button under the pointer */
    --accent-2: #72F7E1;    /* the logo's mint: focus rings and messages on dark */
    --accent-ink: #0B7564;  /* teal for text on the light bands, 4.8:1 on --light */
    --warn: #E5AC5A;
    --brand-ink: var(--accent-2);
    --brand-tint: var(--bg-3);
    --brand-mark: var(--accent);

    /* The design's dark page with light bands: one colour scheme, no switch. */
    --bg: #0D0E0E;
    --bg-1: #121313;
    --bg-2: #181919;
    --bg-3: #202121;
    --fg-1: #F3F4F2;        /* headings on dark */
    --fg-2: #C5C9C6;        /* text on dark */
    --fg-3: #8F9491;        /* muted text on dark, 6.3:1 on --bg */
    --hair: rgb(255 255 255 / 0.09);
    --hair-2: rgb(255 255 255 / 0.18);
    --light: #EDEEEB;       /* the light bands */
    --light-2: #E2E4E0;
    --ink: #101111;         /* headings on light */
    --ink-2: #343735;       /* text on light */
    --ink-3: #575B58;       /* muted text on light, 5.9:1 on --light */
    --hair-l: rgb(16 17 17 / 0.11);
    --hair-l2: rgb(16 17 17 / 0.24);
    --header-bg: rgb(30 31 31 / 0.94);

    --box-bg: var(--bg-2);
    --fg: var(--fg-2);
    --muted-fg: var(--fg-3);
    --faded-fg: var(--muted-fg);
    --heading-fg: var(--fg-1);
    --graphical-fg: var(--hair-2);
    --muted-accent: var(--accent);
    --link-fg: var(--accent-2);
    --link-hover: var(--fg-1);
    --primary: var(--accent);
    --primary-hover: var(--accent-hi);
    --on-primary: var(--ink);
    --plain-fg: var(--fg);
    --plain-bg: var(--bg-1);
    --plain-graphical-fg: var(--hair-2);
    --interactive-bg: var(--bg-1);
    --pressed-interactive-bg: var(--bg-3);
    --pressed-hover-bg: var(--bg-3);
    --overlay-bg: var(--bg-2);
    --hero-bg: #000;

    --deep-bg: var(--bg);
    --deep-fg: var(--fg-1);
    --deep-muted: var(--fg-3);

    /* The semantic colours, dark values: text on their fill passes 4.5:1. */
    --ok-bg: #284a3a;
    --ok-fg: #8fd9b6;
    --ok-graphical-fg: #54be89;
    --warn-bg: #4e4021;
    --warn-fg: #f0c674;
    --warn-graphical-fg: #fdc46d;
    --bad-bg: #5c3635;
    --bad-fg: #f5a3a3;
    --bad-graphical-fg: #fa6c68;
    --info-bg: var(--bg-3);
    --info-fg: var(--accent-2);
    --info-graphical-fg: var(--accent);

    --shadow-color: 220 40% 2%;
    --shadow-strength: 25%;
    --inner-shadow-highlight: none;
}

/* The dark scheme, chosen ("dark") or the system's ("light dark"): darker, stronger shadows, and
   the light and dark pairs (the two logos, the theme switch's sun and moon) swap: .on-dark
   shows, .on-light hides (missing's -dark-theme classes are deprecated). Written twice on
   purpose: the system's scheme is a media query, the chosen one is not, and no selector joins
   the two. */
.on-dark { display: none; }

:root:has(meta[name="color-scheme"][content="dark"]) {
    --shadow-color: 220 40% 2%;
    --shadow-strength: 25%;

    .on-dark { display: revert; }
    .on-light { display: none; }
}

@media (prefers-color-scheme: dark) {
    :root:has(meta[name="color-scheme"][content="light dark"]) {
        --shadow-color: 220 40% 2%;
        --shadow-strength: 25%;

        .on-dark { display: revert; }
        .on-light { display: none; }
    }
}

/* The breakpoints, the same in theme.css, app.css and app.js, each edge written once as a range
   (width <= 768px against width > 768px, so no fraction of a pixel falls between them):
   - 576 px: a phone on its side; the folded menu becomes a panel under the toggle
   - 768 px: the phone edge, missing's own (data-cols@s ends there); above it the side menu is
     a column and the dialog stops being a sheet
   - 1024 px: the menu shows in the bar
   - 1280 px: a long menu shows in the bar (<body class="menu-long">)

   A phone or a touch screen gets controls a thumb can hit. */
@media (pointer: coarse), (width <= 768px) {
    :root {
        --control: 2.75rem;
        --control-sm: 2.5rem;
    }
}

/* ===================================================================================
   The starter's rules, down to the "Own CSS" marker at the end: copied as they are, so a
   project takes the guide's later fixes by diffing (tools/check-starter.sh counts the lines
   that differ). The project's look is the token block above; its own CSS goes after the
   last marker.
   =================================================================================== */

/* Type ----------------------------------------------------------------------------- */

html { line-height: 1.5; }
svg { max-inline-size: 100%; }
p { max-inline-size: var(--text-width); }

/* A calm hierarchy: the scale above, one weight, the heading colour. */
h1, h2, h3 {
    font-weight: var(--heading-weight);
    line-height: var(--heading-leading);
    color: var(--heading-fg);
}

h1, h2 {
    max-inline-size: var(--heading-width);
    text-wrap: balance;        /* no word left alone on a heading's last line */
}

h1 {
    font-size: var(--h1);
    letter-spacing: var(--heading-tracking);
}
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

/* A title inside a card or a list item is text-sized: the page and its sections have the
   headings. Size, not bold, makes it a title. */
:is(li > :is(h2, h3), .card > :first-child) {
    font-family: var(--main-font);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
}

/* Fine print is muted, not smaller (nothing under 16 px); missing's small is 0.8em. */
small, figcaption, .helptext {
    font-size: inherit;
    line-height: 1.5;          /* missing's 2/3 rlh cramps wrapped small text */
    color: var(--muted-fg);
}

/* A quote keeps missing's look (italic, muted, a line at its start) on the theme's sizes:
   missing sets 1.1em on the root's line (1rlh), 17.6 px on 24 px, tighter than text. */
blockquote {
    font-size: var(--text-lg);
    line-height: 1.5;
}

/* The line under a page's h1 that says what the page is for (<p class="lead">). */
.lead {
    font-size: var(--text-lg);
    color: var(--muted-fg);
}

a { text-underline-offset: 0.2em; }
a:not(.\<button\>):hover { color: var(--link-hover); }

/* A link that is a title, a cell, or in the header or footer is a link by its place: no
   underline until hovered (missing does this for nav, menus and .list-of-links). */
:is(h1, h2, h3, td, th, body > header, body > footer) a:not(.\<button\>) {
    text-decoration: none;

    &:hover { text-decoration: underline; }
}

a.chip:is(:hover, :focus) { text-decoration: none; }    /* a whole chip never underlines */

/* Flow: the container owns the space between its blocks (FRONTEND.md) ------------------- */

/* missing pads main only when it is the page's first element; here the header comes first. */
main { padding-block: var(--space-blocks) calc(var(--space-section) * 1.5); }

:where(main, section, article, .box, #dialog-body, #results, fieldset) {
    > * { margin-block: 0; }
    > * + * { margin-block-start: var(--space-inside); }
}
:where(main) > * + * { margin-block-start: var(--space-section); }
:where(main) > .page-head + * { margin-block-start: var(--space-blocks); }
:where(section, .box) > :is(h2, h3) + * { margin-block-start: var(--space-related); }

/* The page head: missing's .flex-row utilities in the markup; the back link takes its own row. */
.page-head > .back {
    flex-basis: 100%;
}

/* Columns are missing's .grid: children span columns with data-cols, per width with
   data-cols@s (to 768 px) and data-cols@l (from 1024 px); without a span they stack. A
   column never grows past its share (a wide table scrolls in its wrap instead), and blocks
   side by side keep the blocks' space. */
.grid {
    --grid-col-width: minmax(0, 1fr);
    gap: var(--space-blocks);
}

/* Cards and surfaces ------------------------------------------------------------- */

/* A list of like items: an auto-filling grid (a short last row stays); missing has none. A
   .card (class="box card") is a title, a body and maybe a third part (actions, a date); a
   row of cards lines the parts up on subgrid, whichever count they share. */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min), 100%), 1fr));
    gap: var(--space-blocks);

    > * {
        min-inline-size: 0;
        margin: 0;
    }
}

.card {
    position: relative;
    display: grid;
    row-gap: var(--space-related);
    align-content: start;
    transition: box-shadow var(--motion) var(--ease), border-color var(--motion) var(--ease);

    &:has(> :nth-child(2):last-child) {
        grid-row: span 2;
        grid-template-rows: subgrid;
    }

    &:has(> :nth-child(3):last-child) {
        grid-row: span 3;
        grid-template-rows: subgrid;
    }

    > * {
        margin: 0;
        min-inline-size: 0;
    }

    > :last-child { align-self: end; }

    /* A title link covers the card; the card answers on hover, the title keeps its colour.
       missing positions headings, which would shrink the cover to the title. */
    > :first-child {
        position: static;

        a::after {
            content: "";
            position: absolute;
            inset: 0;
        }

        a:is(*, :hover) {    /* weighs as a hover, so it beats the link hover rules above */
            color: inherit;
            text-decoration: none;
        }
    }

    /* A card that is a link lifts under the pointer. */
    &:has(> :first-child a:hover) {
        border-color: var(--accent);
        box-shadow: var(--shadow-card);
    }

    /* Every other control in the card (a second link, a gallery's buttons) sits above the
       cover; a gallery's pictures stay under it, so a card with a gallery answers and opens
       wherever it is pointed at (app.js reads a swipe there by its place). Stacking is on Open
       Props' layers: 1 a control above its card's cover or a dialog's content, 2 the dialog's
       close button, 4 toasts; a dialog and the folded menu are in the top layer. */
    > :not(:first-child) :is(a, button, input, select, summary, label) {
        position: relative;
        z-index: var(--layer-1);
    }
}

/* Surfaces: missing's box look (its hairline) with the role padding, the house's rounding and a
   soft resting shadow. A box takes its container's width, also when it is a paragraph (the
   text width is for text). */
.box {
    max-inline-size: none;
    padding: var(--space-pad);
    box-shadow: var(--shadow-box);
}

/* Pictures and galleries --------------------------------------------------------- */

/* Pictures in cards and galleries share one shape, cropped to fill it (a project picks another
   Open Props ratio in --picture-ratio); the enlarged picture keeps its own. */
:is(.card, [data-gallery]) :is(img, figure > svg) {
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: var(--picture-ratio);
    object-fit: cover;
}

/* A figure in a gallery, an enlarged picture, the hero or around a quote is not a box of its
   own (missing boxes a figure). A gallery (base.html's pattern) shows one picture at a time with a bar under it:
   previous, the position ("2 van 3"), next and "Vergroot"; it goes round; without JavaScript
   every picture shows; enlarged, the picture opens in the shared dialog, wider. */
:is(.gallery, #dialog-body, .hero) > figure, figure:has(> blockquote) {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* A drawing (an inline SVG, not an icon) fills its figure and keeps its shape. */
figure > svg:not(:has(> use)) {
    inline-size: 100%;
    block-size: auto;
}

.gallery {
    display: grid;
    gap: var(--space-related);

    figcaption { text-align: center; }    /* under the picture, centred like the bar */
}

/* On screen one picture from the first paint, keyed on <html class="js"> (app.js sets it before
   the page paints, so nothing shifts when it takes over). Without the script, or if it failed
   to load, every picture shows and the bar goes; on paper every picture shows too (`hidden`
   could not: missing enforces it with !important). */
@media screen {
    .js [data-gallery]:not([data-at]) > figure ~ figure,
    [data-gallery] > figure[data-off] { display: none; }
}

html:not(.js) [data-gallery] .gallery-bar { display: none; }

.gallery-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-related);

    [data-count] {
        min-inline-size: 6ch;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
}

/* Wider for a picture; on a phone it is the sheet like any dialog (below). */
@media (width > 768px) {
    #dialog:has(#dialog-body > figure) { inline-size: min(100% - 2 * var(--space-inside), var(--dialog-picture)); }
}
#dialog-body > figure img {
    inline-size: 100%;
    block-size: auto;
}

/* The dialog --------------------------------------------------------------------- */

/* The page behind a dialog dims at once (missing fades it to 0.4 over 2 s). */
dialog::backdrop {
    opacity: 1;
    animation: none;
    background: var(--scrim);
}

/* The shared dialog (base.html's #dialog) on what modal designs share (Carbon, Atlassian,
   Material): a header row with the partial's heading at the start and the close button at the
   end, on one line; only the body scrolls, the header and the form's buttons stay in view, the
   main action at the end of its row; the theme's surface padding at the edges. On a phone it is
   a sheet from the bottom, the whole screen when the content is long. A long form (more than
   about six fields) is a page, not a dialog. It opens and closes at once. */
#dialog {
    flex-direction: column;
    inline-size: min(100% - 2 * var(--space-inside), var(--dialog-width));
    max-block-size: calc(100dvh - 2 * var(--space-inside));
    padding: 0;
    overflow: hidden;
    background: var(--overlay-bg);
    box-shadow: var(--shadow-overlay);

    &[open] { display: flex; }
}

#dialog-body {
    flex: 1 1 auto;
    min-block-size: 0;
    padding: var(--space-pad);
    overflow: auto;
}

/* The header row: the heading sticks to the top as a band across the whole body (not the
   heading's 35ch, or the text scrolls by beside it), as tall as the close button with the
   inside space above and below, a line under it like the one over the buttons; the close
   button's icon ends on the content's edge. */
#dialog-body > :is(h1, h2, h3):first-child {
    position: sticky;
    inset-block-start: calc(-1 * var(--space-pad));    /* sticky measures from inside the body's padding */
    z-index: var(--layer-1);
    display: flex;
    align-items: center;
    min-block-size: calc(var(--control) + 2 * var(--space-inside));
    max-inline-size: none;
    margin: calc(-1 * var(--space-pad)) calc(-1 * var(--space-pad)) 0;
    padding-inline: var(--space-pad) calc(var(--space-pad) + var(--control));
    border-block-end: var(--line);
    background: var(--overlay-bg);
}

.dialog-close {
    position: absolute;
    inset-block-start: var(--space-inside);
    inset-inline-end: calc(var(--space-pad) - (var(--control) - var(--icon)) / 2);
    z-index: var(--layer-2);    /* above the header row and whatever the partial swaps in */
}

#dialog-body > :not(h1, h2, h3, figure, .confirm):first-child { padding-inline-end: var(--control); }

/* A confirmation (<form class="confirm">: a question, then Ja and Nee) has no close button:
   Nee, Escape and a click beside it say no. */
#dialog:has(.confirm) .dialog-close { display: none; }

/* An enlarged picture: its caption is the title row, beside the close button and as high, the
   picture centred under it at the body's full width. */
#dialog-body > figure:first-child {
    display: grid;
    gap: var(--space-inside);

    > figcaption {
        order: -1;
        display: flex;
        align-items: center;
        min-block-size: var(--control);
        margin-block-start: calc(var(--space-inside) - var(--space-pad));    /* on the close button's row */
        padding-inline-end: var(--control);
    }
}

/* The form's button row stays at the bottom while the fields scroll. The markup keeps the
   site's order (the main action first, then <button type="button" data-close-dialog>Annuleren);
   in a dialog the row reads from the end, so the main action sits in the corner, as in every
   modal design, and cancel beside it. A button without a type submits too. */
#dialog-body:has(form > :last-child :is([type="submit"], button:not([type]))) { padding-block-end: 0; }

#dialog-body form > :last-child:has(:is([type="submit"], button:not([type]))) {
    position: sticky;
    inset-block-end: 0;
    z-index: var(--layer-1);
    flex-direction: row-reverse;
    justify-content: flex-start;    /* the reversed row's start: the end edge */
    margin-inline: calc(-1 * var(--space-pad));
    padding: var(--space-inside) var(--space-pad);
    border-block-start: var(--line);
    background: var(--overlay-bg);
}

/* On a phone a sheet from the bottom. missing's `dialog { margin: auto !important }` is its
   contract, built around, not overridden: auto margins centre a fixed dialog only between two
   set insets, so with the top inset auto they count as 0 and the bottom inset docks it. */
@media (width <= 768px) {
    #dialog {
        inset-block: auto 0;
        inline-size: 100%;
        max-inline-size: 100%;
        max-block-size: 100dvh;
    }
}

/* Bands and the hero ------------------------------------------------------------- */

/* A page of bands (a front page, a marketing page): <main id="main" class="bands"> holds
   full-width <section class="band"> blocks, each with its content on the page's edges; the
   bands touch, a tinted one (.band.tint) sets the rhythm. */
main.bands {
    max-inline-size: none;
    padding: 0;

    > * + * { margin-block-start: 0; }
}

.band {
    padding: var(--space-band) var(--page-pad);

    &.tint { background: var(--plain-bg); }
}

/* A deep band (.band.deep), a closing call to action: the page's dark colourway, dark in both
   schemes. missing's way, its colour variables set on the band, so the text, links, buttons,
   hairlines and a box on it follow. */
.band.deep {
    --bg: var(--deep-bg);
    --box-bg: var(--deep-bg);
    --fg: var(--deep-fg);
    --heading-fg: var(--deep-fg);
    --muted-fg: var(--deep-muted);
    --link-fg: var(--deep-fg);
    --link-hover: var(--deep-muted);    /* a hovered link changes, as on the page */
    --accent: var(--deep-fg);
    --graphical-fg: color-mix(in oklab, var(--deep-fg) 50%, var(--deep-bg));    /* 3:1 on the band */
    --interactive-bg: transparent;
    --pressed-interactive-bg: color-mix(in oklab, var(--deep-fg) 15%, transparent);
    color: var(--fg);
    background: var(--bg);
}

/* A front page opens with a hero, its first band: <section class="band hero grid
   align-items:center"> with the promise, the lead and the main action (data-cols@l="1 3") and
   an illustration beside it in a <figure data-cols@l="4 5"> that fills its columns and centres
   it; a tinted band, edge to edge like the others, so the first screen reads as the front door. */
.hero {
    background: var(--hero-bg);

    h1 { font-size: var(--hero); }    /* 2 to 3.5rem with the screen */
    &.band > * + * { margin-block-start: 0; }    /* side by side in the grid: its gap spaces them */
    > :first-child > * + * { margin-block-start: var(--space-inside); }

    > figure {
        display: grid;
        place-items: center;
    }
}

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

/* <header>: brand, menu, actions, then the tools that stay on a phone (a status link, the theme
   button, the menu toggle). missing already puts body > header on main's edges; one row, a
   hairline under it. */
body > header {
    font-family: var(--main-font);    /* missing sets the header in the display font */
    display: flex;
    align-items: center;
    gap: var(--space-related);
    margin-block: 0;
    padding-block: var(--space-related);
    border-block-end: var(--line);

    > .actions { margin-inline-start: auto; }
    > nav:not(:has(~ .actions)) { margin-inline-start: auto; }    /* no actions: the menu takes the end, before the tools */
    > .tools { gap: var(--space-tight); }

    nav > ul {
        display: flex;
        gap: var(--space-tight);
        margin: 0;
    }
}

.brand {
    flex-shrink: 1;
    min-inline-size: 0;

    /* Where the logo has to shrink (the folded bar), it keeps its shape and its start edge. */
    img {
        block-size: var(--logo);
        inline-size: auto;
        object-fit: contain;
        object-position: left;
    }
}

/* A menu item is its whole box: the link fills it (a control's height, the inside space on
   both sides), so the target and the highlight are the item. A hovered item looks like the
   current page, a tint and the accent colour, with the same padding in every menu (header,
   folded menu, side menu); no underline, no weight change (that would move the items). */
:is(body > header nav, .drawer nav, .side-menu) a:not(.\<button\>) {
    display: flex;
    align-items: center;
    min-block-size: var(--control);
    padding-inline: var(--space-inside);
    border-radius: var(--interactive-border-radius);
    color: var(--fg);
    white-space: nowrap;       /* a menu item stays on one line */

    &:is(:hover, [aria-current="page"]) {
        color: var(--accent);
        background: var(--pressed-interactive-bg);
        text-decoration: none;
    }
}

/* A vertical menu pulls its items out by their padding, so their text stays on the menu's
   edge and the highlight reaches past it. */
:is(.drawer nav, .side-menu) ul {
    display: grid;
    gap: var(--space-tight);
    margin-block: 0;
    margin-inline: calc(-1 * var(--space-inside));
}

header .nav-toggle { display: none; }    /* header: beats this file's .iconbutton { display: inline-flex } below */

/* Below 1024 px the menu and the actions move into the folded menu; the bar keeps the brand and
   the tools, and the logo takes what the tools leave. A menu that does not fit the bar at
   1024 px (more than five items, or a phone number and a button beside them) folds below
   1280 px instead: <body class="menu-long">; app.js reads the same edge. */
@media (width < 1024px) {
    /* The toggle needs app.js (it marks <html class="js">); without it the footer's links are the
       phone's navigation, never a button that does nothing. */
    .js header .nav-toggle { display: inline-flex; }
    body > header > :is(nav, .actions) { display: none; }
    body > header > .brand { flex: 1 1 0; }
    body > header > .tools { margin-inline-start: auto; }
}

@media (1024px <= width < 1280px) {
    .js .menu-long > header .nav-toggle { display: inline-flex; }
    .menu-long > header > :is(nav, .actions) { display: none; }
    .menu-long > header > .brand { flex: 1 1 0; }
    .menu-long > header > .tools { margin-inline-start: auto; }
}

/* The folded menu (base.html's <dialog class="drawer">, opened by the toggle with showModal):
   the bar stays on top (the dialog repeats it: the brand, a close button where the toggle
   was), the menu is a panel right under it, the page below is dimmed. On a phone the panel
   spans the screen; from 576 px (a tablet, a phone on its side) it hangs under
   the toggle at the page's end edge, --panel-width wide (a full-width band with its links at
   the far start reads as lost). The dialog itself is see-through: a click beside the panel
   lands on it and closes it. The dialog gives Escape, focus and an inert page. It opens and
   closes at once, like the dialog. In an area (area.html) the side menu is in it too. */
.drawer {
    position: fixed;
    inset: 0 0 auto;
    inline-size: 100%;
    max-inline-size: none;
    max-block-size: 100dvh;
    padding: 0;
    border: none;
    background: transparent;

    &::backdrop { background: var(--scrim); }

    /* The grid spans the dialog's width; beside the panel (from 576 px) it lets a click through
       to the dialog itself, which app.js reads as a click beside the menu. */
    > div {
        display: grid;
        pointer-events: none;

        > * { pointer-events: auto; }
    }

    /* The bar again, on the header's own edges, height and background. */
    .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-related) var(--page-pad);
        border-block-end: var(--line);
        background: var(--bg);
    }

    .drawer-panel {
        display: grid;
        gap: var(--space-inside);
        padding: var(--space-inside) var(--page-pad) var(--space-pad);
        border-block-end: var(--line);
        background: var(--overlay-bg);
        box-shadow: var(--shadow-overlay);
    }

    .actions {
        padding-block-start: var(--space-inside);
        border-block-start: var(--line);

        [role="menu"] { inset-inline: 0 auto; }
    }
}

@media (width >= 576px) {
    .drawer .drawer-panel {
        justify-self: end;
        inline-size: min(var(--panel-width), 100%);
        margin-inline-end: var(--page-pad);
        padding-inline: var(--space-pad);
        border: var(--line);
        border-block-start: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

/* A menu (missing's menu.js): <div class="menu-anchor"><button aria-haspopup="menu"
   aria-controls="x">...</button><div role="menu" id="x" hidden>...</div></div>. missing places
   the panel under its button; the anchor keeps it there and inside the screen's right edge. */
.menu-anchor { position: relative; }

.menu-anchor > [role="menu"] {
    inset-inline-end: 0;
    min-inline-size: var(--menu-min);
    background: var(--overlay-bg);
    box-shadow: var(--shadow-overlay);
}

/* A menu's items sit inside its rounded panel and look like the site's other menus: hover and
   the current choice (the theme) share one tint. missing fills the focused item solid, and its
   menu.js focuses the first item on opening, which then reads as chosen: focus is the ring. */
[role="menu"] { padding: var(--space-tight); }

[role="menu"] :is(a, button)[role="menuitem"] {
    display: flex;
    align-items: center;
    justify-content: start;
    inline-size: 100%;
    min-block-size: var(--control-sm);
    padding-inline: var(--space-inside);
    border: none;
    border-radius: var(--interactive-border-radius);
    font-weight: 400;
    text-decoration: none;
    background: none;
    color: inherit;

    &:is(:hover, [aria-current="true"]) {
        background: var(--pressed-interactive-bg);
        color: var(--fg);
    }
}

/* Every icon from icons.svg has the icon size, in a button, a link or text; an icon alone is
   missing's .iconbutton with an aria-label. In a button it takes no clicks: menu.js closes a
   menu on any click whose target is not its button. */
svg:has(> use) {
    flex-shrink: 0;
    inline-size: var(--icon);
    block-size: var(--icon);
}

:is(button, .\<button\>) > svg { pointer-events: none; }

.iconbutton {
    display: inline-flex;    /* a link (a.iconbutton) too, not only a button */
    align-items: center;
    justify-content: center;
    min-block-size: var(--control);
    min-inline-size: var(--control);
    padding-inline: 0;
    border-radius: var(--interactive-border-radius);

    /* missing draws a 1 px accent ring on hover, which reads as a stray circle: a soft tint
       instead; the ring stays for keyboard focus. */
    &:hover {
        outline: none;
        background: var(--pressed-interactive-bg);
    }
}

/* Controls ------------------------------------------------------------------------- */

/* What answers the pointer changes colour in 150 ms on the standard curve (also missing's
   icon button, a button too, which would animate its weight); nothing else moves. */
:is(a, button, .\<button\>, input, select, textarea, summary) {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color;
    transition-duration: var(--motion);
    transition-timing-function: var(--ease);
}

/* One control height and readable button text (missing's buttons are 0.8rem); colours stay
   missing's (its variables and colourways). A link that looks like a button is missing's
   class="<button>". missing's hover is a shadow (turned off with the other shadows here) and
   a 10 % brightness, invisible on a white button: a tint instead, the primary a shade darker.
   Three sizes, missing's own classes on the theme's tokens (missing's .<big> and .<small> sit
   in its layer, so these win over them): .<small> in dense places (a table row, a toolbar),
   the default everywhere else, .<big> for a marketing band's or the hero's main action. Text
   stays at text size; nothing else sets a control's height or side padding. */
button, input[type="submit"], input[type="button"], input[type="reset"], .\<button\> {
    justify-content: center;
    min-block-size: var(--control);
    padding-inline: var(--space-inside);
    font-size: 1rem;
    font-weight: var(--weight-medium);
    white-space: nowrap;

    &:hover {
        filter: none;
        background: var(--pressed-interactive-bg);
    }

    &.\<small\> {
        min-block-size: var(--control-sm);
        line-height: 1.5;
    }

    &.\<big\> {
        min-block-size: var(--control-lg);
        padding-inline: var(--space-blocks);
        font-size: var(--text-lg);
    }
}

/* A choice drawn as a button (a time slot, a segmented choice, a filter toggle): missing's
   .<button> on the label around a radio or checkbox, <label class="<button>"><input
   type="radio" name="slot" value="..."> 08:30</label>. The input is hidden but still takes
   focus and the keys; the chosen one has missing's pressed look, a taken one is dashed. */
.\<button\>:has(> input:is([type="radio"], [type="checkbox"])) {
    position: relative;

    > input {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        margin: 0;
        opacity: 0;
        cursor: inherit;
    }

    &:has(> input:checked) {
        background: var(--pressed-interactive-bg);
        color: var(--accent);
        border-color: var(--accent);
        box-shadow: var(--pressed-shadow);

        &:hover { background: var(--pressed-hover-bg); }    /* the hover tint is the chosen look: one step on */
    }

    &:has(> input:disabled) {
        border-style: dashed;
        background: none;
        color: var(--muted-fg);
        cursor: not-allowed;
    }
}

/* The primary action, <strong><button>, one per view, in the brand colour; the <strong> only
   marks it and adds no box, so the button keeps the size of its neighbours. */
strong:has(> :is(button, input[type="submit"], .\<button\>)) { display: contents; }

strong > :is(button, input[type="submit"], .\<button\>) {
    --accent: var(--primary);
    --box-bg: var(--on-primary);

    &:hover { background: var(--primary-hover); }
}

/* A dangerous main action (delete for good) is the same button in red: <strong><button
   class="bad">. Every other main action, a confirmation's Ja too, is in the brand colour. */
strong > .bad:is(button, .\<button\>) {
    --accent: var(--bad-fg);
    --box-bg: var(--bg);

    &:hover { background: color-mix(in oklab, var(--bad-fg), var(--fg) 20%); }
}

/* A field is a control high; a list box (multiple, or a size) keeps missing's own height. */
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="file"]), select:not([multiple], [size]:not([size="1"])) {
    block-size: var(--control);
    padding-block: 0;
    padding-inline: calc(var(--space-inside) * 0.75);
    line-height: calc(var(--control) - 2px);

    /* missing puts placeholders at the end; a field reads from the start, the hint too. */
    &::placeholder { text-align: start; }
}

/* A form lays out on the width it gets: two columns where two fields of --field-min fit, one in
   a side box or on a phone. A field with a short input or a select takes one cell; everything
   else (a text area, a choice list, a checkbox, the buttons) the row. */
form:not(.flex-row, .tool-bar, .search, .inline), form fieldset.box {
    --input-inline-size: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max(var(--field-min), calc((100% - var(--space-blocks)) / 2)), 1fr));
    gap: var(--space-inside) var(--space-blocks);
    align-items: start;

    > * {
        grid-column: 1 / -1;
        min-inline-size: 0;
        margin: 0;
    }

    /* A paired field lines up with its neighbour on the field itself, whatever sits above it (a
       hint, an error; field.html puts both above the field): the cells share the row's height,
       the label at the top, the field at the bottom. Hidden inputs never count: Django puts a
       form's hidden fields in its last field's div, which would pair a checkbox or a file. */
    > div:has(> :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select)):not(:has(textarea, fieldset)) {
        grid-column: auto;
        align-self: stretch;
        display: flex;
        flex-direction: column;

        > :is(input:not([type="hidden"]), select) { margin-block-start: auto; }
    }

    /* Django gives a text area cols="40", and missing then skips --input-inline-size. */
    textarea { inline-size: 100%; }
}

/* A long form in sections: <fieldset class="box"><legend>Jouw gegevens</legend>fields</fieldset>,
   each a surface of its own with the same grid inside; the legend reads as its heading, at h2's
   size: a section of the form is a level with the side boxes beside it (<section class="box"><h2>),
   which outranked it at h3's, and in the heading font (missing sets headings in it, not legends). */
form fieldset.box > legend {
    float: inline-start;
    inline-size: 100%;
    margin: 0;                 /* the section's grid gap is the space under it */
    font-family: var(--display-font);
    font-size: var(--h2);
    line-height: var(--heading-leading);
    font-weight: var(--heading-weight);
    color: var(--heading-fg);
}

/* In :where(), like the choice label below, which then wins by coming later. */
:where(label, legend) { font-weight: var(--weight-medium); }

/* The mark is generated, so it stays out of the label's text and accessible name; a no-break
   space keeps it on the label's line. Scoped: Django's required_css_class puts the same class
   on the field's div. */
:is(label, legend) > .required::after {
    content: "\00a0*" / "";
    color: var(--bad-fg);
}

/* missing draws a checkbox or radio at the browser's 13 px: an icon's size, in the brand ink
   (not --primary: dark on a dark page, a checked radio read as a focus ring). Here, not in the
   label rule below, so a loose one (a file field's "clear" box) is the same size. */
input:is([type="checkbox"], [type="radio"]) {
    inline-size: var(--check);
    block-size: var(--check);
    accent-color: var(--brand-ink);
}

.helptext {
    display: block;
    margin-block-end: var(--space-tight);
}

/* A checkbox or radio sits before its label's first line, however many lines it wraps to; a
   tile is this label framed. In :where(), so a project's own component built on such a label
   sets its layout with one class. A choice drawn as a button hides its input (below). */
:where(label:has(> input:is([type="checkbox"], [type="radio"])):not(.\<button\>)) {
    display: flex;
    align-items: start;
    gap: var(--space-related);
    margin: 0;
    font-weight: 400;

    /* Centred on the label's first line. */
    > input {
        flex-shrink: 0;
        line-height: inherit;      /* so 1lh is the label's line */
        margin: calc((1lh - var(--check)) / 2) 0 0;
    }
}

/* missing's summary is bold; a disclosure is a control, regular or medium like the others. */
summary { font-weight: var(--weight-medium); }

/* A choice list's fieldset belongs to its form (missing boxes every fieldset); a form section
   (fieldset.box) keeps its surface. Its legend reads as a label, its options straight below. */
fieldset:not(.box) {
    margin: 0;
    padding: 0;
    border: none;

    > legend { padding: 0; }
    > .choices { margin-block-start: 0; }
}

/* Choice lists (field.html wraps them in .choices): one per line; a long list (seven or more,
   or grouped with a second group: Django nests a group's options in the group's div, so the
   top level counts groups) in columns that fill top to bottom, a group never split. */
.choices > div {
    display: grid;
    gap: var(--space-tight);

    > div { margin: 0; }
    label { min-block-size: var(--control-sm); }

    &:is(:has(> :nth-child(7)), :has(> div:nth-child(2) > div)) {
        display: block;
        column-width: var(--choice-col);
        column-gap: var(--space-blocks);

        > div {
            break-inside: avoid;
            margin-block-end: var(--space-tight);

            &:has(> div) { margin-block-end: var(--space-blocks); }
        }
    }

    /* Grouped (a group is a div of option divs): groups stand apart more than their options. */
    &:has(> div > div) { row-gap: var(--space-blocks); }
}

/* Choices as tiles, for a few options a person weighs (a configurator, a plan, a delivery
   slot), each a name with a line under it: class="choices tiles" (field.html's wrapper, or the
   same markup by hand: <label><input type="radio"> <span>Name<br><small>a line</small></span>
   </label>). Every option is a framed tile and the chosen one is tinted, a disabled one dashed
   like a taken button; tiles sit side by side where --choice-col fits and stretch to share the
   row. Up to six, ungrouped; a long or grouped list is the plain list above (the scope says
   so). */
.choices.tiles > div:not(:has(> :nth-child(7)), :has(> div:nth-child(2) > div)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--choice-col)), 1fr));
    gap: var(--space-related);

    label {
        block-size: 100%;
        padding: var(--space-inside);
        border: var(--line);
        border-radius: var(--interactive-border-radius);
        background: var(--box-bg);
        transition: border-color var(--motion) var(--ease), background-color var(--motion) var(--ease);

        &:hover { border-color: var(--muted-fg); }

        &:has(:checked) {
            border-color: var(--accent);
            background: var(--pressed-interactive-bg);

            &:hover { background: var(--pressed-hover-bg); }
        }

        &:has(:disabled) {
            border-style: dashed;
            color: var(--muted-fg);
            cursor: not-allowed;
        }
    }
}

/* A choice drawn as a button hides its input, so the focus ring goes around the whole button;
   a tile, framed like one, takes the same ring. missing's own ring width. */
:is(.\<button\>:has(> input:focus-visible), .choices.tiles > div:not(:has(> :nth-child(7)), :has(> div:nth-child(2) > div)) label:has(:focus-visible)) {
    outline: 0.2em solid var(--accent);
    outline-offset: 2px;
}

/* A grouped list: the group's name above its options, smaller and muted, so it reads as a
   heading inside the field and not as a second field label. */
.choices > div > div > label:first-child:not(:has(input)) {
    min-block-size: 0;
    margin-block-end: var(--space-tight);
    color: var(--muted-fg);
}

[aria-invalid="true"] { border-color: var(--bad-graphical-fg); }

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--bad-fg);
}

/* Controls in a row are one relation: missing's .flex-row uses its gap. */
.flex-row { gap: var(--space-related); }

/* A status is a solid chip in its colourway (<span class="chip ok">Goedgekeurd</span>): the
   colourway's text colour as the fill, the page's background as the text, so it keeps the
   colourway's contrast in both schemes. A chip without one (a filter to remove) stays missing's. */
.chip {
    white-space: nowrap;

    &:is(.ok, .warn, .bad, .info) {
        border-color: transparent;
        font-weight: var(--weight-medium);
        color: var(--bg);
        background: var(--accent);
    }
}

/* A date or a number stays on one line, a number at its cell's end; as a value in label and
   value pairs (.facts) it is text again. */
time, .num { white-space: nowrap; }
.num { text-align: end; }

/* Label and value pairs: <dl class="facts">. The label column fits its longest label (never a
   hyphenated one), a long value wraps, so nothing is cut off in a narrow card. */
.facts {
    display: grid;
    grid-template-columns: fit-content(50%) minmax(0, 1fr);    /* the longest label, up to half */
    gap: var(--space-tight) var(--space-inside);

    dt {
        font-weight: 400;          /* missing's dt is bold; the label is the quiet half */
        color: var(--muted-fg);
    }

    dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

    :is(time, .num) {
        white-space: normal;
        text-align: start;
    }
}

/* On a phone, and in a box too narrow for a label beside a long value (a side box, a card),
   a label sits above its value, so a value (an e-mail address) keeps the width and stays
   whole: 28rem is a 10-character label beside a 30-character address and the gap.
   The list's parent is the container; never a card, whose containment would end its subgrid. */
:has(> .facts):not(.card) { container-type: inline-size; }

@media (width < 576px) {
    .facts { grid-template-columns: minmax(0, 1fr); }
}

@container (max-width: 28rem) {
    .facts { grid-template-columns: minmax(0, 1fr); }
}

/* A list whose items lead with an icon (a tick, a feature's mark), the icon on the first line
   however far the text wraps: <ul class="icon-list flex-column" role="list"><li><svg
   aria-hidden="true"><use href="icons.svg#check"></use></svg><span>Text</span></li></ul>. */
.icon-list > li {
    display: flex;
    align-items: start;
    gap: var(--space-related);

    > svg {
        margin-block-start: calc((1lh - var(--icon)) / 2);
        color: var(--accent);
    }
}

/* A table scrolls on its own (also on a site without app.css): <div class="table-wrap
   list-of-links overflow:auto" tabindex="0"><table>. A shadow at an edge shows more (a
   background, not a box shadow: the table itself is flat). Positioned, so a .vh caption stays
   inside it; missing's tbody borders would double the wrap's edge. */
.table-wrap {
    position: relative;
    border: var(--line);
    border-radius: var(--border-radius);
    background:
        linear-gradient(to right, var(--box-bg) 30%, transparent) left / 2rem 100% no-repeat local,
        linear-gradient(to left, var(--box-bg) 30%, transparent) right / 2rem 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.18), transparent) left / 0.75rem 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.18), transparent) right / 0.75rem 100% no-repeat scroll,
        var(--box-bg);

    tbody { border-block: none; }
}

table { inline-size: 100%; }
tbody tr + tr { border-block-start: var(--line); }    /* rows read along, on a site's table too */

/* Tabs (missing's role="tablist" with its tabs.js): a segmented strip, a tinted track with the
   chosen tab raised on it as a box, instead of missing's folder tabs. The :not() on a tab adds
   an attribute's weight so its background beats this file's button:hover; missing, a layer
   below, needs no such help. */
[role="tablist"] {
    flex-wrap: wrap;
    gap: var(--space-tight);
    padding: var(--space-tight);
    border-radius: var(--border-radius);
    background: var(--plain-bg);
}

[role="tab"]:not([specificity-hack]) {
    inset-block-end: 0;
    min-block-size: var(--control-sm);
    border: none;
    border-radius: var(--interactive-border-radius);
    color: var(--muted-fg);
    background: none;

    &:hover { color: var(--fg); }

    &[aria-selected="true"] {
        color: var(--fg);
        background: var(--box-bg);
        box-shadow: var(--shadow-1);
    }
}

[role="tabpanel"] {
    margin-block-start: var(--space-inside);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-box);
}

/* States --------------------------------------------------------------------------- */

/* A POST under way: app.js sets aria-busy on the button that sent it (never disabled, see
   there); this draws a ring before its label, at half strength, and takes no second click. */
button[aria-busy="true"] {
    gap: var(--space-related);
    opacity: 0.5;
    pointer-events: none;

    &::before {
        content: "";
        inline-size: 1em;
        block-size: 1em;
        border: var(--border-size-2) solid;
        border-block-start-color: transparent;
        border-radius: var(--radius-round);
        animation: spin 1s linear infinite;
    }
}

@keyframes spin {
    to { rotate: 1turn; }
}

/* Toasts: a live region the server's messages land in; each one a missing box in a colourway. */
.toasts {
    position: fixed;
    inset-block-end: var(--space-inside);
    inset-inline-end: var(--space-inside);
    z-index: var(--layer-4);
    display: grid;
    gap: var(--space-related);
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;

    > * {
        margin: 0;
        box-shadow: var(--shadow-overlay);
        pointer-events: auto;
    }
}

/* A number in a strip of figures (a dashboard, a front page's facts): <div class="box stat"><strong>12</strong><span>label</span></div>. */
.stat > strong {
    display: block;
    font-family: var(--display-font);
    font-size: var(--h1);
    line-height: var(--heading-leading);
    color: var(--heading-fg);
}

.stat > span { color: var(--muted-fg); }

/* missing 1.3's .vh stays in the flow; taken out, the skip link and hidden labels add no space. */
.vh:not(:focus, :focus-within) { position: absolute; }

/* Without JavaScript (app.js marks <html class="js"> before the page paints): .js-only hides
   what needs the script (the theme menu), .nojs-only what stands in for it once it runs. The
   gallery and app.css's folds key on the same class. */
html:not(.js) .js-only { display: none; }
.js .nojs-only { display: none; }

/* A short page keeps its footer at the bottom: the page is a column at least the screen high,
   main (or a tool's .area, app.css) takes the room that is left (missing's main is full width
   and centred by its margins). */
body {
    display: flex;
    flex-direction: column;
    min-block-size: 100dvh;

    > :is(main, .area) { flex: 1 0 auto; }
}

/* Footer: missing's own (main's edges, a line above); its columns a .grid. Read at text size
   and line height (missing sets 0.8em and a tight line); its sentences muted, the copyright
   line a <small>. */
body > footer {
    margin-block-end: 0;       /* missing's footer margin would leave a strip under it */
    font-size: 1rem;
    line-height: 1.5;

    p { color: var(--muted-fg); }

    :is(h2, h3) {
        margin-block: 0 var(--space-related);
        font-size: 1rem;
    }

    ul { margin: 0; }

    li a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-sm);
    }
}

/* A unit that fades in as it scrolls into view: a card, a row, a step (<article data-reveal>),
   not a whole band, whose top would stay faint for a screenful. Pure CSS (a scroll-driven
   animation), so nothing stays hidden after a jump; opacity only, so nothing is out of place
   while it runs; only on screen, with motion allowed and where supported. */
@supports (animation-timeline: view()) {
    @media screen and (prefers-reduced-motion: no-preference) {
        [data-reveal] {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry -25% entry 35%;    /* under way before it shows */
        }
    }
}

@keyframes reveal {
    from { opacity: 0; }
}

/* On paper only the content prints (FRONTEND.md, "Loading, motion and JavaScript"), in the
   light scheme with its logo, links in the text colour; a site hides more with .no-print.
   missing prints every link's address after it; here only a link in running text to another
   site keeps it, at text size. */
@media print {
    body > :is(header, footer), .drawer, #dialog, .toasts, .no-print { display: none; }
    a:not([href^="#"]):not(:has(> *))::after { content: none; }

    :is(p, li, dd, blockquote) > a[href^="http"]:not(.\<button\>, nav a)::after {
        content: " (" attr(href) ")";
        font-size: inherit;
    }

    [data-gallery] .gallery-bar { display: none; }

    :root {
        color-scheme: light;

        /* As heavy as the dark-scheme rules near the top, so the light logo wins on paper. */
        &:has(meta[name="color-scheme"][content]) {
            .on-dark { display: none; }
            .on-light { display: revert; }
        }
    }

    a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ===================================================================================
   Own CSS: what neither missing nor the starter has, from the tokens, each rule with its
   reason. Past about 100 lines, look for the class you are re-creating.
   =================================================================================== */

/* The approved design (tekstenv4), on the tokens above: its components, bands and motion,
   which neither missing nor the starter has. docs/decisions.md says why this part is long and
   which layout rules it departs from. */

/* Thema's per sectie */
.t-dark {
    --c-bg: var(--bg);
    --c-head: var(--fg-1);
    --c-text: var(--fg-2);
    --c-muted: var(--fg-3);
    --c-line: var(--hair);
    --c-line-2: var(--hair-2);
    --c-panel: var(--bg-2);
    --c-acc: var(--accent);
    --focus: var(--accent-2);
    background: var(--c-bg);
    color: var(--c-text);
}
.t-dark-1 { --c-bg: var(--bg-1); }
.t-light {
    --c-bg: var(--light);
    --c-head: var(--ink);
    --c-text: var(--ink-2);
    --c-muted: var(--ink-3);
    --c-line: var(--hair-l);
    --c-line-2: var(--hair-l2);
    --c-panel: #F6F7F5;
    --c-acc: var(--accent-ink);
    --focus: var(--accent-ink);
    background: var(--c-bg);
    color: var(--c-text);
}

/* Basis */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hh) + 12px);
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg-2);
    font-family: var(--ff);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video, svg, canvas {
    display: block;
    max-width: 100%;
}
img { height: auto; }
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol {
    padding: 0;
    list-style: none;
}
strong {
    font-weight: 500;
    color: var(--c-head, var(--fg-1));
}
::selection {
    background: var(--accent);
    color: var(--ink);
}
:focus-visible {
    outline: 2px solid var(--focus, var(--accent-2));
    outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }
.skip-link {
    position: fixed;
    left: var(--gutter);
    top: 10px;
    z-index: 300;
    background: var(--accent);
    color: var(--ink);
    padding: 0.7rem 1.1rem;
    font-weight: 500;
    transform: translateY(-200%);
    transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.sr-only {
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
}
.g12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
}
.g12 > * {
    grid-column: 1/-1;
    min-width: 0;
}
.sec {
    padding-block: var(--sec);
    position: relative;
    overflow: hidden;
}
.sec--b { border-top: 1px solid var(--c-line); }

/* Typografie */
.h-xl, .h-l, .h-m, .h-s {
    font-family: var(--ff);
    font-weight: 500;
    color: var(--c-head, var(--fg-1));
    margin: 0;
}
.h-xl {
    font-size: var(--fs-xl);
    line-height: 0.98;
    letter-spacing: -0.04em;
}
.h-l {
    font-size: var(--fs-l);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.h-m {
    font-size: var(--fs-m);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.h-s {
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.dim { color: var(--c-muted); }
.t-dark .h-xl .dim, .t-dark .h-l .dim, .hero .dim { color: #7E8481; }
.lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--c-text);
    max-width: 60ch;
}
.prose p { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--c-muted); }
.acc-text { color: var(--c-acc); }
.lbl {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    line-height: 1.4;
}
.lbl__n { color: var(--c-acc); }
.mono {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.02em;
}

/* Voorbeeld-markering voor fictieve content */
.vb {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--ff-mono);
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 5px 2px;
    border: 1px dashed currentColor;
    opacity: 0.6;
    margin-left: 0.5em;
    white-space: nowrap;
    font-style: normal;
    color: inherit;
}
.vb--img {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    margin: 0;
    opacity: 1;
    color: #fff;
    background: rgba(13, 14, 14, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}
.icon {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon--sm {
    width: 18px;
    height: 18px;
}
.icon--xs {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-left: 0.25rem;
}

/* Parallellogram-tag, afgeleid van het nl-label in het logo */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 11px 3px 14px;
    font-family: var(--ff-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.3;
    background: var(--accent);
    color: var(--ink);
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%);
    white-space: nowrap;
}
.tag--dim {
    background: var(--c-line-2);
    color: var(--c-head);
}
.tag--warn {
    background: var(--warn);
    color: var(--ink);
}
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    flex: none;
}
.dot--live {
    box-shadow: 0 0 0 0 rgba(20, 184, 160, 0.6);
    animation: live 2.4s ease-out infinite;
}

@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 160, 0.55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(20, 184, 160, 0); }
}

/* Hoekhaken: tl + br, zoals de haken rond 'ai' in het logo */
.ticks { position: relative; }
.ticks::before, .ticks::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    z-index: 3;
    pointer-events: none;
}
.ticks::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}
.ticks::after {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
}

/* Rasterlijnen en puntraster */
.guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.guides .container {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.guides span { border-left: 1px solid var(--c-line, var(--hair)); }
.guides span:last-child { border-right: 1px solid var(--c-line, var(--hair)); }
.dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1.3px);
    background-size: 24px 24px;
}
.t-light .dots { background-image: radial-gradient(rgba(16, 17, 17, 0.09) 1px, transparent 1.3px); }

/* Knoppen */
.btn {
    --b-bg: transparent;
    --b-fg: currentColor;
    --b-bd: var(--c-line-2, var(--hair-2));
    --b-div: var(--c-line-2, var(--hair-2));
    --b-hov: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: stretch;
    min-height: 52px;
    border: 1px solid var(--b-bd);
    background: var(--b-bg);
    color: var(--b-fg);
    font-family: var(--ff);
    font-size: 0.96875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn__t {
    display: flex;
    align-items: center;
    padding: 0 1.25rem 0 1.3rem;
}
.btn__i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border-left: 1px solid var(--b-div);
    overflow: hidden;
}
.btn__i .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.45s var(--ease-out);
}
.btn:hover { background: var(--b-hov); }
.btn:hover .btn__i .icon { transform: translateX(4px); }
.btn--primary {
    --b-bg: var(--accent);
    --b-fg: var(--ink);
    --b-bd: var(--accent);
    --b-div: rgba(16, 17, 17, 0.2);
    --b-hov: var(--accent-hi);
}
.t-light .btn--ghost { --b-hov: rgba(16, 17, 17, 0.05); }
.btn--sm {
    min-height: 42px;
    font-size: 0.875rem;
}
.btn--sm .btn__t { padding: 0 1rem; }
.btn--sm .btn__i { width: 42px; }
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--c-head);
    border-bottom: 1px solid var(--c-line-2);
    padding-bottom: 0.35rem;
    transition: border-color 0.3s, color 0.3s;
}
.link .icon {
    width: 16px;
    height: 16px;
    color: var(--c-acc);
    transition: transform 0.45s var(--ease-out);
}
.link:hover { border-color: var(--c-acc); }
.link:hover .icon { transform: translateX(4px); }

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--hh);
    color: #fff;
    --focus: var(--accent-2);
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s, border-color 0.4s;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); }
.site-header.is-scrolled::before { opacity: 1; }
.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.brand {
    display: block;
    flex: none;
}
.brand img {
    width: 148px;
    height: 35px;
    object-fit: contain;
}
.nav {
    margin-left: auto;
    display: none;
}
.nav ul {
    display: flex;
    gap: clamp(1.25rem, 1.8vw, 2.1rem);
}
.nav a {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: none; }
.menu-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.menu-toggle__bars {
    position: relative;
    width: 22px;
    height: 9px;
}
.menu-toggle__bars::before, .menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    height: 2px;
    background: currentColor;
}
.menu-toggle__bars::before {
    top: 0;
    right: 0;
}
.menu-toggle__bars::after {
    bottom: 0;
    right: 6px;
    background: var(--accent);
}

@media (width >= 1024px) {
    .nav { display: block; }
    .header__cta { display: inline-flex; }
    .menu-toggle { display: none; }
}

/* Mobiel menu */
.mmenu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s linear 0.4s;
    --focus: var(--accent-2);
}
.mmenu[open] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s, visibility 0s;
}
.mmenu__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
}
.mmenu > * { position: relative; }
.mmenu__top {
    height: var(--hh);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    border-bottom: 1px solid var(--hair);
}
.mmenu__close {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mmenu__nav {
    flex: 1;
    overflow: auto;
    padding-top: 1.5rem;
}
.mmenu__nav li {
    border-bottom: 1px solid var(--hair);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mmenu[open] .mmenu__nav li {
    opacity: 1;
    transform: none;
    transition-delay: calc(80ms + var(--i, 0)*45ms);
}
.mmenu__nav a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.mmenu__nav a[aria-current="page"] span { color: var(--accent); }
.mmenu__nav small {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    color: var(--fg-3);
}
.mmenu__foot {
    flex: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}
.mmenu__foot .btn {
    width: 100%;
    justify-content: space-between;
}
.mmenu__meta {
    font-size: var(--fs-sm);
    color: var(--fg-3);
}
body.menu-open { overflow: hidden; }

/* Netwerk-canvas */
.net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.net--hero {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 62%);
}
.net--head {
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
    opacity: 0.9;
}

/* Hero (home) */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #000;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    --c-line: rgba(255, 255, 255, 0.08);
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img, .hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: grayscale(0.9) contrast(1.1) brightness(0.62);
}
.hero__media video {
    opacity: 0;
    transition: opacity 1.2s;
}
.hero__media video.is-playing { opacity: 1; }
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(13, 14, 14, 0.92) 0%, rgba(13, 14, 14, 0.7) 38%, rgba(13, 14, 14, 0.25) 75%), linear-gradient(0deg, rgba(13, 14, 14, 0.95) 0%, rgba(13, 14, 14, 0) 45%), linear-gradient(180deg, rgba(13, 14, 14, 0.6) 0%, rgba(13, 14, 14, 0) 22%);
}
.hero__dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.6;
}
.hero .guides { z-index: 0; }
.hero__inner {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--hh) + 3rem);
    padding-bottom: clamp(2rem, 4vh, 3rem);
    row-gap: 2.5rem;
    align-items: end;
}
.hero__eyebrow { color: rgba(255, 255, 255, 0.8); }
.hero__title {
    margin-top: 1.5rem;
    color: #fff;
    max-width: 16ch;
}
.hero__lead {
    margin-top: 1.75rem;
    max-width: 44ch;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
}
.hero__btns {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero__btns .btn--ghost {
    --b-bd: rgba(255, 255, 255, 0.35);
    --b-div: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.hud {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(13, 14, 14, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hud__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hud__bar .lbl { color: rgba(255, 255, 255, 0.7); }
.hud li {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: var(--fs-sm);
    color: #fff;
}
.hud li:last-child { border-bottom: 0; }
.hud li .mono { color: var(--accent); }
.hero__foot {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}
.trust {
    display: flex;
    flex-wrap: wrap;
}
.trust li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem 1rem 0;
    margin-right: 1.5rem;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.84);
}
.trust .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}
.hero__tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
}
.vtoggle, .scrollcue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.vtoggle:hover, .scrollcue:hover { color: #fff; }
.scrollcue__bar {
    position: relative;
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.scrollcue__bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 45%;
    background: var(--accent);
    animation: cue 2.2s var(--ease-out) infinite;
}

@keyframes cue {
    0% { transform: translateY(-100%); }
    70%, 100% { transform: translateY(230%); }
}
.hud-wrap { display: none; }

@media (width >= 1024px) {
    .hero__main { grid-column: 1/8; }
    .hud-wrap {
        display: block;
        grid-column: 9/-1;
    }
}

@media (width <= 768px) {
    .hero__shade { background: linear-gradient(0deg, rgba(13, 14, 14, 0.96) 0%, rgba(13, 14, 14, 0.72) 55%, rgba(13, 14, 14, 0.55) 100%); }
    .hero__btns .btn {
        width: 100%;
        justify-content: space-between;
    }
    .trust {
        flex-direction: column;
        padding-top: 0.75rem;
    }
    .trust li { padding: 0.3rem 0; }
    .hero__tools {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.75rem;
    }
}

/* Paginakop (subpagina's) */
.phead {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: calc(var(--hh) + clamp(3rem, 7vw, 6rem));
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--hair);
}
.phead__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.phead__inner {
    position: relative;
    z-index: 2;
}
.crumbs {
    display: flex;
    gap: 0.6rem;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--fg-2); }
.phead__lbl { margin-top: 2.5rem; }
.phead__title {
    margin-top: 1.25rem;
    max-width: 17ch;
}
.phead__intro {
    margin-top: 1.75rem;
    max-width: 56ch;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--fg-2);
}
.hfacts {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--hair-2);
}
.hfact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--hair);
}
.hfact__k {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.hfact__v {
    color: #fff;
    font-weight: 400;
}

@media (width > 768px) {
    .hfacts {
        grid-template-columns: repeat(3, 1fr);
        border-bottom: 1px solid var(--hair);
    }
    .hfact {
        border-bottom: 0;
        padding: 1.1rem 1.25rem 1.1rem 0;
    }
    .hfact + .hfact {
        border-left: 1px solid var(--hair);
        padding-left: 1.25rem;
    }
}

/* Sectiekop */
.shead {
    row-gap: 1.25rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}
.shead .lead { margin-top: 0.25rem; }
.shead__link { align-self: end; }

@media (width >= 1024px) {
    .shead > .lbl {
        grid-column: 1/4;
        padding-top: 0.85rem;
    }
    .shead > .h-l { grid-column: 4/11; }
    .shead > .lead { grid-column: 4/10; }
    .shead--link > .h-l { grid-column: 4/10; }
    .shead__link {
        grid-column: 10/-1;
        justify-self: end;
    }
}

/* Panelen, tabellen */
.panel {
    border: 1px solid var(--c-line-2);
    background: var(--c-panel);
}
.panel__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-line);
}
.panel__bar .lbl { gap: 0.55rem; }
.kv div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-sm);
}
.kv div:last-child { border-bottom: 0; }
.kv dt {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    padding-top: 0.2rem;
}
.kv dd { color: var(--c-head); }
.tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    min-width: 640px;
}
.tbl th {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--c-line-2);
}
.tbl td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-text);
    vertical-align: top;
}
.tbl td:first-child {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-acc);
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl .strong {
    color: var(--c-head);
    font-weight: 400;
}
.bar {
    position: relative;
    height: 4px;
    background: var(--c-line-2);
    margin-top: 0.5rem;
    max-width: 140px;
}
.bar i {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out) 0.2s;
}
.is-in .bar i { transform: scaleX(1); }

/* Celraster (kansen/risico's/features) */
.cells {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--c-line-2);
    border-left: 1px solid var(--c-line);
}
.cell {
    position: relative;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    transition: background-color 0.35s;
}
.cell:hover { background: var(--c-panel); }
.cell__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}
.cell__ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-line-2);
    color: var(--c-acc);
}
.cell__n {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    color: var(--c-muted);
}
.cell h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--c-head);
}
.cell p {
    margin-top: 0.6rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
}
.cell__do {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--c-line-2);
    font-size: var(--fs-sm);
    color: var(--c-text);
}
.cell__do b {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-acc);
    margin-bottom: 0.35rem;
}
.cell::after {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out);
}
.cell:hover::after { width: calc(100% + 1px); }

@media (width >= 576px) {
    .cells--2, .cells--3, .cells--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (width >= 1024px) {
    .cells--3 { grid-template-columns: repeat(3, 1fr); }
    .cells--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Home: situatie */
.situ__body {
    row-gap: 3rem;
    align-items: start;
}
.situ__fig { aspect-ratio: 4/5; }
.quotes { border-top: 1px solid var(--c-line-2); }
.quotes li {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--c-line);
}
.quotes__n {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    color: var(--c-acc);
    padding-top: 0.45rem;
}
.quotes q {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--c-head);
    quotes: "“" "”";
}
.situ__close {
    margin-top: 2rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-left: 2px solid var(--accent);
    background: var(--c-panel);
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--c-head);
    max-width: 44ch;
}

@media (width >= 1024px) {
    .situ__intro { grid-column: 4/10; }
    .situ__fig { grid-column: 1/6; }
    .situ__list { grid-column: 7/-1; }
}

/* Home: kansen vs risico's */
.vs {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--c-line-2);
}
.vs__col { padding: clamp(1.5rem, 3vw, 2.5rem); }
.vs__col + .vs__col { border-top: 1px solid var(--c-line-2); }
.vs__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--c-line-2);
}
.vs__head h3 {
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--c-head);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.vs__list li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--c-line);
}
.vs__list .mono {
    color: var(--c-acc);
    padding-top: 0.2rem;
}
.vs__list b {
    display: block;
    font-weight: 500;
    color: var(--c-head);
}
.vs__list span {
    color: var(--c-muted);
    font-size: var(--fs-sm);
}
.vs__col .link { margin-top: 1.5rem; }
.vs__col--risk .vs__head h3 .dot { background: var(--warn); }

@media (width >= 1024px) {
    .vs { grid-template-columns: 1fr 1fr; }
    .vs__col + .vs__col {
        border-top: 0;
        border-left: 1px solid var(--c-line-2);
    }
}

/* Pipeline (werkwijze) */
.pipe {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.pipe__step {
    position: relative;
    padding: 0 0 2.5rem 3.25rem;
}
.pipe__step::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 0;
    width: 1px;
    background: var(--c-line-2);
}
.pipe__step:last-child::before { display: none; }
.pipe__node {
    position: absolute;
    left: 0;
    top: 0;
    width: 23px;
    height: 23px;
    border: 1px solid var(--c-line-2);
    background: var(--c-bg);
    display: grid;
    place-items: center;
}
.pipe__node::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.5s var(--ease-out) 0.3s;
}
.pipe__step.is-in .pipe__node::after { transform: scale(1); }
.pipe__fill {
    position: absolute;
    left: 11px;
    top: 26px;
    width: 1px;
    bottom: 0;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.1s var(--ease-out) 0.2s;
}
.pipe__step.is-in .pipe__fill { transform: scaleY(1); }
.pipe__step:last-child .pipe__fill { display: none; }
.pipe__n {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    color: var(--c-acc);
}
.pipe__title {
    margin-top: 0.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--c-head);
}
.pipe__text {
    margin-top: 0.6rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    max-width: 46ch;
}
.pipe__meta {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

@media (width >= 1024px) {
    .pipe {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--col-gap);
    }
    .pipe__step { padding: 3.25rem 1.5rem 0 0; }
    .pipe__step::before {
        left: 26px;
        right: calc(-1 * var(--col-gap));
        top: 11px;
        bottom: auto;
        width: auto;
        height: 1px;
    }
    .pipe__fill {
        left: 26px;
        right: calc(-1 * var(--col-gap));
        top: 11px;
        bottom: auto;
        width: auto;
        height: 1px;
        transform-origin: left;
        transform: scaleX(0);
    }
    .pipe__step.is-in .pipe__fill { transform: scaleX(1); }
    .pipe__step:last-child::before, .pipe__step:last-child .pipe__fill {
        display: block;
        right: 0;
    }
}
.sec__foot {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-line);
}
.sec__foot p {
    color: var(--c-muted);
    max-width: 56ch;
}

/* Specialisten */
.pcards { row-gap: 3rem; }
.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-line-2);
    background: var(--c-panel);
}
.pcard__media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-3);
}
.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
    transition: filter 0.6s, transform 0.9s var(--ease-out);
}
.pcard__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--c-line);
    border-top: 1px solid var(--c-line-2);
}
.pcard__body {
    padding: 1.25rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pcard__name {
    font-size: 1.625rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--c-head);
}
.pcard__name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
}
.pcard__sector { margin-top: 0.75rem; }
.pcard .kv {
    margin: 1.25rem -1rem 0;
    border-top: 1px solid var(--c-line);
}
.pcard__quote {
    margin-top: 1.25rem;
    font-size: var(--fs-sm);
    color: var(--c-text);
    line-height: 1.55;
}
.pcard__more {
    margin-top: auto;
    padding-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--c-head);
}
.pcard__more .icon {
    width: 16px;
    height: 16px;
    color: var(--c-acc);
    transition: transform 0.45s var(--ease-out);
}
.pcard:hover .pcard__media img, .pcard:focus-within .pcard__media img {
    filter: grayscale(0) contrast(1.02);
    transform: scale(1.03);
}
.pcard:hover .pcard__more .icon { transform: translateX(4px); }
.pcard:has(a:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}
.pcard__name a:focus-visible { outline: none; }

@media (width > 768px) {
    .pcard { grid-column: span 6; }
}

@media (width >= 1024px) {
    .pcard { grid-column: span 4; }
}

/* Tegels (voorbeelden) */
.tiles { row-gap: var(--col-gap); }
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-line-2);
    background: var(--c-panel);
}
.tile__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-3);
}
.tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(0.85);
    transition: filter 0.6s, transform 0.9s var(--ease-out);
}
.tile__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tile__sector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.tile__sector .icon {
    width: 18px;
    height: 18px;
    color: var(--c-acc);
}
.tile h3 {
    margin-top: 1rem;
    font-size: 1.3125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--c-head);
}
.tile p {
    margin-top: 0.6rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
}
.tile__split {
    margin-top: auto;
    padding-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: var(--fs-xs);
}
.tile__split div {
    border-top: 1px solid var(--c-line);
    padding-top: 0.75rem;
}
.tile__split b {
    display: block;
    font-family: var(--ff-mono);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-acc);
    margin-bottom: 0.3rem;
}
.tile__split span { color: var(--c-text); }
.tile a.tile__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
}
.tile:hover .tile__media img {
    filter: grayscale(0) contrast(1.02) brightness(0.95);
    transform: scale(1.03);
}
.tile:has(a:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

@media (width > 768px) {
    .tile { grid-column: span 6; }
}

@media (width >= 1024px) {
    .tile { grid-column: span 4; }
}

/* Resultaten */
.rstats {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--c-line-2);
    border-left: 1px solid var(--c-line);
}
.rstat {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.rstat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rstat__val {
    margin-top: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--c-head);
}
.rstat__unit {
    font-family: var(--ff-mono);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--c-acc);
    text-transform: uppercase;
}
.rstat__viz {
    margin-top: 1.75rem;
    display: flex;
    gap: 4px;
    height: 10px;
}
.rstat__viz i {
    flex: 1;
    background: var(--c-line-2);
    transition: background-color 0.4s;
    transition-delay: calc(var(--k)*70ms + 0.2s);
}
.is-in .rstat__viz i.on { background: var(--accent); }
.rstat__track {
    margin-top: 1.75rem;
    height: 10px;
    background: var(--c-line-2);
    position: relative;
}
.rstat__track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 31%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-out) 0.2s;
}
.is-in .rstat__track i { transform: scaleX(1); }
.rstat__text {
    margin-top: 1.25rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    max-width: 34ch;
}

@media (width >= 1024px) {
    .rstats { grid-template-columns: repeat(3, 1fr); }
}

/* Testimonial */
.testi {
    row-gap: 2.5rem;
    align-items: center;
}
.testi__media {
    aspect-ratio: 4/5;
    max-width: 460px;
    overflow: hidden;
    background: var(--bg-3);
}
.testi__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}
.testi__q {
    font-size: clamp(1.625rem, 1.1rem + 2vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--c-head);
    max-width: 26ch;
}
.testi__q::before {
    content: "“";
    display: block;
    font-size: 4rem;
    line-height: 0.8;
    height: 0.45em;
    color: var(--c-acc);
    font-weight: 500;
}
.testi__cite {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--c-line-2);
    font-style: normal;
    max-width: 38rem;
}
.testi__name {
    font-weight: 500;
    color: var(--c-head);
}
.testi__role {
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

@media (width >= 1024px) {
    .testi__media { grid-column: 1/6; }
    .testi__body { grid-column: 7/-1; }
}

/* Faq */
.faq-grid { row-gap: 2.5rem; }
.faq__aside p {
    margin-top: 1.25rem;
    color: var(--c-muted);
    max-width: 34ch;
}
.faq__aside .link { margin-top: 1.5rem; }
.acc { border-top: 1px solid var(--c-line-2); }
.acc__item { border-bottom: 1px solid var(--c-line); }
.acc__btn {
    width: 100%;
    display: grid;
    grid-template-columns: 2.75rem 1fr 32px;
    gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1.25rem 0;
    min-height: 44px;
}
.acc__n {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    color: var(--c-acc);
}
.acc__q {
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--c-head);
    transition: color 0.25s;
}
.acc__icon {
    position: relative;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-line-2);
    justify-self: end;
    transition: background-color 0.3s, border-color 0.3s;
}
.acc__icon::before, .acc__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    margin: -0.75px 0 0 -6px;
    background: currentColor;
    transition: transform 0.4s var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__btn:hover .acc__q { color: var(--c-acc); }
.acc__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.45s var(--ease-out);
}
.js .acc__panel { grid-template-rows: 0fr; }
.js .acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
    padding: 0 3rem 1.5rem 3.75rem;
    max-width: 68ch;
    color: var(--c-text);
    font-size: var(--fs-sm);
}

@media (width < 576px) {
    .acc__btn {
        grid-template-columns: 2rem 1fr 32px;
        gap: 0.75rem;
    }
    .acc__panel p { padding: 0 0 1.5rem 2.75rem; }
}

@media (width >= 1024px) {
    .faq__aside { grid-column: 1/5; }
    .acc { grid-column: 6/-1; }
}

/* Cta */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(5rem, 4rem + 6vw, 9rem);
    border-top: 1px solid var(--hair);
}
.cta__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(0.5);
}
.cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 14, 14, 0.96) 0%, rgba(13, 14, 14, 0.82) 50%, rgba(13, 14, 14, 0.6) 100%);
}
.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.6;
}
.cta .container { z-index: 1; }
.cta__grid {
    row-gap: 2.5rem;
    align-items: end;
}
.cta__title {
    margin-top: 1.25rem;
    max-width: 16ch;
}
.cta__text {
    margin-top: 1.5rem;
    max-width: 48ch;
    font-size: var(--fs-lead);
    line-height: 1.55;
}
.cta__btns { margin-top: 2rem; }
.cta__panel {
    background: rgba(13, 14, 14, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (width >= 1024px) {
    .cta__main { grid-column: 1/8; }
    .cta__panel { grid-column: 9/-1; }
}

@media (width <= 768px) {
    .cta__btns .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Footer */
.footer {
    position: relative;
    background: #090A0A;
    --c-bg: #090A0A;
    padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hair);
}
.footer .container { z-index: 1; }
.footer__top {
    row-gap: 3rem;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--hair);
}
.footer__brand img {
    width: 180px;
    height: auto;
}
.footer__claim {
    margin-top: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: #fff;
    max-width: 30ch;
}
.footer__status {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.news p {
    margin-top: 0.75rem;
    max-width: 44ch;
}
.news__form {
    margin-top: 1.5rem;
    display: flex;
    border: 1px solid var(--hair-2);
    transition: border-color 0.3s;
}
.news__form:focus-within { border-color: var(--accent); }
.news__form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    padding: 0.9rem 1rem;
}
.news__form input::placeholder { color: #8F9491; }
.news__form input:focus { outline: none; }
.news__form button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.1rem;
    min-height: 48px;
    font-weight: 500;
    background: var(--accent);
    color: var(--ink);
}
.news__form button:hover { background: var(--accent-hi); }
.news__msg {
    margin-top: 0.75rem;
    font-size: var(--fs-sm);
    color: var(--accent-2);
    min-height: 1.5em;
}
.footer__cols {
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
    row-gap: 2.25rem;
}
.footer__cols .lbl { margin-bottom: 1.1rem; }
.footer__cols li + li { margin-top: 0.55rem; }
.footer__cols li, .footer__cols address {
    font-size: var(--fs-sm);
    color: var(--fg-2);
    font-style: normal;
    line-height: 1.7;
}
.footer__cols a:hover { color: var(--accent-2); }
.footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--hair);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--fg-3);
}
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}
.footer__legal a:hover { color: #fff; }

@media (width >= 576px) {
    .footer__cols > div { grid-column: span 6; }
}

@media (width >= 1024px) {
    .footer__brand { grid-column: 1/7; }
    .news { grid-column: 8/-1; }
    .footer__cols > div { grid-column: span 3; }
    .footer__cols > .footer__nav { grid-column: span 6; }
}
.footer__nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    gap: 0.55rem 1.5rem;
}
.footer__cols .footer__nav li + li { margin-top: 0; }
.sects--3 { border-left: 1px solid var(--c-line); }

@media (width >= 1024px) {
    .sects--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Sticky cta mobiel */
.sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.5s var(--ease-out);
}
.sticky-cta .btn {
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}
.sticky-cta.is-visible { transform: none; }

@media (width >= 1024px) {
    .sticky-cta { display: none; }
}

/* Formulier (contact) */
.form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.field label, .field legend {
    font-family: var(--ff-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--hair-2);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.85rem 1rem;
    border-radius: 0;
    transition: border-color 0.25s, background-color 0.25s;
}
.field textarea {
    min-height: 140px;
    resize: vertical;
}
.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #C5C9C6 50%), linear-gradient(135deg, #C5C9C6 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
}
.field input::placeholder, .field textarea::placeholder { color: #7C817E; }
.field [aria-invalid="true"] { border-color: var(--warn); }
fieldset.field {
    border: 0;
    padding: 0;
    margin: 0;
}
.choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.choice label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--hair-2);
    font-family: var(--ff);
    font-size: var(--fs-sm);
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg-2);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.choice input:checked + span { color: var(--ink); }
.choice label:has(input:checked) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}
.choice label:has(input:focus-visible) {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
.form__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
}
.form__note {
    font-size: var(--fs-xs);
    color: var(--fg-3);
    max-width: 40ch;
}
.form__msg {
    grid-column: 1/-1;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent);
    background: var(--bg-2);
    color: #fff;
}

@media (width > 768px) {
    .form { grid-template-columns: 1fr 1fr; }
    .field--full, .form__foot, fieldset.field { grid-column: 1/-1; }
}

/* Cases (voorbeelden) */
.cases2 {
    display: grid;
    gap: clamp(3rem, 6vw, 5rem);
}
.case2 {
    row-gap: 1.75rem;
    align-items: center;
}
.case2__media { aspect-ratio: 3/2; }
.case2__kv {
    margin-top: 1.5rem;
    border-top: 1px solid var(--c-line-2);
}
.case2__kv div { padding-inline: 0; }

@media (width >= 1024px) {
    .case2__media { grid-column: 1/7; }
    .case2__body { grid-column: 8/-1; }
    .case2:nth-child(even) .case2__media {
        grid-column: 7/-1;
        grid-row: 1;
    }
    .case2:nth-child(even) .case2__body {
        grid-column: 1/6;
        grid-row: 1;
    }
}

/* Werkwijze-stappen */
.wsteps { border-top: 1px solid var(--c-line-2); }
.wstep {
    position: relative;
    row-gap: 1.25rem;
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--c-line);
}
.wstep::after {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out) 0.1s;
}
.wstep.is-in::after { transform: scaleX(1); }
.wstep__n {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.wstep__num {
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: var(--c-head);
}
.wstep__kv {
    border: 1px solid var(--c-line);
    background: var(--c-panel);
}

@media (width >= 1024px) {
    .wstep__n {
        grid-column: 1/3;
        flex-direction: column;
        gap: 0.5rem;
    }
    .wstep__main { grid-column: 3/8; }
    .wstep__kv {
        grid-column: 8/-1;
        align-self: start;
    }
}

/* Sectoren */
.sects {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--c-line-2);
    border-left: 1px solid var(--c-line);
}
.sect {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    color: var(--c-head);
    transition: background-color 0.3s;
}
.sect:hover { background: var(--c-panel); }
.sect .icon { color: var(--c-acc); }
.sect .mono { min-width: 2.75rem; }

@media (width >= 576px) {
    .sects { grid-template-columns: repeat(2, 1fr); }
}

@media (width >= 1024px) {
    .sects { grid-template-columns: repeat(4, 1fr); }
}

@media (width >= 1024px) {
    .pipe--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Contact */
.contact {
    row-gap: 3rem;
    align-items: start;
}
.expect li {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-sm);
    color: var(--c-text);
}
.expect li:last-child { border-bottom: 0; }

@media (width >= 1024px) {
    .contact__form { grid-column: 1/8; }
    .contact__side {
        grid-column: 9/-1;
        position: sticky;
        top: calc(var(--hh) + 1.5rem);
    }
}

/* Reveal */
.js [data-rise] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: calc(var(--d, 0)*80ms);
}
.js [data-rise].is-in {
    opacity: 1;
    transform: none;
}
.js [data-lines] .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}
.js [data-lines] .line > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform var(--dur) var(--ease-out);
    transition-delay: calc(var(--i, 0)*90ms);
}
.js [data-lines].is-in .line > span { transform: none; }
[data-lines] .line { display: block; }

@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;
        transition-delay: 0ms!important;
    }
    .hero__media video { display: none; }
    .js [data-rise], .js [data-lines] .line > span {
        opacity: 1;
        transform: none;
    }
}

/* Where the starter meets the design ----------------------------------------------------
   The design's markup sits on missing and the starter's rules; where one of those wins over a
   design class by its weight, the rule below restates the design's value with just enough
   weight. Each names the starter rule it answers. */

/* The starter's flow and text widths: the design spaces its bands and caps its lines itself. */
:where(main.bands, main.bands section, main.bands article, main.bands fieldset) > * + * { margin-block-start: 0; }
.site-header, .footer, .mmenu { --link-hover: var(--fg-1); }
.t-light { --link-hover: var(--ink); }

/* "body > header": the design's bar is fixed, one row inside its own container. */
body > .site-header {
    display: block;
    margin: 0;
    padding: 0;
    gap: 0;
    font-family: inherit;
}
.site-header .nav a:not(.\<button\>) {
    display: block;
    min-block-size: 0;
    padding: 0.5rem 0;
    border-radius: 0;
    white-space: nowrap;
    color: rgb(255 255 255 / 0.86);
    background: none;
    &:is(:hover, [aria-current="page"]) {
        color: #fff;
        background: none;
    }
}

/* The folded menu is the starter's <dialog class="drawer">, drawn full screen as in the design. */
.mmenu:not([open]) { display: none; }
.mmenu[open] {
    inline-size: 100%;
    block-size: 100dvh;
    max-block-size: none;
    background: var(--bg);
    pointer-events: auto;
}
.mmenu > .mmenu__top { display: flex; }
.mmenu__top img {
    inline-size: 148px;
    block-size: 35px;
}
.mmenu .mmenu__nav ul {
    display: block;
    margin: 0;
}
.mmenu .mmenu__nav a:not(.\<button\>) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-block-size: 0;
    padding: 0.95rem 0;
    border-radius: 0;
    color: inherit;
    white-space: normal;
    &:is(:hover, [aria-current="page"]) {
        color: inherit;
        background: none;
    }
}
@starting-style {
    .mmenu[open] { opacity: 0; }
    .mmenu[open] .mmenu__nav li {
        opacity: 0;
        transform: translateX(-12px);
    }
}
html:has(.mmenu[open]) { overflow: hidden; }

/* "body > footer": the design's sizes and link rows. */
body > .footer {
    margin-block-start: 0;
    padding-inline: 0;
    font-size: inherit;
    line-height: inherit;
}
.footer .news p { color: var(--c-text); }
.footer .news .lbl { margin: 0; }
.footer li a {
    display: inline;
    min-block-size: 0;
}

/* Links: no underline on hover anywhere (the design marks links by colour and lines), over the
   starter's underline for links in headings, header and footer. */
html body :is(header, main, footer, dialog) a:not(.\<button\>):hover { text-decoration: none; }
a.acc-text:hover { color: var(--c-acc); }

/* Buttons: a .btn link carries missing's <button> class (FRONTEND.md, "Controls and buttons");
   the design's own padding, alignment and hover. */
.btn {
    justify-content: normal;
    padding: 0;
    line-height: inherit;
}
:is(a, button).btn:hover { background: var(--b-hov); }
button {
    justify-content: normal;
    min-block-size: 0;
    padding: 0;
    font-weight: inherit;
    white-space: normal;
}
button:is(.acc__btn, .menu-toggle, .mmenu__close, .vtoggle, .footer__consent):hover { background: none; }
.news__form button { white-space: nowrap; }

/* Titles in a list: the starter sizes a title in a list item as text. */
.cells .cell h3 { font-size: 1.25rem; }
.pipe .pipe__step > .pipe__title { font-size: 1.17em; }

/* The hero: the starter's hero size and its stacked first column. */
.hero .hero__title { font-size: var(--fs-xl); }
.hero > .hero__media > * { margin: 0; }

/* Headings outside the design's classes keep the browser's size, weight and the text's leading. */
h1, h2, h3 {
    font-weight: bold;
    line-height: inherit;
    color: inherit;
    text-wrap: wrap;
}
h3 { font-size: 1.17em; }
p, h1, h2 { max-inline-size: none; }
small, figcaption { line-height: inherit; }
figure {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
label, legend, dt { font-weight: inherit; }
/* missing sets an aside as a smaller side note and pads labels; the design's are plain. */
aside {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    line-height: inherit;
}
.field > :is(label, legend) {
    margin: 0;
    padding: 0;
}

/* Forms: the starter's form grid and field height, the design's columns and padding. */
form.form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    > .field { grid-column: auto; }
    > :is(.field--full, .form__foot, fieldset.field, .form__msg, .form__required, .captcha) { grid-column: 1 / -1; }
}
@media (width > 768px) {
    form.form { grid-template-columns: 1fr 1fr; }
}
/* The starter's form rule also sets align-items: start; the design's button fills the row's height. */
form.news__form {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.field :is(input, select), .news__form input {
    block-size: auto;
    line-height: inherit;
}
/* The starter's select rule weighs (0,2,1): the design's padding again, at that weight. */
.field select:not([multiple], [size]) {
    block-size: auto;
    padding: 0.85rem 1rem;
    line-height: inherit;
}
.field :is(input, textarea)::placeholder { text-align: start; }
.tbl tr + tr { border-block-start: 0; }

/* Additions ------------------------------------------------------------------------------- */

/* A photo is a <picture> with a WebP source ({% photo %}); the box styles stay on the <img>. */
picture { display: contents; }

/* The design's reveal delays, as data attributes: the strict CSP allows no style attribute. */
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
[data-d="3"] { --d: 3; }
[data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; }
[data-k="1"] { --k: 1; }
[data-k="2"] { --k: 2; }
[data-k="3"] { --k: 3; }
[data-k="4"] { --k: 4; }
[data-k="5"] { --k: 5; }
[data-k="6"] { --k: 6; }
[data-k="7"] { --k: 7; }
[data-k="8"] { --k: 8; }
[data-k="9"] { --k: 9; }
[data-k] { --k: 0; }
.mmenu[open] .mmenu__nav li { transition-delay: calc(80ms + var(--i, 0) * 45ms); }
[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }

/* The design's one-off spacings, as classes for the same reason. */
.mt-xs { margin-top: 0.5rem; }
.mt-s { margin-top: 0.75rem; }
.mt-m { margin-top: 1rem; }
.mt-l { margin-top: 1.25rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 2.5rem; }
.mb-s { margin-bottom: 0.75rem; }
.w-full { width: 100%; }
.mw-56ch { max-width: 56ch; }
@media (width >= 1024px) {
    .shead > .col-4-11 { grid-column: 4 / 11; }
}

/* Form feedback, in the design's message style: a line at its start, warn for an error. */
.form__required {
    font-size: var(--fs-xs);
    color: var(--c-muted);
}
/* Above its field, as the starter's field.html has it, so fields in a row stay level. */
.field__error {
    font-size: var(--fs-sm);
    color: var(--warn);
}
.form__msg--bad { border-left-color: var(--warn); }
.news__msg--bad { color: var(--warn); }
.captcha:empty { display: none; }
.captcha { margin-top: 0.75rem; }

/* The cookie choice for Google Analytics: a panel at the foot of the screen, over the sticky
   call to action, in the design's panel style. */
.consent {
    position: fixed;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom));
    z-index: 160;
    max-inline-size: 30rem;
    --c-line: var(--hair);
    --c-line-2: var(--hair-2);
    --c-panel: var(--bg-2);
    background: var(--bg-2);
    color: var(--fg-2);
    box-shadow: var(--shadow-overlay);
}
.consent > * { margin: 0; }    /* outside main, so the starter's section flow would space it */
.consent__body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    font-size: var(--fs-sm);
}
.consent__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.consent .btn--ghost { color: var(--fg-1); }
.footer__consent:hover { color: #fff; }
@media (width >= 576px) {
    .consent { inset-inline: auto 24px; }
}

/* A page with only a head (thanks, errors). */
.phead--short {
    min-block-size: 70vh;
    border-bottom: 0;
}
.phead__btns { margin-top: 2rem; }

/* The legal pages: running text on a light band, in the design's type, with room between articles. */
.legal { max-width: 72ch; }
.legal .h-m { margin-top: 2.5rem; }
.legal .h-m:first-child { margin-top: 0; }
.legal .h-s { margin-top: 1.5rem; }
.legal p, .legal ul, .legal ol { margin-top: 0.75rem; line-height: 1.6; }
/* The design drops list markers; here they stay, so a clause can be cited by its number. */
.legal ul, .legal ol { padding-left: 1.5rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li::marker { color: var(--c-muted); }
.legal li + li { margin-top: 0.5rem; }
.legal a { text-decoration: underline; }

/* On paper: every revealed block shows, and what floats stays off. */
@media print {
    .js [data-rise], .js [data-lines] .line > span {
        opacity: 1;
        transform: none;
    }
    .sticky-cta, .consent, .net, .hero__media video { display: none; }
}
