﻿

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --proj-bg-1: #ece8e2;
    --proj-bg-2: #f6f3ef;
    --proj-bg-3: #ddd6ce;
    --proj-surface: rgba(255,255,255,.72);
    --proj-surface-strong: rgba(255,255,255,.88);
    --proj-surface-solid: #fbf9f6;
    --proj-ink: #111214;
    --proj-ink-soft: rgba(17,18,20,.72);
    --proj-ink-muted: rgba(17,18,20,.50);
    --proj-line: rgba(17,18,20,.08);
    --proj-line-strong: rgba(17,18,20,.12);
    --proj-accent: #c1111a;
    --proj-accent-soft: rgba(193,17,26,.10);
    --proj-dark-1: #191b20;
    --proj-dark-2: #101216;
    --proj-radius-sm: 16px;
    --proj-radius: 24px;
    --proj-radius-lg: 32px;
    --proj-radius-xl: 40px;
    --proj-shadow-soft: 0 12px 28px rgba(15,15,16,.06), 0 3px 10px rgba(15,15,16,.04);
    --proj-shadow: 0 24px 64px rgba(15,15,16,.10), 0 10px 22px rgba(15,15,16,.06), 0 3px 10px rgba(15,15,16,.04);
    --proj-shadow-hover: 0 34px 80px rgba(15,15,16,.14), 0 14px 28px rgba(15,15,16,.08), 0 5px 12px rgba(15,15,16,.05);
    --proj-max: 1360px;
    --proj-transition: .30s cubic-bezier(.22,1,.36,1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--proj-ink);
    background: radial-gradient(1200px 700px at 40% 0%, rgba(255,255,255,.34), transparent 72%), linear-gradient(180deg, var(--proj-bg-1) 0%, var(--proj-bg-2) 44%, #f8f5f1 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.projecten-page {
    padding-top: 2.25rem;
    padding-bottom: 5rem;
}

.projecten-shell {
    width: min(var(--proj-max), calc(100% - 34px));
    margin: 0 auto;
}

.projecten-hero {
    position: relative;
    margin-bottom: 2rem;
}

.projecten-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 1.2rem;
    align-items: stretch;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    border-radius: var(--proj-radius-xl);
    background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(248,245,240,.80) 100%);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--proj-shadow), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -12px 24px rgba(15,15,16,.025);
    overflow: hidden;
}

    .projecten-hero__inner::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(860px 240px at 100% 100%, rgba(193,17,26,.03) 0%, rgba(193,17,26,0) 62%), linear-gradient(to bottom, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 26%);
    }

.projecten-hero__content,
.projecten-hero__visual {
    position: relative;
    z-index: 2;
}

.projecten-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    min-width: 0;
    padding: .2rem .2rem .2rem .25rem;
}

.projecten-kicker,
.projecten-sectionhead__eyebrow,
.projecten-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--proj-accent-soft);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.projecten-title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 900;
    color: #111214;
    text-wrap: balance;
    max-width: 10ch;
}

.projecten-intro {
    max-width: 60rem;
    margin: 0;
    color: var(--proj-ink-soft);
    font-size: clamp(.98rem, 1.02vw, 1.12rem);
    line-height: 1.68;
    letter-spacing: -.012em;
}

.projecten-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: .35rem;
    max-width: 760px;
}

.projecten-stat {
    padding: .9rem .95rem .82rem;
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(17,18,20,.06);
    box-shadow: 0 10px 22px rgba(15,15,16,.04), inset 0 1px 0 rgba(255,255,255,.84);
}

.projecten-stat__value {
    display: block;
    margin-bottom: .22rem;
    color: #111214;
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.projecten-stat__label {
    display: block;
    color: var(--proj-ink-muted);
    font-size: .86rem;
    line-height: 1.42;
}

.projecten-hero__visual {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
}

.projecten-hero__glow {
    position: absolute;
    inset: 8% 8% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193,17,26,.10) 0%, rgba(193,17,26,0) 72%);
    filter: blur(24px);
    pointer-events: none;
}

.projecten-hero__panel {
    width: 100%;
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--proj-dark-1) 0%, var(--proj-dark-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 20px 48px rgba(15,15,16,.16), inset 0 1px 0 rgba(255,255,255,.04);
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

    .projecten-hero__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(110% 80% at 100% 100%, rgba(193,17,26,.07) 0%, rgba(193,17,26,0) 58%), linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,0));
        pointer-events: none;
    }

.projecten-hero__eyebrow,
.projecten-hero__text,
.projecten-hero__line {
    position: relative;
    z-index: 2;
}

.projecten-hero__eyebrow {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.56);
}

.projecten-hero__line {
    width: 72px;
    height: 3px;
    border-radius: 999px;
    margin: .85rem 0;
    background: linear-gradient(to right, rgba(193,17,26,.82), rgba(193,17,26,.18));
}

.projecten-hero__text {
    max-width: 24rem;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: .95rem;
    line-height: 1.7;
    letter-spacing: -.01em;
}

.projecten-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.3rem;
}

.projecten-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
    cursor: pointer;
}

    .projecten-btn:hover {
        transform: translateY(-1px);
    }

