/* =====================================================================
   Bart Sallé — freelance webdeveloper
   Redesign "Studio & Donkere Kamer"
   Handgeschreven, framework-loos. Draait op elke shared host.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --red: #c63f3f;
    --red-deep: #9e2f2f;
    --red-wash: #f6e6e2;

    /* Neutrals — warme espresso i.p.v. cliché near-black */
    --ink: #241c1b;
    --ink-2: #6b605c;
    --ink-3: #8a7f7a;
    --paper: #f5f2ec;
    --paper-2: #eee9e0;
    --card: #ffffff;
    --line: #ded7cc;
    --line-strong: #cabfb1;

    /* Type */
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* Fluid type scale */
    --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
    --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2.1rem);
    --step-3: clamp(1.95rem, 1.65rem + 1.5vw, 3rem);
    --step-4: clamp(2.6rem, 2rem + 3vw, 4.6rem);

    /* Space */
    --sp-1: 0.5rem;
    --sp-2: 0.875rem;
    --sp-3: 1.25rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4.5rem;
    --sp-7: 7rem;

    --radius: 14px;
    --radius-lg: 26px;
    --container: 1220px;
    --rail: 76px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}
p {
    margin: 0;
}
:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}
:target {
    scroll-margin-top: 96px;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section {
    padding-block: clamp(3rem, 8vw, var(--sp-7));
}
.section--no-top {
    padding-top: 0;
}
.eyebrow {
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 var(--sp-3);
}
.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--red);
    --btn-fg: #fff;
    --btn-hover: var(--red-deep);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
    font-family: var(--body);
    font-weight: 600;
    font-size: var(--step-0);
    color: var(--btn-fg);
    /* Base kleur + een 'wipe'-laag die op hover van links inloopt.
       Tekst blijft altijd bovenop, dus altijd leesbaar. */
    background-color: var(--btn-bg);
    background-image: linear-gradient(0deg, var(--btn-hover), var(--btn-hover));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    border: 2px solid var(--btn-bg);
    border-radius: 999px;
    cursor: pointer;
    transition: background-size 0.5s var(--ease), color 0.32s var(--ease),
        border-color 0.4s var(--ease), transform 0.15s var(--ease);
}
.btn:hover,
.btn:focus-visible {
    background-size: 100% 100%;
    border-color: var(--btn-hover);
}
.btn:active {
    transform: scale(0.985);
}
.btn .arrow {
    transition: transform 0.4s var(--ease);
}
.btn:hover .arrow,
.btn:focus-visible .arrow {
    transform: translateX(4px);
}
.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-hover: var(--red-wash);
    border-color: var(--line-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
    color: var(--red-deep);
    border-color: var(--red);
}

/* ---------- Skip link ---------- */
.skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 10px 0;
}
.skip:focus {
    left: 0;
}

/* ---------- Vertical index rail ---------- */
.rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    background: var(--paper);
    z-index: 20;
}
.rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    transform-origin: top;
    animation: rail-line 1.2s var(--ease) both;
}
@keyframes rail-line {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .rail::after {
        animation: none;
    }
}
.rail__mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    animation: rail-pop 0.7s var(--ease) 0.1s both;
}
.rail__mark svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    overflow: visible;
}
.rail__ring-track,
.rail__ring {
    fill: none;
    stroke-width: 2;
}
.rail__ring-track {
    stroke: var(--line);
}
.rail__ring {
    stroke: var(--red);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.2s linear;
}
.rail__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(198, 63, 63, 0.5);
    animation: rail-pulse 2.4s infinite;
}
@keyframes rail-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 63, 63, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(198, 63, 63, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 63, 63, 0);
    }
}
@keyframes rail-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rail__mark,
    .rail__dot {
        animation: none;
    }
    .rail__ring {
        transition: none;
    }
}
.rail__pct {
    position: relative;
    z-index: 1;
    flex: none;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.rail__pct.is-visible {
    opacity: 1;
}
.rail__fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background: var(--red-wash);
    transition: height 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
    .rail__fill {
        transition: none;
    }
}
.rail__word {
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-3);
}
/* Letter-voor-letter onthulling + kleurt mee met scrollvoortgang (JS splitst de tekst) */
@media (scripting: enabled) {
    .rail__word:not(.is-split) {
        opacity: 0;
    }
}
.rail__word .ch {
    display: inline-block;
    transition: color 0.35s var(--ease);
    animation: rail-ch 0.8s var(--ease) calc(0.35s + var(--i, 0) * 38ms) both;
}
.rail__word .ch.is-lit {
    color: var(--red);
}
@keyframes rail-ch {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rail__word .ch {
        animation: none;
    }
}

