/* Updated: Rectangular button with borders - Cache bust v2 */
* {
    margin: 0;
    border: 0;
    padding: 0;
    outline: none;
    list-style: none;
    line-height: 125%;
    color: var(--dark);
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    text-decoration: none;
    background-size: cover;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    font-family: "Arial", sans-serif;
}

*:before,
*:after {
    color: var(--dark);
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

svg,
svg * {
    color: inherit;
}

img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

h2 {
    font-size: 90px;
    font-weight: 700;
    line-height: 85%;
    color: var(--dark);
    white-space: pre-wrap;
    letter-spacing: -0.03em;
}

:root {
    --dark: #1D1D1F;
    --light: #FFFFFF;
    --paragraph: #525252;
}

html {
    font-size: 40px;
}

body {
    background: url('/assets/bg.png');
    background-position: center;
    background-size: 3px;
}

main {
    width: 100%;
    overflow-x: hidden;
}

header {
    width: 100%;
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

header #time {
    gap: 8px;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    align-items: center;
    letter-spacing: .004em;
    color: var(--paragraph);
    text-transform: uppercase;
}

header #time span {
    font-weight: 500;
    color: var(--dark);
}



#banner {
    display: flex;
    min-height: 200vh;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}

#banner h1 {
    font-size: 140px;
    font-weight: 700;
    line-height: 85%;
    text-align: center;
    padding: 4rem 2rem;
    white-space: pre-wrap;
    letter-spacing: -0.04em;
}

#banner h1 span {
    gap: 12px;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    margin-bottom: 20px;
    align-items: center;
    letter-spacing: 0.04em;
    color: var(--paragraph);
    justify-content: center;
}

#banner h1 span:before {
    content: '';
    width: 12px;
    height: 12px;
    display: block;
    position: relative;
    border-radius: 50%;
    background: #00b803;
    animation: onlineAnim 1s infinite linear alternate;
}

.cta-button {
    display: flex;
    justify-content: center;
    margin: calc(2rem - 30px) 0 2rem 0;
}

.main-write-btn {
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
    line-height: 28px;
    padding: 24px 48px;
    position: relative;
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    transition: .3s ease;
    background: var(--dark);
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid var(--light);
    box-shadow: 0 0 0 3px var(--dark);
}

.main-write-btn:before {
    content: '';
    top: 100%;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1;
    position: absolute;
    border-radius: 5px;
    transition: .3s ease;
    will-change: transform;
    -o-transition: .3s ease;
    -ms-transition: .3s ease;
    -moz-transition: .3s ease;
    -webkit-transition: .3s ease;
    background: url('/files/bg.png');
    background-color: var(--light);
    background-position: center;
    background-size: 3px;
}

.main-write-btn span {
    z-index: 2;
    position: relative;
    will-change: color;
    color: var(--light);
    transition: .3s ease;
    -o-transition: .3s ease;
    -ms-transition: .3s ease;
    -moz-transition: .3s ease;
    -webkit-transition: .3s ease;
}

.main-write-btn:hover span {
    color: var(--dark);
}

.main-write-btn:hover:before {
    top: 0px;
}

@keyframes onlineAnim {
    0% {
        box-shadow: 0 0 6px 0 #00b803;
    }

    100% {
        box-shadow: 0 0 6px 2px #00b803;
    }
}

#banner .basis {
    width: 100%;
    display: flex;
    padding: 0 1rem;
    min-height: 100vh;
}

#banner .basis > span {
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

#banner .basis img {
    width: 100%;
    height: 100%;
    transform: scale(1.25);
}


#portfolio {
    margin: 0 auto;
    padding: 4rem 1rem;
}

#portfolio .items {
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 2rem;
    display: inline-flex;
}

#portfolio .item {
    flex: 30%;
    cursor: pointer;
    overflow: hidden;
    transition: .15s;
    position: relative;
    border-radius: 20px;
    background: #f5f5f7;
    box-shadow: 0 0 .5rem 0 rgba(0, 0, 0, 0.2);
}

#portfolio .items .item:hover {
    z-index: 3;
    transform: scale(1.1);
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.4);
}

#portfolio .item .media {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#portfolio .item .media:before {
    content: '';
    width: 100%;
    display: block;
    padding-top: 177.777777778%;
}

#portfolio .item video {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#portfolio .item video:hover {
    transform: scale(1.05);
}

#portfolio .item .bottom {
    min-height: 100px;
    overflow: hidden;
}

#portfolio .item .info {
    gap: 1rem;
    display: flex;
    height: 110px;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

#portfolio .item .info h3,
#portfolio .item .info p {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: var(--dark);
    white-space: nowrap;
}

