*{
box-sizing: border-box;
left: 0;
top: 0;
}


:root {
    --fundo: #f0efea;
    --texto: #111;
    --texto-suave: #555;
    --linha: #111;
    --fonte-mono:"Saans", sans-serif, system-ui;
    --gutter: clamp(16px, 4vw, 48px);
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
}

strong{
    font-family: "Geist Mono", monospace;
    font-weight: 700;
}

html {
    background-color: black;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
}

h1{
    font-family:"Geist", sans-serif;
    font-size: 60px;
    font-weight: bold;
    text-align: justify;
    margin-top: 40px;
    color: white;

}

.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    background-color: black;
    padding: 20px;
    text-align: center;
    align-items: center;  
    position: fixed;
    top: 1vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
    width: calc(100% - 40px);
    border-radius: 40px;
    box-sizing: border-box;


    h2{
    font-family:"Geist", sans-serif;
        font-size: clamp(.8rem, 3vw, 1rem);
        font-weight: normal;
        color: white;
        font-weight: 100;
        justify-self:center;
    }   


    .logo {
        display: flex;
        height:clamp(30px, 3vw, 50px);
        width:auto;
        justify-self: start;
    }
        
        }

        .botao-header{
            font-family:"Geist", sans-serif;
            text-decoration: none;
            color: white;
            font-size: clamp(.1rem, 3.2vw, 1.2rem);
            font-weight: 300;
        }

        .botao-header:hover{
            opacity: 0.5;
            transition: opacity .6s ease;
        }


.header.scrolled {
    background-color: black;
}

.menu-bar{
    display:none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
}

.menu-bar.ativo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;

    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    width: 100%;
    padding: 20px;

    background-color: rgba(0, 0, 0, 1);
    border: 2px solid rgba(255, 255, 255, 0.116);
    border-radius: 40px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.menu-toggle{
    display: block;
    justify-self: end;
    background: none;
    border: none;
    padding: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle img {
    width: clamp(20px, 3vw, 30px);
    height: auto;
}

@media (min-width: 1000px) {
    .header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5%;
    }

    .menu-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(16%, 10vw, 30%);
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    padding: 0;

    background-color: transparent;
    border: none;
    border-radius: 0;

    opacity: 1;
    visibility: visible;
}
    .menu-bar .botao-header {
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .menu-bar .botao-header:hover{
        opacity: .5;
    }

    .menu-toggle{
        display: none;
    }
}


#three-container {
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}


.imagem-pixel{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    top: 10vh;
    height: auto;
    overflow: hidden;

.imagem-original {
    width: 100vw;
    height: 60vh;
    object-fit: cover;
    display: block;
    z-index: 1;
}


.pixel-canvas{
    position: absolute;
    top: 0;
    left:0;
    width: 100vw;
    height: auto;
    pointer-events: none; 
    z-index: 2;
}
}

@media (min-width:820px) {
    .imagem-pixel{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: auto;
    overflow: hidden;

.imagem-original {
    width: 100vw;
    height: 80vh;
    object-fit: cover;
    display: block;
    z-index: 1;
}


.pixel-canvas{
    position: absolute;
    top: 0;
    left:0;
    width: 100vw;
    height:auto;
    pointer-events: none; 
    z-index: 2;
}
}
}


@media (min-width:1000px) {
    .imagem-pixel{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: auto;
    overflow: hidden;

.imagem-original {
    width: 100vw;
    height: auto;
    object-fit: cover;
    display: block;
    z-index: 1;
}


.pixel-canvas{
    position: absolute;
    top: 0;
    left:0;
    width: 100vw;
    height:auto;
    pointer-events: none; 
    z-index: 2;
}
}
}

.Arrows-hero{
    display: flex;
    height: 25px;
    width: auto;
    align-items: center;
    justify-content: center;
    margin-top: -70px;
}

.Arrows-hero img{
    height: 40px;
    width: auto;
    opacity: 60%;
    transition: transform 0.4s ease;
}

