*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    font-family: 'Spoqa Han Sans', 'Malgun Gothic', sans-serif;
    font-weight: 400;
    font-size: 12pt;
    line-height: 1.65em;
    color: #fff;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}

main {
    background-color: #000000;
}

/* Page Loader */
.js .loading::before {
    content: '';
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.js .loading::after {
    content: '';
    position: fixed;
    z-index: 10000;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: loaderAnim 0.8s linear infinite forwards;
}

@keyframes loaderAnim {
    to {
        transform: rotate(360deg);
    }
}

a {
    text-decoration: none;
    outline: none;
    color: inherit;
}

a:hover,
a:focus {
    outline: none;
}

h1 {
    font-weight: 600;
    line-height: 1.2em;
}

h2 {
    margin: 16px 0 8px 0;
    font-size: 2.5em;
    line-height: 1.3em;
    word-break: keep-all;
    font-weight: 600;
    max-width: 400px;
}

p {
    font-size: 1em;
}

#hiring {
    position: fixed;
    top: 120px;
    right: 120px;
    z-index: 300;
}

.hiring-mobile {
    display: none;
}

/* header */
#header {
    height: 72px;
    left: 0;
    line-height: 3em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
}

.bi {
    left: 1.7em;
    top: 1.7em;
    position: absolute;
    width: 140px;
}

.bi > a {
    border: 0;
    display: block;
    height: inherit;
    line-height: inherit;
}

/* SVG Morph */
.morph-wrap {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background-color: #000000;
}

.morph {
    position: relative;
    height: 100%;
    flex: none;
    fill: none;
    stroke-width: 12px;
}

.content-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    pointer-events: none;
}

.content {
    position: relative;
    display: grid;
}

.content--layout {
    pointer-events: auto;
    justify-content: center;
    align-content: center;
    grid-template-columns: 107px 400px 507px;
    grid-template-rows: 200px 146px 130px 20px;
    grid-template-areas: "... ... ..." "... ... title" "... author desc" "... ... link";
}

.content__img {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    opacity: 1;
}

.plane_small {
    opacity: 0;
}

video {
    width: 760px;
    height: 440px;
    opacity: 0.7;
}

.content__title {
    grid-area: title;
    margin: 0;
    z-index: 10;
}

.content__author {
    grid-area: author;
    margin: 0;
    padding: 0 1em;
    z-index: 10;
    transform: translate(0, 100px);
}

.author2 {
    transform: translate(0, 0);
}

.content__desc {
    font-family: 'Spoqa Han Sans', sans-serif;
    grid-area: desc;
    margin: 0;
    z-index: 10;
    padding: 0 1em;
    cursor: default;
    white-space: pre-line;
}

.content__img,
.content__title,
.content__author,
.content__desc {
    transition: transform 1s ease-out;
}

.content__link {
    font-family: 'Spoqa Han Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0px;
    font-size: 18px;
    pointer-events: auto;
    grid-area: link;
    justify-self: start;
    z-index: 10;
    padding: 0 1em 0.15em;
}

/* layout-2 */
.content--layout-2 {
    grid-template-columns: 50px 450px 200px 506px;
    grid-template-rows: 117px 202px 155px 112px 50px;
    grid-template-areas: "... ... ... ..." "... ... ... ..." "... ... title title" "... ... ... desc" "... ... link author";
}

.content--layout-2 .img2 {
    grid-column: 1 / 4;
    grid-row: 1 / 5;
    width: 567px;
    height: 679px;
}

.img2-2 {
    opacity: 0;
}

.content--layout-2 .content__img3 {
    grid-column: 3 / 4;
    grid-row: 2 / 5;
}

/* layout-3 */
.content--layout-3 {
    grid-template-columns: 200px 200px 200px 200px;
    grid-template-rows: 294px 150px 40px 100px;
    grid-template-areas: "... ... ... ..." "title title title title" "... desc desc ..." "... ... link author";
}

.content--layout-3 .content__img {
    grid-column: 2 / 4;
    grid-row: 1 / 4;
}

.content--layout-3 .content__author {
    align-self: start;
    transform: translate(0, 50px);
}

.content--layout-3 .content__link {
    align-self: end;
}

/* layout-4 */
.content--layout-4 {
    grid-template-columns: 150px 400px 610px;
    grid-template-rows: 150px 150px 160px 20px;
    grid-template-areas: "... ... ..." "... ... title" "... author desc" "... ... link";
}