#portfolio .item .info h3 {
    max-width: 200px;
    white-space: normal;
}

#portfolio .item .info h3 span {
    display: block;
    font-size: 18px;
    margin-top: 4px;
    font-weight: 500;
    line-height: 20px;
    color: var(--paragraph);
}

#portfolio .item .info p {
    gap: 8px;
    display: flex;
    font-size: 19px;
    min-width: 175px;
    font-weight: 600;
    line-height: 20px;
    padding: 16px 32px;
    color: var(--light);
    align-items: center;
    border-radius: 30px;
    letter-spacing: 0.04em;
    justify-content: center;
    background: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#portfolio .item .info p svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
}


#doing {
    padding: 1rem;
    padding-top: 0;
    padding-bottom: 2rem;
}

#doing .items {
    gap: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

#doing .items > div {
    flex: 30%;
    padding: 1rem;
    position: relative;
    border-radius: 20px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .04);
}

#doing .items span {
    content: '';
    top: .5rem;
    width: 1rem;
    right: .5rem;
    height: 1rem;
    display: flex;
    font-size: 14px;
    padding-top: 2px;
    font-weight: 700;
    color: #f5f5f7;
    padding-left: 2px;
    position: absolute;
    border-radius: 50%;
    align-items: center;
    letter-spacing: .15em;
    background: var(--dark);
    justify-content: center;
    backdrop-filter: blur(4px);
}

#doing .items h4 {
    display: flex;
    font-size: 28px;
    min-height: 64px;
    font-weight: 700;
    line-height: 32px;
    color: var(--dark);
    margin-bottom: 15px;
    align-items: center;
    padding-right: 1rem;
    letter-spacing: -0.2px;
    letter-spacing: -0.008em;
}

#doing .items p {
    font-size: 19px;
    font-weight: 500;
    line-height: 125%;
    letter-spacing: .02em;
    color: var(--paragraph);
}


#clients {
    max-width: 100%;
    overflow: hidden;
    padding: 2rem 1rem;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#clients .animate {
    gap: 1rem;
    width: max-content; 
    display: inline-flex;
    will-change: transform;
    align-items: flex-start;
    animation: scroll 50s linear infinite;
    transition: animation-play-state 0.3s ease;
    cursor: grab;
}

#clients:hover .animate {
    animation-play-state: paused;
}

#clients .animate:active {
    cursor: grabbing;
}


#clients .item {
    width: 300px;
    display: flex;
    cursor: pointer;
    overflow: hidden;
    min-width: 300px;
    transition: .35s;
    position: relative;
    border-radius: 6px;
    align-items: flex-start;
    box-shadow: 0 0 1rem 0 transparent;
    box-shadow: 0 0 .175rem 0 rgba(0, 0, 0, 0.1);
}

#clients .left {
    transform: rotate(7.5deg);
}

#clients .right {
    transform: rotate(-7.5deg);
}

#clients .item img {
    width: 100%;
    height: auto;
}

#clients .animate:hover {
    animation-play-state: paused;
}

#clients .item:hover {
    z-index: 2;
    width: 360px;
    transform: none;
    min-width: 360px;
    border-radius: 12px;
    margin: 0 -30px!important;
    box-shadow: 0 0 .75rem 0 rgba(0, 0, 0, 0.2);
}

@keyframes scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}


footer {
    gap: 1rem;
    display: flex;
    padding-top: 2rem;
    align-items: center;
    flex-direction: column;
}

footer h5 {
    display: flex;
    font-weight: 700;
    font-size: 110px;
    color: var(--dark);
    line-height: 100px;
    text-align: center;
    align-items: center;
    flex-direction: column;
    letter-spacing: -0.03em;
    justify-content: center;
}

footer > a {
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    line-height: 20px;
    padding: 16px 32px;
    position: relative;
    align-items: center;
    border-radius: 30px;
    display: inline-flex;
    transition: .3s ease;
    background: var(--dark);
    text-transform: uppercase;
}

footer > a:before {
    content: '';
    top: 100%;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: 1;
    position: absolute;
    border-radius: 30px;
    transition: .3s ease;
    will-change: transform;
    -o-transition: .3s ease;
    -ms-transition: .3s ease;
    -moz-transition: .3s ease;
    -webkit-transition: .3s ease;
    background: url('/files/bg.png');
    background-color: var(--light);
    background-position: center;
    background-size: 3px;
}

footer a span {
    z-index: 2;
    position: relative;
    will-change: color;
    color: var(--light);
    transition: .3s ease;
    -o-transition: .3s ease;
    -ms-transition: .3s ease;
    -moz-transition: .3s ease;
    -webkit-transition: .3s ease;
}

footer > a:hover span {
    color: var(--dark);
}

