@charset "UTF-8";

:root {
    --cor-fundo: #080808;
    --cor-texto: #f5f5f7;
    --cor-texto-mutado: #a1a1a6;
    --cor-acento: #c5a47e;
    --cor-vidro: rgba(255, 255, 255, 0.03);
    --cor-borda: rgba(255, 255, 255, 0.08);

    --fonte-padrao: 'Instrument Sans', sans-serif;
    --fonte-display: 'Cormorant Garamond', serif;

    --text-xs: clamp(0.65rem, 0.7vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.9vw, 0.9rem);
    --text-base: clamp(1rem, 1.1vw, 1.1rem);
    --text-xl: clamp(3rem, 8vw, 3.5rem);
    --text-display: clamp(2rem, 4vw, 5rem);

    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(2rem, 4vw, 3rem);
    --space-lg: clamp(6rem, 12vw, 15rem);

}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    touch-action: manipulation;
}


body {
    min-height: 100vh;
    font-family: var(--fonte-padrao);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

img,
picture,
svg,
video {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

button,
input {
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 1. HEADER EDITORIAL */

.dossier-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0) 100%);
    backdrop-filter: blur(8px);
}

.brand-axis {
    display: flex;
    gap: 0.5rem;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo-primary {
    font-weight: 500;
    color: var(--cor-texto);
}

.logo-secondary {
    color: var(--cor-texto-mutado);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    font-family: monospace;
    color: var(--cor-texto-mutado);
    background: var(--cor-vidro);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cor-acento);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cor-acento);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (width <=1024px) {
}

@media (width <=768px) {
    .dossier-header {
        padding: 1rem;
    }
}

@media (width <=380px) {
    .brand-axis {
        flex-direction: column;
        gap: 0.1rem;
    }
}

/* 3. COMANDO E BUSCA (HERO) */

.command-center {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding: var(--space-lg) var(--space-md) var(--space-sm) var(--space-md);
    position: relative;
}

.command-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--fonte-display);
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    text-transform: none;
}

.hero-title i {
    font-family: var(--fonte-display);
    font-style: italic;
    color: var(--cor-acento);
    font-weight: 400;
    padding-right: 0.1em;
}

.hero-subtitle {
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cor-texto-mutado);
    max-width: 450px;
    margin-bottom: var(--space-md);
}

.search-module {
    width: 100%;
    max-width: 600px;
    z-index: 300;
    display: flex;
    align-items: center;
    background: var(--cor-vidro);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    margin: 0 auto;
}

