:root{
    --white:#ffffff;
    --gray:#f2f2f2;
    --black:#111111;

    --font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Compact Text", "Helvetica Neue", Arial, sans-serif;
    --font-compact:"SF Compact Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-mono:"SF Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

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

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0, 0, 0, 0);
    white-space:nowrap;
    border:0;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:var(--font-sans);
    background:var(--gray);
    color:var(--black);
}

/* =========================
   HEADER
========================= */

.header{
    position:sticky;
    top:0;
    z-index:1000;

    background:var(--white);

    padding:16px 24px;

    border-bottom:1px solid #e5e5e5;

    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
}

.name{
    font-size:14px;
    font-weight:400;
    color:var(--black);
}

.name a{
    color:var(--black);
    text-decoration:none;
}

.name a:hover{
    opacity:.5;
}

.logo{
    text-align:center;
}

.logo img{
    height:38px;
    width:auto;
    display:block;
}

.links{
    justify-self:end;
    display:flex;
    gap:12px;
}

.links a{
    width:34px;
    height:34px;

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

    border:1px solid var(--black);
    border-radius:50%;

    color:var(--black);
    text-decoration:none;

    font-family:var(--font-mono);
    font-weight:700;
    font-size:12px;
    line-height:1;

    transition:all .2s ease;
}

.links a:hover{
    background:var(--black);
    color:var(--white);
}

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

.gallery{
    width:100%;
    padding:24px;

    display:grid;
    grid-template-columns:repeat(3, 1fr);

    gap:24px 24px;
}

/* =========================
   PROJECT CARD
========================= */

.project{
    text-decoration:none;
    color:var(--black);

    display:flex;
    flex-direction:column;

    gap:0;

    transition:opacity .2s ease;
}

.project:hover{
    opacity:.85;
}

.thumb{
    position:relative;

    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;

    background:#e6e6e6;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.placeholder-thumb{
    background:#d8d8d8;
}

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

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

    padding:20px;

    background:rgba(0,0,0,.55);
    color:var(--white);

    font-family:var(--font-mono);
    font-weight:700;
    font-size:12px;
    line-height:1.2;
    text-align:center;

    opacity:0;
    transition:opacity .2s ease;

    border-bottom:none;
}

.project:hover .project-title,
.project:focus-visible .project-title{
    opacity:1;
}

@media (max-width:1100px){

    .gallery{
        grid-template-columns:repeat(2, 1fr);
        gap:20px 20px;
        padding:20px;
    }

}

@media (max-width:768px){

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

}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .header{
        display:grid;
        grid-template-columns:52px 1fr 52px;
        grid-template-rows:auto;
        grid-template-areas:none;
        align-items:center;

        padding:18px 22px;
        gap:12px;
    }

    .name{
        display:none;
    }

    .logo{
        grid-area:auto;
        grid-column:2;
        grid-row:1;
        justify-self:center;
        align-self:center;
    }

    .logo img{
        height:48px;
        width:auto;
        display:block;
    }

    .links{
        display:contents;
    }

    .links a{
        width:42px;
        height:42px;

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

        font-size:13px;
        border:1.5px solid var(--black);

        align-self:center;
    }

    .links a:first-child{
        grid-area:auto;
        grid-column:1;
        grid-row:1;
        justify-self:start;
    }

    .links a:last-child{
        grid-area:auto;
        grid-column:3;
        grid-row:1;
        justify-self:end;
    }

    .project-title{
        opacity:1;

        align-items:flex-end;
        justify-content:flex-start;

        background:linear-gradient(
            to top,
            rgba(0,0,0,.55),
            rgba(0,0,0,0)
        );

        font-size:11px;
        text-align:left;
    }
}

/* =========================
   PROJECT BACKGROUNDS
========================= */

.project-monsters{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 32%),
        linear-gradient(135deg, #23a00a 0%, #34489a 100%);
}

.project-nb{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.55), transparent 34%),
        linear-gradient(135deg, #410404 0%, #c9a96a 100%);
}

.project-teenage-rockstar{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.75), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #2f0069 100%);
}

.project-little-players{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 34%),
        linear-gradient(135deg, #aed4ff 0%, #1660bc 100%);
}

.project-space{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #6d75a2 0%, #041852 100%);
}

.project-target{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 34%),
        linear-gradient(135deg, #81ffcf 0%, #05456e 100%);
}

.project-nightfall{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 28%),
        linear-gradient(135deg, #848484 0%, #000000 100%);
}

.project-owl-paper{
    background:var(--white);
}

.project-owl-paper .project-detail{
    padding-bottom:0;
}

.project-do-not-say{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.55), transparent 34%),
        linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
}

.project-steppe{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.42), transparent 32%),
        linear-gradient(135deg, #897eeb 0%, #1d0150 100%);
}

/* =========================
   EDITORIAL PROJECT LAYOUT
========================= */

.project-hero{
    width:100%;
    aspect-ratio:16/7;
    background:#e6e6e6;
    overflow:hidden;
}

.project-hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.project-detail{
    max-width:1240px;
    margin:0 auto;
    padding:56px 40px 80px;
}

.project-intro{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:40px;
    align-items:start;

    margin-bottom:56px;
}

.project-copy{
    max-width:780px;
}

.project-copy h1{
    font-family:var(--font-mono);
    font-weight:700;
    font-size:18px;
    line-height:1.1;

    margin-bottom:20px;
}

.project-copy p{
    font-family:var(--font-compact);
    font-weight:400;
    font-size:12px;
    line-height:1.55;

    margin-bottom:18px;
    max-width:760px;
}

