/* =========================
RESET
========================= */

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

html{
    scroll-behavior:smooth;
}

body{
    background:#fff;
    font-size:16px;
    font-family:'Lato',sans-serif;
    color:#231f20;
    overflow-x:hidden;
}

img{
    display:block;
    width:100%;
}

a{
    text-decoration:none;
}

section{
    width:100%;
    padding:80px 24px;
    display:flex;
    justify-content:center;
}

.container{
    width:1200px;
    max-width:1440px;
}

/* =========================
TYPOGRAPHY
========================= */

h1{
    font-size: 3.2em;
    line-height:1;
    font-weight:800;
    color:#231f20;
    font-family:'Sora',sans-serif;
}

h2{
    font-size:2.4em;
    line-height:1.1;
    color:#231f20;
    font-weight:700;
    font-family:'Sora',sans-serif;
}

h3{
    font-size:1.2rem;
    color:#fff;
    font-weight:700;
    font-family:'Sora',sans-serif;
}

p{
    color:#707070;
    font-size:1rem;
    line-height:1.7;
    margin-top:20px;
    font-family:'Lato',sans-serif;
    
}

.button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    border-radius:14px;
    background:#e95d27;
    color:#fff;
    font-weight:700;
    transition:.3s ease;
}

.button:hover{
    transform:translateY(-2px);
    background:#c64a1b;
}

/* =========================
NAV
========================= */

.nav-wrap{
    position:sticky;
    top:0;
    width:100%;
    padding:20px 24px;
    transition:.3s ease;
    z-index:100;
}

.nav-wrap.scrolled{
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: #f9f9f9);
    border-bottom:1px solid rgba(255,255,255,.5);
    box-shadow: 0 0 10px rgba(0,0,0,.08);
}
.nav-wrap.active{
    box-shadow: none;
}

.nav{
    max-width:1440px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    z-index:999;
}

.logo{
    width:52px;
}

.menu-wrapper{
    width:42px;
    height:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    cursor:pointer;
    z-index:1001;
}

.menu-wrapper span{
    width:28px;
    height:2px;
    background:#1a1b1f;
    margin:4px 0;
    transition:.35s ease;
}

.menu-wrapper.active .top{
    transform:translateY(10px) rotate(45deg);
}

.menu-wrapper.active .mid{
    opacity:0;
}

.menu-wrapper.active .bot{
    transform:translateY(-10px) rotate(-45deg);
}

/* =========================
FULL MENU
========================= */

.full-menu{
    position:fixed;
    inset:0;
    background:#f9f9f9;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:32px;
    transform:translateY(-100%);
    transition:.5s ease;
    z-index:99;
}

.full-menu.active{
    transform:translateY(0);
}

.full-menu a{
    color:#707070;
    font-size:3rem;
    font-weight:700;
    transition:.3s ease;
}
.full-menu a:hover{
    color:#e95d27;
}

.full-menu .menu-btn{
    background:#e95d27;
    padding:14px 30px;
    border-radius:14px;
    transition: .3s ease;
}

.full-menu .menu-btn:hover{
    transform:translateY(-2px);
    background:#c64a1b;
}

/* =========================
LAYOUT
========================= */

.col{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:60px;
}

.center{
    text-align:center;
}

.left-align{
    text-align:left;
}
.card{
    background:#f4f4f4;
    border-radius:20px;
    padding:42px;
    margin:auto 60px;
    border:solid 1px #e4e4e4;
    display: grid;
    grid-template-columns: 1fr 3fr;
}
.card-img {
    position: relative;
    z-index: 2;
    max-width:80%;
    right:-30%;
}
.card-bg {
    position:absolute;
    z-index:1;
    width:100%;
    bottom:auto;
    right:0;
}


/* =========================
HERO
========================= */

.hero-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    align-items:center;
    gap:42px;
}

.hero-copy{
    display:flex;
    flex-direction:column;
    gap:24px;
    text-align:left;
}

.hero-img{
    opacity:0;
    transform:translateY(20px);
    animation:fadeIn .8s ease forwards;
    animation-delay:.6s;
    overflow: hidden;
}
.hero-img video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.hero-title{
    opacity:0;
    transform:translateX(-60px);
    animation:slideLeft .8s ease forwards;
}

.hero-p{
    opacity:0;
    transform:translateX(-60px);
    animation:slideLeft .8s ease forwards;
    animation-delay:.2s;
}