/* ---------- Header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
.site-head.is-scrolled {
    border-bottom-color: var(--line);
}
.site-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.brand img {
    width: 42px;
    height: 42px;
}
.brand span small {
    display: block;
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
}
.nav a {
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    font-size: 0.98rem;
    border-radius: 999px;
    color: var(--ink-2);
    transition: color 0.2s, background 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--paper-2);
}
.head-cta {
    display: none;
    padding: 0.55rem 1.05rem;
    min-height: 40px;
    font-size: 0.92rem;
}
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span {
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s var(--ease);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open {
    grid-template-rows: 1fr;
}
.mobile-nav__inner {
    overflow: hidden;
}
.mobile-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem clamp(1.1rem, 4vw, 2.5rem);
    border-top: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.2rem;
}
.mobile-nav a:first-child {
    border-top: 0;
}
.mobile-nav a .idx {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-3);
}

/* Mobiel: subdiensten uitgeklapt onder Diensten */
.mobile-sub {
    display: grid;
    background: var(--paper-2);
}
.mobile-sub a {
    display: block;
    padding: 0.75rem clamp(1.1rem, 4vw, 2.5rem);
    padding-inline-start: calc(clamp(1.1rem, 4vw, 2.5rem) + 1.1rem);
    border-top: 1px solid var(--line);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-2);
}
.mobile-sub a::before {
    content: "→";
    color: var(--red);
    margin-inline-end: 0.5rem;
}

/* Desktop: Diensten dropdown */
.nav-drop {
    position: relative;
}
.nav-drop__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-drop__chev {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}
.nav-drop:hover .nav-drop__chev,
.nav-drop:focus-within .nav-drop__chev {
    transform: rotate(180deg);
}
/* onzichtbare hover-brug zodat de muis het menu haalt */
.nav-drop::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.nav-drop__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 268px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 48px -24px rgba(36, 28, 27, 0.45);
    padding: 0.5rem;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
        visibility 0.26s;
    z-index: 40;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-drop__menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-drop__menu a:hover {
    background: var(--paper-2);
    color: var(--red-deep);
}
.nav-drop__menu em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--red-deep);
    border: 1px solid var(--line-strong);
    padding: 0.05rem 0.35rem;
    border-radius: 5px;
}
.nav-drop__menu .nav-drop__all {
    margin-top: 3px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    color: var(--red-deep);
    font-weight: 600;
}
.nav-drop__menu .nav-drop__all span {
    transition: transform 0.3s var(--ease);
}
.nav-drop__menu .nav-drop__all:hover span {
    transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.06em;
    color: var(--ink-2);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: var(--sp-3);
}
.status .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35a35a;
    box-shadow: 0 0 0 0 rgba(53, 163, 90, 0.5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 163, 90, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(53, 163, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(53, 163, 90, 0);
    }
}
.hero h1 {
    font-size: var(--step-4);
    font-weight: 800;
    margin-bottom: var(--sp-3);
}
.hero h1 .accent {
    color: var(--red);
}
.hero__lead {
    font-size: var(--step-1);
    color: var(--ink-2);
    max-width: 34ch;
    margin-bottom: var(--sp-4);
    line-height: 1.5;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: var(--sp-4);
}
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    font-family: var(--mono);
    font-size: var(--step--1);
    color: var(--ink-2);
}
.hero__meta b {
    color: var(--ink);
    font-weight: 600;
}