.content--layout-4 .content__img {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
}

.content--layout-4 .content__author {
    justify-self: start;
    align-self: start;
    transform: translate(0, 0);
}

.section-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #ffffff;
    color: rgba(0, 0, 0, .87);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-wrapper {
    max-width: 1440px;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
}

.info-text {
    width: 580px;
    height: auto;
    margin-right: 140px;
}

.info-title {
    margin-bottom: 64px;
}

.info-p {
    margin-bottom: 24px;
}

.text-bold {
    font-weight: 600;
    color: #000000;
}

.info-img {
    position: relative;
    width: 600px;
}

.first-img {
    z-index: 100;
    width: 300px;
    height: auto;
    filter: drop-shadow(0 32px 32px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease-out;
    opacity: 0.5;
    transform: translateY(300px);
}

.second-img {
    position: absolute;
    width: 300px;
    right: 60px;
    filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease-out;
    opacity: 0;
    transform: translateY(300px);

}

.fade-in{
    opacity: 1;
    transform: translateY(0);
}

.fade-in-2{
    opacity: 1;
    transform: translateY(0);
}

.opacity60 {
    color: rgba(0, 0, 0, .6);
    word-break: keep-all;
}

.info-button {
    margin-top: 64px;
    display: inline-flex;
}

button {
    background-color: #000000;
    border-radius: 2px;
    border: #000000 solid 2px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    height: 44px;
    width: 160px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    margin: 0 0 20px 0;
    font-family: 'Malgun Gothic', 'Spoqa Han Sans', sans-serif;
    transition: all 0.2s ease-out;
    display: inline-flex;
    justify-content: center;
}

button:hover {
    background-color: #ffffff;
    color: #000000;
}

i {
    margin-right: 6px;
    align-self: center;
}

.social-box:first-child {
    margin-right: 24px;
}

.social {
    font-size: 24px;
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
}

.social:last-child {
    margin-right: 0;
}

.button1 {
    margin-right: 8px;
}

/* Recruit */
#recruit, #blog {
    width: 100vw;
    background-color: #000000;
    position: relative;
}

.recruit-bg, .blog-bg {
    width: 100vw;
    height: 475px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recruit-bg {
    background-image: url("../images/recruit-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.blog-bg {
    background-image: url("../images/hero-0.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.overlay {
    background-color: rgba(0, 0, 0, .7);
    width: 100%;
    height: inherit;
    position: absolute;
}

.recruit-wrapper, .blog-wrapper {
    text-align: center;
    width: 100%;
    max-width: 720px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recruit-wrapper, .blog-wrapper {
    color: #ffffff;
}

.recruit-h2 {
    white-space: normal;
    margin: 0 0 16px 0;
    min-width: 600px;
}

.recruit-wrapper p {
    white-space: pre-line;
}

.button-w {
    background-color: #ffffff;
    color: #000000;
    font-weight: 400;
    margin: 32px 0 0 0;
    width: 200px;
    border: none;
}

.button-w:hover {
    background-color: #000000;
    border: #fff 2px solid;
    color: #ffffff;
}

.button-b {
    background-color: #000000;
    color: #ffffff;
    font-weight: 400;
    margin: 32px 0 0 0;
    width: 200px;
    border: none;
}

.button-b:hover {
    background-color: #ffffff;
    border: #000 2px solid;
    color: #000000;
}

/* ScrollMagic */
.bi-b {
    opacity: 0;
}

.bi-bb {
    opacity: 1;
}

@media screen and (max-width: 1680px) {
    .content--layout {
        transform: scale3d(0.8, 0.8, 1);
    }

    .morph {
        transform: scale3d(0.8, 0.8, 1);
    }

    .morph-wrap {
        transform: scale3d(0.8, 0.8, 1);
    }
}

@media screen and (max-width: 1440px) {
    p {
        font-size: 1.1em;
        line-height: 1.7em;
    }

    button {
        font-size: 1em;
    }

    #hiring {
        top: 80px;
        right: 80px;
    }

    .info-wrapper, .inner {
        max-width: 1280px;
        transform: scale3d(0.8, 0.8, 1);
    }

    .info-text {
        width: 580px;
    }

    .first-img, .second-img {
        width: 280px;
    }

    .bi {
        width: 120px;
    }

    #header {
        height: 66px;
    }

    .recruit-bg, .blog-bg {
        height: 400px;
        background-size: cover;
    }

    .recruit-wrapper, .blog-wrapper {
        transform: scale3d(0.8, 0.8, 1);
    }

    #footer {
        padding: 3em 0 3em 0;
    }
}

@media screen and (max-width: 1280px) {
    #hiring {
        top: 40px;
        right: 40px;
    }

    .info-wrapper, .inner {
        transform: scale3d(0.8, 0.8, 1);
    }
}