.search-module:focus-within {
    border-color: var(--cor-acento);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.icon-search {
    width: 20px;
    height: 20px;
    color: var(--cor-texto-mutado);
    margin-right: 1rem;
}

.search-module:focus-within .icon-search {
    color: var(--cor-acento);
}

.search-input {
    flex: 1;
    font-size: var(--text-base);
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.search-keyboard-hint {
    font-size: var(--text-xs);
    color: var(--cor-texto-mutado);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
}

.search-suggestions {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestions::-webkit-scrollbar {
    width: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--cor-borda);
    border-radius: 4px;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(197, 164, 126, 0.08);
}

.sugg-text {
    color: var(--cor-texto);
    font-size: var(--text-sm);
    font-weight: 400;
}

.sugg-label {
    color: var(--cor-acento);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(197, 164, 126, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

@media (width <=1024px) {
}

@media (width <=768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-module {
        padding: 0.6rem 1rem;
    }

    .search-keyboard-hint {
        display: none;
    }
}

@media (width <=380px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-module {
        padding: 0.5rem 0.8rem;
    }
}

/* 3. FILTER RIBBON (TAGS) */

.filter-ribbon {
    display: flex;
    gap: 0.8rem;
    margin: var(--space-md) auto 0 auto;
    width: 100%;
    max-width: 1000px;
    padding: var(--space-md) 0 0.5rem 0;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--cor-borda);
    border-radius: 30px;
    color: var(--cor-texto-mutado);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--cor-acento);
    color: var(--cor-acento);
    background: rgba(197, 164, 126, 0.08);
    box-shadow: 0 0 15px rgba(197, 164, 126, 0.1);
}

@media (width <=1024px) {
    .filter-ribbon {
        padding-top: var(--space-md);
    }
}

@media (width <=768px) {
    @media (width <=768px) {

        .dossier-core,
        .command-center {
            max-width: 100vw;
            overflow-x: hidden;
        }

        .command-container {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .filter-ribbon {
            width: 100%;
            max-width: 100%;
            flex-wrap: nowrap;
            overflow-x: auto;
            justify-content: flex-start;
            padding: 0 1rem;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
    }

}

@media (width <=380px) {
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.65rem;
    }

    .search-module {
        padding: 0.4rem 0.6rem;
    }

    .icon-search {
        margin-right: 0.5rem;
    }

    .search-input {
        font-size: 0.9rem;
    }
}

/*  4. VAULT GALERIA & CARDS */

.vault-gallery {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    padding: var(--space-lg) var(--space-md);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.vault-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
}

.asset-tag {
    font-size: var(--text-xs);
    color: var(--cor-acento);
    letter-spacing: 0.25em;
    /* Espaçamento de luxo */
    text-transform: uppercase;
    font-weight: 500;
}

.asset-id-stamp {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    opacity: 0.4;
    letter-spacing: 0.1em;
}

.asset-title {
    font-family: var(--fonte-display);
    font-size: var(--text-display);
    color: var(--cor-texto);
    font-weight: 400;
    line-height: 1;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.asset-card:hover .asset-title {
    color: var(--cor-acento);
}

.layout-massive {
    max-width: 1200px;
}

.layout-massive .asset-visual-wrapper {
    aspect-ratio: 16/9;
}

.layout-offset-right {
    width: 85%;
    max-width: 900px;
    margin-left: auto;
}

.layout-offset-right .asset-visual-wrapper {
    aspect-ratio: 16/10;
}

.layout-offset-left {
    width: 85%;
    max-width: 900px;
    margin-right: auto;
}

.layout-offset-left .asset-visual-wrapper {
    aspect-ratio: 16/10;
}

.asset-visual-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cor-borda);
    background: var(--cor-vidro);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    will-change: transform;
}

.asset-card-media {
    display: block;
    width: 100%;
    height: 100%;
}

.asset-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.85) contrast(1.1) grayscale(15%);
}