.Arrows-hero img:hover{
    transform: scale(1.5);
    opacity: 40%;
}


.sobre{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    .conteudo{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 40px;    
    }

    .titulo-reveal{
        font-family:"Geist", sans-serif;
        font-size: clamp(1.5rem, 5vw, 3.5rem);
        font-weight: 700;
        text-align: justify;
        color: white;
        margin-top: 60px;
        width: 100%;

    }
    .texto-reveal {
        font-size: clamp(1rem, 2vw, 1.1rem);
}

    p{
        font-family:"Geist", sans-serif;
        font-size: clamp(.5rem, 2vw, 1.5rem);
        font-weight: 100;
        text-align: justify;
        color: white;
        width: 100%;
    }

    .foto{
        display: flex;
        justify-content: center;
        align-items: center;
        width:clamp(50%, 55%, 60%);
        height: auto;
        margin-bottom: 10%;
        border-radius: 20px;
    }
}

@media (min-width:820px) {
    .sobre{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    .conteudo{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: clamp(40%, 50%, 60%);
    }

    .titulo-reveal{
        font-family:"Geist", sans-serif;
        font-size: clamp(1.5rem, 5vw, 3.5rem);
        font-weight: 700;
        text-align: justify;
        color: white;
        margin-top: 60%;
    }
    .texto-reveal {
        font-size: clamp(1rem, 2vw, 1.1rem);
}

    p{
        font-size: clamp(.5rem, 2vw, 1.5rem);
        font-weight: 100;
        text-align: justify;
        color: white;
        width: 150%;
    }

    .foto{
        display: flex;
        justify-content: center;
        align-items: center;
        width:clamp(50%, 55%, 60%);
        height: auto;
        margin-bottom: 10%;
    }
}
}
@media (min-width: 1000px) {
    .sobre{
    display: flex;
    margin: 2% 2% 2% 2%;
    flex-direction: row;
    align-items: center;

    .conteudo{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: clamp(40%, 50%, 60%);
    }

    .titulo-reveal{
        font-family:"Geist", sans-serif;
        font-size: clamp(1rem, 5vw, 3.5rem);
        font-weight: 500;
        text-align: justify;
        margin: 0% 5% 5% 25%;
        color: white;
        width: 100%;
    }
    .texto-reveal {
        font-size: clamp(1rem, 1.2vw, 2rem);
        line-height: 200%;
}

    p{
        font-size: clamp(2rem, 2vw, 2rem);
        font-weight: 100;
        text-align: justify;
        width: 80%;
        line-height:150%;
        color: white;
    }

    .foto{
        display: flex;
        justify-content: center;
        align-items: center;
        width:clamp(30%, 40%, 50%);
        height: auto;
        margin-right:4%;
    }
}
}



/* =====================================================
   PROJETOS — cards empilhados
   Cada projeto é um card que gruda no topo da tela; o próximo
   sobe por cima e o de baixo diminui e escurece.
   Para criar um projeto novo, copie um <article class="projeto">
   no index.html e troque só o conteúdo.
   ===================================================== */

.projetos {
    --cor: black;      /* fundo da seção */
    --fundo-escuro: black; /* fundo enquanto os cards passam */
    --card: #202020;     /* fundo dos cards */
    --tinta: #fbfbf8;    /* cor do texto */
    --topo-card: 190px;  /* onde o card gruda (abaixo do header fixo) */

    position: relative;
    overflow: hidden;
    overflow: clip; /* corta igual, mas deixa o "sticky" funcionar */
    isolation: isolate;
    background: var(--cor);
    color: var(--tinta);
    padding: 120px 20px 80px;
    will-change: clip-path;
    counter-reset: projeto;
}

/* ---- cabeçalho da seção ---- */
.projetos-cabecalho {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 48px;
}

.projetos .projetos-secao-titulo {
    font-family:"Geist", sans-serif;
    font-size: clamp(2.8rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--tinta);
    margin: 0;
}