@media screen and (max-width: 1028px) {
    .info-wrapper, .inner {
        max-width: 1028px;
    }
}

@media screen and (max-width: 768px) {
    .hiring-mobile {
        display: block;
        position: fixed;
        right: 24px;
        bottom: 32px;
    }

    .hiring-web {
        display: none;
    }

    /* section 1 - Black */
    .morph-wrap {
        transform: scale3d(1, 1, 1);
    }

    .morph {
        left: 50%;
        width: 280%;
    }

    .content--layout {
        transform: scale3d(1, 1, 1);
    }

    .content {
        width: 100vw;
        height: 100vh;
        margin: 32px 0;
        padding: 0 32px;
    }

    .content--layout-5 {
        grid-template-columns: 100%;
        grid-template-rows: 15% 15% 30% 8% 15% 10%;
        grid-template-areas: "..." "..." "..." "title2" "desc2" "...";
    }

    .content__author {
        grid-area: author2;
        height: 32px;
        padding: 0;
        transform: translate(0, 0);
        display: none;
    }

    .content__title {
        grid-area: title2;
        height: 6vh;
        min-height: 6vh;
    }

    .content__desc {
        grid-area: desc2;
        line-height: 24px;
        margin-top: 8px;
        padding: 0;
        word-break: keep-all;
        font-size: 16px;
        white-space: normal;
    }

    .content--layout-5 .content__link {
        margin: 0;
        grid-area: link2;
        align-self: start;
        padding: 0;
        display: none;
    }

    .content__img {
        position: absolute;
    }

    .img1 {
        width: 700px;
        right: 32px;
        top: 100%;
    }

    .img2 {
        display: none;
    }

    .img2-2 {
        opacity: 1;
        right: 32px;
        width: 250px;
        top: 20%;
    }

    .img3 {
        width: 280px;
        right: 32px;
        top: 30%;
    }

    video {
        width: 100vw;
        height: auto;
        object-fit: cover;
        position: absolute;
        right: 32px;
        top: 10%;
    }

    /* Section 2 - What we do */
    .section-wrapper {
        padding: 60px 32px;
        height: auto;
    }

    .info-wrapper {
        display: flex;
        flex-direction: column;
        transform: scale3d(1, 1, 1);
    }

    .info-text {
        width: 100%;
        margin-top: 32px;
        margin-right: 0;
    }

    h2 {
        font-size: 32px;
        margin: 16px 0 0 0;
    }

    .info-title {
        white-space: pre-line;
        margin-bottom: 0;
    }

    .info-title p {
        margin: -10px 0 10px 0;
    }

    .info-p {
        line-height: 24px;
        font-size: 16px;
    }

    .pwbi {
        width: 128px;
        height: 32px;
    }

    .kytebi {
        width: 66px;
        height: 48px;
    }

    .info-img {
        width: 100%;
        display: inline-block;
    }

    .first-img {
        width: 226px;
        height: 458px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .3));
    }

    .second-img {
        display: none;
    }

    .info-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        flex-wrap: nowrap;
        margin-top: 40px;
    }

    button {
        width: 150px;
    }

    .button1 {
        margin-right: 8px;
    }

    .social-box {
        display: flex;
        flex-direction: row;
        margin-top: 16px;
    }

    .social-box:first-child {
        margin-right: 0;
    }

    /* Section 3 - Recruit */
    .recruit-wrapper, .blog-wrapper {
        padding: 0 32px;
        transform: scale3d(1, 1, 1)
    }

    .recruit-wrapper p, .blog-wrapper p {
        white-space: normal;
        word-break: keep-all;
        font-size: 16px;
        line-height: 24px;
    }

    .recruit-h2 {
        white-space: pre-line;
        min-width: 100%;
    }

    .recruit-bg {
        height: 543px;
        max-height: 736px;
        background-image: url("../images/recruit-bg-s.jpg");
    }

    .blog-bg {
        height: 543px;
        max-height: 736px;
    }
}