/* ==========================================================================
   NoudeX — design system "Papier & Inkt"
   Licht & editorial: warm papier, inktzwarte typografie, kobalt als enig
   accent. Instrument Serif (display) + Instrument Sans (tekst/UI).
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    --paper: #f6f1e9;
    --paper-raised: #fbf8f2;
    --ink: #1a1611;
    --ink-soft: rgba(26, 22, 17, 0.72);
    --ink-faint: rgba(26, 22, 17, 0.64);
    --line: rgba(26, 22, 17, 0.16);
    --line-strong: rgba(26, 22, 17, 0.32);
    --cobalt: #1f3ad1;
    --cobalt-deep: #16289b;
    --ok: #256d46;
    --error: #a83232;

    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-gap: clamp(5rem, 11vw, 9rem);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* De hero-glow steekt bewust buiten zijn kader; voorkom dat dit
   horizontale scroll oplevert (clip laat sticky-gedrag intact). */
html,
body {
    overflow-x: clip;
}

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    /* Warm papier met heel subtiele vlekken licht — géén orbs of gradiëntshow */
    background-image:
        radial-gradient(1100px 500px at 85% -5%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(900px 480px at -10% 30%, rgba(255, 255, 255, 0.4), transparent 55%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--cobalt);
    color: var(--paper);
}

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 200;
    padding: 0.7rem 1.2rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-weight: 600;
    transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Typografische bouwstenen ---------- */
.display,
h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.kicker {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.kicker .index {
    color: var(--cobalt);
    font-variant-numeric: tabular-nums;
}

.lede {
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 34em;
}

em,
.accent-i {
    font-style: italic;
}

.u-cobalt {
    color: var(--cobalt);
}

/* Links in lopende tekst: hairline onderstreping die aandikt */
.text-link {
    color: var(--cobalt);
    font-weight: 600;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.25s var(--ease-out);
    padding-bottom: 2px;
}
.text-link:hover {
    background-size: 100% 2px;
}

/* ---------- Knoppen ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.1rem;
    padding: 0.35rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
        color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.btn svg {
    transition: transform 0.25s var(--ease-out);
}
.btn:hover svg {
    transform: translateX(3px);
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
}
.btn-primary:hover {
    background: var(--cobalt);
    border-color: var(--cobalt);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    border-color: var(--ink);
}

/* ---------- Navigatie ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.1rem 0;
    background: transparent;
    transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
        padding 0.3s var(--ease-out);
}
.site-header.is-scrolled {
    padding: 0.7rem 0;
    background: rgba(246, 241, 233, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.brand svg,
.brand img {
    height: 2.3rem;
    width: auto;
    flex-shrink: 0;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}
.site-nav a:not(.btn) {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.25rem 0;
}
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}
.site-nav a:not(.btn):hover {
    color: var(--ink);
}
.site-nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.site-nav .btn {
    min-height: 2.6rem;
    padding: 0.2rem 1.25rem;
    font-size: 0.9rem;
}
.nav-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    margin: 0.22rem auto;
    background: var(--ink);
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0.36rem) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-0.36rem) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(3rem, 8vw, 6.5rem) 0 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.hero h1 {
    font-size: clamp(3.4rem, 9.5vw, 7.6rem);
    max-width: 9.5ch;
}
.hero h1 .dot {
    color: var(--cobalt);
}
.hero-intro {
    margin-top: clamp(1.4rem, 2.5vw, 2rem);
    max-width: 32em;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
/* Tech-ticker: doorlopende band met specialisaties */
.ticker {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: 1.1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}
.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
}
.ticker-track span::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cobalt);
    opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
    .ticker-track {
        animation: ticker 26s linear infinite;
    }
    .ticker:hover .ticker-track {
        animation-play-state: paused;
    }
    @keyframes ticker {
        to { transform: translateX(-50%); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        flex-wrap: wrap;
        white-space: normal;
        width: auto;
    }
    .ticker-track [aria-hidden] {
        display: none;
    }
}