.projetos .projetos-intro {
    font-family:"Geist", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    padding: 7.5px;
    align-items: center;

}

/* ---- pilha de cards ---- */
.projetos-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.projeto {
    --escuro: 0;  /* o JS aumenta quando o próximo card cobre este */

    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card);
    border: 1px solid var(--linha);
    border-radius: 20px;
    overflow: hidden;
    transform-origin: 50% 0%;
    counter-increment: projeto;
}

/* o card inteiro é um link: tira o azul/sublinhado padrão */
a.projeto {
    color: var(--tinta);
    text-decoration: none;
    cursor: pointer;
}

a.projeto:focus-visible {
    outline: 2px solid var(--tinta);
    outline-offset: 4px;
}

/* ao passar o mouse no card, o botão reage junto */
.projeto:hover .btn-case {
    background: #f0efea9f;
}

/* véu escuro sobre o card que ficou embaixo */
.projeto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: var(--escuro);
    pointer-events: none;
    z-index: 3;
}

/* ---- textos ---- */
.titulo-projeto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 28px 24px 32px;
}

/* número do projeto (01, 02, 03...) */
.titulo-projeto::before {
    content: counter(projeto, decimal-leading-zero);
    font-family:"Geist", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.5;
}

.projetos .projeto-titulo {
    font-family:"Geist", sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 3.4rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-align: left;
    color: var(--tinta);
    margin: 0;
}

.projetos .projeto-subtitulo {
    font-family:"Geist", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    margin: 8px 0 0;
}

.projetos .projeto-descricao {
    font-family:"Geist", sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
    max-width: 52ch;
    margin: 0;
}