.hero-btn{
    opacity:0;
    transform:translateX(-60px);
    animation:slideLeft .8s ease forwards;
    animation-delay:.4s;
}

.image-wrap {
    width: 100%;
    display: flex;
    position: relative;
}

.hero-404 {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 20rem;
    font-weight: 800;
}

.hero-404 span {
    display: inline-block;
    animation: float404 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* stagger each number */
.hero-404 span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-404 span:nth-child(3) {
    animation-delay: 0.4s;
}

/* smooth floating motion */
@keyframes float404 {
    0%, 100% {
        transform: translateY(0);
        color:#1a1b1f;
    }
    50% {
        transform: translateY(-18px);
        color: #666;
    }
}/* =========================
SCROLL REVEAL
========================= */

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:
        opacity 1s ease,
        transform 1s ease,
        background-color 1s ease;
}

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

/* =========================
SCROLL BACKGROUND STATES
========================= */

.bg-dark-1,
.bg-dark-2,
.bg-dark-3,
.bg-dark-4{
    width:100%;
    height: 100vh;
    padding:60px;
    transition:
        background-color 1s ease,
        opacity 1s ease,
        transform 1s ease;
}
/* =========================
FULL SECTION BACKGROUND
========================= */

.scroll-bg{
    transition:
        background-color 1s ease,
        color .6s ease;
}

/* =========================
SECTION COLORS
========================= */

.bg-dark-1{
    background:
    linear-gradient(
        to bottom,
        #1a1b1f 0%,
        #231f20 100%
    );
}

.bg-dark-2{
    background:
    linear-gradient(
        to bottom,
        #222 0%,
        #333 100%
    );
}

.bg-dark-3{
    background:
    linear-gradient(
        to bottom,
        #444 0%,
        #555 100%
    );
}

.bg-dark-4{
    background:
    linear-gradient(
        to bottom,
        #666 0%,
        #888 100%
    );
}
/* =========================
INITIAL FADE STATE
========================= */

.scroll-bg{
    opacity:0;
    transform:translateY(40px);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}
/* ACTIVE SECTION */

.scroll-bg.active-bg{
    opacity:1;
    transform:translateY(0);
}

/* =========================
SECTION GRADIENT TRANSITIONS
========================= */

.scroll-bg{
    position:relative;
    z-index:1;
    overflow:hidden;
}

/* TOP GRADIENT */

.scroll-bg::before{
    content:"";
    position:absolute;
    top:-1px;
    left:0;
    width:100%;
    height:140px;
    z-index:-1;
    pointer-events:none;

    background:linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        transparent
    );
}

/* BOTTOM GRADIENT */

.scroll-bg::after{
    content:"";
    position:absolute;
    bottom:-1px;
    left:0;
    width:100%;
    height:140px;
    z-index:-1;
    pointer-events:none;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0),
        transparent
    );
}
/* TEXT COLOR CHANGE */

.scroll-bg.active-bg h2,
.scroll-bg.active-bg p{
    color:#707070;
}

/* TEXT COLORS */

.bg-dark-1.active h2,
.bg-dark-1.active p,
.bg-dark-2.active h2,
.bg-dark-2.active p,
.bg-dark-3.active h2,
.bg-dark-3.active p,
.bg-dark-4.active h2,
.bg-dark-4.active p{
    color:#fff;
    transition:color .6s ease;
}

/* =========================
INFO ROWS
========================= */

.info-section{
    padding: 42px 24px;
}

.text-wrap {
    padding-bottom:42px;
}
.info-row{
    position:relative;
    display:grid;
    grid-template-columns:30% 68%;
    gap:14px;
    padding:42px 0;
}

.info-left h3{
    color:#231f20;
    font-size:1.2rem;
    font-weight:700;
    text-transform: uppercase;
}

.info-right p{
    margin-top:0;
}

/* DEFAULT LINE */

.info-row::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:2px;
    background:#ddd;
}

/* ANIMATED RED LINE */

.info-row::before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0%;
    height:2px;
    background: #e95d27;
    transition:width .5s ease;
    z-index:2;
}

.info-row:hover::before{
    width:100%;
}


/* =========================
PROCESS
========================= */

.process{
    align-items:flex-start;
    padding-left: 24px;
    padding-right: 24px;
}

