*{
    box-sizing: border-box;
}

html, body {
    --border-radius: 48px;
    --blue: #1c47ff;
    --pink: #d6a3fb;
    --green: #d0ff94;
    --grey: #e5e5e5;
    --gutter: 3.125vw 6.25vw;

    
    margin: 0;
    padding: 0;
    background: #000000;
    color: #ffffff;
    font-size: 20px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 70px;
    line-height: 1em;
    margin: 0px;
}

h2 {
    font-size: 60px;
    margin: 0px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

section{
    position: relative;
    display: flex;
    width: 100%;
    height: calc( 100vh- 100px);
    top: 100px;
    z-index: 2
}

section.sticky {
    position: sticky;
    margin-top: 100px;
}

section.full-screen {
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 3;
}

/* navigation */

nav {
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    font-size: 20px;
    z-index: 1;
}

nav ul {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    margin-left: 44px;
}

nav ul li a {
    color: #ffffff;
    font-family: "DM Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* about section */

section.about .empty {
    flex-basis: 37.5vw;
    background: var(--grey);
    border-radius: var(--border-radius);
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}

section.about article {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section.about article .title {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--blue);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}

section.about article .description {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--pink);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    color: #000000;
}

/* service section */

section.service article {
    display: flex;
    width: 100%;
}

section.service figure {
    display:flex;
    align-items: center;
    justify-content: center;
    flex-basis: 56.25vw;
    margin: 0;
    background: var(--green);
    border-radius: var(--border-radius);
    max-width: 62.5vw;
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}

section.service figure img {
    width: 40%;
}

section.service .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex:1;
    background: #1f1a1c;
    padding: var(--gutter);
    border-radius: var(--border-radius);
}

section.service .text p .jp {
    font-family: "DM Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* service section animation */

section.service.service-creativedirection figure img {
    animation-name: float;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

@keyframes float {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%);
    }
}

section.service.service-design figure img {
    animation-name: scale;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

@keyframes scale {
    0% {
        transform: scale(100%);
    }
    100% {
        transform: scale(120%);
    }
}

section.service.service-artcuration figure img {
    animation-name: rotate;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* service section overrides */

section.service.service-creativedirection .text h2,
section.service.service-creativedirection .text .jp {
    color: var(--pink);
}

section.service.service-design figure {
    background: var(--blue);
}

section.service.service-design .text h2,
section.service.service-design .text .jp {
    color: var(--green);
}

section.service.service-artcuration figure {
    background: var(--pink);
}

section.service.service-artcuration .text h2,
section.service.service-artcuration .text .jp {
    color: var(--blue);
}

/* contact section */

section.contact {
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: linear-gradient(var(--grey), var(--blue))
}

section.contact a {
    font-size: 40px;
    color: #ffffff;
    transition: color 2s;
}

section.contact a:hover {
    color: var(--blue)
}

/* responsive */
@media only screen and (max-width: 768px) {
    html, body {
        --border-radius: 24px;
        --gutter: 6.25vw;
    }
    h1 {
        font-size: 60px;;
    }

    h2 {
        font-size: 40px;
    }

    nav ul li {
        margin-left: 24px;
    }
    
    section.service article {
        flex-direction:column;
    }

    section.service figure {
        flex-basis: 25vh;
        max-width: 100vw;
    }

    section.service img {
        width: 20%;
    }

    section.contact a {
        font-size: 24px;
    }
}