/* ---- imagem ---- */
.imagem-projeto {
    order: -1; /* no celular a imagem vem em cima */
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.projeto .caso-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.projeto:hover .caso-img {
    transform: scale(1.03);
}

/* ---- botão ---- */
.btn-case {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 18px;
    background: #f0efea;
    color:black;
    border: 1px solid #000;
    border-radius: 999px;
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-case__seta {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-case:hover,
.btn-case:focus-visible {
    background: #f0efea9f
}

.btn-case:hover .btn-case__seta,
.btn-case:focus-visible .btn-case__seta,
.projeto:hover .btn-case__seta {
    transform: translateX(6px);
}

.btn-case:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* ---- celular em pé: cards empilhados, cada um cabendo na tela ---- */
@media (max-width: 767px) and (min-height: 560px) {

    .projetos {
        --topo-card: 96px;  /* no celular o card gruda logo abaixo do header */
    }

    .projeto {
        position: sticky;
        top: var(--topo-card);
        /* altura da tela menos o header (svh = altura real no celular) */
        height: calc(100vh - var(--topo-card) - 24px);
        height: calc(100svh - var(--topo-card) - 24px);
        max-height: 680px;
        grid-template-rows: minmax(0, 1fr) auto; /* imagem ocupa o que sobrar */
    }

    .imagem-projeto {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }

    .titulo-projeto {
        gap: 10px;
        padding: 20px 20px 24px;
    }

    /* descrição limitada a 3 linhas para o card caber na tela */
    .projetos .projeto-descricao {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-case {
        margin-top: 4px;
    }
}

/* ---- telas maiores: texto à esquerda, imagem à direita, cards grudando ---- */
@media (min-width: 768px) and (min-height: 560px) {

    .projetos {
        padding: 10px 5vw 10px;
    }

    .projetos-cabecalho {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 5vw;
        padding-bottom: 72px;
    }

    .projetos-track {
        gap: 50px;
    }

    .projeto {
        position: sticky;
        top: var(--topo-card);
        height: min(calc(100vh - var(--topo-card) - 40px), 620px);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-radius: 28px;
    }

    /* todo o bloco de texto fica centralizado na altura do card */
    .titulo-projeto {
        justify-content: center;
        padding: 40px;
    }

    .imagem-projeto {
        order: 0;
        aspect-ratio: auto;
        height: 100%;
    }

    .btn-case {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (min-width: 1100px) and (min-height: 560px) {
    .projeto {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .titulo-projeto {
        padding: 48px;
    }
}



.dados{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0px 40px 0px;
    gap: 10px;
    overflow: hidden;
    
    .botao-footer{
        font-family:"Geist", sans-serif;
        text-decoration: none;
        color: white;
        font-size: clamp(1rem, 2vw, 1rem);
        font-weight: 500;
        margin-top: 20px;
        align-items: center;
    
    }

    .botao-footer:hover{
        text-decoration: underline;
    }

    p{
        
        font-family:"Geist", sans-serif;
        color: rgba(255, 255, 255, 0.192);
        font-size: clamp(1rem, 2vw, 1rem);
        font-weight: 100;
        margin-top: 100px;
        text-align: center;
    }
}

.animacao-footer{
    width: 100%;
    overflow: hidden;
}

.footer-track{
    display: flex;
    width: max-content;
}

    .titulo-footer{
        font-family:"Geist", sans-serif;
        font-size: 600px;
        font-weight: 900;
        text-align: center;
        margin-top: 0px;
        margin-bottom: 0px;
        color: white;
        white-space: nowrap;
        }

/* celular: texto do footer menor (a velocidade fica no script.js) */
@media (max-width: 767px) {
    .titulo-footer {
        font-size: 160px;
    }
}

html {
    scroll-behavior: smooth;
}

.contato{
    display: flex;
    flex-direction: column;
    gap: 15%;
    height: 50vh;
    justify-content: center;
    align-items: center;


   .titulo-contato{
    font-family:"Geist", sans-serif;
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 500;
    color: white;
   }
}

.contato-form form{
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.contato-form input {
    width: clamp(300px, 50%, 500px);
    padding: 10px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 40px;
    font-family: "Geist Mono", monospace;
    font-weight: 300;
    font-size: clamp(.8rem, 3vw, 1.2rem);

}

.botao-form{
    width: clamp(300px, 50%, 500px);
    min-width: 300px;
    padding: 10px;
    background-color: white;
    color: black;
    border: 2px solid white;
    border-radius: 40px;
    font-family:"Geist", sans-serif;
    font-weight: 300;
    font-size: clamp( .8rem, 3vw, 1.2rem);

}


@media (min-width: 1000px) {

    .contato{
        height: 100vh;

    }


    .contato-form form {
        flex-direction: row;
        gap: 10px;
    }
}


.hero .imagem-pixel {
    display: none !important
}

.hero #three-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#three-container canvas {
    display: block;
}

.palavra {
    display: inline-block;
}

/* =====================================================
   ENTRADA — esconde o topo até a animação começar
   ===================================================== */
.intro-ativa #three-container,
.intro-ativa .Arrows-hero,
.intro-ativa .header .logo,
.intro-ativa .header .botao-header,
.intro-ativa .header h2,
.intro-ativa .header .menu-toggle {
    visibility: hidden;
}

/* =====================================================
   SOBRE — título surge letra por letra com o scroll
   ===================================================== */
.titulo-palavra {
    display: inline-block;
    white-space: nowrap;  /* a palavra não quebra no meio */
}

/* =====================================================
   CONTATO — formulário
   ===================================================== */

/* texto escondido na tela, mas lido por leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* campo-isca contra spam */
.form-isca {
    display: none !important;
}

.botao-form {
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.botao-form:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    min-height: 1.5em; /* reserva o espaço e evita o layout "pular" */
    margin: 16px 0 0;
    font-family: "Geist", sans-serif;
    font-size: clamp(.8rem, 2vw, 1rem);
    font-weight: 300;
    text-align: center;
    color: white;
}

.form-status[data-tipo="sucesso"] {
    color: #8fe3a5;
}

.form-status[data-tipo="erro"] {
    color: #ff8a80;
}
