/* =========================================================
   BRAND WORLD V2
   Public-safe masterbrand architecture and visual browser.
   ========================================================= */

.bwv2-head{
    display:grid;
    grid-template-columns:1fr minmax(300px,.68fr);
    gap:42px;
    align-items:end;
    margin-bottom:20px;
}
.bwv2-head span{
    color:rgb(var(--world-accent)/.88);
    font:700 .43rem/1 monospace;
    letter-spacing:.1em;
}
.bwv2-head h2{
    margin:10px 0 0;
    font-size:clamp(2.2rem,4vw,4.4rem);
    line-height:.92;
    letter-spacing:-.055em;
}
.bwv2-head p{
    margin:0;
    color:var(--ws-muted);
    font-size:.61rem;
    line-height:1.68;
}

.bwv2-architecture{
    margin-bottom:12px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
}
.bwv2-arch-card{
    min-height:142px;
    padding:13px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:20px;
    background:
        radial-gradient(circle at 0 0,rgb(var(--world-accent)/.055),transparent 40%),
        rgba(255,255,255,.012);
}
.bwv2-arch-card span{
    color:rgb(var(--world-accent)/.66);
    font:700 .35rem/1 monospace;
    letter-spacing:.07em;
}
.bwv2-arch-card h3{
    margin:15px 0 7px;
    color:#fff;
    font-size:.78rem;
}
.bwv2-arch-card p{
    margin:0;
    color:rgba(255,255,255,.38);
    font-size:.46rem;
    line-height:1.5;
}

.bwv2-note{
    margin-bottom:12px;
    padding:11px 13px;
    border:1px solid rgba(255,172,104,.14);
    border-radius:16px;
    color:rgba(255,214,175,.62);
    background:rgba(255,172,104,.025);
    font:650 .39rem/1.55 monospace;
}

.bwv2-toolbar{
    margin-bottom:10px;
    padding:9px;
    display:grid;
    grid-template-columns:minmax(240px,1fr) auto;
    gap:8px;
    align-items:center;
    border:1px solid rgba(255,255,255,.075);
    border-radius:20px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008)),
        rgba(9,20,31,.62);
}
.bwv2-search{
    min-height:42px;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:999px;
    background:rgba(255,255,255,.015);
}
.bwv2-search i{
    color:rgb(var(--world-accent)/.72);
    font-style:normal;
}
.bwv2-search input{
    width:100%;
    border:0;
    outline:0;
    color:#fff;
    background:transparent;
    font-size:.54rem;
}
.bwv2-search input::placeholder{color:rgba(255,255,255,.24)}

.bwv2-filters{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.bwv2-filter{
    min-height:34px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.065);
    border-radius:999px;
    color:rgba(255,255,255,.36);
    background:rgba(255,255,255,.012);
    cursor:pointer;
    font:700 .35rem/1 monospace;
    letter-spacing:.05em;
}
.bwv2-filter:hover,
.bwv2-filter.is-active{
    color:#fff;
    border-color:rgb(var(--world-accent)/.22);
    background:rgb(var(--world-accent)/.045);
}

.bwv2-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-flow:dense;
    gap:8px;
}
.bwv2-card{
    position:relative;
    min-height:270px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    background:#07121c;
    cursor:pointer;
    box-shadow:
        0 20px 54px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.035);
}
.bwv2-card:nth-child(6n+1),
.bwv2-card:nth-child(6n+4){
    grid-column:span 2;
}
.bwv2-card img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    filter:brightness(.80) saturate(1.05);
    transition:
        transform .5s var(--ws-ease),
        filter .3s ease;
}
.bwv2-card:hover img{
    transform:scale(1.025);
    filter:brightness(.90) saturate(1.09);
}
.bwv2-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:
        linear-gradient(180deg,rgba(5,12,18,.01) 28%,rgba(5,12,18,.90) 100%),
        radial-gradient(circle at 0 0,rgb(var(--world-accent)/.085),transparent 36%);
}
.bwv2-card-copy{
    position:absolute;
    z-index:2;
    left:0;
    right:0;
    bottom:0;
    padding:14px;
}
.bwv2-card-meta{
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
}
.bwv2-card-meta span,
.bwv2-card-meta i{
    padding:5px 7px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    color:rgba(255,255,255,.48);
    background:rgba(6,14,21,.48);
    backdrop-filter:blur(8px);
    font:700 .32rem/1 monospace;
    font-style:normal;
    letter-spacing:.05em;
}
.bwv2-card-meta i{
    color:rgb(var(--world-accent)/.70);
}
.bwv2-card h3{
    margin:10px 0 0;
    color:#fff;
    font-size:.84rem;
    line-height:1.22;
    letter-spacing:-.02em;
}
.bwv2-card p{
    margin:6px 0 0;
    color:rgba(255,255,255,.40);
    font-size:.45rem;
    line-height:1.45;
}
.bwv2-card.is-hidden{display:none}

