:root {
    /* Cores principais */
    --bg-color: #FFFFFF;
    --text-color: #000000;
    --card-bg: #D9D9D9;
    
    /* Tipografia */
    /* Druk Wide Bold como principal, fallbacks pesados para o estilo brutalista */
    --font-main: 'Druk Wide Bold', 'Arial Black', Impact, sans-serif;
    /* Fonte elegante para leitura e projetos */
    --font-elegant: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Outras variáveis */
    --transition-speed: 0.3s;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    text-transform: uppercase;
    overflow-x: hidden; /* Evita scroll horizontal indesejado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Cabeçalho / Navbar
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color var(--transition-speed);
}

.navbar.dark-theme {
    --text-color: #FFFFFF;
    --bg-color: #000000;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1rem;
}

/* Botões Estilo "Pílula" */
.pill-btn {
    font-family: var(--font-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1px;
}

/* Botões vazados (outline) */
.pill-btn.outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.pill-btn.outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Botão preenchido (solid) */
.pill-btn.solid {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
}

.pill-btn.solid:hover {
    /* Pode ser transparente ou um tom ligeiramente mais claro, vamos manter transparente para inverter */
    background-color: transparent;
    color: var(--text-color);
}

/* Toggle Menu Mobile */
.nav-mobile-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    transition: var(--transition-speed) ease;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================================================
   Seção Hero com Drag + Scroll Sticky
   ========================================================================== */
.hero-scroll-wrapper {
    height: 100vh;
    position: relative;
}

.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.dragging {
    cursor: grabbing;
}

.hero-composition {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 72vh;
    max-width: 82%;
    padding-top: 10vh;
}

/* Tipografia Gigante */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(3.5rem, 12vw, 13rem);
    line-height: 0.88;
    letter-spacing: -3px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 4vw, 3.8rem);
    letter-spacing: -1px;
    font-weight: 800;
    margin-top: auto;
    text-align: left;
    line-height: 1;
}

/* Container do vídeo: absoluto à direita, ancorado no fundo */
.hero-video-container {
    position: absolute;
    right: -1vw;
    bottom: 0;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-canvas {
    position: relative;
    transform: none;
    height: 95vh;
    width: auto;
    max-width: none;
    clip-path: inset(10px 0 0 0);
    pointer-events: none;
    display: block;
    z-index: 1;
}

/* ==========================================================================
   Seção de Projetos
   ========================================================================== */
.projects {
    padding: 6rem 4rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Behance-inspired Cards ---- */
.project-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35),
                0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #1a1a1a;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image-container img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

/* Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Category pill */
.project-category {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-elegant, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1) 0.05s,
                opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1) 0.05s;
}

.project-card:hover .project-category {
    transform: translateY(0);
    opacity: 1;
}

/* Project name */
.project-name {
    font-family: var(--font-elegant, 'Inter', sans-serif);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-transform: none;
    margin: 0;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1) 0.1s,
                opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.project-card:hover .project-name {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    /* Ocultar navegação desktop e preparar para o menu mobile */
    .nav-left, .nav-right {
        display: flex;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-speed) ease;
    }

    /* Posição dos blocos no mobile */
    .nav-left {
        top: 70px;
    }

    .nav-right {
        top: 250px;
    }

    /* Mostrar menu mobile via classe .menu-open injetada pelo JS no header */
    .navbar.menu-open .nav-left,
    .navbar.menu-open .nav-right {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar.menu-open {
        background-color: var(--bg-color);
        height: 100vh; /* Faz o menu ocupar a tela para não rolar o conteúdo */
        align-items: flex-start;
    }

    /* Mostrar toggle */
    .nav-mobile-toggle {
        display: block;
        margin-left: auto;
    }

    /* Animação do Hamburguer para X */
    .navbar.menu-open .hamburger {
        background-color: transparent;
    }
    .navbar.menu-open .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }
    .navbar.menu-open .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ajustes Hero Mobile */
    .hero {
        padding: 0;
    }

    .hero-composition {
        padding: 0 4vw;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        align-items: center;
        text-align: center;
        font-size: clamp(3rem, 18vw, 6rem);
        line-height: 0.9;
        letter-spacing: -2px;
        width: 100%;
    }

    .hero-subtitle {
        position: absolute;
        bottom: 5vh;
        left: 4vw;
        width: calc(100% - 8vw);
        margin-top: 0;
        text-align: center;
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
        letter-spacing: -0.5px;
    }

    .hero-video-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 9vh;
        height: 70%;
        width: auto;
        justify-content: center;
        z-index: 5;
    }

    .hero-canvas {
        height: 70vh;
        max-height: 70vh;
    }

    /* Ajustes Projetos Mobile */
    .projects {
        padding: 4rem 1.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 500px;
    }

    .project-card {
        border-radius: 10px;
    }

    /* Show overlay on touch devices via :active */
    @media (hover: none) {
        .project-overlay {
            opacity: 1;
            background: linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.6) 0%,
                rgba(0, 0, 0, 0.1) 40%,
                transparent 100%
            );
        }
        .project-category,
        .project-name {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: #0D0D0D;
    color: #FFFFFF;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    border-top: 1px solid #1A1A1A;
    padding: 2.5rem 4rem;
    text-transform: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.footer-role {
    font-size: 0.75rem;
    font-weight: 400;
    color: #555;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 400;
    color: #444;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        align-items: center;
    }

    .footer-right {
        gap: 2rem;
    }
}