/* Hero portrait — echo van het cirkel-logo */
.hero__figure {
    position: relative;
    justify-self: center;
    width: min(240px, 58vw);
    aspect-ratio: 1;
}
.hero__figure .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 25%,
        var(--red) 0%,
        var(--red-deep) 100%
    );
}
.hero__figure img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--paper);
}
.hero__badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.8rem 0.4rem 0.5rem;
    box-shadow: 0 14px 30px -20px rgba(36, 28, 27, 0.55);
    line-height: 1.1;
}
.hero__badge b {
    font-family: var(--display);
    font-size: 0.85rem;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
.hero__badge span {
    color: var(--ink-2);
    font-size: 0.76rem;
}

/* ---------- Client strip ---------- */
.clients {
    border-block: 1px solid var(--line);
    background: var(--paper-2);
}
.clients__head {
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: center;
    margin-bottom: var(--sp-3);
}
.marquee {
    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);
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: scroll-x 46s linear infinite;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee img {
    height: 34px;
    width: auto;
    filter: grayscale(1) contrast(0.9) opacity(0.7);
    transition: filter 0.3s;
}
.marquee img:hover {
    filter: grayscale(0) opacity(1);
}
@keyframes scroll-x {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Section heading block ---------- */
.section-head {
    max-width: 60ch;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
    font-size: var(--step-3);
    margin-bottom: var(--sp-3);
}
.section-head p {
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.5;
}

/* ---------- Services (redactionele lijst, geen identieke cards) ---------- */
.services {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
@media (min-width: 720px) {
    .services {
        grid-template-columns: 1fr 1fr;
    }
    .service--feature {
        grid-column: 1 / -1;
    }
}
.service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--card);
    transition: background 0.25s var(--ease);
}
.service:hover {
    background: #fbf6f3;
}
.service__tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red-deep);
}
.service h3 {
    font-size: var(--step-2);
}
.service p {
    color: var(--ink-2);
    max-width: 46ch;
}
.service__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--ink);
    width: fit-content;
}
.service__link .arrow {
    color: var(--red);
    transition: transform 0.2s var(--ease);
}
.service:hover .service__link .arrow {
    transform: translateX(5px);
}
.service--feature {
    display: grid;
    gap: 1.2rem 2.5rem;
    background: var(--ink);
    color: var(--paper);
}
.service--feature h3,
.service--feature .service__link {
    color: #fff;
}
.service--feature p {
    color: #cabdb9;
    font-size: var(--step-1);
}
.service--feature .service__tag {
    color: #e79b9b;
}
.service--feature:hover {
    background: #2c2220;
}
@media (min-width: 720px) {
    .service--feature {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
    }
}
.service--feature .service__stacktags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tagchip {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #e8ddd9;
}

/* ---------- Stack / expertise ---------- */
.stack {
    background: var(--ink);
    color: var(--paper);
}
.stack .section-head h2 {
    color: #fff;
}
.stack .section-head p {
    color: #cabdb9;
}
.stack__grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 760px) {
    .stack__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.stack__col h3 {
    font-size: var(--step-1);
    margin-bottom: var(--sp-2);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}
.stack__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.stack__col li {
    font-family: var(--mono);
    font-size: 0.82rem;
    padding: 0.32rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e8ddd9;
}

/* ---------- Over / intro personal ---------- */
.about__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}
@media (min-width: 820px) {
    .about__grid {
        grid-template-columns: 0.85fr 1.15fr;
    }
}
.about__photo {
    position: relative;
    width: min(250px, 60vw);
    aspect-ratio: 1;
    justify-self: center;
}
.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.about__photo::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--line-strong);
    border-radius: 50%;
}
.about h2 {
    font-size: var(--step-3);
    margin-bottom: var(--sp-3);
}
.about p + p {
    margin-top: var(--sp-3);
}
.about p {
    color: var(--ink-2);
}
.about .btn {
    margin-top: var(--sp-4);
}