.bwv2-rules{
    margin-top:12px;
    padding:16px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:24px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008)),
        rgba(9,20,31,.62);
}
.bwv2-rules-head{
    display:grid;
    grid-template-columns:1fr minmax(260px,.62fr);
    gap:30px;
    align-items:end;
    margin-bottom:12px;
}
.bwv2-rules-head span{
    color:rgb(var(--world-accent)/.72);
    font:700 .39rem/1 monospace;
    letter-spacing:.075em;
}
.bwv2-rules-head h3{
    margin:9px 0 0;
    color:#fff;
    font-size:1.5rem;
    letter-spacing:-.04em;
}
.bwv2-rules-head p{
    margin:0;
    color:rgba(255,255,255,.40);
    font-size:.52rem;
    line-height:1.55;
}
.bwv2-rule-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
}
.bwv2-rule{
    min-height:148px;
    padding:12px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:18px;
    background:rgba(255,255,255,.01);
}
.bwv2-rule span{
    color:rgb(var(--world-accent)/.62);
    font:700 .35rem/1 monospace;
    letter-spacing:.06em;
}
.bwv2-rule strong{
    display:block;
    margin-top:14px;
    color:#fff;
    font-size:.68rem;
}
.bwv2-rule p{
    margin:7px 0 0;
    color:rgba(255,255,255,.34);
    font-size:.44rem;
    line-height:1.48;
}

.bwv2-viewer{
    position:fixed;
    inset:0;
    z-index:99500;
    display:grid;
    place-items:center;
    padding:16px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s ease;
}
.bwv2-viewer.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.bwv2-viewer-backdrop{
    position:absolute;
    inset:0;
    border:0;
    background:
        radial-gradient(circle at 12% 15%,rgba(91,234,255,.05),transparent 28%),
        radial-gradient(circle at 88% 15%,rgba(173,140,255,.055),transparent 30%),
        rgba(2,7,11,.85);
    backdrop-filter:blur(30px) saturate(145%);
}
.bwv2-viewer-panel{
    position:relative;
    z-index:2;
    width:min(1320px,100%);
    max-height:calc(100vh - 32px);
    overflow:auto;
    border:1px solid rgba(255,255,255,.10);
    border-radius:30px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.01)),
        rgba(8,18,28,.98);
    box-shadow:0 54px 180px rgba(0,0,0,.52);
}
.bwv2-viewer-head{
    padding:15px 17px;
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.07);
}
.bwv2-viewer-head span{
    color:rgb(var(--world-accent)/.72);
    font:700 .38rem/1 monospace;
    letter-spacing:.07em;
}
.bwv2-viewer-head h3{
    margin:7px 0 0;
    color:#fff;
    font-size:1.05rem;
}
.bwv2-viewer-head button{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.015);
    cursor:pointer;
    font-size:1.15rem;
}
.bwv2-viewer-media{
    min-height:640px;
    display:grid;
    place-items:center;
    overflow:auto;
    background:#061019;
}
.bwv2-viewer-media img{
    max-width:100%;
    max-height:80vh;
    display:block;
    object-fit:contain;
}
.bwv2-viewer-foot{
    padding:13px 16px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    border-top:1px solid rgba(255,255,255,.06);
    color:rgba(255,255,255,.34);
    font:650 .37rem/1.4 monospace;
}
.bwv2-empty{
    grid-column:1/-1;
    min-height:180px;
    display:grid;
    place-items:center;
    border:1px dashed rgba(255,255,255,.075);
    border-radius:24px;
    color:var(--ws-dim);
    font-size:.5rem;
}

