/* =========================================================
   NA JUNGSU PORTFOLIO
========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;

    background: #000;
    color: #fff;

    scroll-behavior: smooth;

    scrollbar-width: none;
}


html::-webkit-scrollbar {
    display: none;
}


body {
    margin: 0;
    padding: 0;

    background: #000;
    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;

    scrollbar-width: none;
}


body::-webkit-scrollbar {
    display: none;
}


body.project-open {
    overflow: hidden;
}


*::selection {
    background: #EB640A;
    color: #fff;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}


img {
    display: block;
    max-width: 100%;
}


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

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 5000;

    width: 100%;
    height: 56px;

    padding:
        0 16px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: #000;

    border-bottom:
        1px solid #222;
}


.logo {
    font-size: 18px;

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.04em;
}


.main-nav {
    display: flex;

    align-items: center;

    gap: 50px;
}


.main-nav a {
    font-size: 15px;

    line-height: 1;

    letter-spacing:
        -0.025em;

    transition:
        opacity 0.2s ease;
}


.main-nav a:hover {
    opacity: 0.5;
}


/* =========================================================
   COVER
========================================================= */

/*
    300vh

    1st viewport:
    particles

    scroll:
    particles → sentence

    continued scroll:
    sentence → dissolution

    마지막에 자연스럽게 PROFILE로 넘어감.
*/

.cover-section {
    position: relative;

    width: 100%;

    height: 300vh;

    background: #000;

    scroll-margin-top: 56px;
}


.cover-stage {
    position: sticky;

    top: 56px;

    width: 100%;

    height:
        calc(100vh - 56px);

    overflow: hidden;

    background: #000;
}


/* =========================================================
   COVER TOP RIGHT
========================================================= */

.cover-heading {
    position: absolute;

    top: 6.5vh;
    right: 7vw;

    z-index: 20;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    text-align: right;

    pointer-events: none;
}


.cover-heading strong {
    color: #fff;

    font-size:
        clamp(
            21px,
            1.7vw,
            30px
        );

    font-weight: 600;

    line-height: 1.1;

    letter-spacing:
        -0.045em;
}


.cover-heading span {
    margin-top: 14px;

    color: #fff;

    font-size:
        clamp(
            15px,
            1.1vw,
            20px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing:
        -0.025em;
}


.cover-heading b {
    margin-top: 30px;

    margin-right: 1px;

    color: #EB640A;

    font-size:
        clamp(
            42px,
            4vw,
            64px
        );

    font-weight: 400;

    line-height: 0.7;
}


/* =========================================================
   GALAXY CANVAS
========================================================= */

#galaxyCanvas {
    position: absolute;

    inset: 0;

    z-index: 5;

    width: 100%;
    height: 100%;

    display: block;

    pointer-events: none;
}


/*
    Canvas가 정상 작동하지 않을 때를 위한
    원문 보관.

    화면에는 절대 보이지 않음.
*/

.galaxy-source {
    position: absolute;

    left: -99999px;
    top: -99999px;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-section {
    position: relative;

    width: 100%;

    min-height: 100vh;

    padding:
        80px 3.8vw
        100px;

    background: #000;
}


.profile-label {
    position: absolute;

    top: 7vh;
    left: 4.3vw;

    color: #EB640A;

    font-size:
        clamp(
            36px,
            3vw,
            50px
        );

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.06em;
}


.profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(
            500px,
            42vw
        );

    gap: 5vw;

    min-height: 82vh;

    padding-top: 10vh;
}


/* =========================================================
   PROFILE LEFT
========================================================= */

.profile-left {
    position: relative;

    min-height: 650px;
}


.profile-greeting {
    position: absolute;

    left: 0;

    bottom: 43vh;

    color: #fff;

    font-size:
        clamp(
            19px,
            1.55vw,
            25px
        );

    font-weight: 600;

    line-height: 1.3;

    letter-spacing:
        -0.045em;
}


.profile-hello {
    position: absolute;

    left: 0;

    bottom: 0;

    color: #EB640A;

    font-size:
        clamp(
            140px,
            13vw,
            235px
        );

    font-weight: 400;

    line-height: 0.72;

    letter-spacing:
        -0.085em;

    white-space: nowrap;
}


