*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: baseline;
    list-style: none;
}

.none{
    display: none !important;
}

::selection {
    background:#000;
    color:#fff;
}
::-moz-selection {
    background:#000;
    color:#fff;
}

.text{
    line-height: 1.6;
}

.text p{
    padding-bottom: 5px;
}

html,body {
    font-family: 'dinregular';
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    background:#fff;
    width:100%;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: #000;
}

#header{
    padding: 20px 3%;
    height: 97vh;
    height: 97dvh;
    width: 100%;
    position: absolute;
    overflow: hidden;
    top:0;
    left: 0;
    z-index: 999;
    mix-blend-mode: difference;
    pointer-events: none;
}
#header svg{
    fill: white;
}
#header .logo{
    width: 50%;
    pointer-events: none;
}



.cv{
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    position: absolute;
    right: 3%;
    top:20px;
    z-index: 111;
    width: 100px;
    cursor: pointer;
    pointer-events: auto;
}




#cover{
    width: 100%;
    height: 100vh;
    height: 100dvh;
    text-align: center;
    position: fixed;
    left: 0;
    top:0;
    mix-blend-mode: difference;
    z-index: 99;
    pointer-events: none;
}

#cover svg{
    fill:#fff;
    width: auto;
    height: 100%;
}
#cover svg path:first-child{
    display: block;
}
#cover svg path{
    display: none;
}

#canvas {
    background: #1d1d1d;
    position: fixed;
    top: 0;
    left: 0;
}

.grid{
    padding: 0 5% 50px 5%;
    position: relative;
    font-size: 0em;
    z-index: 100;
    margin-top: 100vh;
    margin-top: 100dvh;
}

.grid .box{
    line-height: 0;
    position: relative;
    text-align: center;
}
.grid .box img{
   max-width: 100%;
    width: auto;
    height: auto;

}

.grid .box-video{
    font-size: 16px;
}

.grid .box-video .plyr{
    --plyr-color-main: #000;
    --plyr-video-background: #000;
    --plyr-control-radius: 0;
    --plyr-control-spacing: 10px;
    --plyr-range-fill-background: #fff;
    --plyr-range-thumb-height: 10px;
    --plyr-range-track-height: 2px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

.grid .box-video .plyr__control--overlaid{
    border-radius: 50%;
}

.lazy-image{
    max-width: 100%;
    margin: 0;
    display: inline-grid;
    position: relative;
    overflow: hidden;
    vertical-align: top;
    background: transparent;
}

.lazy-image.has-unknown-size{
    width: 100%;
    aspect-ratio: 1;
}

.grid .box .lazy-image img,
.cv-content .text .lazy-image img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
}

.lazy-image__mosaic{
    image-rendering: pixelated;
    transform: scale(1.02);
    opacity: 1;
    transition: opacity 320ms ease, transform 420ms ease;
}

.lazy-image__full{
    opacity: 0;
    transition: opacity 280ms ease;
}

.lazy-image.is-loaded .lazy-image__mosaic{
    opacity: 0;
    transform: scale(1);
}

.lazy-image.is-loaded .lazy-image__full{
    opacity: 1;
}

.lazy-image--cv{
    display: grid;
}

.title{
    display:block;
    writing-mode: vertical-rl;
    writing-mode: tb-rl;
    position: fixed;
    left: 2%;
    top: 20px;
    z-index: 101;
    width: max-content;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    font-size: 16px;
    line-height: 1.25;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms;
}

.title.is-visible{
    opacity: 1;
    visibility: visible;
}
.grid .box h2{
    display: none;
}

.works-sentinel{
    width: 100%;
    height: 1px;
}

.works-loader{
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.works-loader-retry{
    appearance: none;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.gototop{
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    width: 50px;
    height: 50px;
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    right: 1%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.gototop.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}






.cv-content{
    padding: 100px 3%;
    font-size: 2em;
    display: none;
}

.cv-content.is-open{
    display: block;
}

.cv-content .text p{
    margin: 0 0 .75em;
}

.cv-content .text a{
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cv-content .text img{
    max-width: 100%;
    height: auto;
}

.cv:focus-visible,
.gototop:focus-visible,
a:focus-visible{
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.fix{
    position: fixed;
}
@media screen and (max-width: 1024px) {
    #cover svg{
        fill:#fff;
        width: 100%;
        height: auto;
    }
    #header .logo {
        width: 80%;
    }
    .cv{
        width: 15%;
    }

    .tag-go ul li img {
        width: auto;
        height: 35px;
    }


    #header{
        height: auto;
    }

    .title {
        left: 0;
        font-size: 14px;
    }
    .grid .box.small-box img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 700px){
    #cover{
        height:100%;
        position:fixed;
        mix-blend-mode:normal;
        background: #000;
        cursor: pointer;
        pointer-events: auto;
        opacity: 1;
        transition: opacity 300ms ease, visibility 300ms;
    }

    #cover.is-dismissed{
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #cover svg {
        width:100vh;
        height: 100%;
        transform:rotate(90deg) translateY(25%);
    }

}

@media (prefers-reduced-motion: reduce){
    .lazy-image__mosaic,
    .lazy-image__full{
        transition: none;
    }
}

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