﻿/* =========================================================
   FOUNDATION
========================================================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

*{
    margin:0;
    padding:0;
}

:root{
    --bg:#050505;
    --panel:#0d0d0d;
    --panel-2:#141414;
    --text:#f8f4ee;
    --muted:#b3aaa2;
    --soft:#766f69;
    --line:rgba(255,255,255,.1);
    --line-strong:rgba(255,255,255,.2);
    --accent:#ff4d17;
    --accent-2:#f7b84b;
    --cyan:#5ff0d0;
    --success:#78ffbd;
    --shadow:0 26px 80px rgba(0,0,0,.42);
    --container:min(1120px, calc(100vw - 40px));
    --radius:8px;
    --nav-height:84px;
}

html,
body{
    width:100%;
    min-height:100%;
    background:var(--bg);
    color:var(--text);
    font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow:hidden;
    scroll-behavior:smooth;
}

body{
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

img,
picture{
    display:block;
    max-width:100%;
}

button,
input{
    font:inherit;
}

button,
a,
label{
    -webkit-tap-highlight-color:transparent;
}

button{
    border:0;
}

a{
    color:inherit;
    text-decoration:none;
}

body::-webkit-scrollbar{
    display:none;
}

::selection{
    background:rgba(255,77,23,.34);
    color:#fff;
}

.ph{
    display:inline-flex;
    font-size:1em;
    line-height:1;
}

.container{
    width:var(--container);
    margin-inline:auto;
}

.eyebrow,
.section-kicker{
    color:var(--accent-2);
    font-size:.74rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.28em;
}

.section-heading{
    display:grid;
    gap:18px;
    max-width:860px;
    margin-bottom:42px;
}

.section-title,
.hero-title{
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-weight:700;
    line-height:.92;
    letter-spacing:0;
    text-transform:uppercase;
}

.section-title{
    font-size:clamp(2.75rem, 7vw, 7.6rem);
}

.section-lede{
    max-width:670px;
    color:var(--muted);
    font-size:clamp(1rem, 1.6vw, 1.18rem);
    line-height:1.8;
}

.text-accent{
    color:var(--accent);
}

.split-line{
    display:block;
    overflow:hidden;
}

.split-line > span,
[data-reveal-line]{
    display:block;
    will-change:transform, opacity, filter;
}

/* =========================================================
   BACKGROUND
========================================================= */

#webgl{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:0;
    filter:contrast(106%) brightness(.9) saturate(90%);
}

.stage-wash{
    position:fixed;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:
    linear-gradient(180deg, rgba(5,5,5,.18) 0%, rgba(5,5,5,.56) 74%, rgba(5,5,5,.92) 100%),
    linear-gradient(90deg, rgba(255,77,23,.12), transparent 34%, rgba(95,240,208,.08) 100%);
}

.noise{
    position:fixed;
    inset:0;
    z-index:2;
    opacity:.032;
    pointer-events:none;
    background-image:url("https://grainy-gradients.vercel.app/noise.svg");
}

/* =========================================================
   PRELOADER
========================================================= */

.preloader{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    background:#050505;
    transition:opacity .65s ease, visibility .65s ease;
}

.preloader.is-hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.preloader-inner{
    width:min(340px, 76vw);
    color:var(--text);
}

.preloader-label{
    margin-bottom:18px;
    color:var(--muted);
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.34em;
}

.preloader-count{
    color:var(--accent);
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:clamp(3.5rem, 14vw, 8rem);
    font-weight:700;
    line-height:.86;
    font-variant-numeric:tabular-nums;
}

.preloader-count span{
    display:inline-block;
    min-width:1.16em;
}

.preloader-track{
    height:2px;
    margin-top:24px;
    overflow:hidden;
    background:rgba(255,255,255,.1);
}

.preloader-track::after{
    content:"";
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));
}

