/* ==================================================
   RESET
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#050505;
    color:#ffffff;
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
}

body.loaded{
    opacity:1;
}

body{
    opacity:1;
    transition:opacity .4s ease;
}

/* ==================================================
   VARIABLES
================================================== */

:root{
    --bg:#050505;
    --card:#101010;
    --border:#202020;
    --text:#ffffff;
    --muted:#8f8f8f;
    --accent:#ff6a1a;

    --container:1400px;
}

/* ==================================================
   INTRO
================================================== */

#intro{
    position:fixed;
    inset:0;
    background:#000;
    z-index:9999;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:all .8s ease;
}

#intro.hide{
    opacity:0;
    visibility:hidden;
}

#introVideo{
    width:min(60vw,700px);
    max-width:700px;
    height:auto;
}

#transitionLogo{
    position:fixed;
    left:50%;
    top:50%;

    width:120px;
    height:120px;

    opacity:0;

    transform:translate(-50%,-50%);
    z-index:10000;
}

#transitionLogo img{
    width:100%;
    display:block;
}

/* ==================================================
   HEADER
================================================== */

#header{
    position:fixed;
    top:0;
    left:0;
    right:0;

    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 60px;

    z-index:500;

    opacity:0;
    transform:translateY(-20px);

    transition:.5s ease;
}

#header.show{
    opacity:1;
    transform:translateY(0);
}

#header.scrolled{
    backdrop-filter:blur(18px);
    background:rgba(0,0,0,.55);
    border-bottom:1px solid rgba(255,255,255,.05);
}

.logoWrap{
    display:flex;
    align-items:center;
    gap:14px;
}

.logoIcon{
    width:48px;
    height:48px;
    object-fit:contain;
}

.logoText{
    font-size:1.2rem;
    font-weight:600;
    letter-spacing:.2px;
}

nav{
    display:flex;
    gap:36px;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-size:.95rem;
    transition:.3s;
}

nav a:hover{
    color:var(--accent);
}

nav a.active{
    color:var(--accent);
}

/* ==================================================
   HERO
================================================== */

.hero{
    min-height:100vh;

    display:flex;
    align-items:center;

    padding:140px 7vw 100px;
}

.heroContent{
    max-width:1200px;
}

.hero h1{
    font-size:clamp(5rem,12vw,12rem);
    line-height:.85;
    font-weight:800;
    letter-spacing:-5px;
}

.tagline{
    margin-top:40px;

    font-size:1.6rem;
    font-weight:600;
}

.subline{
    margin-top:12px;

    color:var(--muted);

    font-size:1.1rem;
}

/* ==================================================
   GLOBAL SECTIONS
================================================== */

section{
    width:100%;
}

.showreel,
.about,
.clients,
.projects,
.contact{
    padding:120px 7vw;
}

h2{
    font-size:clamp(2.4rem,5vw,4rem);
    margin-bottom:60px;
}

/* ==================================================
   SHOWREEL
================================================== */

.videoWrapper{
    position:relative;

    width:100%;
    aspect-ratio:16/9;

    overflow:hidden;

    border-radius:28px;

    border:1px solid rgba(255,255,255,.08);
}

.videoWrapper iframe{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;
}

/* ==================================================
   ABOUT
================================================== */

.aboutGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.aboutText h2{
    margin-bottom:30px;
}

.aboutText p{
    font-size:1.15rem;
    line-height:1.8;
    color:var(--muted);
}

.placeholderArt{
    aspect-ratio:1/1;

    background:#111;

    border:1px solid rgba(255,255,255,.08);

    border-radius:32px;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    font-size:2rem;
    font-weight:700;
}

.placeholderArt span{
    margin-top:16px;

    font-size:.9rem;
    color:var(--muted);
}

/* ==================================================
   CLIENTS
================================================== */

.marquee{
    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    border-radius:100px;

    padding:40px 0;
}

.track{
    display:flex;
    align-items:center;
    gap:120px;

    width:max-content;

    animation:marquee 25s linear infinite;
}

.track img{
    height:60px;
    width:auto;

    object-fit:contain;

    filter:grayscale(100%);
    opacity:.9;
}

.track img:hover{
    filter:none;
}

@keyframes marquee{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

/* ==================================================
   PROJECTS
================================================== */

.projectGrid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:28px;
}

.projectCard{
    aspect-ratio:16/10;

    background:#111;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.35s ease;

    overflow:hidden;
}

.projectCard:hover{
    transform:translateY(-8px) scale(1.02);
}

.projectCard span{
    color:#777;
    font-size:1.05rem;
    font-weight:600;
}

/* ==================================================
   CONTACT
================================================== */

.contactInner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
}

.contactInfo h2{
    margin-bottom:20px;
}

.contactInfo p{
    color:var(--muted);
    margin-bottom:40px;
    line-height:1.7;
}

.contactInfo a{
    display:block;

    color:#fff;
    text-decoration:none;

    margin-bottom:18px;

    font-size:1.1rem;
}

.contactForm{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contactForm input,
.contactForm textarea{

    background:#111;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    color:#fff;

    padding:18px 22px;

    font-family:inherit;
    font-size:1rem;
}

.contactForm textarea{
    height:180px;
    resize:none;
}

.contactForm button{

    height:58px;

    border:none;
    border-radius:14px;

    background:var(--accent);

    color:#fff;

    font-size:1rem;
    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.contactForm button:hover{
    transform:translateY(-2px);
}

/* ==================================================
   FOOTER
================================================== */

footer{

    border-top:1px solid rgba(255,255,255,.06);

    padding:40px 7vw;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footerLogo{
    display:flex;
    align-items:center;
    gap:12px;
}

.footerLogo img{
    width:40px;
}

footer p{
    color:#777;
}

/* ==================================================
   REVEALS
================================================== */

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ==================================================
   MOBILE
================================================== */

@media(max-width:1024px){

    .hero h1{
        letter-spacing:-2px;
    }

    .aboutGrid,
    .contactInner{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    #header{
        padding:0 24px;
        height:80px;
    }

    nav{
        gap:18px;
        flex-wrap:wrap;
        justify-content:flex-end;
    }

    nav a{
        font-size:.8rem;
    }

    .hero{
        padding:140px 24px 80px;
    }

    .showreel,
    .about,
    .clients,
    .projects,
    .contact{
        padding:80px 24px;
    }

    .projectGrid{
        grid-template-columns:1fr;
    }

    footer{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    .track{
        gap:60px;
    }

    .track img{
        height:45px;
    }
}

@media(max-width:480px){

    .logoText{
        display:none;
    }

    .hero h1{
        font-size:4.2rem;
        line-height:.9;
    }

    .tagline{
        font-size:1.2rem;
    }

    .subline{
        font-size:.95rem;
    }

    h2{
        margin-bottom:40px;
    }
}