.bpv-section {
    --bpv-bg-default:  #FFFFFF;
    --bpv-bg-alt:      #FAF6F0;
    --bpv-ink:         #2A1D14;
    --bpv-divider:     #2A1D14;
    --bpv-panel-w:     90vw;
    --bpv-pad-outer:   5vw;
    --bpv-pad-inner:   3vw;
    --bpv-pad-top:     5vh;
    --bpv-pad-bot:     5vh;
    --bpv-img-gap:     14px;
}

.bpv-section *,
.bpv-section *::before,
.bpv-section *::after { box-sizing: border-box; margin: 0; padding: 0; }

.bpv-section  { position: relative; }

.bpv-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.bpv-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.bpv-panel {
    position: relative;
    flex: 0 0 var(--bpv-panel-w);
    width: var(--bpv-panel-w);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.bpv-bg-default { background-color: var(--bpv-bg-default); }
.bpv-bg-alt     { background-color: var(--bpv-bg-alt); }

.bpv-panel + .bpv-panel::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 1px; height: 100%;
    background: var(--bpv-divider);
    z-index: 10;
    pointer-events: none;
}

.bpv-panel-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.bpv-col-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    height: 100%;
    padding: var(--bpv-pad-top) var(--bpv-pad-inner) var(--bpv-pad-bot) var(--bpv-pad-outer);
    overflow: hidden;
}

.bpv-col-text-top {
    display: flex;
    flex-direction: column;
}

.bpv-layout-a .bpv-col-text {
    padding: var(--bpv-pad-top) var(--bpv-pad-outer) var(--bpv-pad-bot) var(--bpv-pad-inner);
}

.bpv-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 1.5vh;
}

.bpv-index-label,
.bpv-card-label {
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 140%;
    color: var(--bpv-ink);
}
.bpv-card-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.bpv-dev-name {
    font-family: 'Swarsh Daisy', serif;
    font-size: clamp(64px, 5.5vw, 32px);
    font-weight: 400;
    line-height: 115%;
    color: var(--bpv-ink);
    letter-spacing: -0.01em;
    flex-shrink: 0;
    margin-bottom: 2vh;
}

.bpv-img-large {
    flex: 1;
    min-height: 0;
    max-height: 272px;        
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 1.5vh;
}
.bpv-img-large img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;   
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bpv-img-large:hover img { transform: scale(1.03); }

.bpv-dev-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border: 1px solid #2A1D14 !important;
    background-color: transparent !important;
    font-family: 'Inclusive Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 140% !important;
    color: #2A1D14 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
}
.bpv-dev-btn:hover {
    background-color: rgba(92, 61, 40, 0.06) !important;
}

.bpv-bottom-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    flex-shrink: 0;
}