/* ---------- Testimonials ---------- */
.quotes {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}
.quotes__grid {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .quotes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quote--lead {
        grid-column: 1 / -1;
    }
}
.quote {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.quote p {
    font-size: var(--step-0);
    line-height: 1.55;
}
.quote--lead p {
    font-family: var(--display);
    font-size: var(--step-2);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.quote::before {
    content: "\201C";
    font-family: var(--display);
    font-size: 3rem;
    line-height: 0.6;
    color: var(--red);
    height: 1.4rem;
}
.quote cite {
    margin-top: auto;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--ink-2);
}
.quote cite b {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1rem;
}

/* ---------- Referentie-muur (Over-pagina) ---------- */
.wall {
    columns: 3 300px;
    column-gap: 1.25rem;
}
.ref {
    break-inside: avoid;
    margin: 0 0 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ref:hover {
    border-color: var(--line-strong);
    box-shadow: 0 16px 34px -26px rgba(36, 28, 27, 0.5);
}
.ref__quote {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
}
.ref__quote::before {
    content: "\201C";
    font-family: var(--display);
    font-weight: 700;
    color: var(--red);
    font-size: 1.6rem;
    line-height: 0;
    vertical-align: -0.35em;
    margin-inline-end: 0.12em;
}
.ref__by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}
.ref__ava {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--red-wash);
    box-shadow: 0 0 0 1px var(--line);
}
.ref--dark .ref__ava {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.ref__name {
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.2;
}
.ref__who {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ref__role {
    color: var(--ink-2);
    font-size: 0.82rem;
}
.ref--accent {
    background: var(--red-wash);
    border-color: transparent;
}
.ref--dark {
    background: var(--ink);
    border-color: var(--ink);
}
.ref--dark .ref__quote,
.ref--dark .ref__name {
    color: #fff;
}
.ref--dark .ref__role {
    color: #cabdb9;
}
.ref--dark .ref__ava {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---------- Subtiele quote-rotator (homepage) ---------- */
.quote-rotator {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 1.4rem;
}
.qr-stage {
    display: grid;
    width: 100%;
    min-height: 8rem;
}
.qr {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    pointer-events: none;
}
.qr[data-active] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.qr__ava {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.1rem;
    box-shadow: 0 0 0 1px var(--line);
}
.qr__text {
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--step-1);
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--ink);
    text-wrap: balance;
}
.qr__by {
    margin-top: 1rem;
    color: var(--ink-2);
    font-size: 0.9rem;
}
.qr__by b {
    color: var(--ink);
    font-family: var(--display);
}
.qr-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--red-deep);
}
.qr-link .arrow {
    transition: transform 0.3s var(--ease);
}
.qr-link:hover .arrow {
    transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
    .qr {
        transition: none;
    }
}

/* ---------- CTA band ---------- */
.cta {
    background: var(--red);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
}
.cta h2 {
    font-size: var(--step-3);
    color: #fff;
    margin-bottom: var(--sp-3);
    max-width: 20ch;
    margin-inline: auto;
}
.cta p {
    color: #ffe1dc;
    max-width: 46ch;
    margin: 0 auto var(--sp-4);
    font-size: var(--step-1);
}
.cta .btn {
    --btn-bg: #fff;
    --btn-fg: var(--red-deep);
    --btn-hover: var(--ink);
}
.cta .btn:hover,
.cta .btn:focus-visible {
    color: #fff;
}

/* ---------- Footer ---------- */
.site-foot {
    background: var(--ink);
    color: #c9bcb8;
    padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.site-foot a:hover {
    color: #fff;
}
.foot__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px) {
    .foot__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}
.foot__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: var(--sp-3);
}
.foot__brand img {
    width: 40px;
    height: 40px;
}
.foot p {
    max-width: 34ch;
    font-size: 0.92rem;
}
.foot h4 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7f7a;
    margin-bottom: var(--sp-2);
}
.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    font-size: 0.95rem;
}
.foot__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: #8a7f7a;
}