.preloader.is-running .preloader-track::after{
    animation:loadbar 1.7s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes loadbar{
    to{width:100%;}
}

/* =========================================================
   NAVIGATION
========================================================= */

.site-nav{
    position:fixed;
    top:0;
    left:0;
    z-index:120;
    width:100%;
    height:var(--nav-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-inline:clamp(20px, 5vw, 72px);
    pointer-events:none;
}

.brand,
.nav-links{
    pointer-events:auto;
}

.brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:.92rem;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.brand-avatar{
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:50%;
    object-fit:cover;
    background:#111;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px;
    border:1px solid var(--line);
    background:rgba(5,5,5,.44);
    backdrop-filter:blur(18px);
}

.nav-links a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:36px;
    padding:0 14px;
    color:rgba(255,255,255,.76);
    font-size:.82rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.nav-links a:hover,
.nav-links a:focus-visible{
    color:#fff;
    background:rgba(255,255,255,.08);
    outline:0;
}

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

[data-scroll-container]{
    position:relative;
    z-index:5;
}

.page-section{
    position:relative;
    padding-block:clamp(86px, 10vw, 150px);
}

.hero{
    min-height:100svh;
    display:grid;
    align-items:end;
    padding-top:calc(var(--nav-height) + 34px);
    padding-bottom:clamp(54px, 8vw, 92px);
}

.hero-shell{
    width:var(--container);
    margin-inline:auto;
}

.hero-content{
    display:grid;
    gap:32px;
    max-width:1040px;
}

.hero-title{
    max-width:980px;
    font-size:clamp(4rem, 12vw, 12.5rem);
}

.hero-title span{
    display:block;
}

.hero-lede{
    max-width:760px;
    color:rgba(248,244,238,.78);
    font-size:clamp(1.05rem, 1.9vw, 1.32rem);
    line-height:1.75;
}

.hero-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.button,
.upload-control{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:0 18px;
    border:1px solid var(--line-strong);
    color:#fff;
    background:rgba(255,255,255,.06);
    cursor:pointer;
    font-weight:800;
    font-size:.86rem;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.button:hover,
.button:focus-visible,
.upload-control:hover,
.upload-control:focus-within{
    background:rgba(255,255,255,.11);
    border-color:rgba(255,255,255,.34);
    outline:0;
}

.button-primary{
    border-color:rgba(255,77,23,.68);
    background:var(--accent);
    color:#fff;
}

.button-primary:hover,
.button-primary:focus-visible{
    background:#ff5f2d;
    border-color:#ff7a4f;
}

.upload-control{
    position:relative;
    overflow:hidden;
}

.upload-control input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.hero-meta{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:1px;
    margin-top:clamp(42px, 6vw, 72px);
    border:1px solid var(--line);
    background:var(--line);
}

.metric{
    display:grid;
    gap:6px;
    min-height:112px;
    padding:22px;
    background:rgba(8,8,8,.76);
    backdrop-filter:blur(18px);
}

.metric strong{
    color:#fff;
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:clamp(1.45rem, 3vw, 2.4rem);
    line-height:1;
}

.metric span{
    color:var(--muted);
    font-size:.86rem;
    line-height:1.5;
}

.signal{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,.66);
    font-size:.88rem;
    font-weight:700;
}

.signal-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--success);
    box-shadow:0 0 22px rgba(120,255,189,.8);
    animation:pulse 1.35s ease-in-out infinite;
}

@keyframes pulse{
    50%{transform:scale(1.75); opacity:.45;}
}

/* =========================================================
   WORK
========================================================= */

.work-grid{
    display:grid;
    gap:18px;
}

.work-card{
    display:grid;
    grid-template-columns:minmax(260px, .9fr) minmax(0, 1.1fr);
    gap:1px;
    overflow:hidden;
    border:1px solid var(--line);
    background:var(--line);
    box-shadow:var(--shadow);
}

.media-frame{
    position:relative;
    min-height:330px;
    overflow:hidden;
    background:#111;
}

.media-frame img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.92) contrast(1.04);
    will-change:transform, filter;
}

.media-frame::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 42%, rgba(0,0,0,.58) 100%);
    pointer-events:none;
}

.work-index{
    position:absolute;
    left:18px;
    bottom:16px;
    z-index:2;
    color:#fff;
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:clamp(2rem, 5vw, 4.5rem);
    font-weight:700;
    line-height:1;
}

.work-content{
    display:grid;
    align-content:center;
    gap:22px;
    padding:clamp(26px, 4vw, 54px);
    background:rgba(10,10,10,.84);
    backdrop-filter:blur(18px);
}

.work-content h3{
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:clamp(1.8rem, 4vw, 4rem);
    line-height:1;
    text-transform:uppercase;
}

.work-content p{
    color:var(--muted);
    font-size:1rem;
    line-height:1.8;
}

.tag-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tag{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    border:1px solid var(--line);
    color:rgba(255,255,255,.74);
    background:rgba(255,255,255,.04);
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

/* =========================================================
   SERVICES
========================================================= */

.service-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
}

.service-card{
    min-height:330px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:28px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.035);
    backdrop-filter:blur(16px);
}

.service-card:hover{
    border-color:rgba(255,255,255,.24);
    background:rgba(255,255,255,.06);
}

.service-icon{
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    border:1px solid var(--line);
    background:rgba(255,77,23,.12);
    color:var(--accent-2);
}

.service-card h3{
    margin-top:32px;
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:1.55rem;
    line-height:1.1;
    text-transform:uppercase;
}

.service-card p{
    margin-top:18px;
    color:var(--muted);
    line-height:1.75;
}

.service-number{
    color:rgba(255,255,255,.28);
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:3.2rem;
    font-weight:700;
    line-height:1;
}

/* =========================================================
   ABOUT
========================================================= */

.about-layout{
    display:grid;
    grid-template-columns:minmax(0, .95fr) minmax(280px, .7fr);
    gap:clamp(30px, 6vw, 74px);
    align-items:start;
}

.about-copy{
    display:grid;
    gap:24px;
}

.about-copy p{
    color:rgba(248,244,238,.75);
    font-size:clamp(1.02rem, 1.65vw, 1.2rem);
    line-height:1.85;
}

.capability-list{
    display:grid;
    gap:1px;
    border:1px solid var(--line);
    background:var(--line);
}