.project-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;

    margin-top:24px;
    margin-bottom:28px;
}

.project-tags span{
    font-family:var(--font-mono);
    font-weight:400;
    font-size:10px;
    line-height:1;

    border:1px solid var(--black);
    padding:5px 7px;
    border-radius:999px;
}

.project-links{
    display:flex;
    gap:10px;

    margin-bottom:28px;
}

.project-links a{
    width:30px;
    height:30px;

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

    border:1.5px solid var(--black);
    border-radius:50%;

    color:var(--black);
    text-decoration:none;

    font-family:var(--font-mono);
    font-weight:700;
    font-size:11px;
    line-height:1;
}

.project-links a:visited{
    color:var(--black);
}

.project-links a:hover{
    background:var(--black);
    color:var(--white);
}

.project-nav{
    display:flex;
    gap:18px;
    font-size:12px;
}

.project-nav a{
    font-family:var(--font-mono);
    font-weight:700;
    font-size:11px;
    color:var(--black);
    text-decoration:none;
}

.project-nav a:visited{
    color:var(--black);
}

.project-nav a:hover{
    opacity:.5;
}

.project-year{
    font-family:var(--font-mono);
    font-weight:400;
    font-size:12px;

    margin-top:0;
    margin-bottom:56px;
}

.project-gallery-editorial{
    max-width:960px;
    margin:0 auto;

    display:flex;
    flex-direction:column;
    gap:28px;
}

.project-gallery-editorial img{
    width:100%;
    height:auto;
    display:block;
}

.project-gallery-editorial video{
    width:100%;
    height:auto;
    display:block;
}

.project-video-horizontal{
    width:100%;
    height:auto;
    display:block;
}

.project-video-vertical{
    max-width:420px;
    margin:0 auto;
}

/* =========================
   OWL PAPER SCROLL STORY
========================= */

.owl-story{
    background:var(--black);
}

.owl-sequence{
    position:relative;
    min-height:160vh;
}

.owl-sequence[data-sequence="1"]{
    min-height:550vh;
}

.owl-sequence[data-sequence="2"]{
    min-height:300vh;
}

.owl-sequence[data-sequence="3"]{
    min-height:300vh;
}

.owl-sequence[data-sequence="4"]{
    min-height:700vh;
}

.owl-stage{
    position:sticky;
    top:71px;

    width:100%;
    height:calc(100vh - 71px);

    overflow:hidden;
    background:var(--black);
}

.owl-canvas{
    position:absolute;
    inset:0;

    display:block;

    width:100%;
    height:100%;

    opacity:0;
}

.owl-stage.is-webgl-ready .owl-canvas{
    opacity:1;
}

.owl-stage.is-webgl-ready .owl-fallback{
    opacity:0;
}

.owl-frame{
    position:absolute;
    inset:0;

    display:block;

    width:100%;
    height:100%;

    object-fit:contain;

    opacity:0;
}

.owl-frame.is-active{
    opacity:1;
}

.owl-mobile-carousel{
    display:none;
}

/* =========================
   EDITORIAL PROJECT MOBILE
========================= */

@media (max-width:900px){

    .project-hero{
        aspect-ratio:4/4;
    }

    .project-detail{
        padding:32px 20px 56px;
    }

    .project-intro{
        display:flex;
        flex-direction:column;
        gap:28px;
        margin-bottom:40px;
    }

    .project-nav{
        order:-1;

        align-self:center;

        display:flex;
        gap:18px;

        margin-top:-60px;
        padding:8px 16px;

        background:var(--gray);
        z-index:10;
    }

    .project-nav a{
        font-size:12px;
    }

    .project-gallery-editorial{
        gap:18px;
    }

    .project-owl-paper .owl-story{
        display:flex;
        flex-direction:column;
        gap:18px;

        padding:18px 0;

        background:var(--white);
    }

    .project-owl-paper .owl-sequence{
        min-height:auto;
    }

    .project-owl-paper .owl-stage{
        display:none;
    }

    .owl-mobile-carousel{
        display:flex;
        gap:10px;

        width:100%;
        padding:0 14px;

        overflow-x:auto;
        overscroll-behavior-x:contain;

        scroll-snap-type:x mandatory;
        scroll-padding:0 14px;

        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .owl-mobile-carousel::-webkit-scrollbar{
        display:none;
    }

    .owl-mobile-carousel img{
        flex:0 0 calc(100vw - 28px);

        width:calc(100vw - 28px);
        height:auto;

        display:block;

        scroll-snap-align:start;
        scroll-snap-stop:always;
    }
}

.home{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.home .gallery{
    flex:1;
}

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

.index-footer{
    width:100%;
    height:30px;

    background:var(--black);
    color:var(--white);

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

    padding:0 24px;
    margin-top:auto;
}

.index-footer p{
    font-family:var(--font-compact);
    font-weight:400;
    font-size:11px;
    line-height:1.2;
    text-align:center;
}

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

.footer{
    padding:40px 24px 56px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:28px;
}

.to-top{
    color:var(--black);
    text-decoration:none;

    font-size:32px;
    line-height:1;

    transition:opacity .2s ease;
}

.to-top:hover{
    opacity:.5;
}

.footer-credit{
    display:none;

    font-family:var(--font-compact);
    font-weight:400;
    font-size:12px;
    line-height:1.4;
    text-align:center;
}

.footer-credit a{
    color:var(--black);
    text-decoration:none;
}

.footer-credit a:hover{
    opacity:.5;
}

@media (max-width:768px){

    .footer-credit{
        display:block;
    }

}