/* =====================================================================
   Interior pages
   ===================================================================== */
.page-hero {
    padding-block: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    margin-bottom: var(--sp-3);
}
.crumbs a:hover {
    color: var(--red-deep);
}
.crumbs [aria-current] {
    color: var(--ink);
}
.crumbs .sep {
    color: var(--line-strong);
}
.page-hero h1 {
    font-size: var(--step-3);
    max-width: 20ch;
}
.page-hero .lead {
    margin-top: var(--sp-3);
    font-size: var(--step-1);
    color: var(--ink-2);
    max-width: 58ch;
    line-height: 1.5;
}

/* Layout: content + aside */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.page-layout > * {
    min-width: 0;
}
@media (min-width: 900px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

/* Prose */
.prose {
    max-width: 68ch;
}
.prose > * + * {
    margin-top: 1.1rem;
}
.prose > .btn {
    margin-top: 2.2rem;
}
.prose h2 {
    font-size: var(--step-2);
    margin-top: 2.6rem;
}
.prose h3 {
    font-size: var(--step-1);
    margin-top: 1.9rem;
}
.prose h2 + p,
.prose h3 + p {
    margin-top: 0.7rem;
}
.prose p {
    color: #403835;
}
.prose a:not(.btn) {
    color: var(--red-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.prose a:not(.btn):hover {
    color: var(--red);
}
.prose strong {
    color: var(--ink);
}
.prose ul,
.prose ol {
    padding-left: 1.3rem;
    color: #403835;
}
.prose ul {
    list-style: none;
    padding-left: 0;
}
.prose ul > li {
    position: relative;
    padding-left: 1.6rem;
}
.prose ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}
.prose ol > li::marker {
    color: var(--red-deep);
    font-weight: 600;
}
.prose li + li {
    margin-top: 0.5rem;
}

/* Checklist */
.checklist {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.checklist li {
    position: relative;
    padding-left: 2rem;
    color: #403835;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--red-wash);
    /* checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c63f3f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 0.8rem;
    background-repeat: no-repeat;
    background-position: center;
}

/* Aside card */
.aside {
    display: grid;
    gap: 1.25rem;
    position: sticky;
    top: 100px;
}
.aside-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.aside-card.is-dark {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.aside-card h3 {
    font-size: var(--step-1);
    margin-bottom: var(--sp-2);
}
.aside-card.is-dark h3 {
    color: #fff;
}
.aside-card p {
    font-size: 0.92rem;
    color: var(--ink-2);
    margin-bottom: 1rem;
}
.aside-card.is-dark p {
    color: #cabdb9;
}
.aside-card .btn {
    width: 100%;
    justify-content: center;
}
.aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}
.aside-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-weight: 500;
    color: var(--ink);
}
.aside-list a:first-child {
    border-top: 0;
}
.aside-list a:hover {
    color: var(--red-deep);
}
.aside-list a[aria-current] {
    color: var(--red-deep);
}
.aside-list .arrow {
    color: var(--red);
}
.contact-line {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--ink-2);
}
.contact-line + .contact-line {
    margin-top: 0.9rem;
}
.contact-line b {
    color: var(--ink);
    font-family: var(--display);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}
.contact-line svg {
    flex: none;
    width: 20px;
    height: 20px;
    stroke: var(--red);
    margin-top: 0.15rem;
}

/* Pricing */
.pricing {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (min-width: 760px) {
    .pricing {
        grid-template-columns: repeat(3, 1fr);
    }
}
.pricing__card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
}
.pricing__card.is-featured {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
    position: relative;
}
.pricing__flag {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.pricing__tier {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red-deep);
}
.pricing__for {
    color: var(--ink-2);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    min-height: 2.6em;
}
.pricing__price {
    font-family: var(--display);
    font-weight: 700;
    font-size: var(--step-3);
    color: var(--ink);
    margin: 0.6rem 0 0.2rem;
}
.pricing__price small {
    display: block;
    font-family: var(--body);
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--ink-3);
}
.pricing__list {
    list-style: none;
    margin: 1.2rem 0;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: #403835;
}
.pricing__list li {
    position: relative;
    padding-left: 1.5rem;
}
.pricing__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--red);
}
.pricing__card .btn {
    margin-top: auto;
    justify-content: center;
}