/* =========================================================
   PROFILE RIGHT
========================================================= */

.profile-content {
    padding-top: 4vh;
}


.profile-content h2 {
    margin: 0;

    color: #EB640A;

    font-size: 20px;

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.04em;
}


.profile-line {
    width: 100%;
    height: 1px;

    margin:
        17px 0 16px;

    background: #444;
}


.profile-row {
    display: grid;

    grid-template-columns:
        32%
        68%;

    min-height: 31px;
}


.profile-row strong,
.profile-row span,
.profile-history strong,
.profile-history span {
    font-size: 15px;

    line-height: 1.45;

    letter-spacing:
        -0.035em;
}


.profile-row strong,
.profile-history strong {
    font-weight: 600;
}


.profile-row span,
.profile-history span {
    font-weight: 400;
}


.profile-history > div {
    display: grid;

    grid-template-columns:
        32%
        68%;

    min-height: 31px;
}


/* =========================================================
   WORK
========================================================= */

.work-section {
    position: relative;

    width: 100%;

    padding:
        70px 3.3vw
        110px;

    background: #000;

    border-top:
        1px solid #222;
}


.work-layout {
    display: grid;

    grid-template-columns:
        16%
        40%
        44%;

    width: 100%;
}


/* =========================================================
   WORK TITLE
========================================================= */

.work-title-column {
    padding-right: 25px;
}


.work-title-column h1 {
    margin: 0;

    color: #EB640A;

    font-size:
        clamp(
            52px,
            4.4vw,
            72px
        );

    font-weight: 600;

    line-height: 0.9;

    letter-spacing:
        -0.065em;
}


/* =========================================================
   CAREER
========================================================= */

.career-column {
    padding-right: 4vw;
}


.career-column h2,
.experience-column h2 {
    margin: 0;

    color: #EB640A;

    font-size: 20px;

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.04em;
}


.work-line {
    width: 100%;
    height: 1px;

    margin-top: 25px;

    background: #3d3d3d;
}


/* =========================================================
   CAREER ITEMS
========================================================= */

.career-item {
    display: grid;

    grid-template-columns:
        28%
        72%;

    margin-top: 42px;
}


/* DATE */

.career-date {
    font-size: 15px;

    line-height: 1.45;

    letter-spacing:
        -0.035em;
}


/* =========================================================
   CURRENT CAREER
========================================================= */

.career-item.current {
    color: #fff;
}


.career-item.current .career-date,
.career-item.current h3,
.career-item.current h4,
.career-item.current li {
    color: #fff;
}


/* =========================================================
   PAST CAREER
========================================================= */

.career-item.past {
    color: #777;
}


.career-item.past .career-date {
    color: #777;
}


.career-item.past h3 {
    color: #b8b8b8;
}


.career-item.past h4 {
    color: #969696;
}


.career-item.past li {
    color: #777;
}


/* =========================================================
   CAREER TYPOGRAPHY
========================================================= */

.career-body h3 {
    margin:
        0 0 9px;

    font-size: 17px;

    font-weight: 600;

    line-height: 1.15;

    letter-spacing:
        -0.035em;
}


.career-body h4 {
    margin:
        0 0 15px;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.45;

    letter-spacing:
        -0.035em;
}


.career-body ul {
    margin: 0;

    padding-left: 17px;
}


.career-body li {
    margin-bottom: 7px;

    font-size: 12px;

    line-height: 1.5;

    letter-spacing:
        -0.025em;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience-column {
    padding-left: 5.5vw;
}


.experience-group > h3 {
    margin:
        25px 0 18px;

    color: #EB640A;

    font-size: 17px;

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.035em;
}


.experience-item {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: start;

    margin-bottom: 18px;
}


.experience-item strong {
    display: block;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.3;

    letter-spacing:
        -0.035em;
}


.experience-item span {
    display: block;

    margin-top: 3px;

    color: #777;

    font-size: 12px;

    line-height: 1.4;

    letter-spacing:
        -0.025em;
}


.experience-item em {
    margin-left: 25px;

    color: #777;

    font-size: 12px;

    font-style: normal;

    line-height: 1.4;

    text-align: right;

    white-space: nowrap;
}


/* =========================================================
   HERO PROJECT
========================================================= */

.hero-project {
    padding:
        150px 24px 0;
}


.hero-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        16 / 7;

    overflow: hidden;

    border-radius: 12px;

    background: #000;
}