.capability-list li{
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    min-height:62px;
    padding:0 18px;
    color:#fff;
    background:rgba(12,12,12,.84);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.capability-list span{
    color:var(--soft);
    font-family:"Space Grotesk", "Inter", sans-serif;
}

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

.process-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:1px;
    border:1px solid var(--line);
    background:var(--line);
}

.process-step{
    min-height:250px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:24px;
    background:rgba(9,9,9,.82);
}

.process-step span{
    color:var(--accent-2);
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:2.7rem;
    font-weight:700;
}

.process-step h3{
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:1.18rem;
    text-transform:uppercase;
}

.process-step p{
    color:var(--muted);
    line-height:1.7;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section{
    padding-bottom:calc(clamp(96px, 12vw, 170px) + 82px);
}

.contact-panel{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:end;
    gap:34px;
    padding-top:44px;
    border-top:1px solid var(--line);
}

.contact-panel h2{
    max-width:880px;
    font-family:"Space Grotesk", "Inter", sans-serif;
    font-size:clamp(3rem, 8vw, 8.2rem);
    line-height:.94;
    text-transform:uppercase;
}

.contact-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-end;
}

.footer-note{
    margin-top:42px;
    color:rgba(255,255,255,.44);
    font-size:.9rem;
}

/* =========================================================
   FLOATING MUSIC PLAYER
========================================================= */

.music-player{
    position:fixed;
    right:clamp(16px, 3vw, 34px);
    bottom:calc(18px + env(safe-area-inset-bottom));
    z-index:150;
    width:min(360px, calc(100vw - 32px));
    border:1px solid rgba(255,255,255,.16);
    background:rgba(8,8,8,.82);
    color:#fff;
    box-shadow:0 22px 70px rgba(0,0,0,.48);
    backdrop-filter:blur(24px);
}

.player-inner{
    display:grid;
    gap:12px;
    padding:14px;
}

.player-top{
    display:grid;
    grid-template-columns:40px minmax(0, 1fr) auto;
    align-items:center;
    gap:12px;
}

.player-art{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.14);
    background:
    linear-gradient(135deg, rgba(255,77,23,.42), rgba(247,184,75,.18)),
    #151515;
    color:#fff;
}

.player-copy{
    min-width:0;
}

.player-label{
    color:var(--accent-2);
    font-size:.66rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.16em;
}

.player-title{
    overflow:hidden;
    margin-top:3px;
    color:#fff;
    font-size:.92rem;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.player-status{
    color:rgba(255,255,255,.54);
    font-size:.72rem;
    font-weight:700;
}

.player-controls{
    display:flex;
    align-items:center;
    gap:6px;
}

.player-button{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#fff;
    cursor:pointer;
}

.player-button:hover,
.player-button:focus-visible{
    background:rgba(255,255,255,.12);
    border-color:rgba(255,255,255,.28);
    outline:0;
}

.player-button.is-primary{
    width:40px;
    height:40px;
    border-color:rgba(255,77,23,.5);
    background:var(--accent);
}

.player-progress{
    position:relative;
    height:6px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.1);
    cursor:pointer;
}

.player-progress span{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));
}

.player-time{
    display:flex;
    justify-content:space-between;
    color:rgba(255,255,255,.48);
    font-size:.68rem;
    font-weight:800;
    font-variant-numeric:tabular-nums;
}

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

@media(max-width:1024px){
    .work-card,
    .about-layout,
    .contact-panel{
        grid-template-columns:1fr;
    }

    .service-grid,
    .process-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .contact-links{
        justify-content:flex-start;
    }
}

@media(max-width:760px){
    :root{
        --container:calc(100vw - 32px);
        --nav-height:72px;
    }

    .site-nav{
        padding-inline:16px;
    }

    .brand span{
        display:none;
    }

    .nav-links{
        gap:2px;
        padding:4px;
    }

    .nav-links a{
        width:36px;
        justify-content:center;
        padding:0;
    }

    .nav-links a span{
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
    }

    .hero{
        align-items:center;
        padding-bottom:128px;
    }

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

    .metric{
        min-height:auto;
    }

    .hero-actions,
    .contact-links{
        width:100%;
    }

    .button,
    .upload-control{
        width:100%;
    }

    .work-card{
        display:block;
    }

    .media-frame{
        min-height:260px;
    }

    .service-grid,
    .process-grid{
        grid-template-columns:1fr;
    }

    .service-card,
    .process-step{
        min-height:220px;
    }

    .music-player{
        right:16px;
        left:16px;
        width:auto;
    }

    .player-top{
        grid-template-columns:36px minmax(0, 1fr) auto;
    }

    .player-art{
        width:36px;
        height:36px;
    }
}

@media(max-width:420px){
    .hero-title{
        font-size:clamp(3.45rem, 18vw, 4.8rem);
    }

    .player-controls{
        gap:4px;
    }

    .player-button{
        width:31px;
        height:31px;
    }

    .player-button.is-primary{
        width:37px;
        height:37px;
    }
}

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}