.process-left{
    width:30%;
    position:sticky;
    top:140px;
}

.process-right{
    width:70%;
    position:relative;
}

.stack-card{
    margin-bottom:42px;
    position:sticky;
    top:100px;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cd-1{ z-index:1; box-shadow: 0 0 10px rgba(204,204,204,.4);}
.cd-2{ z-index:2; box-shadow: 0 0 10px rgba(204,204,204,.4);}
.cd-3{ z-index:3; box-shadow: 0 0 10px rgba(204,204,204,.4);}
.cd-4{ z-index:4; box-shadow: 0 0 10px rgba(204,204,204,.4);}

/* =========================
PORTFOLIO
========================= */

.portfolio{
    display:block;
    padding:60px 24px;
}

.portfolio-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:60px;
    justify-items:center;
}
.project{
    width:100%;
    position:relative;
    overflow:hidden;
/*    border-radius:20px;
    opacity:0;
    transform:translateY(40px);
    border:8px solid #fff;
    transition:
        transform .4s ease,
        border .4s ease,
        opacity .8s ease;*/
}
.project.show{
    opacity:1;
    transform:translateY(0);
    object-fit: cover;
}
/*.project:hover{
    transform:translateY(-2px);
    border:8px solid #e95d27;
}*/

.project-thumb{
    width:100%;
    position:relative;
    overflow:hidden;
    border-radius:20px;
    transform:translateY(8px);
    border:8px solid #fff;
    transition:
        transform .4s ease,
        border .4s ease,
        opacity .8s ease;
}
.project-thumb:hover{
    transform:translateY(0);
    border:8px solid #e95d27;
    opacity: .6;
}

.project:hover .project-overlay{
    opacity:1;
}
.project-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.5);
    backdrop-filter:blur(2px);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.4s ease;
}
.port-cover {
    object-fit: cover;
    height: 350px;
}
.project-h2 {
    color:#707070;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    padding-top:14px;
    font-family: 'Sora', sans-serif;
}
.project-p {
    color:#a0a0a0;
    font-size: .9em;
    text-align: center;
    padding-top:8px;
    font-family: 'Lato', sans-serif;
}

/* =========================
PAGE TRANSITION
========================= */

.page-transition{
    position: fixed;
    inset: 0;
    background: #f9f9f9;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.8s ease, opacity 0.5s ease;
}

/* cover current page */
.page-transition.enter{
    animation: slideIn .8s ease forwards;
}

/* reveal new page */
.page-transition.leave{
    animation: slideOut .8s ease forwards;
}

@keyframes slideIn{
    from{
        transform: translateY(100%);
    }
    to{
        transform: translateY(0%);
    }
}

@keyframes slideOut{
    from{
        transform: translateY(0%);
    }
    to{
        transform: translateY(-100%);
    }
}

/* =========================
BANNER
========================= */

.banner{
    width:100%;
    overflow:hidden;
    background:#e95d27;
    padding:20px 0;
}

.banner-track{
    white-space:nowrap;
    display:inline-block;
    animation:marquee 40s linear infinite;
    letter-spacing: 1px;
}

.banner-track span{
    color:#fff;
    font-size:1.1rem;
    padding-right:80px;
}

/* =========================
FOOTER
========================= */

.footer{
    text-align:center;
    display:flex;
    flex-direction:column;
    gap:30px;
    align-items:center;
    background-color: #1a1b1f;
    color: #fff;
}

.sm-foot{
    text-align:center;
    padding:30px;
}

/* =========================
ANIMATIONS
========================= */