.hero-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


.hero-video iframe {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    transform:
        translate(
            -50%,
            -50%
        );

    border: 0;

    pointer-events: none;
}


.hero-info {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    padding:
        28px 12px 80px;
}


.hero-info h1 {
    margin:
        0 0 10px;

    font-size: 28px;

    font-weight: 500;

    line-height: 1;

    letter-spacing:
        -0.035em;
}


.hero-info p {
    margin:
        0 0 18px;

    color: #999;

    font-size: 15px;

    line-height: 1.5;
}


/* =========================================================
   TAGS
========================================================= */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.tags span {
    display: inline-flex;

    align-items: center;

    height: 27px;

    padding:
        0 12px;

    border:
        1px solid #555;

    border-radius: 5px;

    color: #aaa;

    font-size: 11px;

    line-height: 1;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    padding:
        0 24px 120px;
}


.section-title {
    margin-bottom: 28px;

    color: #777;

    font-size: 16px;

    letter-spacing:
        0.08em;
}


.project-grid {
    display: grid;

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

    gap:
        80px 24px;
}


.project-card {
    display: block;

    min-width: 0;
}


.project-thumbnail {
    width: 100%;

    aspect-ratio:
        4 / 3;

    overflow: hidden;

    border-radius: 10px;

    background: #111;
}


.project-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.project-card:hover
.project-thumbnail img {
    transform:
        scale(1.03);
}


.project-card-info {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    padding:
        16px 4px 0;
}


.project-card-info h2 {
    margin:
        0 0 8px;

    font-size: 17px;

    font-weight: 500;
}