/* ==========================================================================
   Seção Experiências & Estudos — Dark Mode
   ========================================================================== */

.exp-section {
    background-color: #0D0D0D;
    color: #FFFFFF;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 8rem 4rem;
    text-transform: none;
}

.exp-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Cabeçalho da Seção */
.exp-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-end;
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1F1F1F;
}

.exp-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.exp-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #FFFFFF;
}

.exp-intro {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.exp-cv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.exp-cv-link:hover {
    color: #aaa;
    border-color: #555;
}

/* Label de grupo (Experiência / Educação) */
.exp-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 0;
    padding: 1rem 0;
    border-top: 1px solid #1F1F1F;
}

/* Lista sem bullets */
.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item padrão */
.exp-item {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid #1A1A1A;
    transition: background-color 0.2s ease;
}

.exp-item:hover {
    background-color: #111;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Coluna Esquerda */
.exp-col-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.exp-company--accent {
    color: #FFFFFF;
}

.exp-location {
    font-size: 0.75rem;
    font-weight: 400;
    color: #555;
}

.exp-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: #444;
    letter-spacing: 0.02em;
}

/* Coluna Central */
.exp-col-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E0E0E0;
}

.exp-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
}

/* Coluna Direita — Pills */
.exp-col-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.exp-pill {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #888;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.exp-pill--accent {
    color: #FFFFFF;
    background: #1E1E1E;
    border-color: #333;
}

/* Botão seta circular */
.exp-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1E1E1E;
    border: 1px solid #2E2E2E;
    color: #FFFFFF;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    align-self: center;
}

.exp-arrow-btn:hover {
    background: #FFFFFF;
    color: #000;
    border-color: #FFF;
    transform: scale(1.1);
}

/* ---- Item Expandido (fightlab.app) ---- */
.exp-item--featured {
    display: block; /* Sobrescreve o grid para layout próprio */
    padding: 2.5rem 2rem;
    background: #111111;
    border: 1px solid #202020;
    border-radius: 16px;
    margin: 1rem 0;
    transition: border-color 0.25s ease;
}

.exp-item--featured:hover {
    background: #111; /* mantém */
    margin: 1rem 0;
    padding: 2.5rem 2rem;
    border-color: #333;
}

.exp-featured-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.exp-featured-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid #1E1E1E;
    padding-top: 2rem;
}

.exp-mockup-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 340px;
    border: 1px solid #1E1E1E;
}

.exp-featured-desc {
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    line-height: 1.7;
    max-width: 640px;
}

/* ==========================================================================
   Responsividade da Seção Exp
   ========================================================================== */