/* Toggle for pricing */
.price-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-top: 1.5rem;
}
.price-toggle button {
    border: 0;
    background: transparent;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink-2);
}
.price-toggle button[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
}
.price-note {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 0.8rem;
}

/* Contact form */
.form {
    display: grid;
    gap: 1.1rem;
}
.form__row {
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 560px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}
.field {
    display: grid;
    gap: 0.4rem;
}
.field label {
    font-weight: 600;
    font-size: 0.9rem;
}
.field input,
.field textarea {
    font-family: var(--body);
    font-size: var(--step-0);
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    width: 100%;
}
.field input:focus,
.field textarea:focus {
    outline: 3px solid var(--red);
    outline-offset: 1px;
    border-color: var(--red);
}
.field textarea {
    min-height: 150px;
    resize: vertical;
}

/* Simple gallery grid (fotografie / design) */
.gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 2rem;
}
.gallery__item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}
/* Portfolio row: bare images at a shared height, no card/frame —
   used for logo & print-work examples (design-en-content-creation) */
.portfolio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem 2.75rem;
    margin-top: 1.8rem;
}
.portfolio-row img {
    display: block;
    width: auto;
    height: auto;
    max-height: 72px;
    max-width: 100%;
}
.portfolio-row--large img {
    max-height: 260px;
}

/* Facts strip */
.facts {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 2.5rem;
}
@media (min-width: 620px) {
    .facts {
        grid-template-columns: repeat(3, 1fr);
    }
}
.facts div {
    background: var(--card);
    padding: 1.5rem;
}
.facts b {
    font-family: var(--display);
    font-size: var(--step-2);
    color: var(--red);
    display: block;
}
.facts span {
    color: var(--ink-2);
    font-size: 0.92rem;
}

/* =====================================================================
   Blog
   ===================================================================== */

/* Category filter bar */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    position: sticky;
    top: 0.85rem;
    z-index: 5;
    padding: 0.75rem;
    margin-bottom: clamp(2rem, 5vw, 3.2rem);
    background: rgba(245, 242, 236, 0.82);
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.filter-pill:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.filter-pill.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.filter-pill .count {
    color: var(--ink-3);
    font-size: 0.7rem;
}
.filter-pill.is-active .count {
    color: #cabdb9;
}

/* Mobiel: één rustige, horizontaal scrollbare rij zonder kader */
@media (max-width: 719px) {
    .blog-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
        gap: 0.45rem;
        margin-inline: calc(-1 * clamp(1.1rem, 4vw, 2.5rem));
        padding: 0.45rem clamp(1.1rem, 4vw, 2.5rem);
        margin-bottom: 2.2rem;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        border-radius: 0;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.1rem, #000 calc(100% - 2.2rem), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 1.1rem, #000 calc(100% - 2.2rem), transparent 100%);
    }
    .blog-filter::-webkit-scrollbar {
        display: none;
    }
    .filter-pill {
        flex: none;
        scroll-snap-align: center;
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 0.42rem 0.85rem;
        background: transparent;
    }
    .filter-pill.is-active {
        background: var(--ink);
    }
}

/* Post grid */
.blog-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 720px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1080px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-card--feature {
        grid-column: 1 / -1;
    }
}