.asset-card:hover .asset-visual-wrapper {
    transform: translateY(-8px);
    border-color: rgba(197, 164, 126, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.asset-card:hover .asset-card-bg {
    transform: scale(1.05);
    filter: brightness(1) contrast(1) grayscale(0%);
}

.asset-card-content {
    padding: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.asset-meta-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--cor-borda);
    padding-bottom: 0.6rem;
}

.asset-tag {
    font-size: 0.7rem;
    color: var(--cor-acento);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.asset-id-stamp {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--cor-texto-mutado);
    letter-spacing: 0.1em;
}

.asset-title {
    font-family: var(--fonte-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--cor-texto);
    font-weight: 400;
    line-height: 1.1;
}

@media (max-width: 1024px) {
    .layout-massive .asset-visual-wrapper {
        aspect-ratio: 4/3;
    }

    /* Garante que a imagem preencha todo o card no tablet, esticando se necessário */
    .asset-card-media,
    .asset-card-bg {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Se preferir que a imagem distorça literalmente ao invés de cortar, mude 'cover' para 'fill' */
    }

    .layout-offset-right,
    .layout-offset-left {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .vault-gallery {
        padding: var(--space-md) var(--space-md);
    }

    .vault-grid {
        gap: var(--space-md);
    }

    .layout-massive .asset-visual-wrapper,
    .layout-offset-right .asset-visual-wrapper,
    .layout-offset-left .asset-visual-wrapper {
        aspect-ratio: 3/4;
    }

    .asset-card-content {
        padding: 1rem 0 0 0;
    }
}

@media (max-width: 400px) {

    .layout-massive {
        width: 100%;
    }

    .layout-offset-right {
        width: 92%;
        margin-left: auto;
        margin-right: 0;
    }

    .layout-offset-left {
        width: 92%;
        margin-right: auto;
        margin-left: 0;
    }

    .asset-card-content {
        background: transparent;
        margin-top: 0;
    }
}

/* 4. ESTADO VAZIO (NDA PROTOCOL) */

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    max-width: 600px;
    margin: -5rem auto 0 auto;
    animation: fadeIn 0.6s ease forwards;
}

.vault-gallery.gallery-empty {
    padding-top: 2rem !important;
}

.nda-icon {
    width: 60px;
    height: 60px;
    color: var(--cor-acento);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.nda-title {
    font-family: var(--fonte-display);
    font-size: 2rem;
    color: var(--cor-texto);
    margin-bottom: 1rem;
}

.nda-title i {
    color: var(--cor-acento);
}

.nda-text {
    font-size: var(--text-sm);
    color: var(--cor-texto-mutado);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-nda {
    padding: 1rem 2.5rem;
    border: 1px solid var(--cor-acento);
    color: var(--cor-acento);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-nda:hover {
    background: var(--cor-acento);
    color: #000;
    box-shadow: 0 0 20px rgba(197, 164, 126, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (width <=1024px) {
    .empty-state {
        margin-top: -2rem;
    }
}

@media (width <=768px) {
    .vault-gallery.gallery-empty {
        padding-top: 0 !important;
    }

    .vault-gallery.gallery-empty .empty-state {
        margin-top: -1.5rem;
        padding-top: 0;
    }

    .nda-title {
        font-size: 1.5rem;
    }

    .btn-nda {
        width: 100%;
        text-align: center;
        display: block;
    }
}

@media (width <=380px) {
    .nda-title {
        font-size: 1.3rem;
    }
}

/* 5. MODAL CINEMÁTICO NATIVO */
/* 5. MODAL CINEMÁTICO (CORREÇÃO DE OVERFLOW DESKTOP) */
.asset-modal {
    margin: auto;
    padding: 0;
    border: 1px solid var(--cor-borda);
    border-radius: 16px;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    width: 95%; /* Um pouco mais de margem lateral */
    max-width: 1000px;
    
    /* CORREÇÃO DO BUG: */
    max-height: 90vh; /* Nunca ultrapassa 90% da altura da tela */
    overflow-y: auto; /* Ativa scroll vertical se o conteúdo crescer demais */
    overflow-x: hidden;
    
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin; /* Scroll elegante para Firefox */
    scrollbar-color: var(--cor-borda) transparent;
}

/* Custom Scrollbar para Chrome/Edge/Safari no Desktop */
.asset-modal::-webkit-scrollbar {
    width: 6px;
}
.asset-modal::-webkit-scrollbar-track {
    background: transparent;
}
.asset-modal::-webkit-scrollbar-thumb {
    background: var(--cor-borda);
    border-radius: 10px;
}

.asset-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    background: var(--cor-acento);
    color: #000;
}

.close-modal svg {
    width: 20px;
    height: 20px;
}


/* Garante que as colunas se alinhem pelo topo se o conteúdo for longo */
.modal-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Coluna da imagem um pouco maior */
    align-items: start; /* Alinha o conteúdo no topo, não no centro */
    min-height: 100%;
}

.modal-visual {
    position: sticky; /* A imagem fica "presa" enquanto você rola o texto ao lado */
    top: 0;
    height: 100%;
}

.modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px; /* Garante que a imagem tenha presença */
}

.modal-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinhamento ao topo */
    gap: 1rem;
}


.modal-tag {
    color: var(--cor-acento);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-title {
    font-family: var(--fonte-display);
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.modal-kpis {
    list-style: none;
    margin-bottom: 2rem;
    font-size: var(--text-sm);
    color: var(--cor-texto-mutado);
}

.modal-kpis li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--cor-borda);
    padding-bottom: 0.8rem;
}

.modal-kpis strong {
    color: var(--cor-texto);
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--cor-texto);
    color: var(--cor-fundo);
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--cor-acento);
    transform: translateY(-2px);
}

