:root{
    --white:#FFFFFF;
    --off-white:#FAFAF8;
    --black:#111111;
    --grey:#767676;
    --grey-light:#B8B8B4;
    --line:#EAEAE5;
    --red:#D62828;
    --red-dark:#A81E1E;

    --display:'Archivo', sans-serif;
    --body:'Inter', sans-serif;
    --mono:'IBM Plex Mono', monospace;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
    background:var(--white);
    color:var(--black);
    font-family:var(--body);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}

a{color:inherit;text-decoration:none;}
ul{list-style:none;}

::selection{background:var(--red);color:var(--white);}

.wrap{
    max-width:1240px;
    margin:0 auto;
    padding:0 40px;
}

/* ---------- NAV ---------- */
header{
    position:absolute;
    top:0;left:0;right:0;
    z-index:100;
}
nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:22px 40px;
    max-width:1240px;
    margin:0 auto;
}
.logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-family:var(--display);
    font-weight:900;
    font-size:20px;
    letter-spacing:-0.02em;
}
.logo .logo-img{
    height:32px;
    width:auto;
    display:block;
}
.logo span{color:rgba(255,255,255,0.9);}
.nav-links{
    display:flex;
    gap:40px;
    font-family:var(--mono);
    font-size:13px;
    letter-spacing:0.05em;
}
.nav-links a{
    position:relative;
    padding-bottom:4px;
    transition:color .2s;
    color:rgba(255,255,255,0.7);
}
.nav-links a::after{
    content:'';
    position:absolute;
    left:0;bottom:0;
    width:0%;
    height:1px;
    background:var(--white);
    transition:width .3s ease;
}
.nav-links a:hover::after{width:100%;}
.nav-links a:hover{color:var(--white);}

.nav-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
}
.nav-toggle span{
    width:24px;height:2px;background:rgba(255,255,255,0.9);
    transition:.3s;
}

/* ---------- BACK LINK (Giselle Lages) ---------- */
.back-link{
    display:flex;
    align-items:center;
    gap:8px;
    font-family:var(--mono);
    font-size:13px;
    letter-spacing:0.05em;
    font-size:12px;
}
.back-link:hover{color:var(--red);gap:12px;}

/* ---------- HEADER FIXED (Giselle Lages) ---------- */
.header-fixed{
    position:fixed;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
}

/* ---------- HERO ---------- */
.hero{
    height:100dvh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
    padding: 32px 0;
    background-image:url('../background.webp');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.3);
    z-index:0;
}
.hero .wrap{
    width:100%;
}
.hero-center{
    position:relative;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:32px;
    min-height:100vh;
    justify-content:center;
}

.hero-headline{
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-family:var(--display);
    font-weight:900;
    font-size:clamp(36px, 10vw, 200px);
    line-height:1.1;
    letter-spacing:-0.03em;
    color:rgba(255,255,255,0.35);
    z-index:0;
    pointer-events:none;
    user-select:none;
    text-align:center;  
    padding:0 40px;
    white-space:nowrap;
    text-shadow: 10px 25px 10px rgba(10, 10, 10, 0.4);
    container-type:inline-size;
}
.hero-headline > span:first-child{
    font-size:clamp(48px, 23cqw, 600px);
    line-height:0.85;
}
.hero-headline .red{color:var(--red);}
.hero-headline span:nth-child(2){color:rgba(255,255,255,0.55);}

.hero-visual{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    transition:transform .4s ease-out;
}

.hero-role{
    position:relative;
    z-index:1;
    font-family:var(--display);
    font-weight:700;
    font-size:clamp(16px, 2vw, 22px);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    letter-spacing:0.04em;
    white-space:normal;
}
.hero-role .static{color:rgba(255,255,255,0.7);}
.role-rotator{
    color:var(--red);
    position:relative;
    display:inline-block;
    min-width:1px;
}
.hero-desc{
    margin:28px auto 0;
    max-width:440px;
    font-size:17px;
    line-height:1.6;
    color:var(--grey);
}