.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
        border-color 0.35s var(--ease);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 48px -24px rgba(36, 28, 27, 0.45);
}
.blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-2);
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.blog-card:hover .blog-card__media img {
    transform: scale(1.06);
}
.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}
.blog-card__tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red-deep);
    background: var(--red-wash);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.3rem, 2.5vw, 1.7rem);
}
.blog-card h3 {
    font-size: var(--step-1);
    line-height: 1.15;
}
.blog-card__excerpt {
    margin-top: 0.6rem;
    color: var(--ink-2);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__foot {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.blog-card__date {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-3);
}
.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}
.blog-card__link .arrow {
    color: var(--red);
    transition: transform 0.2s var(--ease);
}
.blog-card:hover .blog-card__link .arrow {
    transform: translateX(5px);
}
.blog-card__cover {
    position: absolute;
    inset: 0;
}

/* Feature card: big first post */
.blog-card--feature {
    display: grid;
    background: var(--ink);
    border-color: var(--ink);
}
@media (min-width: 720px) {
    .blog-card--feature {
        grid-template-columns: 1.1fr 1fr;
    }
}
.blog-card--feature .blog-card__media {
    aspect-ratio: 16 / 11;
}
@media (min-width: 720px) {
    .blog-card--feature .blog-card__media {
        aspect-ratio: auto;
        height: 100%;
    }
}
.blog-card--feature .blog-card__body {
    padding: clamp(1.6rem, 3vw, 2.6rem);
    justify-content: center;
}
.blog-card--feature h3 {
    color: #fff;
    font-size: var(--step-2);
}
.blog-card--feature .blog-card__excerpt {
    color: #cabdb9;
    -webkit-line-clamp: 4;
}
.blog-card--feature .blog-card__link {
    color: #fff;
}
.blog-card--feature .blog-card__date {
    color: #a89890;
}
.blog-card--feature .blog-card__tag {
    background: rgba(255, 255, 255, 0.12);
    color: #f1c9c9;
}

.blog-empty {
    text-align: center;
    padding: var(--sp-6) var(--sp-3);
    color: var(--ink-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
}

/* Pagination */
.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 0.5rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.85rem;
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.blog-pagination a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}
.blog-pagination [aria-current] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.blog-pagination .is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Single post */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: var(--sp-3);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--ink-3);
}
.post-meta .blog-card__tag {
    font-size: 0.72rem;
}
.post-cover {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--paper-2);
    box-shadow: 0 30px 60px -30px rgba(36, 28, 27, 0.4);
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-body {
    overflow-wrap: break-word;
}
.post-body img {
    border-radius: var(--radius);
    margin-top: 0.4rem;
    max-width: 100%;
    height: auto;
}
.post-body iframe,
.post-body video {
    max-width: 100%;
}
.post-body iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}
.post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
.post-body figure {
    margin: 1.6rem 0;
}
.post-body figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--ink-3);
    text-align: center;
}
.post-body pre {
    background: var(--ink);
    color: #f1e9e6;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.6rem 0;
}
.post-body code {
    font-family: var(--mono);
    background: var(--paper-2);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.88em;
}
.post-body pre code {
    background: none;
    padding: 0;
}
.post-body blockquote {
    margin: 1.6rem 0;
    padding: 0.2rem 0 0.2rem 1.3rem;
    border-left: 3px solid var(--red);
    color: var(--ink-2);
    font-style: italic;
}
.related-heading {
    margin-top: clamp(3rem, 7vw, 5rem);
    margin-bottom: 1.5rem;
    padding-top: clamp(3rem, 7vw, 5rem);
    border-top: 1px solid var(--line);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
}
.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero .reveal {
    transition-delay: calc(var(--i, 0) * 90ms);
}

/* Eenvoudige pagina's (bedankt): footer altijd onderaan het scherm */
.page-simple {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-simple main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Desktop rail offset ---------- */
@media (min-width: 1120px) {
    .rail {
        display: flex;
    }
    body {
        padding-left: var(--rail);
    }
}
@media (min-width: 900px) {
    .nav,
    .head-cta {
        display: inline-flex;
    }
    .nav-toggle {
        display: none;
    }
    .hero__grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