@media(max-width:1100px){
    .bwv2-head{grid-template-columns:1fr;gap:14px}
    .bwv2-architecture{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bwv2-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .bwv2-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
    .bwv2-toolbar{grid-template-columns:1fr}
    .bwv2-filters{justify-content:flex-start}
    .bwv2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bwv2-card:nth-child(n){grid-column:span 1}
}
@media(max-width:560px){
    .bwv2-architecture,
    .bwv2-grid,
    .bwv2-rule-grid{grid-template-columns:1fr}
    .bwv2-rules-head{grid-template-columns:1fr}
    .bwv2-viewer-panel{border-radius:22px}
}

/* =========================================================
   V13 — BRAND SYSTEM EXPLORER
   Counts, native viewer and stronger spectral depth.
   ========================================================= */

.bwv2-toolbar{
    border-radius:24px;
}

.bwv2-filter{
    min-height:36px;
    border-radius:999px;
}

.bwv2-filter b{
    margin-left:6px;
    padding:4px 6px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:999px;
    color:rgba(255,255,255,.30);
    background:rgba(255,255,255,.015);
    font:700 .30rem/1 monospace;
}

.bwv2-filter.is-active b{
    color:rgb(var(--world-accent)/.78);
    border-color:rgb(var(--world-accent)/.16);
    background:rgb(var(--world-accent)/.03);
}

.bwv2-result-meta{
    margin:0 3px 10px;
    min-height:18px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:rgba(255,255,255,.28);
    font:600 .37rem/1 monospace;
    letter-spacing:.055em;
}

.bwv2-card{
    border-radius:28px;
    isolation:isolate;
}

.bwv2-card::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    opacity:0;
    border-radius:inherit;
    background:
        radial-gradient(
            260px circle at var(--mx,50%) var(--my,50%),
            rgb(var(--world-accent)/.14),
            transparent 60%
        );
    transition:opacity .2s ease;
}

.bwv2-card:hover::after,
.bwv2-card:focus-visible::after{
    opacity:1;
}

.bwv2-card:focus-visible{
    outline:none;
    border-color:rgb(var(--world-accent)/.36);
    box-shadow:
        0 0 0 3px rgb(var(--world-accent)/.06),
        0 24px 60px rgba(0,0,0,.18);
}

.bwv2-viewer-panel{
    border-radius:34px;
}

.bwv2-viewer-head{
    position:sticky;
    top:0;
    z-index:3;
    background:rgba(8,18,28,.90);
    backdrop-filter:blur(20px) saturate(160%);
}

.bwv2-viewer-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.bwv2-viewer-resolution{
    min-width:100px;
    color:rgba(255,255,255,.30);
    font:650 .36rem/1 monospace;
    letter-spacing:.055em;
    text-align:right;
}

.bwv2-viewer-actions button{
    min-width:38px;
    height:38px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.015);
    cursor:pointer;
    font:700 .42rem/1 monospace;
}

.bwv2-viewer-actions button:hover{
    border-color:rgb(var(--world-accent)/.26);
    background:rgb(var(--world-accent)/.045);
}

.bwv2-viewer-media{
    max-height:76vh;
    min-height:520px;
    overflow:auto;
    align-items:flex-start;
    justify-items:center;
    overscroll-behavior:contain;
    scrollbar-gutter:stable both-edges;
}

.bwv2-viewer-media.is-native{
    justify-items:start;
    cursor:grab;
}

.bwv2-viewer-media.is-dragging{
    cursor:grabbing;
    user-select:none;
}

.bwv2-viewer-media img{
    width:auto;
    max-width:100%;
    max-height:76vh;
    height:auto;
    flex:0 0 auto;
    image-rendering:auto;
    transition:width .18s cubic-bezier(.2,.75,.2,1);
}

@media(max-width:700px){
    .bwv2-viewer-head{
        align-items:flex-start;
    }

    .bwv2-viewer-actions{
        max-width:220px;
    }

    .bwv2-viewer-resolution{
        width:100%;
        text-align:left;
    }
}
\n.bwv2-detail-link{display:inline-flex;margin-top:.55rem;padding:.45rem .7rem;border:1px solid rgba(255,255,255,.13);border-radius:999px;color:inherit;text-decoration:none;font-size:.72rem;letter-spacing:.08em}.bwv2-detail-link:hover,.bwv2-detail-link:focus-visible{border-color:rgba(var(--world-accent),.55);outline:none}\n