.projecten-btn--primary {
    background: linear-gradient(180deg, #d61b27 0%, #b4111b 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(193,17,26,.22);
}

.projecten-btn--ghost {
    background: rgba(255,255,255,.64);
    border-color: rgba(17,18,20,.08);
    color: #111214;
    box-shadow: var(--proj-shadow-soft), inset 0 1px 0 rgba(255,255,255,.86);
}

.projecten-sectionhead {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1rem;
}

.projecten-sectionhead__title {
    margin: 0;
    color: #111214;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.projecten-grid-section {
    margin-top: 1rem;
}

.projecten-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: clip;
    border-radius: 24px;
    background: linear-gradient(180deg, #232930, #1d2228);
    box-shadow: 0 16px 38px rgba(0,0,0,.22), 0 6px 14px rgba(0,0,0,.12);
    transform: translateZ(0);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, filter .45s ease;
    color: #f7f9fd;
    text-decoration: none;
    max-width: none;
    margin: 0;
    min-width: 0;
}

    .project-card::before {
        content: "";
        position: absolute;
        inset: -22%;
        background: radial-gradient(60% 42% at 50% -8%, rgba(90,170,255,.14), transparent 70%);
        filter: blur(22px);
        opacity: 0;
        transition: opacity .45s ease;
        z-index: -1;
    }

    .project-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,0));
        pointer-events: none;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 58px rgba(0,0,0,.26), 0 10px 22px rgba(0,0,0,.16);
        filter: saturate(1.03);
    }

        .project-card:hover::before {
            opacity: 1;
        }

    .project-card:focus-visible,
    .project-card:focus-within {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 0 8px rgba(90,170,255,.16), 0 26px 58px rgba(0,0,0,.26), 0 10px 22px rgba(0,0,0,.16);
    }

    .project-card > img,
    .project-card .media > img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.project-card__title {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: 14px 16px;
    min-height: 72px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.40) 22%, rgba(0,0,0,.68) 100%);
    backdrop-filter: blur(4px) saturate(1.05);
    -webkit-backdrop-filter: blur(4px) saturate(1.05);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    color: #fff;
    z-index: 2;
}

    .project-card__title h3,
    .project-card__title h5 {
        margin: 0;
        font-weight: 800;
        letter-spacing: -.015em;
        line-height: 1.12;
        font-size: clamp(1rem, 1.15vw, 1.14rem);
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,.42);
    }

.project-card .media,
.project-card {
    position: relative;
}

    .project-card .media::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        background: radial-gradient(120% 80% at 50% 20%, rgba(0,0,0,0) 60%, rgba(0,0,0,.08) 100%);
        mix-blend-mode: multiply;
        opacity: .9;
    }

    .project-card .admin-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 5;
        display: flex;
        gap: 8px;
    }

        .project-card .admin-actions .btn {
            min-height: 34px;
            border-radius: 999px;
            box-shadow: 0 10px 20px rgba(0,0,0,.16);
        }