.bpv-projects {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bpv-project-link {
    font-family: 'Swarsh Daisy', serif;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 400;
    line-height: 130%;
    color: var(--bpv-ink);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.bpv-project-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 0; height: 1px;
    background: var(--bpv-ink);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpv-project-link:hover        { opacity: 0.6; }
.bpv-project-link:hover::after { width: 100%; }

.bpv-description {
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 170%;
    color: var(--bpv-ink);
    opacity: 0.7;
    align-content: end;
}

.bpv-col-stack {
    display: flex;
    flex-direction: column;
    gap: var(--bpv-img-gap);
    height: 100%;
    overflow: hidden;
}

.bpv-layout-b .bpv-col-stack {
    padding: var(--bpv-pad-top) var(--bpv-pad-outer) var(--bpv-pad-bot) var(--bpv-pad-inner);
}

.bpv-layout-a .bpv-col-stack {
    padding: var(--bpv-pad-top) var(--bpv-pad-inner) var(--bpv-pad-bot) var(--bpv-pad-outer);
}

.bpv-img-stack-item {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    cursor: pointer;
}
.bpv-img-stack-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bpv-img-stack-item:hover img { transform: scale(1.03); }

.bpv-col-text-top,
.bpv-col-text > .bpv-bottom-meta {
    opacity: 0;
    transform: translateY(1.2rem);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpv-col-text-top          { transition-delay: 0s; }
.bpv-col-text > .bpv-bottom-meta { transition-delay: 0.14s; }

.bpv-col-stack {
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.bpv-panel.bpv-visible .bpv-col-text-top,
.bpv-panel.bpv-visible .bpv-col-text > .bpv-bottom-meta,
.bpv-panel.bpv-visible .bpv-col-stack {
    opacity: 1;
    transform: translateY(0);
}

.bpv-progress-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--bpv-ink);
    opacity: 0; z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s;
}
.bpv-progress-bar.bpv-active { opacity: 0.2; }

.bpv-lightbox {
    position: fixed; inset: 0;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.bpv-lightbox.is-open { opacity: 1; pointer-events: all; }

.bpv-lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(250, 246, 240, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.bpv-lightbox__shell {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 80px 20px;
    box-sizing: border-box; gap: 20px;
}
.bpv-lightbox__close {
    position: absolute; top: 24px; right: 28px;
    background: transparent !important;
    border: 1px solid #5C3D28 !important;
    border-radius: 0 !important;
    outline: none !important; box-shadow: none !important;
    cursor: pointer; color: #5C3D28 !important;
    padding: 8px 10px; line-height: 0;
    opacity: 0.7; transition: opacity 0.2s;
    -webkit-appearance: none; appearance: none;
}
.bpv-lightbox__close:hover { opacity: 1; }
.bpv-lightbox__close svg line { stroke: #5C3D28; }

.bpv-lightbox__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent !important;
    border: 1px solid #5C3D28 !important;
    border-radius: 0 !important;
    outline: none !important; box-shadow: none !important;
    cursor: pointer; color: #5C3D28 !important;
    padding: 12px 10px; line-height: 0;
    opacity: 0.6; transition: opacity 0.2s;
    z-index: 2; -webkit-appearance: none; appearance: none;
}
.bpv-lightbox__arrow:hover { opacity: 1; }
.bpv-lightbox__arrow svg polyline { stroke: #5C3D28; }
.bpv-lightbox__arrow--prev { left: 20px; }
.bpv-lightbox__arrow--next { right: 20px; }

.bpv-lightbox__stage {
    flex: 1; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; width: 100%; max-width: 900px;
}
.bpv-lightbox__zoom-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: grab;
}
.bpv-lightbox__zoom-wrap.is-grabbing { cursor: grabbing; }
.bpv-lightbox__main-img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
    transform-origin: center center;
    transition: transform 0.1s ease;
    pointer-events: none; user-select: none;
    -webkit-user-drag: none;
}

.bpv-lightbox__thumbs {
    display: flex; gap: 10px;
    justify-content: center; flex-wrap: nowrap;
    overflow-x: auto; padding-bottom: 4px;
    max-width: 100%; scrollbar-width: none;
}
.bpv-lightbox__thumbs::-webkit-scrollbar { display: none; }
.bpv-lightbox__thumb {
    width: 60px; height: 60px; flex-shrink: 0;
    object-fit: cover; cursor: pointer;
    opacity: 0.4; transition: opacity 0.2s;
    border: 1.5px solid transparent; border-radius: 0;
}
.bpv-lightbox__thumb:hover     { opacity: 0.7; }
.bpv-lightbox__thumb.is-active { opacity: 1; border-color: #5C3D28; }

@media (max-width: 1024px) {
    .bpv-section  { --bpv-panel-w: 95vw; --bpv-pad-outer: 4vw; }
    .bpv-dev-name { font-size: clamp(2.2rem, 6vw, 60px); }
}

@media (max-width: 768px) {
    .bpv-section { height: auto !important; }
    .bpv-sticky  { position: static; height: auto; overflow: visible; }
    .bpv-track   { flex-direction: column; transform: none !important; }

    .bpv-panel { width: 100%; flex: none; height: auto; min-height: auto; }

    .bpv-panel + .bpv-panel::before { left: 0; top: 0; width: 100%; height: 1px; }

    .bpv-panel-inner { grid-template-columns: 1fr; }

    .bpv-layout-b .bpv-col-stack,
    .bpv-layout-a .bpv-col-stack { order: -1; }

    .bpv-col-text  { padding: 6vw 5vw 5vw 5vw !important; }
    .bpv-col-stack {
        flex-direction: row;
        padding: 5vw 5vw 3vw 5vw !important;
        height: auto;
        gap: 10px;
    }
    .bpv-img-stack-item {
        flex: 1;
        height: auto;
        aspect-ratio: 3 / 4;
    }
    .bpv-img-stack-item img { height: 100%; }
    .bpv-bottom-meta    { grid-template-columns: 1fr; gap: 1.5rem; }
    .bpv-img-large {
        flex: none;
        height: 200px;          
        max-height: 200px;
        aspect-ratio: unset;    
        margin-bottom: 3vw;
    }
    .bpv-dev-name       { font-size: clamp(2.2rem, 8vw, 48px); }

    .bpv-col-text-top,
    .bpv-col-text > .bpv-bottom-meta,
    .bpv-col-stack {
        opacity: 1 !important; transform: none !important;
    }

    .bpv-lightbox__arrow { display: none; }
    .bpv-lightbox__shell  { padding: 52px 16px 12px; gap: 12px; }
    .bpv-lightbox__thumb  { width: 48px; height: 48px; }
}