/*-------------------- header --------------------*/
.h_top {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
.h_inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.h_nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}
.h_nav li a {
    font-weight: var(--semi-bold);
    color: var(--gray-700);
    transition: all .4s ease;
}
.h_logo {
    width: 180px;
}
.logo_img {
    transition: filter .4s ease;
}

.ham_menu {
    display: none;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.ham_menu p {
    font-size: var(--ft12);
    font-weight: var(--medium);
    transition: color .4s ease;
}
.hamburger {
    width: 32px;
    height: 32px;
    position: relative;
}
.hamburger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-700);
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    transition: background .4s ease;
}
.hamburger span:first-child {
    top: calc(50% - 1px - 2px);
}
.hamburger span:last-child {
    top: calc(50% - 1px + 2px);
}

.h_top.white .logo_img {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}
.h_top.white .h_nav li a {
    color: var(--white);
}
.h_top.white p {
    color: var(--white);
}
.h_top.white .hamburger span {
    background-color: var(--white);
}


/*-- ham_wrap --*/
.ham_wrap {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    display: none;
    pointer-events: none;
    opacity: 0;
}
.popup_bg {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}
.ham_box {
    width: 100%;
    max-width: 360px;
    padding: 50px 0 30px;
    background-color: var(--white);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transform: scaleY(0.71);
    transition: transform .5s ease;
}
.ham_close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    cursor: pointer;
}
.ham_nav a {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding: 20px;
    border-bottom: 1px solid #dadada;
}
.ham_eg {
    font-size: var(--ft28);
    font-weight: var(--bold);
}
.ham_kr {
    font-size: var(--ft14);
    font-weight: var(--medium);
    color: var(--gray-600);
}

.ham_btm {
    margin-top: 40px;
    padding: 0 20px;
}
.ham_btm a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ham_btm p.bold {
    width: 50px;
    font-weight: var(--semi-bold);
    flex-shrink: 0;
}
.ham_btm li {
    margin-bottom: 10px;
}

.nav_ani {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.ham_wrap.open {
    opacity: 1;
    pointer-events: all;
    transition: opacity .4s ease;
}
body:has(.ham_wrap.open) {
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    touch-action: none;
}
.ham_wrap.open .popup_bg {
    opacity: 1;
    pointer-events: all;
}
.ham_wrap.open .ham_box {
    transform: translateY(0);
}
.ham_wrap.open .nav_ani {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s var(--nav-delay), transform .6s var(--nav-delay);
}

/*-------------------- link --------------------*/
.link {
    width: fit-content;
    height: 40px;
}
.link a,
.link_inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 40px;
    position: relative;
    transition: padding .4s ease;
}
.link_inner {
    cursor: pointer;
}
.link_text {
    height: 100%;
    padding: 0 36px;
    border-radius: 20px;
    background-color: var(--gray-700);
    font-weight: var(--semi-bold);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: padding .4s ease;
}
.link_cir {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--dark-line);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    transition: all .4s ease;
}
.link_hover {
    width: 18px;
    height: 18px;
    overflow: hidden;
    position: relative;
}
.link_hover img {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform .4s ease;
}
.link_hover img:last-child {
    transform: translate(-100%, 100%);
}

.link:hover a,
.link:hover .link_inner {
    padding-left: 16px;
    padding-right: 0;
}
.link:hover .link_text {
    padding-right: 60px;
}
.link:hover .link_cir {
    width: 32px;
    height: 32px;
    right: 4px;
}
.link:hover .link_hover img:first-child {
    transform: translate(100%, -100%);
}
.link:hover .link_hover img:last-child {
    transform: translate(0, 0);
}

/*-------------------- footer --------------------*/
.footer {
    width: 100%;
    height: 100vh;
    background-color: var(--gray-200);
    position: sticky;
    bottom: 0;
    left: 0;
}
.footer_svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(10%);
}
.footer_inner {
    width: 100%;
    height: 100%;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    z-index: 1;
    transform: translateY(10%);
}

.footer_logo {
    width: 100%;
    transform: translateY(20px);
}
.logo_blur {
    filter: blur(1px);
    opacity: 0;
    transition: all .4s ease;
}
.footer_logo.on .logo_blur {
    filter: blur(0px);
    opacity: 1;
    transition: all .6s var(--footer-delay) ease;
}

/*-- f_mid --*/
.f_mid {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
}
.f_address {
    flex-shrink: 0;
}
.f_address ul {
    display: flex;
    gap: 60px;
}
.f_address a {
    display: flex;
    align-items: center;
}
.f_address p {
    font-size: var(--ft18);
}
.f_address p.bold {
    width: 60px;
    font-weight: var(--semi-bold);
    flex-shrink: 0;
}

.top_btn .link_hover {
    transform: rotate(315deg);
}