/* Ajuste para telas menores (Laptops) onde o bug é mais comum */
@media (max-width: 1100px) {
    .modal-layout {
        grid-template-columns: 1fr; /* Vira coluna única um pouco antes para evitar aperto */
    }
    .modal-visual {
        position: relative;
    }
    .modal-visual img {
        max-height: 300px;
    }
}

@media (width <=768px) {
    .asset-modal {
        margin: auto 0 0 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        border-bottom: none;
        animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-visual img {
        max-height: 250px;
    }
}

@media (width <=380px) {
    .modal-info {
        padding: var(--space-sm);
    }

    .btn-primary {
        width: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 6 POLIMENTO CINEMÁTICO (FASE 4) */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(197, 164, 126, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.asset-card-bg {
    filter: brightness(0.4) contrast(1.2) grayscale(100%);
    transition:
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.asset-card.is-active .asset-card-bg,
.asset-card:hover .asset-card-bg {
    filter: brightness(1) contrast(1) grayscale(0%);
    transform: scale(1.03);
}

.asset-visual-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(197, 164, 126, 0);
    transition: box-shadow 0.6s ease;
    pointer-events: none;
}

.asset-card:hover .asset-visual-wrapper::after,
.asset-card.is-active .asset-visual-wrapper::after {
    box-shadow: inset 0 0 0 1px rgba(197, 164, 126, 0.2);
}

/* Tipografia Reativa */
.asset-title {
    opacity: 0.8;
    transform: translateY(5px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.asset-card:hover .asset-title,
.asset-card.is-active .asset-title {
    opacity: 1;
    transform: translateY(0);
    color: var(--cor-acento);
}

/* 7 PROTOCOLO DE SIGILO: ENGENHARIA VISUAL */

.protocol-diffusion .asset-card-bg {
    filter: blur(40px) brightness(0.7) saturate(1.2);
    transform: scale(1.1);
}

.protocol-static .asset-visual-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.protocol-static .asset-card-bg {
    filter: blur(15px) grayscale(100%) contrast(1.2);
}

.protocol-obscura .asset-visual-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(rgba(197, 164, 126, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 164, 126, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.protocol-obscura .asset-card-bg {
    filter: blur(25px) brightness(0.5) sepia(0.3);
}

.asset-card[class*="protocol-"]:hover .asset-card-bg {
    filter: brightness(0.8) blur(10px);
    /* Revelação parcial sutil */
    transform: scale(1.05);
}

/* ETAPA 8: ACCESS LEVELS E PROTOCOLO REDACTED */

.filter-count {
    font-family: monospace;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.4;
    font-weight: 300;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.filter-btn:hover .filter-count,
.filter-btn.active .filter-count {
    opacity: 1;
    color: var(--cor-acento);
}

.asset-card.is-redacted .asset-visual-wrapper::after {
    content: 'INFRAESTRUTURA RESTRITA';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    font-family: var(--fonte-display);
    font-style: italic;
    color: rgba(197, 164, 126, 0.3);
    /* Ouro mutado */
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    letter-spacing: 0.3em;
    z-index: 10;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.8s ease;
    pointer-events: none;
}

.asset-card.is-redacted:hover .asset-card-bg {
    filter: brightness(0.4) contrast(1.2) grayscale(100%) !important;
    transform: scale(1) !important;
}

.asset-card.is-redacted .asset-tag {
    position: relative;
    color: transparent;
    background: #333;
    border-radius: 2px;
    padding: 0.1rem 0.3rem;
    transition: all 0.5s ease;
}

.asset-card.is-redacted .asset-tag::after {
    content: 'CONFIDENCIAL';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #000;
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.asset-card.is-redacted:hover .asset-tag {
    color: var(--cor-acento);
    background: transparent;
    padding: 0;
}

.asset-card.is-redacted:hover .asset-tag::after {
    opacity: 0;
}

/* ETAPA 9: PERFORMANCE E ZERO-LATENCY */

.vault-grid {
    min-height: 80vh;
}

.vault-grid.is-filtering .asset-card,
.vault-grid.is-filtering .reveal {
    transition: none !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.asset-visual-wrapper {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/*  ETAPA 10: BLINDAGEM MOBILE (UX TÁTIL E HIERARQUIA) */

@media (max-width: 768px) {

    .filter-ribbon {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 1rem 1.5rem 1rem;
        gap: 1.2rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .filter-ribbon::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 0.6rem 1.2rem;
    }

    .asset-card.is-redacted .asset-visual-wrapper::after {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
        text-align: center;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .asset-meta-axis {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .filter-btn {
        font-size: 0.7rem;
    }

    .filter-count {
        display: none;
    }

    .asset-id-stamp {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--cor-texto);
    }
}

/* ETAPA 10: BLINDAGEM MOBILE (UX TÁTIL E HIERARQUIA) */

@media (max-width: 768px) {

    .filter-ribbon {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 1rem 1.5rem 1rem;
        gap: 1.2rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .filter-ribbon::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 0.6rem 1.2rem;
    }

    .asset-card.is-redacted .asset-visual-wrapper::after {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
        text-align: center;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .asset-meta-axis {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .filter-btn {
        font-size: 0.7rem;
    }

    .filter-count {
        display: none;
    }

    .asset-id-stamp {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--cor-texto);
    }
}

/* 11 TRAVA DE SIGILO ABSOLUTA (ANTI-OBSERVER) */

.asset-card.is-redacted.is-active .asset-card-bg,
.asset-card.is-redacted:hover .asset-card-bg {
    filter: brightness(0.4) contrast(1.2) grayscale(100%) !important;
    transform: scale(1) !important;
}

.asset-card.is-redacted.protocol-diffusion.is-active .asset-card-bg {
    filter: blur(40px) brightness(0.7) saturate(1.2) !important;
}

.asset-card.is-redacted.protocol-static.is-active .asset-card-bg {
    filter: blur(15px) grayscale(100%) contrast(1.2) !important;
}

.asset-card.is-redacted.protocol-obscura.is-active .asset-card-bg {
    filter: blur(25px) brightness(0.5) sepia(0.3) !important;
}

/* 12 PROTOCOLO DE SIGILO: DATA-ROOM (MODAL) */
.modal-redacted-vault {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--cor-fundo);
    color: rgba(197, 164, 126, 0.4);
    font-family: monospace;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-align: center;
    padding: var(--space-md);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.modal-redacted-vault::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(197, 164, 126, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .modal-redacted-vault {
        min-height: auto;
        aspect-ratio: 16/9;
        max-height: 250px;
        border-bottom: 1px solid var(--cor-borda);
    }
}

@media (max-width: 400px) {
    .modal-redacted-vault {
        letter-spacing: 0.2em;
        font-size: 0.85rem;
    }
}

/* 12. CÁPSULA DE ACESSO VIP (UPLINK) */

.access-capsule {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cor-borda);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-inner {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 2;
}

.capsule-tag {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--cor-acento);
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.capsule-label {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--cor-texto);
    transition: color 0.3s ease;
}

.access-capsule::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 100%, rgba(197, 164, 126, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.access-capsule:hover {
    border-color: rgba(197, 164, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(197, 164, 126, 0.1);
}

.access-capsule:hover::before {
    opacity: 1;
}

.access-capsule:hover .capsule-label {
    color: var(--cor-acento);
}

/* 13. RODAPÉ DE GOVERNANÇA (TERMINAL) */
.dossier-footer {
    position: relative;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    margin-top: var(--space-lg);
    background: linear-gradient(to top, rgba(8, 8, 8, 1) 0%, rgba(8, 8, 8, 0) 100%);
    border-top: 1px solid var(--cor-vidro);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-axis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.technical-links .f-link {
    font-size: var(--text-xs);
    color: var(--cor-texto-mutado);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.technical-links .f-link:hover {
    color: var(--cor-acento);
}

.system-logs {
    align-items: center;
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-align: center;
}

.system-logs .log-line:nth-child(2) {
    color: var(--cor-acento);
    opacity: 0.7;
}

.brand-signature p {
    font-size: var(--text-xs);
    color: var(--cor-texto-mutado);
    letter-spacing: 0.05em;
    text-align: right;
}

@media (max-width: 768px) {

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .technical-links {
        align-items: center;
        gap: 1.2rem;
    }

    .brand-signature p {
        text-align: center;
    }

    .dossier-footer {
        padding-bottom: 6rem;
    }

    .access-capsule {
        bottom: 0;
        right: 0;
        width: 100vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid rgba(197, 164, 126, 0.2);
        background: rgba(8, 8, 8, 0.95);
        align-items: center;
        padding: 1rem;
    }

    .capsule-inner {
        align-items: center;
        text-align: center;
    }
}

/* 14 PROTOCOLO DE GOVERNANÇA: ENGENHARIA VISUAL */

.protocol-page {
    background-color: var(--cor-fundo);
    overflow-x: hidden;
}

.protocol-core {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.protocol-hero {
    margin-bottom: var(--space-lg);
    border-left: 1px solid var(--cor-acento);
    padding-left: var(--space-md);
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
    align-items: start;
}

.protocol-section {
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cor-vidro);
    transition: transform 0.4s ease;
}

.protocol-section:hover {
    transform: translateX(10px);
}

.protocol-number {
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--cor-acento);
    letter-spacing: 0.2em;
}

.protocol-h2 {
    font-family: var(--fonte-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--cor-texto);
}

.protocol-text {
    font-size: var(--text-sm);
    color: var(--cor-texto-mutado);
    line-height: 1.8;
    max-width: 500px;
}

.protocol-contact-box {
    margin-top: 2rem;
    background: var(--cor-vidro);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cor-borda);
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.protocol-contact-box::before {
    content: 'SUPPORT_LINK';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: monospace;
    font-size: 0.6rem;
    opacity: 0.2;
}

.contact-line {
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
    color: var(--cor-texto-mutado);
}

.contact-line strong {
    color: var(--cor-acento);
    font-family: monospace;
    font-weight: 500;
    margin-right: 0.5rem;
}

.protocol-actions {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--cor-borda);
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .protocol-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .protocol-core {
        padding-top: 8rem;
    }

    .protocol-hero {
        padding-left: 1rem;
    }

    .protocol-h2 {
        font-size: 1.5rem;
    }

    .protocol-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {

    .protocol-h2 {
        font-size: 1.3rem;
    }

    .protocol-contact-box {
        padding: 1rem;
    }
}
/* --- CTA PRIMÁRIO DA HERO (VERSÃO REFINADA) --- */
.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 10;
    position: relative;
    /* Garante que o botão apareça mesmo se a animação falhar */
    opacity: 1; 
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background-color: var(--cor-acento) !important; /* Força a cor dourada */
    color: #000000 !important; /* Texto preto para máximo contraste no dourado */
    font-family: var(--fonte-padrao);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.2);
    cursor: pointer;
    border: 1px solid var(--cor-acento);
}

.btn-primary-hero:hover {
    transform: translateY(-5px);
    background-color: #e5bc72 !important; /* Dourado mais claro */
    box-shadow: 0 15px 30px rgba(197, 164, 126, 0.4);
    color: #000 !important;
}

/* Ajuste para garantir que o link não herde cores de 'a' genérico */
.hero-actions a.btn-primary-hero {
    color: #000 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .hero-actions {
        margin-top: 2rem;
        padding: 0 1.5rem;
    }
    
    .btn-primary-hero {
        width: 100%;
        max-width: 400px;
        padding: 1rem 2rem;
    }
}