/* ---------- Merk-embleem in de hero (zwevend logo + ring + wordmark) ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1100px;
    position: relative;
}
.brand-emblem {
    --e: clamp(300px, 38vw, 430px);
    position: relative;
    width: var(--e);
    height: var(--e);
    display: grid;
    place-items: center;
}
.emblem-glow {
    position: absolute;
    width: calc(var(--e) * 0.62);
    height: calc(var(--e) * 0.62);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 119, 0.34), rgba(201, 138, 62, 0.12) 45%, transparent 70%);
    filter: blur(26px);
    z-index: 0;
}
.emblem-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.emblem-ring-1 {
    width: calc(var(--e) * 0.88);
    height: calc(var(--e) * 0.88);
    border: 1px solid var(--line-strong);
    z-index: 1;
}
.emblem-ring-2 {
    width: var(--e);
    height: var(--e);
    border: 1px dashed var(--line);
    z-index: 1;
}
.emblem-orbit {
    position: absolute;
    width: calc(var(--e) * 0.88);
    height: calc(var(--e) * 0.88);
    z-index: 2;
    pointer-events: none;
}
.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px;
    border-radius: 50%;
    background: #c98a3e;
    box-shadow: 0 0 8px rgba(201, 138, 62, 0.6);
    transform: rotate(var(--a)) translateY(calc(var(--e) * -0.44));
}
.orbit-dot.d1 { --a: 18deg; }
.orbit-dot.d2 { --a: 150deg; }
.orbit-dot.d3 { --a: 268deg; background: var(--cobalt); box-shadow: 0 0 8px rgba(31, 58, 209, 0.5); }
.emblem-sym {
    position: absolute;
    font-family: "SFMono-Regular", ui-monospace, "Fira Code", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
    z-index: 2;
    pointer-events: none;
}
.emblem-sym.s1 { top: 6%; right: 9%; }
.emblem-sym.s2 { bottom: 9%; left: 6%; }
.emblem-sym.s3 { top: 12%; left: 10%; }
.emblem-badge-wrap {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    margin-bottom: calc(var(--e) * 0.13);
}
.emblem-badge {
    width: calc(var(--e) * 0.36);
    height: calc(var(--e) * 0.36);
    filter: drop-shadow(0 18px 30px rgba(26, 22, 17, 0.3));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.3s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
}
.emblem-word {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(0.82rem, 1.05vw, 0.98rem);
    letter-spacing: 0.36em;
    text-indent: 0.36em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(100deg, #b47a30, #f3d197 44%, #d59a4c 60%, #b47a30 92%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
    .emblem-word { animation: wordShimmer 5s linear infinite; }
    @keyframes wordShimmer { to { background-position: 220% center; } }
    .emblem-badge-wrap { animation: emblemFloat 6s ease-in-out infinite; }
    .emblem-ring-2 { animation: emblemSpin 44s linear infinite; }
    .emblem-orbit { animation: emblemSpin 26s linear infinite; }
    .emblem-glow { animation: emblemPulse 8s ease-in-out infinite; }
    @keyframes emblemFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-12px); }
    }
    @keyframes emblemSpin { to { transform: rotate(360deg); } }
    @keyframes emblemPulse {
        0%, 100% { opacity: 0.75; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.07); }
    }
}

/* Telefoon-mockup: puur CSS-frame rond de echte screenshot, met 3D-tilt (in de Werk-sectie) */
.device {
    width: min(300px, 72vw);
    border-radius: 44px;
    padding: 11px;
    background: #10121a;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 30px 60px -18px rgba(26, 22, 17, 0.45),
        0 12px 24px -12px rgba(26, 22, 17, 0.3);
    transform: rotate(var(--tilt-base, 2.5deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease-out);
    will-change: transform;
}
.device img {
    border-radius: 34px;
}

/* Browser-mockup voor het webportaal */
.browser {
    border-radius: 14px;
    background: var(--paper-raised);
    border: 1px solid var(--line-strong);
    box-shadow: 0 28px 56px -20px rgba(26, 22, 17, 0.35);
    overflow: hidden;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--line);
}
.browser-bar i {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--line-strong);
}
.browser-bar span {
    margin-left: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
}

/* ---------- Secties ---------- */
.section {
    padding-top: var(--section-gap);
}
.section-head {
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-strong);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem 3rem;
    align-items: start;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}
.section-head .lede {
    padding-top: 0.6rem;
}