.scratch-orbit{
    position:relative;
    width:clamp(364.65px, 45.815vw, 583.44px);
    aspect-ratio:1/1;
}

.scratch-wrap{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:82.28%;
    aspect-ratio:1/1;
    border-radius:50%;
    overflow:hidden;
}
.scratch-wrap canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2740%27%20height%3D%2740%27%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2720%27%20r%3D%2716%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27/%3E%3C/svg%3E") 20 20, crosshair;
    touch-action:none;
    animation: floatScratch 4.8s ease-in-out infinite;
}
#diamondCanvas{
    will-change:transform;
}
#scratchCanvas{
    will-change:transform;
}
#sparkCanvas{
    pointer-events:none;
}

@keyframes floatScratch{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-10px); }
}
.scratch-hint{
    position:absolute;
    bottom:32px;
    left:0;
    right:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
}
.scratch-hint button{
    font-family:var(--mono);
    font-size:12px;
    letter-spacing:0.04em;
    background:none;
    border:none;
    color:rgba(255,255,255,0.6);
    cursor:pointer;
    padding:4px 0;
    border-bottom:1px solid transparent;
    transition:color .2s, border-color .2s;
    white-space:nowrap;
}
.scratch-hint button:hover{
    color:var(--red);
    border-color:var(--red);
}
.scratch-tooltip{
    position:absolute;
    top:0;
    left:0;
    transform:translate(18px, -50%);
    pointer-events:none;
    opacity:0;
    transition:opacity .2s ease;
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:0.04em;
    color:rgba(255,255,255,0.6);
    background:rgba(0,0,0,0.5);
    padding:4px 8px;
    white-space:nowrap;
    border:1px solid rgba(255,255,255,0.15);
    z-index:6;
}
.hero-scroll{
    position:absolute;
    bottom:48px;
    left:40px;
    font-family:var(--mono);
    font-size:12px;
    color:rgba(255,255,255,0.5);
    display:flex;
    align-items:center;
    gap:10px;
}
.hero-scroll .line{
    width:40px;height:1px;
    background:var(--grey-light);
    position:relative;
    overflow:hidden;
}
.hero-scroll .line::after{
    content:'';
    position:absolute;
    left:-100%;top:0;
    width:100%;height:100%;
    background:var(--red);
    animation:scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline{
    0%{left:-100%;}
    50%{left:0%;}
    100%{left:100%;}
}

/* ---------- HERO INTRO ANIMATION ---------- */
body:not(.hero-loaded) header,
body:not(.hero-loaded) .hero-headline > span,
body:not(.hero-loaded) .hero-role,
body:not(.hero-loaded) .scratch-orbit,
body:not(.hero-loaded) .scratch-hint,
body:not(.hero-loaded) .hero-scroll{
    opacity:0;
}
body:not(.hero-loaded) header{
    transform:translateY(-20px);
}
body:not(.hero-loaded) .hero-headline > span{
    transform:translateY(30px);
}
body:not(.hero-loaded) .hero-role{
    transform:translateY(20px);
}
body:not(.hero-loaded) .scratch-orbit{
    transform:scale(0.85);
}
body:not(.hero-loaded) .scratch-hint{
    transform:translateY(15px);
}
body:not(.hero-loaded) .hero-scroll{
    transform:translateY(15px);
}

.hero-loaded header,
.hero-loaded .hero-headline > span,
.hero-loaded .hero-role,
.hero-loaded .scratch-orbit,
.hero-loaded .scratch-hint,
.hero-loaded .hero-scroll{
    opacity:1;
    transform:translate(0,0) scale(1);
    transition:opacity .8s ease, transform .8s cubic-bezier(0.22,1,0.36,1);
}
.hero-loaded header{
    transition-delay:0s;
}
.hero-loaded .hero-headline > span:nth-child(1){
    transition-delay:.2s;
}
.hero-loaded .hero-headline > span:nth-child(2){
    transition-delay:.35s;
}
.hero-loaded .hero-role{
    transition-delay:.5s;
}
.hero-loaded .scratch-orbit{
    transition-delay:.65s;
}
.hero-loaded .scratch-hint{
    transition-delay:.9s;
}
.hero-loaded .hero-scroll{
    transition-delay:1.1s;
}

/* ---------- SECTION SHARED ---------- */
section{
    padding:140px 0;
}
.section-off{background:var(--off-white);}
h2.section-title{
    font-family:var(--display);
    font-weight:900;
    font-size:clamp(32px, 5vw, 56px);
    letter-spacing:-0.02em;
    max-width:800px;
}

.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .8s ease, transform .8s ease;
}
.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