/* Tablet — alinhado com o restante do site */
@media (max-width: 1024px) {
    .exp-section {
        padding: 6rem 3rem; /* mesmo que .projects no 1024px */
    }

    .exp-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: flex-start;
    }

    .exp-intro {
        max-width: 100%;
    }

    .exp-item {
        grid-template-columns: 1fr 1.5fr;
        gap: 1.5rem;
    }

    .exp-col-right {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* Mobile — alinhado com .projects no 768px */
@media (max-width: 768px) {
    .exp-section {
        padding: 4rem 2rem; /* mesmo que .projects mobile */
    }

    .exp-header {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

    .exp-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        letter-spacing: -0.5px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem 0;
    }

    .exp-col-right {
        justify-content: flex-start;
        grid-column: auto;
    }

    .exp-group-label {
        font-size: 0.65rem;
    }

    .exp-pill {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .exp-mockup-img {
        max-height: 160px;
    }
}

/* Trajetória: categorias recolhidas e leitura sob demanda */
.exp-section { padding-top: 5rem; padding-bottom: 5rem; }
.exp-header { margin-bottom: 2rem; padding-bottom: 0; border-bottom: 0; gap: 3rem; }
.exp-tag, .exp-summary-subtitle, .exp-index { color: #a3a3a3; }
.exp-intro { color: #b5b5b5; }
.exp-disclosure { border-top: 1px solid #353535; }
.exp-disclosure:last-child { border-bottom: 1px solid #353535; }
.exp-disclosure summary { display: flex; gap: 1.5rem; align-items: center; min-height: 108px; padding: 1.5rem 0; cursor: pointer; list-style: none; transition: background-color 180ms ease; }
.exp-disclosure summary::-webkit-details-marker { display: none; }
.exp-disclosure summary:hover { background-color: #171717; }
.exp-disclosure summary:focus-visible, .exp-cv-link:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 3px; }
.exp-index { font-size: .75rem; font-variant-numeric: tabular-nums; }
.exp-summary-copy { display: flex; flex: 1; flex-direction: column; gap: .5rem; min-width: 0; }
.exp-summary-title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.03em; }
.exp-summary-subtitle { font-size: .85rem; line-height: 1.5; }
.exp-toggle { position: relative; width: 36px; height: 36px; border: 1px solid #444; border-radius: 50%; flex: 0 0 36px; }
.exp-toggle::before, .exp-toggle::after { content: ''; position: absolute; background: #eee; width: 12px; height: 1px; left: 11px; top: 17px; }
.exp-toggle::after { transform: rotate(90deg); transition: transform 180ms ease; }
.exp-disclosure[open] .exp-toggle::after { transform: rotate(0deg); }
.exp-disclosure[open] .exp-summary-title { color: #fff; }
.exp-panel { padding: 0 0 1.5rem 2.5rem; }
.exp-panel .exp-item { grid-template-columns: 1fr 1.6fr; gap: 2rem; padding: 1.5rem 0; }
.exp-panel .exp-item:hover { margin: 0; padding-left: 0; padding-right: 0; background: transparent; }
.exp-panel .exp-company { font-size: .95rem; line-height: 1.5; }
.exp-panel .exp-period { color: #aaa; line-height: 1.6; }
.exp-panel .exp-desc { color: #aaa; max-width: 650px; }
.exp-background { margin-top: 1.5rem; max-width: 760px; }
.exp-background h4 { font-size: .8rem; font-weight: 500; color: #ddd; margin-bottom: .6rem; }
.exp-background p { font-size: .85rem; color: #aaa; line-height: 1.9; }
@media (max-width: 768px) {
 .exp-section { padding: 3.5rem 2rem; }
 .exp-header { gap: 1.5rem; }
 .exp-disclosure summary { gap: .8rem; min-height: 104px; }
 .exp-summary-subtitle { font-size: .78rem; }
 .exp-panel { padding-left: 0; }
 .exp-panel .exp-item { grid-template-columns: 1fr; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
 .exp-disclosure summary, .exp-toggle::after { transition: none; }
}
html.site-loading { overflow: hidden; }
html.site-loading body > :not(.site-loader) { visibility: hidden; }
.site-loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #fff; transition: opacity 240ms ease; }
.site-loader.is-ready { opacity: 0; pointer-events: none; }
.loader-game { width: min(240px, 70vw); text-align: center; font-family: var(--font-elegant); }
#loader-avatar { display: block; width: 104px; height: 130px; margin: 0 auto 24px; }
#loader-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; }
#loader-progress { display: block; appearance: none; width: 100%; height: 12px; border: 2px solid #000; border-radius: 0; padding: 2px; background: #fff; }
#loader-progress::-webkit-progress-bar { background: #fff; }
#loader-progress::-webkit-progress-value { background: #000; }
#loader-progress::-moz-progress-bar { background: #000; }
#loader-percent { display: block; margin-top: 12px; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
#loader-actions { margin-top: 20px; }
#loader-actions button { display: block; width: 100%; padding: 10px; margin-top: 8px; border: 1px solid #000; background: #fff; color: #000; font: inherit; cursor: pointer; }
#loader-actions button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .site-loader { transition: none; } }
/* O gesto horizontal gira o avatar; o gesto vertical mantém o scroll da página. */
.hero { touch-action: pan-y; }
.hero-canvas { pointer-events: auto; cursor: grab; }
.hero.dragging .hero-canvas { cursor: grabbing; }
.hero-canvas:focus-visible { outline:2px solid #151515; outline-offset:-6px; }
.avatar-hint { position:absolute; bottom:2.25rem; left:50%; transform:translateX(-50%); z-index:25; padding:.65rem 1rem; border:1px solid #00000012; border-radius:30px; background:#ffffffde; color:#444; font:500 .72rem 'Inter',sans-serif; white-space:nowrap; pointer-events:none; transition:opacity 180ms ease; }
.hero.dragging .avatar-hint { opacity:.65; }
@media(max-width:768px) { .avatar-hint { bottom:.5rem; font-size:.65rem; } }
@media(prefers-reduced-motion:reduce) { .avatar-hint { transition:none; } }
/* Reação breve ao excesso de giros, sobre os frames originais. */
.avatar-dizzy-stars { position:absolute; width:120px; height:48px; transform:translate(-50%,-50%); z-index:3; pointer-events:none; opacity:0; }
.avatar-dizzy-stars::before { content:''; position:absolute; inset:12px 2px; border:1px solid #c69e4050; border-radius:50%; }
.avatar-dizzy-stars > span { position:absolute; left:50%; top:50%; color:#dcae3e; font-size:25px; line-height:1; text-shadow:0 1px 0 #fff,0 2px 8px #dcae3e25; }
.is-dizzy .avatar-dizzy-stars { opacity:1; }
.is-dizzy .avatar-dizzy-stars > span { animation:avatar-stars 1.35s linear infinite; }
.is-dizzy .avatar-dizzy-stars > span:nth-child(2) { animation-delay:-.45s; }
.is-dizzy .avatar-dizzy-stars > span:nth-child(3) { animation-delay:-.9s; }
.is-dizzy .hero-canvas { transform-origin:50% 92%; animation:avatar-dizzy 1.2s ease-in-out 3; }
.avatar-reaction-status { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes avatar-stars { 0%,100% { transform:translate(-60px,-12px) scale(.8); } 25% { transform:translate(-12px,-26px) scale(.65); } 50% { transform:translate(38px,-12px) scale(.8); } 75% { transform:translate(-12px,2px) scale(1); } }
@keyframes avatar-dizzy { 0%,100% { transform:rotate(0); } 25% { transform:rotate(-1.8deg); } 75% { transform:rotate(1.8deg); } }
@media(max-width:768px) { .avatar-dizzy-stars { width:100px; } }
@media(prefers-reduced-motion:reduce) { .is-dizzy .hero-canvas,.is-dizzy .avatar-dizzy-stars > span { animation:none; } }

/* A cor aparece com a tontura e se dissolve de volta no branco. */
.avatar-tie-dye {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: #fff;
    transition: opacity 1100ms ease-out;
}
.avatar-tie-dye::before,
.avatar-tie-dye::after {
    content: '';
    position: absolute;
    inset: -45%;
    background: url('../Assets/frames/tie-dye-v2.svg') center / cover no-repeat;
    transform-origin: 50% 50%;
    animation: avatar-tie-dye-flow 16s linear infinite;
    animation-play-state: paused;
}
.avatar-tie-dye::after {
    content: none;
}
.hero.is-tripping .avatar-tie-dye { opacity: 1; transition-duration: 650ms; }
.hero.is-tripping .avatar-tie-dye::before,
.hero.is-tripping .avatar-tie-dye::after { animation-play-state: running; }
@keyframes avatar-tie-dye-flow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.16); }
    100% { transform: rotate(360deg) scale(1); }
}
@media(prefers-reduced-motion:reduce) {
    .avatar-tie-dye { display: none; transition: none; }
    .avatar-tie-dye::before,.avatar-tie-dye::after { animation: none; }
}

/* A mesma corrente deforma as cores e faz a composição amolecer. */
.hero.is-melting .avatar-tie-dye::before { filter: url('#trip-liquid-bg'); }
.hero.is-melting .hero-title,
.hero.is-melting .hero-subtitle,
.hero.is-melting .avatar-hint { filter: url('#trip-liquid-scene'); }
.hero.is-melting .avatar-tie-dye::before {
    animation: avatar-liquid-drift 11s ease-in-out infinite alternate;
}
@keyframes avatar-liquid-drift {
    0% { transform: rotate(-7deg) scale(1.05, 1.05); }
    50% { transform: rotate(4deg) scale(1.13, 1.02) translate(1.5%, 1%); }
    100% { transform: rotate(12deg) scale(1.04, 1.15) translate(-1%, 2%); }
}
@media(prefers-reduced-motion:reduce) {
    .hero.is-melting .hero-title,
    .hero.is-melting .hero-subtitle,
    .hero.is-melting .avatar-hint,
    .hero.is-melting .avatar-tie-dye::before { filter: none; animation: none; }
}

/* Espirais desenhadas acompanham a expressão tonta. */
.avatar-dizzy-stars::before { border: none; }
.avatar-dizzy-stars > span { color: #533f3a; text-shadow: none; }
.avatar-dizzy-stars > span:nth-child(2) { color: #bc7967; }
.avatar-dizzy-stars svg { display: block; }

/* A tipografia inverte junto com a entrada e a dissolução das cores. */
.hero .hero-title,
.hero .hero-subtitle {
    color: #000;
    transition: color 1100ms ease-out;
}
.hero.is-tripping .hero-title,
.hero.is-tripping .hero-subtitle {
    color: #fff;
    transition-duration: 650ms;
}
@media(prefers-reduced-motion:reduce) {
    .hero .hero-title,.hero .hero-subtitle { transition: none; }
}

/* Patinhos e personagem compartilham o mesmo eixo de balanço. */
.avatar-stage { position: relative; flex: 0 0 auto; }
.is-dizzy .hero-canvas { animation: none; }
.is-dizzy .avatar-stage { transform-origin: 50% 92%; animation: avatar-dizzy 1.2s ease-in-out 3; }
.avatar-dizzy-stars { width: 0; height: 0; transform: none; }
.avatar-dizzy-stars > span { left: 0; top: 0; }
.is-dizzy .avatar-dizzy-stars > span { animation-name: avatar-ducks; }
@keyframes avatar-ducks {
    0%,100% { transform: translate(calc(-50% - var(--duck-orbit-x)), -50%) scale(.85); }
    25% { transform: translate(-50%, calc(-50% - var(--duck-orbit-y))) scale(.7); }
    50% { transform: translate(calc(-50% + var(--duck-orbit-x)), -50%) scale(.85); }
    75% { transform: translate(-50%, calc(-50% + var(--duck-orbit-y))) scale(1); }
}
@media(max-width:768px) {
    .avatar-dizzy-stars { width: 0; }
    .avatar-dizzy-stars svg { width: 25px; height: 24px; }
}
@media(prefers-reduced-motion:reduce) { .is-dizzy .avatar-stage { animation: none; } }

/* A navegação acompanha a inversão e a ondulação da cena. */
.navbar .pill-btn {
    transition: color 1100ms ease-out, background-color 1100ms ease-out,
        border-color 1100ms ease-out, transform 180ms ease-out;
}
body:has(.hero.is-tripping) .navbar {
    --text-color: #fff;
    --bg-color: #000;
}
body:has(.hero.is-tripping) .navbar .pill-btn {
    transition-duration: 650ms, 650ms, 650ms, 180ms;
}
body:has(.hero.is-melting) .navbar { filter: url('#trip-liquid-scene'); }
body:has(.hero.is-tripping) .navbar .pill-btn:hover { transform: translateY(-2px); }
body:has(.hero.is-tripping) .navbar .pill-btn:active { transform: translateY(1px) scale(.97); }
@media(prefers-reduced-motion:reduce) {
    .navbar .pill-btn { transition: none; }
    body:has(.hero.is-melting) .navbar { filter: none; }
    body:has(.hero.is-tripping) .navbar .pill-btn:hover,
    body:has(.hero.is-tripping) .navbar .pill-btn:active { transform: none; }
}

body:has(.hero.is-tripping) .navbar .pill-btn {
    background-color: #fff;
    border-color: #fff;
    color: #000;
}
body:has(.hero.is-tripping) .navbar .pill-btn:hover {
    background-color: #000;
    border-color: #fff;
    color: #fff;
}
body:has(.hero.is-tripping) .navbar .hamburger,
body:has(.hero.is-tripping) .navbar .hamburger::before,
body:has(.hero.is-tripping) .navbar .hamburger::after { background-color: #fff; }

/* Gravidade: o conteúdo se estica e escorre, antes de se recompor. */
body:has(.hero.is-melting) .navbar { filter: none; }
body:has(.hero.is-melting) .navbar .pill-btn { filter: url('#trip-liquid-scene'); }
.hero.is-melting .hero-title,
.hero.is-melting .hero-subtitle,
.hero.is-melting .avatar-hint,
body:has(.hero.is-melting) .navbar .pill-btn {
    transform-origin: 50% 0%;
    animation: hero-melt-down 4700ms linear both;
}
body:has(.hero.is-melting) .navbar .pill-btn:nth-child(2) { animation-name: hero-melt-down-heavy; }
@keyframes hero-melt-down {
    0%,8% { transform: translateY(0) scaleY(1); opacity: 1; }
    40% { transform: translateY(5vh) skewX(-2deg) scaleY(1.3); opacity: 1; }
    68% { transform: translateY(19vh) skewX(3deg) scaleY(1.85); opacity: 1; }
    77% { transform: translateY(28vh) skewX(4deg) scaleY(2.3); opacity: .8; }
    86% { transform: translateY(40vh) scaleY(2.6); opacity: 0; }
    87% { transform: translateY(0) scaleY(1); opacity: 0; }
    100% { transform: translateY(0) scaleY(1); opacity: 1; }
}
@keyframes hero-melt-down-heavy {
    0%,8% { transform: translateY(0) scaleY(1); opacity: 1; }
    40% { transform: translateY(8vh) skewX(2deg) scaleY(1.5); opacity: 1; }
    77% { transform: translateY(36vh) skewX(-4deg) scaleY(2.7); opacity: .8; }
    86% { transform: translateY(45vh) scaleY(3); opacity: 0; }
    87% { transform: translateY(0) scaleY(1); opacity: 0; }
    100% { transform: translateY(0) scaleY(1); opacity: 1; }
}
@media(prefers-reduced-motion:reduce) {
    .hero.is-melting .hero-title,.hero.is-melting .hero-subtitle,
    .hero.is-melting .avatar-hint,
    body:has(.hero.is-melting) .navbar .pill-btn { animation: none; filter: none; }
}



/* Trilhas cruzadas e brilhos complementam os patinhos. */
.avatar-dizzy-orbits {
    position: absolute; left: 0; top: 0; pointer-events: none;
    width: calc(var(--duck-orbit-x) * 2.35);
    height: calc(var(--duck-orbit-y) * 2.2);
    transform: translate(-50%, -50%); opacity: 0;
    transition: opacity 250ms ease;
}
.is-dizzy .avatar-dizzy-orbits { opacity: 1; }
.dizzy-orbit {
    position: absolute; inset: 0; border: 1.2px solid #fff8d6b3;
    border-radius: 50%; box-shadow: 0 0 4px #ffda7a26;
}
.dizzy-orbit-one { transform: rotate(-15deg); }
.dizzy-orbit-two { transform: rotate(15deg); }
.dizzy-orbit b {
    position: absolute; inset: 0; color: #fff4c9; font: 16px/1 sans-serif;
    offset-path: ellipse(50% 50% at 50% 50%);
    offset-rotate: 0deg; offset-distance: 0%;
    width: 16px; height: 16px;
    text-shadow: 0 0 5px #ffce5a66;
}
.is-dizzy .dizzy-orbit b { animation: dizzy-orbit-glint 1.8s linear infinite; }
.is-dizzy .dizzy-orbit-two b { animation-direction: reverse; animation-delay: -.8s; }
@keyframes dizzy-orbit-glint { to { offset-distance: 100%; } }
@media(max-width:768px) { .dizzy-orbit b { font-size: 12px; width: 12px; height: 12px; } }
@media(prefers-reduced-motion:reduce) {
    .avatar-dizzy-orbits { transition: none; }
    .is-dizzy .dizzy-orbit b { animation: none; }
}

/* Colaborações — continuidade da trajetória, com a mesma escala tipográfica. */
.brands-section { background: #0d0d0d; color: #fff; padding: 0 max(1.25rem, 5vw) 5rem; font-family: 'Inter', sans-serif; text-transform: none; }
.brands-inner { max-width: 1400px; margin: 0 auto; border-top: 1px solid #353535; padding-top: 3.5rem; }
.brands-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 3rem; }
.brands-heading .exp-tag { margin-bottom: 1.25rem; }
.brands-heading h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.brands-viewport { overflow: hidden; padding: 1.5rem 0; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.brands-track { display: flex; width: max-content; animation: brands-drift 65s linear infinite; }
.brands-grid { list-style: none; display: flex; align-items: center; flex: 0 0 auto; gap: 72px; padding: 0 36px; }
.brand-item { flex: 0 0 140px; height: 76px; display: flex; align-items: center; justify-content: center; }
.brand-item img { width: 100%; height: 46px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; transition: opacity 180ms ease; }
.brand-item:hover img { opacity: 1; }
.brand-morada img, .brand-dojo img { height: 68px; }
.brands-viewport:hover .brands-track, .brands-viewport:focus-within .brands-track, .brands-section.is-paused .brands-track { animation-play-state: paused; }
@keyframes brands-drift { to { transform: translateX(-50%); } }
@media (max-width: 768px) {
 .brands-section { padding: 0 2rem 3.5rem; }
 .brands-inner { padding-top: 2.5rem; }
 .brands-heading { display: block; margin-bottom: 1.75rem; }
 .brands-heading h2 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -1.2px; }
 .brands-grid { gap: 36px; padding: 0 18px; }
 .brand-item { flex-basis: 116px; height: 64px; }
 .brand-item img { height: 38px; }
 .brand-morada img, .brand-dojo img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
 .brands-track { animation: none; }
 .brands-viewport { overflow-x: auto; }
 .brands-grid[aria-hidden] { display: none; }
}

/* Hierarquia e alinhamento das seções da home. */
.exp-section { padding-left: max(1.25rem, 5vw); padding-right: max(1.25rem, 5vw); }
.exp-header { grid-template-columns: 1.15fr 1fr; align-items: end; margin-bottom: 3rem; }
.exp-title, .brands-heading h2 { letter-spacing: -.045em; }
.brands-section { padding-left: max(1.25rem, 5vw); padding-right: max(1.25rem, 5vw); }
@media(max-width:768px) {
 .exp-header { grid-template-columns: 1fr; gap: 1.5rem; }
 .brands-heading { display: flex; align-items: flex-end; gap: 1rem; }
 .brands-heading h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
 .brands-heading .exp-tag { margin-bottom: 1rem; }
}
/* Mobile: contraste por inversão sobre o personagem. */
@media (max-width: 768px) {
 .hero { isolation: isolate; background-color: #fff; }
 .hero-content { mix-blend-mode: difference; color: #fff; pointer-events: none; }
 .hero-content .hero-title, .hero-content .hero-subtitle { color: #fff; }
}
@media (max-width: 768px) {
 .hero-composition { background-color: #fff; isolation: isolate; }
}
/* Fundo de reação na mesma composição do texto, sem cobrir o tie-dye. */
.avatar-tie-dye { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); }

/* Colaborações: seção independente em azul elétrico. */
.brands-section { background: #2346ed; padding: 5rem max(1.25rem, 5vw) 4.5rem; }
.brands-inner { border-top: 0; padding-top: 0; }
.brands-heading { margin-bottom: 3rem; }
.brands-heading .exp-tag { color: #fff; opacity: .8; }
.brands-heading h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.brands-viewport { width: 100vw; margin-left: calc(50% - 50vw); padding: 1.5rem 0; }
.brand-item img { opacity: .9; }
.brands-viewport:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media(max-width:768px) {
 .brands-section { padding: 3.5rem max(1.25rem, 5vw) 3rem; }
 .brands-heading { margin-bottom: 2rem; }
 .brands-heading h2 { font-size: clamp(2rem, 6vw, 3rem); }
}
/* Colaborações: faixa compacta em verde-limão. */
.brands-section { background: #d4ff00; color: #111; padding: 2.5rem max(1.25rem, 5vw) 2rem; }
.brands-heading { margin-bottom: 1.25rem; }
.brands-heading .exp-tag { color: #111; opacity: .65; margin-bottom: .65rem; }
.brands-heading h2 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.12; }
.brands-heading h2 br { display: none; }
.brands-heading h2 br::after { content: ' '; }
.brands-viewport { padding: .75rem 0; }
.brand-item { height: 60px; }
.brand-item img { filter: brightness(0); opacity: .85; height: 40px; }
.brand-morada img, .brand-dojo img { height: 56px; }
.brands-viewport:focus-visible { outline-color: #111; }
@media(max-width:768px) {
 .brands-section { padding: 2rem max(1.25rem, 5vw) 1.5rem; }
 .brands-heading { margin-bottom: 1rem; }
 .brands-heading h2 { font-size: 1.65rem; max-width: 330px; }
 .brands-heading .exp-tag { margin-bottom: .6rem; }
 .brand-item { height: 52px; }
 .brand-item img { height: 34px; }
 .brand-morada img, .brand-dojo img { height: 48px; }
}
/* Faixa de marcas: título central e altura reduzida. */
.brands-section { padding: 1.25rem max(1.25rem, 5vw) 1rem; }
.brands-heading { display: block; margin-bottom: .5rem; text-align: center; }
.brands-heading .exp-tag { display: none; }
.brands-heading h2 { font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; max-width: none; margin: 0 auto; }
.brands-viewport { padding: .5rem 0; }
.brand-item { height: 48px; }
.brand-item img { height: 32px; }
.brand-morada img, .brand-dojo img { height: 44px; }
@media(max-width:768px) {
 .brands-section { padding: 1.1rem max(1.25rem, 5vw) .85rem; }
 .brands-heading { margin-bottom: .4rem; }
 .brands-heading h2 { font-size: .95rem; max-width: none; }
 .brand-item { height: 42px; }
 .brand-item img { height: 28px; }
 .brand-morada img, .brand-dojo img { height: 38px; }
}
/* Identificação da Morada ao lado do símbolo original. */
.brand-morada { gap: 10px; }
.brand-morada img { width: 40px; flex: 0 0 40px; height: 42px; }
.brand-wordmark { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; }
@media(max-width:768px) {
 .brand-morada img { width: 32px; flex-basis: 32px; height: 36px; }
 .brand-morada { gap: 7px; }
 .brand-wordmark { font-size: 12px; }
}
/* Título da faixa com a tipografia display das seções. */
.brands-heading h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
@media(max-width:768px) { .brands-heading h2 { font-size: 1.15rem; letter-spacing: -.04em; } }
/* Título da faixa: caixa alta e espaçamento editorial. */
.brands-heading h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; text-transform: uppercase; font-size: clamp(.85rem, 1.2vw, 1rem); font-weight: 800; letter-spacing: .16em; line-height: 1.6; }
@media(max-width:768px) { .brands-heading h2 { font-size: .72rem; letter-spacing: .13em; line-height: 1.65; max-width: 340px; margin-inline: auto; } }
/* Faixa de marcas: mesma família, peso e tracking dos títulos da home. */
.brands-heading h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; text-transform: none; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; max-width: none; }
@media(max-width:768px) { .brands-heading h2 { font-size: 1.2rem; letter-spacing: -.045em; line-height: 1.25; max-width: none; } }
/* Colaborações: composição ampla, preservando a cor verde-limão. */
.brands-section { padding: 4rem max(1.25rem, 5vw) 3.5rem; }
.brands-heading { text-align: left; margin-bottom: 2.5rem; }
.brands-heading .exp-tag { display: inline-block; color: #111; opacity: .65; margin-bottom: 1.25rem; }
.brands-heading h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 0; }
.brands-heading h2 br { display: initial; }
.brands-viewport { padding: 1.25rem 0; }
.brand-item { height: 72px; }
.brand-item img { height: 44px; }
.brand-morada img { height: 46px; }
.brand-dojo img { height: 64px; }
@media(max-width:768px) {
 .brands-section { padding: 3rem max(1.25rem, 5vw) 2.5rem; }
 .brands-heading { margin-bottom: 1.75rem; }
 .brands-heading h2 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
 .brands-heading .exp-tag { margin-bottom: 1rem; }
 .brand-item { height: 60px; }
 .brand-item img { height: 36px; }
 .brand-morada img { height: 38px; }
 .brand-dojo img { height: 52px; }
}
/* Marcas: faixa mais leve, sem rótulo adicional. */
.brands-section { padding: 2rem max(1.25rem, 5vw) 1.75rem; }
.brands-heading { margin-bottom: 1.25rem; }
.brands-heading h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.15; }
.brands-viewport { padding: .65rem 0; }
.brand-item { height: 58px; }
@media(max-width:768px) {
 .brands-section { padding: 1.75rem max(1.25rem, 5vw) 1.5rem; }
 .brands-heading { margin-bottom: 1rem; }
 .brands-heading h2 { font-size: 1.65rem; line-height: 1.15; }
 .brand-item { height: 50px; }
}
/* O carrossel respeita o container e as margens da seção. */
.brands-viewport { width: 100%; max-width: 100%; margin-left: 0; }
/* Marcas integradas à seção de experiência e formação. */
.exp-section .brands-section { background: transparent; color: #fff; padding: 2.75rem 0 0; }
.exp-section .brands-inner { border: 0; padding: 0; }
.exp-section .brands-heading { margin-bottom: 1.25rem; }
.exp-section .brands-heading h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.exp-section .brands-heading h2 br { display: none; }
.exp-section .brands-viewport { width: 100%; margin: 0; padding: .75rem 0; }
.exp-section .brand-item img { filter: brightness(0) invert(1); opacity: .78; }
.exp-section .brand-item:hover img { opacity: 1; }
.exp-section .brand-wordmark { color: #fff; }
.exp-section .brands-viewport:focus-visible { outline-color: #fff; }
.brands-viewport.is-interactive{cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.brands-viewport.is-interactive .brands-track{animation:none;will-change:transform}
.brands-viewport.is-dragging{cursor:grabbing}
.brands-viewport.is-interactive img{-webkit-user-drag:none;pointer-events:none}
.exp-section .brands-viewport.is-dragging .brand-item img{opacity:1}
@media(prefers-reduced-motion:reduce){.brands-viewport.is-interactive .brands-track{will-change:auto;transform:none!important}}
@media(max-width:768px) {
 .exp-section .brands-section { padding: 2rem 0 0; }
 .exp-section .brands-heading { margin-bottom: 1rem; }
 .exp-section .brands-heading h2 { font-size: 1.15rem; }
}
/* Liquide: rendu GPU local au texte, sans agrandissement d'un filtre raster. */
.hero-liquid-text { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; display:none; }
.hero.is-liquid-webgl .hero-liquid-text { display:block; }
.hero.is-liquid-webgl .hero-title, .hero.is-liquid-webgl .hero-subtitle { visibility:hidden; }
.hero.is-melting .hero-title, .hero.is-melting .hero-subtitle, .hero.is-melting .avatar-hint, body:has(.hero.is-melting) .navbar .pill-btn { filter:none; animation:none; }
.hero.is-melting .avatar-tie-dye::before { filter:none; }
.hero:not(.is-liquid-webgl).is-melting .hero-title { animation: liquid-fallback 4700ms ease-in-out both; }
@keyframes liquid-fallback { 0%,100% { transform:none; } 50% { transform:translateY(24px) skewX(-3deg) scaleY(1.12); } }
@media(prefers-reduced-motion:reduce) { .hero-liquid-text { display:none!important; } .hero:not(.is-liquid-webgl).is-melting .hero-title { animation:none; } }
/* Cada elemento derrete no próprio lugar e depois escorre para fora da tela. */
.hero-composition > .hero-liquid-text { position:absolute; inset:0; width:100%; height:100%; z-index:15; }
.hero.is-tripping .avatar-tie-dye { transition-duration:120ms; }
.hero.is-liquid-webgl .hero-title, .hero.is-liquid-webgl .hero-subtitle { visibility:hidden; }
.hero.is-liquid-webgl .avatar-hint { opacity:0; }
@media(max-width:768px) { .hero-composition > .hero-liquid-text { z-index:10; mix-blend-mode:difference; } }
/* Navegação preservada: somente contraste; contato atrás do avatar na hero. */

body:has(.hero.is-melting) .navbar, body:has(.hero.is-melting) .navbar .pill-btn { animation:none; filter:none; }
body:has(.hero.is-tripping) .navbar .pill-btn.outline { background:transparent; border-color:#fff; color:#fff; }
.hero-contact-nav { position:fixed; top:var(--contact-top,2rem); right:var(--contact-right,4rem); bottom:auto; left:auto; width:auto; z-index:16; pointer-events:auto; }
.hero-contact-nav .pill-btn { --text-color:#000; --bg-color:#fff; transition:color 300ms ease,background-color 300ms ease,border-color 300ms ease; }
.hero.is-tripping .hero-contact-nav .pill-btn { background:#fff; border-color:#fff; color:#000; }
body.hero-contact-layered .navbar { pointer-events:none; }
body.hero-contact-layered .navbar > * { pointer-events:auto; }
/* Subtítulo próximo ao nome, formando um único bloco tipográfico. */
.hero-content { justify-content: flex-start; }
.hero-subtitle { margin-top: 1.5rem; }
@media(max-width:768px) {
 .hero-content { justify-content: center; }
 .hero-subtitle { position:static; bottom:auto; left:auto; width:100%; margin-top:1.25rem; }
}
/* Respiro entre nome e cargo, mantendo a composição agrupada. */
.hero-subtitle { margin-top: clamp(2.5rem, 5vh, 4rem); }
@media(max-width:768px) { .hero-subtitle { margin-top:2rem; } }
/* Raio X neutro: branco sobre o personagem, sem inversão azul da pele. */
@media(max-width:768px) {
 .hero.is-liquid-webgl > .hero-composition > .hero-liquid-text,
 .hero.is-neutral-xray > .hero-composition > .hero-liquid-text { mix-blend-mode:normal; }
 .hero.is-neutral-xray .hero-liquid-text { display:block; }
 .hero.is-neutral-xray .hero-title, .hero.is-neutral-xray .hero-subtitle { visibility:hidden; }
}
@media(max-width:768px) and (prefers-reduced-motion:reduce) {
 .hero.is-neutral-xray .hero-liquid-text { display:block!important; }
}