/*-- f_btm --*/
.f_btm {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.f_info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.f_info li {
    font-size: var(--ft14);
    color: var(--gray-600);
}
.f_info li .bold {
    font-size: var(--ft14);
    font-weight: var(--medium);
    display: inline-block;
    margin-right: 10px;
}

.f_r {
    display: flex;
    flex-direction: column;
    align-items: end;
}
.f_menu {
    display: flex;
    align-items: center;
    gap: 30px;
}
.f_menu li {
    font-size: var(--ft14);
    font-weight: var(--medium);
}
.f_menu li:hover {
    text-decoration: underline;
}
.f_crop {
    font-size: var(--ft14);
    color: var(--gray-600);
    margin-top: 20px;
}

/*-------------------- container_wrap --------------------*/
.container_wrap {
    margin-top: 160px;
    background-color: var(--white);
}
.title {
    font-size: 180px;
    font-weight: var(--bold);
}
.text {
    color: var(--gray-600);
    margin-top: 36px;
}

/*-------------------- portfolio_list --------------------*/
.portfolio_list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
}
.portfolio_img {
    width: 100%;
    aspect-ratio: 5 / 4;
    position: relative;
}
.portfolio_img figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio_img figure img {
    transition: transform .4s ease;
}
.portfolio_hover {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .4s ease;
}
.portfolio_hover img {
    width: 60px;
    height: 60px;
}
.portfolio_text {
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    margin-top: 20px;
}
.porfolio_box:hover .portfolio_img figure img {
    transform: scale(1.1);
}
.porfolio_box:hover .portfolio_hover {
    opacity: 1;
}


/*-------------------- loader_bg --------------------*/
.loader_bg {
    width: 100%;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .4);
    z-index: 14;
    opacity: 0;
    pointer-events: none;
}
.loader_bg.active {
    opacity: 1;
    pointer-events: all;
}
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid;
    border-color: var(--white) rgba(255, 255, 255, 0);
    animation: l1 1s infinite;
}
@keyframes l1 {
    to {
        transform: rotate(.5turn)
    }
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media all and (max-width: 1600px) {
    /*-- container_wrap --*/
    .title {
        font-size: 140px;
    }
    .text {
        margin-top: 24px;
    }
}

@media all and (max-width: 1400px) {
    /*-- portfolio --*/
    .portfolio_list {
        gap: 24px 10px;
    }
    .portfolio_text {
        font-size: var(--ft16);
        margin-top: 12px;
    }
}

@media all and (max-width: 1200px) {
    /*-- footer --*/
    .f_mid {
        margin-top: 40px;
    }
    .f_address ul {
        flex-direction: column;
        gap: 10px;
    }
    .f_address p {
        font-size: var(--ft16);
    }
    .f_btm {
        margin-top: 40px;
    }

    /*-- container_wrap --*/
    .container_wrap {
        margin-top: 120px;
    }
    .title {
        font-size: 100px;
    }
}

@media all and (max-width: 1024px) {
    /*-- container_wrap --*/
    .title {
        font-size: 80px;
    }
}


@media all and (max-width: 768px) {

    /*-- header --*/
    .h_top {
        height: 60px;
    }
    .h_logo {
        width: 140px;
    }
    .h_nav {
        display: none;
    }
    .ham_menu {
        display: flex;
    }
    .ham_wrap {
        display: flex;
    }

    /*-- footer --*/
    .footer {
        position: relative;
        height: fit-content;
    }
    .footer_inner {
        padding: 50px 20px;
    }
    .footer_logo {
        width: 70%;
    }
    .f_btm {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }
    .f_r {
        align-items: start;
    }
    .f_info {
        flex-direction: column;
        align-items: start;
        gap: 4px;
    }
    .f_info li .bold {
        margin-right: 6px;
    }
    .f_address p.bold {
        width: 50px;
    }
    .f_menu {
        gap: 16px;
    }
    .f_crop {
        margin-top: 10px;
    }
    .top_btn {
        position: absolute;
        right: 20px;
        bottom: 50px;
    }
    .top_btn .link_text {
        display: none;
    }
    .top_btn .link_cir {
        width: 40px !important;
        height: 40px !important;
        background-color: var(--gray-700);
        border: none;
        right: 0 !important;
    }
    .top_btn .link_hover img {
        filter: invert(1);
        -webkit-filter: invert(1)
    }
    .top_btn .link_inner {
        padding: 0 !important;
    }

    .footer_logo {
        transform: translateY(0);
    }
    .logo_blur {
        opacity: 1;
        filter: blur(0px);
    }

    /*-- link --*/
    .link {
        height: 32px;
    }
    .link a, 
    .link_inner {
        padding-right: 32px;
    }
    .link_text {
        font-size: var(--ft14);
        padding: 0 24px;
    }
    .link_cir {
        width: 32px;
        height: 32px;
    }
    .link_hover {
        width: 16px;
        height: 16px;
    }
    .link:hover .link_cir  {
        width: 24px;
        height: 24px;
    }
    .link:hover .link_text {
        padding-right: 50px;
    }

    /*-- container_wrap --*/
    .title {
        font-size: var(--ft50);
    }
    .text {
        margin-top: 10px;
        margin-left: 0;
    }

    /*-- portfolio_wrap --*/
    .portfolio_hover img {
        width: 40px;
        height: 40px;
    }
}