/* ---------- ABOUT ---------- */
#sobre{
    background:#161616;
}
#sobre .section-title{
    color:var(--white);
}
.about-grid{
    margin-top:64px;
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:80px;
    align-items:start;
}
.about-grid .about-text{
    order:1;
}
.about-grid .about-photo-wrap{
    order:2;
}
.about-photo-wrap{
    position:relative;
}
.about-photo{
    aspect-ratio:4/5;
    max-height:450px;
    border:1px solid rgba(255,255,255,0.14);
    position:relative;
    overflow:hidden;
}

.about-photo img{
    max-height:450px;
}
.about-photo::after{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--mono);
    font-size:12px;
    color:var(--grey);
    letter-spacing:0.1em;
}
.about-badge{
    position:absolute;
    z-index:3;
    display:flex;
    align-items:center;
    max-width:172px;
    padding:11px 16px;
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,0.22);
    box-shadow:0 14px 30px rgba(0,0,0,0.35);
    font-family:var(--mono);
    font-size:12px;
    line-height:1.35;
    color:var(--white);
    animation:floatBadge 5s ease-in-out infinite;
}
.about-badge.b1{ top:-18px; left:-22px; animation-delay:0s; }
.about-badge.b2{ top:54px; right:-30px; animation-delay:.6s; }
.about-badge.b3{ bottom:96px; left:-34px; animation-delay:1.2s; }
.about-badge.b4{ bottom:-18px; right:-14px; animation-delay:1.8s; }

@keyframes floatBadge{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-8px); }
}

.about-text p{
    font-size:18px;
    line-height:1.75;
    color:#BFBFBA;
    margin-bottom:24px;
}
.about-text p:first-child{
    font-size:22px;
    font-weight:500;
    color:var(--white);
}

/* ---------- FILTER PILLS ---------- */
.filter-pills{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:40px;
}
.pill{
    font-family:var(--mono);
    font-size:13px;
    padding:8px 20px;
    border-radius:100px;
    border:1px solid var(--line);
    background:var(--white);
    color:var(--grey);
    cursor:pointer;
    transition:all .25s ease;
    letter-spacing:0.02em;
}
.pill:hover{
    border-color:var(--black);
    color:var(--black);
}
.pill.active{
    background:var(--black);
    border-color:var(--black);
    color:var(--white);
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid{
    margin-top:40px;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:2px;
    background:var(--line);
}
.project-card{
    display:block;
    background:var(--white);
    aspect-ratio:4/3;
    position:relative;
    overflow:hidden;
    cursor:pointer;
}
.project-img{
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,#EDEDE8,#D8D8D2);
    transition:transform .6s ease;
}
.project-card:hover .project-img{
    transform:scale(1.05);
}
.project-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:32px;
    background:linear-gradient(to top, rgba(0,0,0,0.75) 20%, rgba(0,0,0,0.35) 50%, transparent 70%);
    opacity:0;
    transition:opacity .4s ease;
}
.project-card:hover .project-overlay{opacity:1;}
.project-overlay .p-title{
    font-family:var(--display);
    font-weight:700;
    font-size:24px;
    color:var(--white);
}
.project-overlay .p-tag{
    font-family:var(--mono);
    font-size:12px;
    color:var(--white);
    margin-top:8px;
    letter-spacing:0.04em;
    cursor:pointer;
    transition:opacity .3s;
}
.project-overlay .p-tag:hover{
    opacity:0.7;
}
.project-index{
    position:absolute;
    top:24px;left:24px;
    font-family:var(--mono);
    font-size:13px;
    color:var(--grey);
}
.project-card:hover .project-index{color:var(--white);}

