/* RESET */

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

html{
    scroll-behavior:smooth;
}

body{
    background:#050505;
    color:#f5f1ea;
    font-family:'Inter', sans-serif;
    overflow-x:hidden;
}

/* HERO */

.case-hero{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
}

.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(45%);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.75)
    );
    z-index:1;
}

/* HEADER */

header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:10;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:40px 7%;
}

.logo{
    font-family:'Cormorant Garamond', serif;
    font-size:2rem;
    letter-spacing:8px;
    color:#f5f1ea;
}

.back-home{
    text-decoration:none;
    color:#d6b98c;
    font-size:0.8rem;
    letter-spacing:3px;
    transition:0.4s;
}

.back-home:hover{
    opacity:0.7;
}

/* HERO CONTENT */

.hero-content{
    position:absolute;
    z-index:5;

    left:7%;
    bottom:12%;

    max-width:700px;
}

.hero-content p{
    color:#d6b98c;
    letter-spacing:5px;
    font-size:0.75rem;
    margin-bottom:25px;
}

.hero-content h1{
    font-family:'Cormorant Garamond', serif;
    font-size:5.5rem;
    font-weight:400;
    line-height:0.95;
    margin-bottom:30px;
}

.hero-content span{
    display:block;
    max-width:550px;

    color:#b5b5b5;
    line-height:1.9;
    font-size:1rem;
}

/* INTRO */

.intro{
    padding:140px 7%;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:100px;
}

.intro-left p{
    color:#d6b98c;
    letter-spacing:4px;
    font-size:0.75rem;
    margin-bottom:25px;
}

.intro-left h2{
    font-family:'Cormorant Garamond', serif;
    font-size:3.4rem;
    font-weight:400;
    line-height:1.1;
}

.intro-right{
    display:flex;
    align-items:flex-end;
}

.intro-right p{
    color:#a8a8a8;
    line-height:2;
    font-size:1rem;
}

/* PROJECTS */

.projects-grid{
    padding:0 7% 140px;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:35px;
}

.project-card{
    position:relative;
    overflow:hidden;
    text-decoration:none;
    color:#fff;
    height:650px;
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:1s;
}

.project-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.1)
    );
}

.project-card:hover img{
    transform:scale(1.05);
}

.project-info{
    position:absolute;
    bottom:50px;
    left:40px;
    z-index:5;
}

.project-info span{
    color:#d6b98c;
    letter-spacing:4px;
    font-size:0.7rem;
}

.project-info h3{
    margin-top:12px;

    font-family:'Cormorant Garamond', serif;
    font-size:2.7rem;
    font-weight:400;
}

/* CLOSING */

.closing{
    padding:160px 7%;
    text-align:center;
    border-top:1px solid rgba(255,255,255,0.06);
}

.closing p{
    color:#d6b98c;
    letter-spacing:4px;
    font-size:0.75rem;
    margin-bottom:25px;
}

.closing h2{
    font-family:'Cormorant Garamond', serif;
    font-size:4rem;
    font-weight:400;
    line-height:1.1;

    margin-bottom:50px;
}

.closing a{
    display:inline-block;

    padding:18px 42px;

    border:1px solid rgba(255,255,255,0.15);

    text-decoration:none;
    color:#f5f1ea;

    letter-spacing:3px;
    font-size:0.75rem;

    transition:0.4s;
}

.closing a:hover{
    background:#f5f1ea;
    color:#050505;
}

/* RESPONSIVE */

@media(max-width:992px){

    .hero-content h1{
        font-size:4rem;
    }

    .intro{
        grid-template-columns:1fr;
        gap:50px;
    }

    .projects-grid{
        grid-template-columns:1fr;
    }

    .project-card{
        height:500px;
    }

    .intro-left h2,
    .closing h2{
        font-size:2.7rem;
    }

}

@media(max-width:768px){

    header{
        padding:30px 6%;
    }

    .hero-content{
        left:6%;
        bottom:10%;
    }

    .hero-content h1{
        font-size:3rem;
    }

    .intro{
        padding:100px 6%;
    }

    .projects-grid{
        padding:0 6% 100px;
    }

    .project-info{
        left:25px;
        bottom:30px;
    }

    .project-info h3{
        font-size:2rem;
    }

    .closing{
        padding:120px 6%;
    }

    .closing h2{
        font-size:2.3rem;
    }

}

/* REVEAL */

.reveal{
    opacity:0;
    transform:translateY(70px);

    transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* PARALLAX */

.parallax{
    will-change:transform;

    transition:
    transform 0.15s linear;
}