.project-card-info p {
    margin: 2px 0;

    color: #888;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   PROJECT OVERLAY
========================================================= */

.project-overlay {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    padding: 70px;

    background:
        rgba(
            0,
            0,
            0,
            0.62
        );

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


.project-overlay.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.project-overlay-backdrop {
    position: absolute;

    inset: 0;
}


.project-overlay-window {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction:
        column;

    width:
        min(
            1320px,
            calc(100vw - 140px)
        );

    height:
        calc(100vh - 140px);

    background: #000;

    overflow: hidden;

    box-shadow:
        0 30px 100px
        rgba(
            0,
            0,
            0,
            0.7
        );

    transform:
        translateY(20px)
        scale(0.985);

    transition:
        transform 0.45s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.project-overlay.is-open
.project-overlay-window {
    transform:
        translateY(0)
        scale(1);
}


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

.project-overlay-header {
    position: relative;

    flex:
        0 0 56px;

    width: 100%;
    height: 56px;

    display: flex;

    align-items: center;

    background: #000;

    border-bottom:
        1px solid #222;

    z-index: 10;
}


.project-overlay-back {
    position: absolute;

    left: 24px;
    top: 0;

    height: 56px;

    display: flex;

    align-items: center;

    color: #fff;

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    opacity: 0.9;
}


.project-overlay-back:hover {
    opacity: 1;
}


.project-overlay-title {
    position: absolute;

    top: 0;
    right: 68px;

    height: 56px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    color: #fff;

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    text-align: right;

    white-space: nowrap;

    pointer-events: none;
}


.project-overlay-close {
    position: absolute;

    top: 0;
    right: 20px;

    width: 32px;
    height: 56px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 27px;

    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    opacity: 0.8;
}


.project-overlay-close:hover {
    opacity: 1;

    transform:
        scale(1.08);
}


.project-overlay-window iframe {
    display: block;

    flex:
        1 1 auto;

    width: 100%;
    height: 100%;

    min-height: 0;

    border: 0;

    background: #000;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .cover-heading {
        right: 5vw;
    }


    .profile-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(
                420px,
                47vw
            );
    }


    .work-layout {
        grid-template-columns:
            17%
            43%
            40%;
    }


    .career-item {
        grid-template-columns:
            24%
            76%;
    }


    .experience-column {
        padding-left: 4vw;
    }


    .project-overlay {
        padding: 40px;
    }


    .project-overlay-window {
        width:
            calc(100vw - 80px);

        height:
            calc(100vh - 80px);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .profile-layout {
        grid-template-columns:
            1fr;
    }


    .profile-left {
        min-height: 500px;
    }


    .work-layout {
        grid-template-columns:
            1fr;
    }


    .work-title-column {
        margin-bottom: 65px;
    }


    .career-column {
        padding-right: 0;
    }


    .experience-column {
        padding:
            100px 0 0;
    }


    .project-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


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

@media (max-width: 700px) {


    /* HEADER */

    .site-header {
        height: 50px;

        padding:
            0 16px;
    }


    .logo {
        font-size: 17px;
    }


    .main-nav {
        gap: 20px;
    }


    .main-nav a {
        font-size: 13px;
    }



    /* COVER */

    .cover-section {
        height: 240vh;
    }


    .cover-stage {
        top: 50px;

        height:
            calc(100vh - 50px);
    }


    .cover-heading {
        top: 38px;
        right: 16px;
    }


    .cover-heading strong {
        max-width: 90vw;

        font-size: 20px;

        line-height: 1.15;
    }


    .cover-heading span {
        margin-top: 10px;

        font-size: 15px;
    }


    .cover-heading b {
        margin-top: 26px;

        font-size: 42px;
    }



    /* PROFILE */

    .profile-section {
        min-height: auto;

        padding:
            80px 16px 100px;
    }


    .profile-label {
        position: relative;

        top: auto;
        left: auto;

        margin-bottom: 70px;

        font-size: 34px;
    }


    .profile-layout {
        display: block;

        min-height: auto;

        padding-top: 0;
    }


    .profile-left {
        min-height: 390px;
    }


    .profile-greeting {
        position: absolute;

        left: 0;
        bottom: 230px;

        font-size: 17px;
    }


    .profile-hello {
        position: absolute;

        left: 0;
        bottom: 0;

        font-size:
            24vw;
    }


    .profile-content {
        padding-top: 80px;
    }


    .profile-row,
    .profile-history > div {
        grid-template-columns:
            34%
            66%;
    }


    .profile-row strong,
    .profile-row span,
    .profile-history strong,
    .profile-history span {
        font-size: 13px;
    }



    /* WORK */

    .work-section {
        padding:
            70px 16px 90px;
    }


    .work-title-column {
        margin-bottom: 60px;
    }


    .work-title-column h1 {
        font-size: 42px;
    }


    .career-column h2,
    .experience-column h2 {
        font-size: 18px;
    }


    .career-item {
        grid-template-columns:
            1fr;

        margin-top: 35px;
    }


    .career-date {
        margin-bottom: 15px;

        font-size: 13px;
    }


    .career-body h3 {
        font-size: 16px;
    }


    .career-body h4 {
        font-size: 13px;
    }


    .career-body li {
        font-size: 11px;
    }


    .experience-column {
        padding-top: 90px;
    }


    .experience-item {
        display: block;
    }


    .experience-item strong {
        font-size: 14px;
    }


    .experience-item span {
        font-size: 11px;
    }


    .experience-item em {
        display: block;

        margin:
            5px 0 0;

        text-align: left;

        white-space:
            normal;

        font-size: 11px;
    }



    /* HERO */

    .hero-project {
        padding:
            20px 16px 0;
    }


    .hero-info {
        padding:
            24px 4px 60px;
    }


    .hero-info h1 {
        font-size: 23px;
    }


    .hero-info p {
        font-size: 13px;
    }



    /* PROJECTS */

    .projects-section {
        padding:
            0 16px 80px;
    }


    .project-grid {
        grid-template-columns:
            1fr;

        row-gap: 60px;
    }



    /* OVERLAY */

    .project-overlay {
        padding: 0;
    }


    .project-overlay-window {
        width: 100vw;
        height: 100vh;

        box-shadow: none;
    }


    .project-overlay-header {
        flex-basis: 50px;

        height: 50px;
    }


    .project-overlay-back {
        left: 14px;

        height: 50px;

        font-size: 12px;
    }


    .project-overlay-title {
        right: 54px;

        height: 50px;

        font-size: 12px;
    }


    .project-overlay-close {
        right: 8px;

        width: 36px;
        height: 50px;

        font-size: 26px;
    }

}