/* ---------- CONTACT ---------- */
.contact{
    text-align:left;
}
.contact-cta{
    font-family:var(--display);
    font-weight:900;
    font-size:clamp(36px, 7vw, 88px);
    letter-spacing:-0.02em;
    line-height:1.05;
    max-width:900px;
}
.contact-cta .amp{color:var(--red);}
.contact-link{
    display:inline-flex;
    align-items:center;
    gap:16px;
    margin-top:48px;
    font-family:var(--mono);
    font-size:18px;
    padding-bottom:8px;
    border-bottom:1px solid var(--black);
    transition:border-color .3s, color .3s, gap .3s;
}
.contact-link:hover{
    color:var(--red);
    border-color:var(--red);
    gap:24px;
}
.social-icons{
    display:flex;
    gap:16px;
    margin-top:12px;
}
.social-icons a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:auto;
    color:var(--black);
    transition:color .3s, transform .3s;
    text-decoration:none;
}
.social-icons a img{
    width:24px;
    height:24px;
    display:block;
}
.social-icons a:hover{
    color:var(--red);
    transform:scale(1.15);
}
.social-icons a:hover img{
    filter:brightness(0) saturate(100%) invert(22%) sepia(89%) saturate(1423%) hue-rotate(357deg) brightness(101%) contrast(97%);
}
.contact-meta{
    margin-top:80px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:24px;
    border-top:1px solid var(--line);
    padding-top:32px;
}
.contact-meta .col-label{
    font-family:var(--mono);
    font-size:12px;
    color:var(--grey);
    margin-bottom:12px;
}
.contact-meta .col-value{
    font-size:15px;
}
.contact-meta .col-value a{
    font-size:15px;
    display:block;
    margin-bottom:6px;
    transition:color .2s;
}
.contact-meta .col-value a:hover{color:var(--red);}

footer{
    padding:32px 0;
    border-top:1px solid var(--line);
}
.footer-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-family:var(--mono);
    font-size:12px;
    color:var(--grey);
    flex-wrap:wrap;
    gap:12px;
}

/* ============================================================
   GISELLE LAGES — Project page styles
   ============================================================ */

/* ---------- PROJECT HERO ---------- */
.project-hero{
    padding:180px 0 64px;
}
.project-tags{
    display:flex;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}
.project-tags .tag{
    display:inline-block;
    padding:6px 14px;
    background:var(--line);
    color:var(--black);
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:0.05em;
    border-radius:20px;
    border:1px solid var(--line);
    transition:background .3s, color .3s, border-color .3s;
}
.project-tags .tag:hover{
    background:var(--red);
    color:var(--white);
    border-color:var(--red);
}
h1.project-title{
    font-family:var(--display);
    font-weight:900;
    font-size:clamp(40px, 7vw, 96px);
    line-height:1.02;
    letter-spacing:-0.03em;
    max-width:900px;
}
.project-sub{
    margin-top:24px;
    max-width:560px;
    font-size:18px;
    line-height:1.6;
    color:var(--grey);
}

.project-meta{
    margin-top:64px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}
.project-meta div{
    padding:24px 32px 24px 0;
}
.project-meta div:first-child{
    border-left:none;
    padding-left:0;
}
.meta-label{
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:0.06em;
    color:var(--grey);
    margin-bottom:8px;
}
.meta-value{
    font-family:var(--display);
    font-weight:700;
    font-size:16px;
}