footer > a:hover:before {
    top: 2px;
}

footer .author {
    width: 100%;
    max-width: 340px;
    max-height: 500px;
    border-radius: 170px;
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer .author::before {
    content: '';
    width: 100%;
    display: block;
    padding-top: 152.75%;
}

footer .links {
    gap: 1rem;
    display: flex;
}

footer .links a {
    gap: 2px;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    color: var(--dark);
    position: relative;
    align-items: center;
    text-transform: uppercase;
}

footer .links a svg {
    width: 24px;
    height: 24px;
    transform: rotate(45deg);
}

footer .animate {
    position: relative;
}

footer h6 {
    bottom: 2rem;
    display: flex;
    font-size: 11vw;
    margin-top: 2rem;
    font-weight: 700;
    position: sticky;
    color: var(--dark);
    text-align: center;
    line-height: 0.75em;
    align-items: center;
    letter-spacing: -.06em;
    justify-content: center;
    text-transform: uppercase;
}

footer .bottom {
    width: 100%;
    display: flex;
    padding: 0 1rem;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: space-between;
}

footer .copyright,
footer .bottom a {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: var(--dark);
    text-transform: uppercase;
    text-transform: uppercase;
}


#case_info {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 22;
    padding: 1rem;
    display: flex;
    overflow: auto;
    position: fixed;
    transition: .35s;
    visibility: hidden;
    overflow-x: hidden;
    align-items: flex-start;
    justify-content: center;
    background: rgb(29 29 31 / 90%);
}

body.visible_popup {
    overflow: hidden;
}

body.visible_popup #case_info {
    opacity: 1;
    visibility: visible;
}

#case_info div {
    display: flex;
    position: relative;
    align-items: flex-end;
    flex-direction: column;
}

#case_info i {
    top: 0;
    z-index: 2;
    width: 1rem;
    height: 1rem;
    display: flex;
    cursor: pointer;
    font-size: 16px;
    position: sticky;
    transition: .35s;
    font-weight: 800;
    border-radius: 50%;
    align-items: center;
    margin-right: -0.5rem;
    margin-bottom: -0.5rem;
    justify-content: center;
    background-color: #f5f5f5;
    box-shadow: 0 0 8px 0 rgba(255, 0, 0, 0.33);
}

#case_info .loading {
    width: 400px;
    height: 66vh;
    align-items: center;
    border-radius: 12px;
    justify-content: center;
    background: var(--paragraph);
}

#case_info .loading svg {
    width: 80px;
    height: 80px;
    color: var(--light);
}

#case_info i:hover {
    background-color: #fff;
}

#case_info img {
    width: 400px;
    height: auto;
    max-height: 99999vh;
    border-radius: 12px;
}



@media( max-width: 1400px ){
    #portfolio .item {
        flex: 40%;
    }
}

@media( max-width: 1200px ){
    #portfolio .item .info {
        padding: 0 .5rem;
        gap: 0.5rem;
    }

    #portfolio .item .info h3 {
        font-size: 19px;
    }

    #portfolio .item .info > * {
        transform: scale(.9);
    }
}

@media( max-width: 992px ){
    #portfolio .item .info {
        padding: 1rem;
        gap: 1rem;
    }

    #portfolio .item .info h3 {
        font-size: 22px;
    }

    #portfolio .item {
        flex: 100%;
    }

    #portfolio .item .info > * {
        transform: scale(1);
    }

    #banner h1,
    footer h5,
    h2 {
        font-size: 14vw;
    }
}

@media( max-width: 768px ){
    #doing .items > div {
        flex: 100%
    }

    footer .author {
        background-size: cover!important;
    }

    #banner {
        min-height: 1px;
    }
}

@media( max-width: 576px ){
    #banner .basis  {
        padding: 0;
    }

    footer .links {
        gap: .5rem;
        flex-direction: column;
    }

    #banner h1 {
        font-size: 20vw;
    }
    
    footer h5,
    h2  {
        font-size: 14vw;
    }

    #banner h1 span {
        font-size: 15px;
    }

    .main-write-btn {
        padding: 18px 36px;
        font-size: 20px;
        line-height: 24px;
        border-radius: 6px;
        border: 2px solid var(--light);
        box-shadow: 0 0 0 2px var(--dark);
    }

    .main-write-btn:before {
        left: 0px;
        right: 0px;
        bottom: 0px;
        border-radius: 4px;
    }

    #portfolio .item .info {
        gap: .25rem;
        height: auto;
        padding: .5rem;
        text-align: center;
        flex-direction: column;
    }

    #portfolio .item .info p {
        padding: 10px;
        font-size: 16px;
        min-width: 160px;
    }

    #doing,
    #portfolio {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}