.projecten-more {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.home-projects-rail {
    background: linear-gradient(180deg, #dcd8d3 0%, #c8c3be 100%);
}

    .home-projects-rail .project-rail {
        --rail-h: clamp(190px, 24vw, 260px);
        height: var(--rail-h);
        overflow: visible;
        padding-block: 6px 14px;
    }

    .home-projects-rail .project-rail__track {
        display: flex;
        align-items: center;
        gap: clamp(10px, 2vw, 16px);
        height: 100%;
        overflow-x: auto;
        overflow-y: visible;
        scroll-behavior: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    }

        .home-projects-rail .project-rail__track::-webkit-scrollbar {
            display: none;
        }

    .home-projects-rail .project-card {
        --card-h: calc(var(--rail-h) - 40px);
        height: var(--card-h);
        width: calc(var(--card-h) * 4 / 3);
        flex: 0 0 auto;
        margin: 0;
    }

        .home-projects-rail .project-card > img {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

    .home-projects-rail .project-card__title {
        padding: 10px 14px;
        min-height: 54px;
    }

    .home-projects-rail .all-projects-link {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-weight: 600;
        font-size: 1rem;
        color: #111;
        text-decoration: none;
        text-shadow: 0 2px 4px rgba(0,0,0,.15);
        transition: transform .25s ease, color .25s ease;
    }

        .home-projects-rail .all-projects-link::after {
            content: "→";
            font-size: 1.1em;
            transition: transform .25s ease;
        }

        .home-projects-rail .all-projects-link:hover {
            color: #000;
            transform: translateY(-1px);
        }

            .home-projects-rail .all-projects-link:hover::after {
                transform: translateX(4px);
            }

.rail-heading {
    position: relative;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.3px;
    color: #1b1f24;
    text-align: center;
    margin-bottom: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.2;
    background: linear-gradient(180deg, #1c1f23 0%, #50565f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

    .rail-heading::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, #f29a5c 25%, #f29a5c 75%, transparent);
        box-shadow: 0 0 10px rgba(242,154,92,.6);
    }

.project-modal .modal-dialog {
    width: min(1080px, calc(100vw - 64px));
    max-width: min(1080px, calc(100vw - 64px));
    height: calc(100dvh - var(--navbar-height, 96px) - 52px);
    max-height: calc(100dvh - var(--navbar-height, 96px) - 52px);
    margin-top: calc(var(--navbar-height, 96px) + 18px) !important;
    margin-bottom: 24px !important;
}

.project-modal .modal-content {
    background: #f6f2ec !important;
    border: 1px solid rgba(17,18,20,.08) !important;
    border-radius: 32px !important;
    box-shadow: 0 36px 90px rgba(15,15,16,.20), 0 12px 28px rgba(15,15,16,.09) !important;
    overflow: hidden !important;
}

.project-modal-content {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf7f3 0%, #f2ede7 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: 100%;
    max-height: calc(100vh - 40px);
}

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    color: rgba(17,18,20,.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(15,15,16,.10), inset 0 1px 0 rgba(255,255,255,.96);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

    .project-modal-close:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.98);
        box-shadow: 0 16px 30px rgba(15,15,16,.14), inset 0 1px 0 rgba(255,255,255,1);
    }

.project-modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .95fr);
    gap: 0;
    align-items: stretch;
    padding: 24px;
    height: 100%;
    max-height: calc(90vh - 68px);
    overflow: hidden;
}

.project-modal-media {
    min-width: 0;
    padding-right: 26px;
    position: relative;
    display: block;
}

.project-modal-carousel {
    width: 100%;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1d22 0%, #101216 100%);
    box-shadow: 0 20px 46px rgba(15,15,16,.16), inset 0 1px 0 rgba(255,255,255,.05);
}

    .project-modal-carousel img,
    .project-modal-carousel .project-modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.project-modal-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 24px 0 20px 26px;
    background: #f6f2ec;
    border-left: 1px solid rgba(17,18,20,.08);
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.project-modal-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.project-modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(193,17,26,.08);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.project-modal-title {
    margin: 0;
    color: #111214;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 800;
}

.project-modal-intro {
    color: rgba(17,18,20,.74);
    font-size: .95rem;
    line-height: 1.55;
    letter-spacing: -.012em;
    white-space: normal !important;
}

    .project-modal-intro p,
    .project-modal-bodycopy p {
        margin: 0 0 1.2rem 0;
    }

        .project-modal-intro p:last-child,
        .project-modal-bodycopy p:last-child {
            margin-bottom: 0;
        }

.project-modal-bodywrap {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.project-modal-bodycopy {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    color: rgba(17,18,20,.72);
    font-size: 1rem;
    line-height: 1.78;
    letter-spacing: -.01em;
    white-space: normal !important;
    -webkit-overflow-scrolling: touch;
}

    .project-modal-bodycopy::-webkit-scrollbar {
        width: 8px;
    }

    .project-modal-bodycopy::-webkit-scrollbar-thumb {
        background: rgba(17,18,20,.16);
        border-radius: 999px;
    }

    .project-modal-bodycopy::-webkit-scrollbar-track {
        background: rgba(0,0,0,.05);
        border-radius: 999px;
    }

.project-modal-foot {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(17,18,20,.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-shrink: 0;
}

.project-modal-meta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-modal-meta-label {
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-modal-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(193,17,26,.08);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-modal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .86rem;
    border: 0;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.project-modal-nav-prev {
    background: rgba(255,255,255,.78);
    color: #111214;
    box-shadow: 0 10px 22px rgba(15,15,16,.08), inset 0 1px 0 rgba(255,255,255,.90);
}

.project-modal-nav-next {
    background: linear-gradient(180deg, #d61b27 0%, #b4111b 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(193,17,26,.18);
}

.project-modal-nav:hover {
    transform: translateY(-1px);
}

a.cta-premium {
    --cta-bg: #1b1f24;
    --cta-bg-2: #161a1e;
    --cta-edge: rgba(255,255,255,.08);
    --cta-text: #f4f6fa;
    --cta-muted: #c9ced6;
    --cta-accent: #f29a5c;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--cta-text);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box, linear-gradient(180deg, var(--cta-bg), var(--cta-bg-2)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 var(--cta-edge);
    backdrop-filter: blur(5px) saturate(1.03);
    -webkit-backdrop-filter: blur(5px) saturate(1.03);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, color .22s ease;
}

    a.cta-premium:hover {
        transform: translateY(-2px);
        filter: saturate(1.03);
        box-shadow: 0 16px 36px rgba(0,0,0,.26), 0 0 0 4px rgba(242,154,92,.14);
    }

    a.cta-premium .ms-1 {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: var(--cta-muted);
        transition: transform .22s ease, color .22s ease, opacity .22s ease;
        opacity: .95;
    }

    a.cta-premium:hover .ms-1 {
        transform: translateX(2px);
        color: var(--cta-text);
        opacity: 1;
    }

body.project-modal-open {
    overflow: hidden;
}
.projectcase-intro {
    position: relative;
    background: radial-gradient(820px 420px at 50% 12%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.38) 42%, rgba(255,255,255,0) 72%), linear-gradient(180deg, #f7f4ef 0%, #eee8e1 100%);
}

.projectcase-feature {
    position: relative;
    background: radial-gradient(760px 420px at 12% 40%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.24) 42%, rgba(255,255,255,0) 76%), radial-gradient(720px 420px at 90% 50%, rgba(193,17,26,.055) 0%, rgba(193,17,26,0) 70%), linear-gradient(180deg, #eee8e1 0%, #e4dbd2 100%);
}

.projectcase-info {
    position: relative;
    background: radial-gradient(840px 440px at 50% 18%, rgba(255,255,255,.62) 0%, rgba(255,255,255,.20) 42%, rgba(255,255,255,0) 74%), linear-gradient(180deg, #e4dbd2 0%, #f5f1eb 100%);
}

.projectcase-gallery {
    position: relative;
    background: radial-gradient(760px 420px at 18% 14%, rgba(255,255,255,.86) 0%, rgba(255,255,255,.34) 44%, rgba(255,255,255,0) 78%), radial-gradient(760px 420px at 92% 40%, rgba(193,17,26,.045) 0%, rgba(193,17,26,0) 72%), linear-gradient(180deg, #f5f1eb 0%, #ebe4dc 100%);
}

.projectcase-cta {
    position: relative;
    background: radial-gradient(880px 460px at 50% 0%, rgba(255,255,255,.68) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,0) 78%), linear-gradient(180deg, #ebe4dc 0%, #ded5cc 100%);
}
@media (max-width: 1199px) {
    .projecten-hero__inner {
        grid-template-columns: 1fr;
    }

    .projecten-hero__panel {
        min-height: 210px;
    }

    .projecten-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projecten-stats {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

@media (max-width: 991.98px) {
    .project-modal .modal-dialog {
        max-width: 760px !important;
        width: calc(100vw - 28px) !important;
        height: auto !important;
        max-height: calc(100dvh - 110px) !important;
        margin: 75px auto 24px auto !important;
        padding: 0 14px !important;
    }
    .projectcase-intro__inner {
        text-align: left!important;
    }

    .projectcase-intro p {
        margin-left: 0;
        margin-right: 0;
    }
    .project-modal .modal-content,
    .project-modal-content {
        height: auto !important;
        max-height: calc(100dvh - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .project-modal-shell {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 16px !important;
        padding: 18px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .project-modal-media {
        width: 100% !important;
        padding-right: 0 !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    .project-modal-carousel {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: none !important;
        border-radius: 22px !important;
    }

    .project-modal-panel {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(17,18,20,.08) !important;
        overflow: visible !important;
    }

    .project-modal-head {
        display: block !important;
    }

    .project-modal-bodywrap {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .project-modal-bodycopy {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        font-size: .96rem !important;
        line-height: 1.68 !important;
    }

    .project-modal-foot {
        margin-top: 22px !important;
        padding-top: 18px !important;
        flex-shrink: 0 !important;
    }

    .project-modal-photo-nav {
        top: 140px !important;
    }
}
@media (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
    .project-modal .modal-dialog {
        width: calc(100vw - 64px) !important;
        max-width: 1040px !important;
        height: calc(100dvh - 150px) !important;
        max-height: calc(100dvh - 150px) !important;
        margin: 96px auto 24px auto !important;
        padding: 0 !important;
    }

    .project-modal-content {
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 28px !important;
    }

    .project-modal-shell {
        height: 100% !important;
        max-height: none !important;
        grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr) !important;
        padding: 18px !important;
        overflow: hidden !important;
    }

    .project-modal-media {
        padding-right: 18px !important;
        min-height: 0 !important;
    }

    .project-modal-carousel {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 22px !important;
    }

    .project-modal-panel {
        min-height: 0 !important;
        height: 100% !important;
        padding: 16px 0 14px 18px !important;
        gap: 10px !important;
        grid-template-rows: auto minmax(0, 1fr) auto !important;
    }

    .project-modal-title {
        font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
    }

    .project-modal-intro {
        font-size: .9rem !important;
        line-height: 1.45 !important;
    }

    .project-modal-bodywrap {
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .project-modal-bodycopy {
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        font-size: .9rem !important;
        line-height: 1.52 !important;
        padding-right: 8px !important;
    }

    .project-modal-foot {
        padding-top: 12px !important;
        gap: 12px !important;
    }

    .project-modal-nav {
        min-height: 38px !important;
        padding: 0 .85rem !important;
        font-size: .82rem !important;
    }

    .project-modal-photo-nav {
        top: 50% !important;
    }
}
@media (max-width: 768px) {
    .projecten-page {
        padding-top: 1.5rem;
        padding-bottom: 4rem;
    }

    .projecten-shell {
        width: min(100%, calc(100% - 14px));
    }
    .project-modal-kicker {
    margin-top: 30px;
    }
    .projecten-hero__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        border-radius: 28px;
    }

    .projecten-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .projecten-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    .projecten-hero__panel {
        min-height: 180px;
        border-radius: 22px;
    }

    .projecten-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        border-radius: 22px;
        margin-bottom: 50px;
    }

    .project-card__title {
        min-height: 72px;
    }

    .home-projects-rail .project-rail {
        --rail-h: 210px;
    }

    .home-projects-rail .project-rail__track {
        mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    }

    .home-projects-rail .all-projects-link {
        font-size: .95rem;
        text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

    .rail-heading {
        font-size: 1.8rem;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
    }

        .rail-heading::after {
            width: 70px;
            height: 2px;
        }

    .project-modal .modal-dialog {
        width: calc(100vw - 5px)!important;
        max-width: 100%;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        margin: 75px auto !important;
        padding: 0 10px;
    }

    .project-modal-content {
        border-radius: 24px;
        height: 100%;
        max-height: calc(100dvh - 20px);
    }

    .project-modal-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        height: 100%;
        overflow: hidden;
    }

    .project-modal-media {
        padding-right: 0;
    }

    .project-modal-carousel {
        height: 275px;
        min-height: 275px;
        max-height: 275px;
        border-radius: 18px;
    }

    .project-modal-panel {
        gap: 12px;
        padding: 8px 0 0 0;
        border-left: 0;
        border-top: 1px solid rgba(17,18,20,.08);
    }

    .project-modal-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .project-modal-title {
        font-size: clamp(1.28rem, 6vw, 1.8rem);
        margin-top: 10px;
        margin-bottom:20px;        
    }

    .project-modal-intro {
        font-size: .92rem;
        margin-bottom: 20px;
    }

    .project-modal-bodycopy {
        font-size: .94rem;
        line-height: 1.66;
    }

    .project-modal-foot {
        padding-top: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .project-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .project-modal-nav,
    a.cta-premium {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }
    .project-modal-photo-nav {
        display: inline-flex !important;
        top: 145px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 22px !important;
        z-index: 80 !important;
    }

    .project-modal-photo-nav--prev {
        left: 0px !important;
    }

    .project-modal-photo-nav--next {
        right: 0px !important;
    }
    .projectcase-info__lead {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.65;
    }

    .projectcase-info__work {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 14px;
        padding: 18px;
        border-radius: 22px;
    }

        .projectcase-info__work h3 {
            font-size: clamp(26px, 8vw, 36px);
        }

    .projectcase-info__work-link {
        width: fit-content;
        max-width: 75%;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .home-projects-rail .project-rail {
        --rail-h: 240px;
    }
}

@media (max-width: 576px) {
    .home-projects-rail .all-projects-link {
        font-size: .95rem;
        text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

    .rail-heading {
        font-size: 1.8rem;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
    }

        .rail-heading::after {
            width: 70px;
            height: 2px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card::before,
    .project-card::after,
    a.cta-premium,
    a.cta-premium .ms-1,
    .project-modal-nav,
    .project-modal-close {
        transition: none !important;
    }
}

.project-modal-media {
    position: relative;
}

.project-modal-carousel {
    position: relative;
    overflow: hidden;
}

.project-modal-photo-nav {
    position: absolute;
    top: 210px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(17,18,20,.42);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15,15,16,.20), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
    opacity: .92;
}

    .project-modal-photo-nav:hover {
        transform: translateY(-50%) scale(1.05);
        background: rgba(17,18,20,.58);
        box-shadow: 0 18px 34px rgba(15,15,16,.24), inset 0 1px 0 rgba(255,255,255,.18);
        opacity: 1;
    }

    .project-modal-photo-nav:active {
        transform: translateY(-50%) scale(.98);
    }

.project-modal-photo-nav--prev {
    left: 18px;
}

.project-modal-photo-nav--next {
    right: 45px;
}

@media (max-width: 991.98px) {
    .project-modal-photo-nav {
        top: 140px;
    }
}

 

.project-modal .modal-dialog,
.project-modal .modal-content,
.project-modal-content,
.project-modal-shell {
    overscroll-behavior: contain;
}

/*-------------------------*/
body.projectcase-pagina {
    background: radial-gradient(900px 480px at 86% 8%, rgba(193,17,26,.14) 0%, rgba(193,17,26,.045) 36%, rgba(193,17,26,0) 70%), radial-gradient(760px 420px at 12% 18%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.38) 42%, rgba(255,255,255,0) 74%), radial-gradient(1000px 520px at 50% 74%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.18) 40%, rgba(255,255,255,0) 76%), linear-gradient(180deg, #d9d1c8 0%, #eee8e1 24%, #f7f4ef 52%, #e7dfd6 100%);
    background-attachment: fixed;
    overflow-x: clip;
}

.projectcase-hero {
    position: relative;
    width: 100%;
    min-height: min(92vh, 900px);
    margin-top: -120px;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.projectcase-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
    filter: saturate(.98) contrast(1.03) brightness(.92);
}

.projectcase-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(72% 70% at 54% 36%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 38%), linear-gradient(90deg, rgba(6,7,9,.78) 0%, rgba(6,7,9,.50) 34%, rgba(6,7,9,.14) 68%, rgba(6,7,9,.22) 100%), linear-gradient(180deg, rgba(6,7,9,.46) 0%, rgba(6,7,9,.05) 32%, rgba(6,7,9,.38) 100%);
}

.projectcase-hero__inner {
    position: relative;
    z-index: 2;
    width: min(var(--proj-max), calc(100% - 56px));
    min-height: min(92vh, 900px);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: clamp(170px, 15vw, 230px) 0 clamp(112px, 10vw, 170px);
}

.projectcase-hero__content {
    max-width: 820px;
}

.projectcase-back {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}

    .projectcase-back:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.20);
        color: #fff;
    }

.projectcase-hero__badge,
.projectcase-kicker,
.projectcase-feature__label,
.projectcase-cta__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.projectcase-hero__badge {
    margin-bottom: 18px;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.projectcase-hero h1 {
    margin: 0;
    max-width: 11ch;
    color: #fff;
    font-size: clamp(56px, 7vw, 116px);
    line-height: .86;
    letter-spacing: -.082em;
    font-weight: 900;
    text-shadow: 0 18px 48px rgba(0,0,0,.30);
    text-wrap: balance;
}

.projectcase-hero__intro {
    max-width: 700px;
    margin-top: 24px;
    color: rgba(255,255,255,.88);
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.65;
    letter-spacing: -.02em;
    text-shadow: 0 10px 28px rgba(0,0,0,.28);
}

    .projectcase-hero__intro p {
        margin: 0 0 14px;
    }

        .projectcase-hero__intro p:last-child {
            margin-bottom: 0;
        }

.projectcase-hero__actions,
.projectcase-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.projectcase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.02em;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease, color .22s ease;
}

    .projectcase-btn:hover {
        transform: translateY(-2px);
    }

.projectcase-btn--primary {
    background: linear-gradient(180deg, #db1c28 0%, #b9101a 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(193,17,26,.30);
}

.projectcase-btn--glass {
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.23);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.projectcase-btn--dark {
    color: #fff;
    background: linear-gradient(180deg, #232930, #171b20);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.projectcase-intro {
    padding: clamp(82px, 9vw, 140px) 24px clamp(42px, 6vw, 84px);
}

.projectcase-intro__inner {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;
}

.projectcase-kicker {
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(16,17,20,.48);
    background: transparent;
    padding: 0;
}

    .projectcase-kicker::before {
        content: "";
        width: 38px;
        height: 2px;
        border-radius: 999px;
        background: var(--proj-accent);
    }

.projectcase-intro h2,
.projectcase-info__heading h2,
.projectcase-gallery__head h2 {
    margin: 0;
    color: var(--proj-ink);
    font-size: clamp(42px, 5.6vw, 86px);
    line-height: .9;
    letter-spacing: -.075em;
    font-weight: 900;
    text-wrap: balance;
}

.projectcase-intro p {
    width: min(760px, 100%);
    margin: 24px auto 0;
    color: var(--proj-ink-soft);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.8;
    letter-spacing: -.02em;
}

.projectcase-feature {
    padding: clamp(42px, 5vw, 78px) 24px clamp(72px, 8vw, 130px);
}

.projectcase-feature__inner {
    position: relative;
    width: min(var(--proj-max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, .86fr) minmax(0, 1fr);
    gap: clamp(42px, 6vw, 92px);
    align-items: center;
}

.projectcase-feature__media {
    position: relative;
    z-index: 1;
}

    .projectcase-feature__media::before {
        content: "";
        position: absolute;
        inset: -14% -10% -16% -10%;
        z-index: 0;
        border-radius: 999px;
        background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.82) 0%, rgba(255,255,255,.32) 38%, rgba(255,255,255,0) 72%), radial-gradient(circle at 70% 70%, rgba(193,17,26,.12) 0%, rgba(193,17,26,0) 58%);
        filter: blur(24px);
        pointer-events: none;
    }

.projectcase-feature__imagewrap {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 48px;
}

    .projectcase-feature__imagewrap img {
        width: 100%;
        height: clamp(420px, 34vw, 560px);
        object-fit: cover;
        object-position: center center;
        border-radius: 48px;
        border: 1px solid rgba(255,255,255,.72);
        box-shadow: 0 34px 90px rgba(20,20,20,.12), 0 12px 34px rgba(20,20,20,.08);
        filter: saturate(.98) contrast(1.02) brightness(1.02);
        transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1), filter .45s cubic-bezier(.16,1,.3,1);
    }

.projectcase-feature__inner:hover .projectcase-feature__imagewrap img {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 44px 110px rgba(20,20,20,.16), 0 16px 38px rgba(20,20,20,.10);
    filter: saturate(1.02) contrast(1.03) brightness(1.03);
}

.projectcase-feature__content {
    position: relative;
    z-index: 2;
}

.projectcase-feature__label {
    margin-bottom: 18px;
    color: rgba(16,17,20,.48);
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(16,17,20,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.projectcase-feature__content h2 {
    max-width: 11ch;
    margin: 0 0 24px;
    color: var(--proj-ink);
    font-size: clamp(38px, 4.4vw, 72px);
    line-height: .9;
    letter-spacing: -.075em;
    font-weight: 900;
    text-wrap: balance;
}

.projectcase-feature__prose {
    max-width: 720px;
    color: var(--proj-ink-soft);
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.84;
    letter-spacing: -.018em;
}

    .projectcase-feature__prose p {
        margin: 0 0 18px;
    }

        .projectcase-feature__prose p:last-child {
            margin-bottom: 0;
        }

.projectcase-info {
    padding: clamp(24px, 4vw, 56px) 24px clamp(76px, 8vw, 126px);
}

.projectcase-info__inner {
    position: relative;
    width: min(var(--proj-max), 100%);
    margin: 0 auto;
    padding: clamp(34px, 4vw, 58px);
    border-radius: 52px;
    overflow: hidden;
    background: radial-gradient(760px 520px at 85% 70%, rgba(193,17,26,.24) 0%, rgba(193,17,26,.07) 42%, rgba(193,17,26,0) 72%), radial-gradient(700px 460px at 26% 22%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 58%), linear-gradient(135deg, #171717 0%, #111 48%, #241818 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 42px 100px rgba(16,17,20,.20), 0 16px 40px rgba(16,17,20,.11);
}

    .projectcase-info__inner::before {
        content: "";
        position: absolute;
        inset: 1px;
        z-index: 0;
        border-radius: 55px;
        background: linear-gradient(115deg, rgba(255,255,255,.10), rgba(255,255,255,0) 34%), linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,0) 42%);
        pointer-events: none;
    }

.projectcase-info__heading,
.projectcase-info__cards {
    position: relative;
    z-index: 1;
}

.projectcase-info__heading {
    max-width: 720px;
    margin-bottom: 26px;
}

    .projectcase-info__heading .projectcase-kicker {
        color: rgba(255,255,255,.64);
    }

    .projectcase-info__heading h2 {
        color: #fff;
    }

.projectcase-info__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.projectcase-info__card {
    min-height: 108px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .projectcase-info__card strong,
    .projectcase-info__card span {
        display: block;
    }

    .projectcase-info__card strong {
        color: rgba(255,255,255,.56);
        font-size: 10px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .projectcase-info__card span {
        margin-top: 14px;
        color: rgba(255,255,255,.96);
        font-size: clamp(22px, 2.4vw, 34px);
        line-height: .96;
        font-weight: 900;
        letter-spacing: -.055em;
    }

.projectcase-info__lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.66);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.75;
    letter-spacing: -.018em;
}

.projectcase-info__work {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 16px;
    padding: 20px 22px;
    border-radius: 26px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.projectcase-info__work-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 10px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(193,17,26,.20);
    border: 1px solid rgba(193,17,26,.26);
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.projectcase-info__work h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: .96;
    letter-spacing: -.06em;
    font-weight: 900;
}

.projectcase-info__work p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.64);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -.015em;
}

.projectcase-info__work-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #db1c28 0%, #b9101a 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 16px 34px rgba(193,17,26,.26);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

    .projectcase-info__work-link:hover {
        transform: translateY(-2px);
        color: #fff;
        filter: brightness(1.04);
        box-shadow: 0 20px 42px rgba(193,17,26,.32);
    }

.projectcase-gallery {
    padding: clamp(62px, 7vw, 112px) 24px;
}

.projectcase-gallery__inner {
    width: min(var(--proj-max), 100%);
    margin: 0 auto;
}

.projectcase-gallery__head {
    max-width: 860px;
    margin-bottom: clamp(26px, 4vw, 48px);
}

.projectcase-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.projectcase-gallery__item {
    position: relative;
    margin: 0;
    border-radius: 32px;
    overflow: hidden;
    background: #151515;
    box-shadow: 0 24px 70px rgba(20,20,20,.14), 0 8px 24px rgba(20,20,20,.08);
}

    .projectcase-gallery__item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .projectcase-gallery__item img {
        width: 100%;
        height: 100%;
        min-height: 280px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform .55s cubic-bezier(.16,1,.3,1), filter .55s cubic-bezier(.16,1,.3,1);
    }

    .projectcase-gallery__item:nth-child(1) img {
        min-height: 586px;
    }

    .projectcase-gallery__item:hover img {
        transform: scale(1.035);
        filter: saturate(1.04) contrast(1.03);
    }

    .projectcase-gallery__item figcaption {
        position: absolute;
        inset: auto 0 0 0;
        padding: 34px 22px 20px;
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 700;
        background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.66));
    }

.projectcase-cta {
    padding: clamp(42px, 6vw, 86px) 24px clamp(86px, 9vw, 142px);
}

.projectcase-cta__inner {
    position: relative;
    width: min(var(--proj-max), 100%);
    min-height: 420px;
    margin: 0 auto;
    padding: clamp(42px, 6vw, 82px);
    border-radius: 64px;
    overflow: hidden;
    background: radial-gradient(760px 520px at 85% 70%, rgba(193,17,26,.24) 0%, rgba(193,17,26,.07) 42%, rgba(193,17,26,0) 72%), radial-gradient(700px 460px at 26% 22%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 58%), linear-gradient(135deg, #171717 0%, #111 48%, #241818 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 48px 120px rgba(16,17,20,.22), 0 18px 46px rgba(16,17,20,.12);
}

    .projectcase-cta__inner::before {
        content: "";
        position: absolute;
        inset: 1px;
        z-index: 0;
        border-radius: 63px;
        background: linear-gradient(115deg, rgba(255,255,255,.10), rgba(255,255,255,0) 34%), linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,0) 42%);
        pointer-events: none;
    }

.projectcase-cta__badge,
.projectcase-cta h2,
.projectcase-cta p,
.projectcase-cta__actions {
    position: relative;
    z-index: 1;
}

.projectcase-cta__badge {
    margin-bottom: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.66);
}

.projectcase-cta h2 {
    max-width: 8.8ch;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 5.2vw, 86px);
    line-height: .88;
    letter-spacing: -.078em;
    font-weight: 900;
    text-wrap: balance;
}

.projectcase-cta p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.68);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.75;
    letter-spacing: -.018em;
}

.projectcase-reveal {
    opacity: 1;
    transform: none;
}

@media (max-width: 1280px) {
    .projectcase-feature__inner {
        grid-template-columns: minmax(380px, .86fr) minmax(0, 1fr);
        gap: 52px;
    }
}

@media (max-width: 991px) {
    .projectcase-hero {
        min-height: 78vh;
        margin-top: -130px;
    }

    .projectcase-hero__inner {
        width: min(100% - 34px, var(--proj-max));
        min-height: 78vh;
        padding-top: 160px;
        padding-bottom: 110px;
    }

    .projectcase-hero h1 {
        font-size: clamp(44px, 10vw, 76px);
    }

    .projectcase-hero__intro {
        font-size: 17px;
    }

    .projectcase-feature__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projectcase-feature__media {
        order: 2;
    }

    .projectcase-feature__content {
        order: 1;
    }

        .projectcase-feature__content h2 {
            max-width: 100%;
            font-size: clamp(34px, 7vw, 54px);
        }

    .projectcase-feature__imagewrap img {
        height: clamp(330px, 54vw, 480px);
        border-radius: 34px;
    }

    .projectcase-feature__imagewrap {
        border-radius: 34px;
    }

    .projectcase-info__cards {
        grid-template-columns: 1fr;
    }

    .projectcase-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projectcase-gallery__item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

        .projectcase-gallery__item:nth-child(1) img {
            min-height: 420px;
        }
}

@media (max-width: 767px) {
    .projectcase-hero {
        min-height: 86vh!important;
        margin-top: -225px!important;
    }

    .projectcase-hero__shade {
        background: linear-gradient(90deg, rgba(6,7,9,.76) 0%, rgba(6,7,9,.48) 58%, rgba(6,7,9,.34) 100%), linear-gradient(180deg, rgba(6,7,9,.56) 0%, rgba(6,7,9,.10) 36%, rgba(6,7,9,.48) 100%);
    }

    .projectcase-hero__inner {
        width: calc(100% - 28px);
        min-height: 86vh;
        padding-top: 300px!important;
        padding-bottom: 72px;
        align-items: flex-end;
    }

    .projectcase-back {
        min-height: 32px;
        margin-bottom: 14px;
        padding: 0 12px;
        font-size: 11px;
    }

    .projectcase-hero__badge {
        min-height: 28px;
        margin-bottom: 14px;
        padding: 0 12px;
        font-size: 9px;
    }

    .projectcase-hero h1 {
        max-width: 9.5ch;
        font-size: clamp(38px, 14vw, 58px);
        line-height: .9;
    }

    .projectcase-hero__intro {
        max-width: 96%;
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.62;
    }

    .projectcase-hero__actions,
    .projectcase-cta__actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 22px;
        width: 100%;
    }

    .projectcase-btn {
        width: auto;
        min-width: 210px;
        max-width: 75%;
        min-height: 50px;
        padding: 0 1.15rem;
    }

    .projectcase-intro {
        padding: 58px 16px 36px;
    }

        .projectcase-intro h2,
        .projectcase-info__heading h2,
        .projectcase-gallery__head h2 {
            font-size: clamp(34px, 11vw, 52px);
        }

        .projectcase-intro p {
            font-size: 15px;
            line-height: 1.72;
        }

    .projectcase-feature {
        padding: 52px 18px 68px;
    }

    .projectcase-feature__content h2 {
        font-size: clamp(31px, 10vw, 44px);
        margin-bottom: 16px;
    }

    .projectcase-feature__prose {
        font-size: 15px;
        line-height: 1.72;
    }

        .projectcase-feature__prose p {
            margin-bottom: 14px;
        }

    .projectcase-feature__imagewrap {
        border-radius: 26px;
    }

        .projectcase-feature__imagewrap img {
            height: clamp(260px, 72vw, 360px);
            border-radius: 26px;
        }

    .projectcase-info,
    .projectcase-gallery,
    .projectcase-cta {
        padding-left: 10px;
        padding-right: 10px;
    }

    .projectcase-info__inner,
    .projectcase-cta__inner {
        padding: 24px;
        border-radius: 32px;
    }

        .projectcase-info__inner::before,
        .projectcase-cta__inner::before {
            border-radius: 31px;
        }

    .projectcase-info__card {
        min-height: 112px;
        padding: 18px;
        border-radius: 20px;
    }

        .projectcase-info__card span {
            font-size: 28px;
        }
     
    .projectcase-info__work {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-top: 16px;
        padding: 22px;
        border-radius: 24px;
    }

        .projectcase-info__work h3 {
            max-width: 100%;
            font-size: clamp(26px, 8vw, 38px);
            line-height: .95;
        }

        .projectcase-info__work p {
            max-width: 100%;
            font-size: 15px;
            line-height: 1.65;
        }

    .projectcase-info__work-link {
        width: auto;
        max-width: 75%;
        min-height: 48px;
        padding: 0 1.15rem;
        white-space: normal;
        text-align: center;
    }
    .projectcase-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .projectcase-gallery__item,
    .projectcase-gallery__item:nth-child(1) {
        grid-column: auto;
        grid-row: auto;
        border-radius: 20px;
    }

        .projectcase-gallery__item img,
        .projectcase-gallery__item:nth-child(1) img {
            min-height: 0;
            height: auto;
            aspect-ratio: 4 / 3;
        }

    .projectcase-cta h2 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .projectcase-cta p {
        font-size: 15px;
        line-height: 1.7;
    }

    .projectcase-kicker {
        font-size: 10px;
        margin-bottom: 14px;
    }

        .projectcase-kicker::before {
            width: 28px;
        }
}

@media (max-width: 430px) {
    .projectcase-btn {
        max-width: 100%;
    }
    .projectcase-info__work-link {
        width: 100%;
        max-width: 100%;
    }
    .projectcase-gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .projectcase-gallery__item,
    .projectcase-gallery__item:nth-child(1) {
        border-radius: 22px;
    }

        .projectcase-gallery__item img,
        .projectcase-gallery__item:nth-child(1) img {
            aspect-ratio: 4 / 3;
        }
}
@media (max-width: 480px) {
    .projectcase-hero {
        min-height: 88vh;
    }

    .projectcase-hero__inner {
        min-height: 88vh;
        padding-top: 190px !important;
        padding-bottom: 42px !important;
    }

    .projectcase-hero h1 {
        max-width: 10.8ch;
        font-size: clamp(31px, 11vw, 46px);
        line-height: .94;
        letter-spacing: -.07em;
    }

    .projectcase-hero__intro {
        max-width: 94%;
        font-size: 13.5px;
        line-height: 1.56;
    }

    .projectcase-hero__actions {
        margin-top: 20px;
    }

    .projectcase-btn {
        min-width: 178px;
        max-width: 72%;
        min-height: 46px;
        font-size: 13.5px;
    }

    .projectcase-info__inner,
    .projectcase-cta__inner {
        padding: 20px;
        border-radius: 28px;
    }

        .projectcase-info__inner::before,
        .projectcase-cta__inner::before {
            border-radius: 27px;
        }

    .projectcase-feature,
    .projectcase-info,
    .projectcase-gallery,
    .projectcase-cta {
        padding-left: 10px;
        padding-right: 10px;
    }

    .projectcase-feature__imagewrap img {
        height: clamp(230px, 74vw, 310px);
        border-radius: 22px;
    }

    .projectcase-feature__imagewrap {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projectcase-btn,
    .projectcase-back,
    .projectcase-hero__image,
    .projectcase-feature__imagewrap img,
    .projectcase-feature__inner:hover .projectcase-feature__imagewrap img,
    .projectcase-gallery__item img {
        transition: none;
        transform: none;
        filter: none;
    }
}
/*gallery*/
.projectcase-gallery__button {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

    .projectcase-gallery__button img {
        width: 100%;
        height: 100%;
        display: block;
    }

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    background: rgba(5,6,8,.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .project-lightbox.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.project-lightbox__stage {
    position: relative;
    width: min(1180px, 100%);
    height: min(78vh, 780px);
    display: grid;
    place-items: center;
}

    .project-lightbox__stage img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        display: block;
        object-fit: contain;
        border-radius: 28px;
        box-shadow: 0 40px 120px rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.28);
    }

.project-lightbox__close {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111214;
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.92);
    transition: transform .22s ease, background .22s ease;
}

    .project-lightbox__close:hover {
        transform: translateY(-1px);
        background: #fff;
    }

.project-lightbox__nav {
    position: fixed;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-50%);
    transition: transform .22s ease, background .22s ease;
}

    .project-lightbox__nav:hover {
        transform: translateY(-50%) scale(1.05);
        background: rgba(255,255,255,.24);
    }

.project-lightbox__nav--prev {
    left: 24px;
}

.project-lightbox__nav--next {
    right: 24px;
}

.project-lightbox__counter {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.project-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .project-lightbox {
        padding: 14px;
    }

    .project-lightbox__stage {
        width: 100%;
        height: 76vh;
    }

        .project-lightbox__stage img {
            border-radius: 20px;
        }

    .project-lightbox__close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .project-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 30px;
        background: rgba(0,0,0,.34);
    }

    .project-lightbox__nav--prev {
        left: 10px;
    }

    .project-lightbox__nav--next {
        right: 10px;
    }

    .project-lightbox__counter {
        bottom: 14px;
    }
}