/* ---------- COVER ---------- */
.project-cover{
    margin-top:64px;
    aspect-ratio:16/9;
    background:linear-gradient(135deg,#EDEDE8,#D8D8D2);
    background-size:cover;
    background-position:center;
    border:1px solid var(--line);
    position:relative;
    overflow:hidden;
}
.project-cover[style]::after{
    content:'';
    display:none;
}
.project-cover::after{
    content:'IMAGEM DE CAPA';
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--mono);
    font-size:12px;
    color:var(--grey);
    letter-spacing:0.1em;
}

/* ---------- CONTENT ---------- */
.project-content{
    padding:120px 0;
}
.content-grid{
    display:grid;
    grid-template-columns:0.9fr 1.4fr;
    gap:80px;
}
.content-grid h2{
    font-family:var(--display);
    font-weight:900;
    font-size:clamp(26px, 3vw, 34px);
    letter-spacing:-0.01em;
    position:sticky;
    top:120px;
}
.content-grid .body-text p{
    font-size:17px;
    line-height:1.75;
    color:#333;
    margin-bottom:22px;
}
.content-grid .body-text p:last-child{margin-bottom:0;}

.content-block + .content-block{
    margin-top:96px;
    padding-top:96px;
    border-top:1px solid var(--line);
}

/* ---------- GALLERY ---------- */
.gallery{
    padding:0 0 140px;
}
.gallery-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:2px;
    background:var(--line);
}
.gallery-grid .g-img{
    background:linear-gradient(150deg,#EFEFEA,#DCDCD6);
    background-size:cover !important;
    background-position:center !important;
    aspect-ratio:16/9;
    position:relative;
}
.gallery-grid .g-img.full{grid-column:1;aspect-ratio:16/9;}
.gallery-grid .g-img[style]::after{
    content:'';
    display:none;
}
.gallery-grid .g-img::after{
    content:'IMAGEM';
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--mono);
    font-size:11px;
    color:var(--grey);
    letter-spacing:0.1em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px){
    .nav-links{
        position:fixed;
        top:65px;left:0;right:0;
        background:var(--white);
        flex-direction:column;
        gap:0;
        max-height:0;
        overflow:hidden;
        transition:max-height .35s ease;
        border-bottom:1px solid var(--line);
    }
    .nav-links.open{max-height:300px;}
    .nav-links a{
        padding:18px 40px;
        width:100%;
        border-top:1px solid var(--line);
    }
    .nav-toggle{display:flex;}
    .wrap{padding:0 24px;}
    .hero-headline{padding:0 24px;}
    nav{padding:20px 24px;}
    .scratch-orbit{width:clamp(300.15px, 82.28vw, 437.58px);}
    .about-grid{grid-template-columns:1fr;gap:40px;}
    .about-photo-wrap{display:flex;flex-direction:column;gap:12px;}
    .about-badge{position:static;transform:none !important;animation:none;max-width:none;}
    .portfolio-grid{grid-template-columns:1fr;}
    section{padding:90px 0;}
    .hero-scroll{left:24px;}

    /* Giselle Lages responsive */
    .project-hero{padding:140px 0 48px;}
    .project-meta{grid-template-columns:1fr 1fr;}
    .project-meta div{padding-left:24px;border-left:1px solid var(--line);}
    .project-meta div:nth-child(odd){border-left:none;padding-left:0;}
    .content-grid{grid-template-columns:1fr;gap:32px;}
    .content-grid h2{position:static;}
    .gallery-grid{grid-template-columns:1fr;}
    .project-content, .gallery{padding-top:64px;padding-bottom:64px;}
}

@media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition:none !important;}
    .reveal{opacity:1;transform:none;}
    body:not(.hero-loaded) header,
    body:not(.hero-loaded) .hero-headline > span,
    body:not(.hero-loaded) .hero-role,
    body:not(.hero-loaded) .scratch-orbit,
    body:not(.hero-loaded) .scratch-hint,
    body:not(.hero-loaded) .hero-scroll{
        opacity:1 !important;
        transform:none !important;
    }
}