/* ---------- Werk ---------- */
.work-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.work-item + .work-item {
    border-top: 1px solid var(--line);
}
.work-item:nth-child(even) .work-media {
    order: -1;
}
.work-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.status-pill::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cobalt);
}
.work-item h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.work-item .role {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1.1rem;
}
.work-item p {
    color: var(--ink-soft);
    max-width: 30em;
}
.work-facts {
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}
.work-facts li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    font-size: 0.97rem;
    color: var(--ink-soft);
}
.work-facts li::before {
    content: "—";
    color: var(--cobalt);
    flex-shrink: 0;
}
.work-more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}
.work-more p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
}

/* ---------- Diensten (kaartenraster) ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}
.service-card {
    padding: clamp(1.6rem, 2.5vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper-raised);
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 44px -26px rgba(26, 22, 17, 0.4);
}
.service-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: rgba(31, 58, 209, 0.08);
    color: var(--cobalt);
}
.service-ico svg {
    width: 1.5rem;
    height: 1.5rem;
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--ink-soft);
    font-size: 1rem;
}

/* ---------- Werkwijze (tijdlijn) ---------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.timeline-step {
    position: relative;
    padding-top: 2.6rem;
}
/* verbindende lijn achter de nodes */
.timeline-step::after {
    content: "";
    position: absolute;
    top: 1rem;
    left: 2.2rem;
    right: -2rem;
    height: 1px;
    background: var(--line-strong);
}
.timeline-step:last-child::after {
    display: none;
}
.timeline-node {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cobalt);
    font-variant-numeric: tabular-nums;
    z-index: 1;
}
.timeline-step h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.timeline-step p {
    font-size: 0.97rem;
    color: var(--ink-soft);
}

/* ---------- Over ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.about-copy p + p {
    margin-top: 1.1rem;
}
.about-copy .signature {
    margin-top: 2rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
}
.fact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fact-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.97rem;
}
.fact-list li:last-child {
    border-bottom: 1px solid var(--line);
}
.fact-list .k {
    color: var(--ink-faint);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.fact-list .v {
    font-weight: 600;
    text-align: right;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}
.contact-aside h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
}
.contact-aside .lede {
    margin-bottom: 2rem;
}
.contact-direct {
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.4rem;
    font-size: 0.97rem;
    color: var(--ink-soft);
}

/* Formulier: editoriale onderlijn-velden */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 2rem;
}
.field {
    display: grid;
    gap: 0.45rem;
}
.field-full {
    grid-column: 1 / -1;
}
.field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.field label .req {
    color: var(--cobalt);
}
.field input,
.field select,
.field textarea {
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 0.45rem 0 0.55rem;
    border-radius: 0;
    transition: border-color 0.25s var(--ease-out);
    width: 100%;
}
.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1611' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    padding-right: 1.6rem;
}
.field textarea {
    resize: vertical;
    min-height: 6.5rem;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--cobalt);
    box-shadow: 0 1px 0 var(--cobalt);
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
    border-bottom-color: var(--error);
}
.field-error {
    display: none;
    font-size: 0.85rem;
    color: var(--error);
}
.field.is-invalid .field-error {
    display: block;
}

/* Honeypot: buiten beeld, onzichtbaar voor mensen */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    margin-top: 0.4rem;
}
.form-note {
    font-size: 0.85rem;
    color: var(--ink-faint);
    max-width: 26em;
}
.form-status {
    grid-column: 1 / -1;
    display: none;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font-size: 0.97rem;
}
.form-status.is-visible {
    display: block;
}
.form-status.is-success {
    border-color: var(--ok);
    color: var(--ok);
}
.form-status.is-error {
    border-color: var(--error);
    color: var(--error);
}
.form-status a {
    font-weight: 600;
    text-decoration: underline;
}
.btn[disabled] {
    opacity: 0.55;
    cursor: wait;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--section-gap);
    border-top: 1px solid var(--line-strong);
    padding: 2.2rem 0 2.6rem;
}
.footer-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.footer-links a:hover,
.footer-links button:hover {
    color: var(--ink);
}
.footer-links button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.footer-legal {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

/* ---------- Cookie-melding ---------- */
.cookie-card {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 150;
    width: min(24rem, calc(100vw - 2rem));
    padding: 1.3rem 1.4rem;
    background: var(--paper-raised);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(26, 22, 17, 0.35);
    font-size: 0.92rem;
    color: var(--ink-soft);
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.45s var(--ease-out);
}
.cookie-card.is-visible {
    transform: translateY(0);
}
.cookie-card .cookie-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}
.cookie-card .btn {
    min-height: 2.5rem;
    padding: 0.15rem 1.2rem;
    font-size: 0.88rem;
}