@keyframes slideLeft{
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes fadeIn{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes marquee{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

@keyframes pageSlide{
    0%{
        transform:translateY(100%);
    }

    50%{
        transform:translateY(0);
    }

    100%{
        transform:translateY(-100%);
    }
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

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

    .process{
        flex-direction:column;
    }

    .process-left,
    .process-right{
        width:100%;
    }

    .process-left{
        position:relative;
        top:auto;
        text-align:left;
    }

    .portfolio {
        padding-top: 0px !important;
    }

    .stack-card{
        position:relative;
        top:auto;
        margin-bottom:32px;
    }

    .portfolio-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }
    
    .card {
        grid-template-columns: 1fr 2fr;
    }

    hr {
        font-size: 1.8em;
    }
    
}

@media(max-width:767px){

    section{
        padding:42px 20px;
    }

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

    .project{
        width:100%;
    }

    .full-menu a{
        font-size:1.5rem;
    }

    .col{
        flex-direction:column;
        gap:24px;
    }

    .info-row{
        grid-template-columns:1fr;
        gap:16px;
        padding: 24px 0;
    }    

    .text-wrap {
    padding-bottom:24px;
    }

    .card {
        grid-template-columns: 1fr;
        margin: 24px;
    }
    .container{
        width:100%;
    }
    h2 {
        font-size: 1.8em;
    }
    h1 {
        font-size: 2.4em;
    }
    .sm-foot{
    padding-top: -10px;
    }
    .hero-404 {
        font-size: 4rem;
    }
}


/* =========================
VIDEO SECTION
========================= */

.video-section{
    width:100%;
    padding:0;
}

.video-section video{
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
}

/* =========================
70 : 30 SPLIT
========================= */

.split-content{
    display:grid;
    grid-template-columns:70% 30%;
    gap:24px;
    align-items:flex-start;
}

.split-left{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.split-right{
    display:flex;
    justify-content:flex-end;
}

.split-right strong{
    font-size:1.1rem;
    line-height:1.7;
    color:#231f20;
    max-width:280px;
}

/* =========================
IMAGE GALLERY
========================= */

.gallery-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:42px;
}

.gallery-item{
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    position:relative;
}

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.gallery-item:hover img{
    transform:scale(1.03);
}

.gallery-item.full{
    grid-column:1 / -1;
}

/* =========================
GALLERY MODAL
========================= */

.gallery-modal{
    position:fixed;
    inset:0;
    z-index:3000;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.4s ease;
}

.gallery-modal.active{
    opacity:1;
    visibility:visible;
}

.gallery-overlay{
    position:absolute;
    inset:0;
    background:rgba(120,120,120,.92);
}

.gallery-content{
    position:relative;
    width:90%;
    max-width:1100px;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-content img{
    width:100%;
    max-height:85vh;
    object-fit:contain;
    border-radius:20px;
}

.gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.2);
    color:#fff;
    font-size:2rem;
    cursor:pointer;
    transition:.3s ease;
    backdrop-filter:blur(10px);
}

.gallery-arrow:hover{
    background:rgba(255,255,255,.35);
}

.gallery-arrow.left{
    left:-80px;
}

.gallery-arrow.right{
    right:-80px;
}

.gallery-close{
    position:absolute;
    top:-70px;
    right:0;
    width:48px;
    height:48px;
    border:none;
    border-radius:999px;
    background:#fff;
    cursor:pointer;
    font-size:1.2rem;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

    .split-content{
        grid-template-columns:1fr;
    }

    .split-right{
        justify-content:flex-start;
    }

    .gallery-arrow.left{
        left:10px;
    }

    .gallery-arrow.right{
        right:10px;
    }
}

@media(max-width:767px){

    .gallery-grid{
        grid-template-columns:1fr;
        gap:24px;
    }

    .gallery-item.full{
        grid-column:auto;
    }

    .card-img {
        max-width:80%;
        right:-10%;
    }
    .card-bg {
        width:100%;
        right:auto;
    }


}

/* =========================
CASE STUDY
========================= */

.case-hero{
    display:grid;
    grid-template-columns:50% 48%;
    gap:42px;
    align-items:center;
}

.case-hero-copy{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.case-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
INFO GRID
========================= */

.info-grid{
    display:grid;
    grid-template-columns:48% 50%;
    gap:24px;
    align-items:center;
}

.info-grid.equal{
    grid-template-columns:1fr 1fr;
}

.info-grid.reverse{
    align-items:center;
}

.info-copy{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.info-copy.small{
    max-width:320px;
}

.info-image img{
    width:100%;
    object-fit:cover;
    border-radius:20px;
}

/* =========================
CASE GALLERY
========================= */

.case-gallery{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.case-gallery-item{
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
}

.case-gallery-item img{
    width:100%;
    transition:transform .5s ease;
}

.case-gallery-item:hover img{
    transform:scale(1.03);
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

    .case-hero{
        grid-template-columns:1fr;
    }

    .info-grid,
    .info-grid.equal{
        grid-template-columns:1fr;
    }

    .case-gallery{
        grid-template-columns:1fr;
    }

}