/* ---------- Juridische pagina's ---------- */
.legal-main {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 46rem;
}
.legal-main h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    margin-bottom: 0.8rem;
}
.legal-updated {
    color: var(--ink-faint);
    font-size: 0.9rem;
    margin-bottom: 2.8rem;
}
.legal-main h2 {
    font-size: 1.9rem;
    margin: 2.6rem 0 0.8rem;
}
.legal-main h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.6rem 0 0.4rem;
}
.legal-main p,
.legal-main li {
    color: var(--ink-soft);
}
.legal-main ul,
.legal-main ol {
    padding-left: 1.3rem;
    margin: 0.6rem 0 1rem;
}
.legal-main li + li {
    margin-top: 0.35rem;
}
.legal-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    font-size: 0.95rem;
}
.legal-main th,
.legal-main td {
    text-align: left;
    padding: 0.6rem 0.8rem 0.6rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.legal-main th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.back-home:hover {
    color: var(--ink);
}

/* ---------- 404 ---------- */
.notfound {
    min-height: 60vh;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 1.2rem;
    padding: 4rem 0;
}
.notfound h1 {
    font-size: clamp(5rem, 18vw, 11rem);
    color: var(--cobalt);
}

/* ---------- Reveal-animaties ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(26px);
        filter: blur(5px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out),
            filter 0.8s var(--ease-out);
    }
    .reveal.in-view {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    .reveal-2 { transition-delay: 0.08s; }
    .reveal-3 { transition-delay: 0.16s; }

    /* Hero laad-choreografie: omhoog uit onscherpte */
    .hero .rise {
        opacity: 0;
        transform: translateY(30px) scale(0.985);
        filter: blur(7px);
        animation: rise 0.95s var(--ease-out) forwards;
    }
    .hero .rise-1 { animation-delay: 0.05s; }
    .hero .rise-2 { animation-delay: 0.16s; }
    .hero .rise-3 { animation-delay: 0.3s; }
    .hero .rise-4 { animation-delay: 0.44s; }
    .hero .rise-5 { animation-delay: 0.58s; }
    @keyframes rise {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }

    [data-parallax] {
        will-change: transform;
    }
}

/* ---------- Scroll-voortgang (hairline onder de header) ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cobalt);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 120;
    pointer-events: none;
}

/* ---------- Papierkorrel (statisch, heel subtiel) ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .work-item {
        grid-template-columns: 1fr;
    }
    .work-item:nth-child(even) .work-media {
        order: 0;
    }
    .work-item .work-media {
        order: -1;
    }
    .section-head {
        grid-template-columns: 1fr;
    }
    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 2.4rem 2rem;
    }
    /* op 2 kolommen: horizontale lijn alleen tussen kolom 1->2 */
    .timeline-step:nth-child(2n)::after {
        display: none;
    }
    .hero-visual {
        justify-content: flex-start;
        padding-top: 1rem;
    }
}

@media (max-width: 720px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 0.6rem);
        left: var(--gutter);
        right: var(--gutter);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.4rem;
        padding: 1rem;
        background: var(--paper-raised);
        border: 1px solid var(--line-strong);
        border-radius: 18px;
        box-shadow: 0 24px 48px -16px rgba(26, 22, 17, 0.3);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    }
    .site-nav a:not(.btn) {
        padding: 0.55rem 0;
    }
    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-toggle {
        display: block;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    /* verticale tijdlijn op mobiel: lijn loopt onder de node door */
    .timeline-step {
        padding-top: 0;
        padding-left: 3.4rem;
        padding-bottom: 2rem;
    }
    .timeline-node {
        top: 0.1rem;
    }
    .timeline-step::after {
        top: 2.2rem;
        bottom: 0;
        left: 1.05rem;
        right: auto;
        width: 1px;
        height: auto;
    }
    .timeline-step:last-child {
        padding-bottom: 0;
    }
    .timeline-step:nth-child(2n)::after {
        display: block;
    }
    .timeline-step:last-child::after {
        display: none;
    }
}

/* AVG-tabel: horizontaal scrollen op smalle schermen i.p.v. afkappen */
@media (max-width: 720px) {
    .legal-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
