body {
    margin: 0;
    background: #000;
    color: #fff;
}

body header {
    background: rgba(0, 0, 0, 0.5);
}

body main:not(.home-main) {
    width: 100%;
}
/* hero section */

.team-hero {
    position: relative;
}

.team-hero .bg-image {
    position: sticky;
    top: 0;
    width: 100%;
    height: 90vh;
    z-index: 0;
    overflow: hidden;
}

.team-hero .bg-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    will-change: transform;
    animation: heroZoomOut 1.2s ease-out forwards;
}

@keyframes heroZoomOut {
    from {
        opacity: 0;
        transform: scale(1.15);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.team-hero .bg-overlay {
    position: sticky;
    top: 0;
    width: 100%;
    height: 90vh;
    margin-top: -90vh;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
}

.team-hero .hero-title {
    position: relative;
    z-index: 2;
    margin-top: -90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.team-hero .hero-title h2 {
    font-size: clamp(2.8rem, 3.75vw, 4.8rem);
    font-weight: 600;
    line-height: clamp(3.6rem, 4.69vw, 6rem);
    font-family: var(--font-en);
    color: #d4d4d4;
}

.team-hero .hero-title h3 {
    margin-top: clamp(2.4rem, 4.06vw, 5.2rem);
    color: #adadad;
    font-size: clamp(1.4rem, 2.4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: -4%;
}

.team-hero .members-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10rem 0 clamp(8rem, 11.72vw, 15rem);
}

.team-hero .members-wrap h4 {
    color: #d4d4d4;
    font-size: clamp(2.4rem, 3.75vw, 4.8rem);
    font-weight: 600;
    line-height: 1;
    margin: 0 0 clamp(5rem, 6vw, 7rem);
    text-align: center;
}

.team-hero .center-content {
    width: 100%;
    max-width: 960px;
    text-align: center;
    z-index: 1;
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 clamp(1rem, 1.5vw, 2rem);
    ;
    box-sizing: border-box;
}

.team-hero .center-content-inner {
    box-shadow: inset .5px .5px 0 0 rgba(255, 255, 255, 0.3), inset 0 0 .5px .5px rgba(255, 255, 255, 0.2);
    padding: clamp(4.4rem, 4.8vw, 5.4rem) clamp(3.9rem, 4.53vw, 5.8rem);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 1;
    background: rgba(0, 0, 0, 0.20);
}

.team-hero .center-content-inner:hover {
    background: rgba(255, 255, 255, 0.20);
}

.team-hero .center-content .top {
    text-align: left;
}

.team-hero .center-content .top .txt1 {
    color: #fff;
    font-size: clamp(1.8rem, 2.03vw, 2.6rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: clamp(1rem, 1.41vw, 1.8rem);
    font-family: var(--font-en);
    letter-spacing: -3%;
}

.team-hero .center-content .top .txt2 {
    color: #848484;
    font-family: var(--font-ko);
    font-size: 1.6rem;
    margin-bottom: 4.2rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -3%;
}

.team-hero .center-content .bottom .button a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: clamp(4.5rem, 4.69vw, 6rem);
    background: #2e2e2e;
    color: #D5D5D5;
    font-size: clamp(1.6rem, 1.56vw, 2rem);
    border-radius: 30px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -3%;
    transition: background 0.3s ease, color 0.3s ease;
}

.team-hero .center-content-inner:hover .bottom .button a {
    background: #fff;
    color: #000;
}

/* content section */
.eso-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    z-index: 1;
    background: #000;
    padding-top: clamp(12.8rem, 18vw, 24.9rem);
}

.eso-content .center-title1 {
    text-align: center;
    padding: 0 2rem;
}

.eso-content .center-title1 h2 {
    font-size: clamp(2.4rem, 3.75vw, 4.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: #fff;
}

.eso-content .center-title1 h2 span {
    font-weight: 700;
    line-height: clamp(3.6rem, 4.69vw, 6rem);
}

.eso-content .center-title1 h3 {
    margin-top: clamp(1.5rem, 2.34vw, 3rem);
    color: #595959;
    font-size: clamp(1.6rem, 2.19vw, 2.8rem);
    font-weight: 300;
    line-height: 1.65;
    font-family: var(--font-en);
}

.eso-content .center-title1 h4 {
    margin: clamp(9rem, 15vw, 22.8rem) 0 clamp(17.4rem, 26vw, 30.8rem);
    color: #adadad;
    font-size: clamp(1.4rem, 2.19vw, 2.6rem);
    font-weight: 300;
    line-height: 1.65;
}

.eso-workspace-tabs {
    display: flex;
    gap: clamp(0.4rem, 0.7vw, 1.2rem);
    justify-content: center;
    margin: clamp(5.4rem, 10vw, 14.7rem) 0 clamp(3.8rem, 7vw, 12rem);
}

.eso-workspace-tabs .esotab {
    color: #868686;
    font-size: clamp(1.2rem, 1.41vw, 1.8rem);
    font-family: var(--font-en);
    font-weight: 500;
    letter-spacing: -3%;
    padding: clamp(0.8rem, 0.9vw, 1.15rem) clamp(1.4rem, 2vw, 2.6rem);
    border-radius: 30px;
    background: #262626;
    border: 0;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.eso-workspace-tabs .esotab.active {
    color: #000;
    font-weight: 600;
    background: #fff;
}

.eso-content .gallery .gallery-section {
    margin-bottom: clamp(5rem, 7.81vw, 10rem);
}

.gallery-section.ws-hidden {
    display: none;
}

.eso-content .gallery {
    width: 920px;
    max-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.eso-content .gallery .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.eso-content .gallery .esocard {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    box-shadow: 0px 0px 20px rgba(94, 91, 127, 0.15);
}

.eso-content .gallery .img {
    width: 100%;
    aspect-ratio: 454 / 270;
    overflow: hidden;
}

.eso-content .gallery .img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.eso-content .gallery .esocard {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.eso-content .gallery .esocard.hide {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.eso-content .gallery .esocard.show {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.box {
    width: 920px;
    position: relative;
    display: flex;
    margin: 0rem 0 2rem 0;
    gap: 1rem;
}

.box-inner {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 2px 2px 8px rgba(167, 155, 255, 0.08) inset, -3px -3px 4px rgba(0, 0, 0, 0.30) inset;
    overflow: hidden;
    border-radius: 16px;
    padding: 4rem;
}

.box-inner .txt1 {
    font-size: clamp(1.6rem, 1.88vw, 2.4rem);
    font-weight: 400;
    line-height: 46px;
}

.box-inner .txt2 {
    font-size: clamp(2.4rem, 3.28vw, 4.2rem);
    font-family: var(--font-ko);
    font-weight: 600;
    line-height: 46px;
}

.box-inner .txt2 .sub {
    color: #555555;
    font-size: clamp(1rem, 0.94vw, 1.2rem);
    font-weight: 400;
    float: right;
}

.box-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.box-inner.active {
    opacity: 1;
    transform: translateY(0);
}

#trigger1, #trigger2 {
    height: 1px
}

.eso-content .bg-image {
    opacity: 0;
    transform: scale(1.05);
    transition: all .8s ease-in-out;
}

.eso-content .bg-image.visible {
    opacity: 1;
    transform: scale(1);
}

.eso-content .center-title {
    opacity: 0;
    transition: all 1s ease-in-out;
}

.eso-content .center-title.visible {
    opacity: 1;
}

.esosticky {
    position: sticky;
    top: 0px;
    align-self: center;
}

/* 오피스 카드 */
.office-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.1rem, 1.2vw, 1.3rem);
    width: 955px;
    max-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: clamp(5rem, 8vw, 12rem) auto 0;
}

.office-card {
    background: #fff;
    border-radius: clamp(0.6rem, 0.7vw, 0.8rem);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 4px 12px 40px 6px rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
    transform: translateY(-6px);
    box-shadow: 4px 12px 30px 6px rgba(255,255,255,0.12);
}

.office-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.office-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.50) 100%);
    pointer-events: none;
}

.office-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.office-card:first-child .office-card-img img {
    object-position: 100% center;
}

.office-card-info {
    padding: clamp(2.5rem, 2.7vw, 2.8rem) clamp(2.2rem, 2.3vw, 2.4rem);
    text-align: center;
}

.office-card-title {
    font-family: var(--font-en);
    font-size: clamp(2.4rem, 2.8vw, 3.2rem);
    font-weight: 600;
    color: #000;
    letter-spacing: -1%;
}

.office-card-sub {
    font-family: var(--font-ko);
    font-size: clamp(1.5rem, 1.65vw, 1.8rem);
    font-weight: 500;
    color: #6d6d6d;
    margin-top: 0.4rem;
}

/* 오피스 갤러리 팝업 */
.office-popup-close {
    position: static;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 0;
}

.office-popup-close:hover svg line {
    stroke: #000;
}

.office-popup-title {
    font-family: var(--font-en);
    font-size: clamp(2rem, 2.19vw, 2.8rem);
    font-weight: 700;
    color: #000;
    margin-bottom: clamp(2rem, 2.5vw, 3.2rem);
    letter-spacing: -2%;
}

.office-popup-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.8rem, 1vw, 1.2rem);
}

.office-popup-gallery img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* 인터뷰 레이어 팝업 */
.interview-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.interview-overlay.active {
    display: flex;
}

.interview-overlay .interview-popup {
    transform: translateY(2rem);
    opacity: 0;
}

.interview-overlay.active .interview-popup {
    animation: popupSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.interview-popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 95%;
    max-width: 1000px;
    max-height: 80vh;
    max-height: 80dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.popup-sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 3vw, 3.2rem) clamp(2.4rem, 3.75vw, 4.8rem);
    background: #fff;
    flex-shrink: 0;
    letter-spacing: -2%;
}

.popup-sticky-header .office-popup-title {
    margin-bottom: 0;
}

.popup-sticky-header .office-popup-close {
    position: static;
    float: none;
}

.office-popup-gallery {
    overflow-y: auto;
    padding: 0 clamp(2.4rem, 3.75vw, 4.8rem) clamp(2.4rem, 3.75vw, 4.8rem);
}

.interview-close {
    position: static;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 0;
}

.interview-close:hover svg line {
    stroke: #000;
}

.interview-body {
    color: #222;
    overflow-y: auto;
    padding: 0 clamp(2.4rem, 3.75vw, 4.8rem) clamp(2.4rem, 3.75vw, 4.8rem);
}

.interview-popup-label {
    font-family: var(--font-en);
    font-size: clamp(2rem, 2.19vw, 2.8rem);
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.interview-loading {
    text-align: center;
    color: #999;
    padding: 4rem;
    font-size: 1.4rem;
}

.interview-popup-title {
    font-size: clamp(2rem, 2.19vw, 2.8rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 1.2rem;
}

.interview-popup-date {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 3.2rem;
}

.interview-popup-thumb {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 3.2rem;
}

.interview-popup-thumb img {
    width: 100%;
    display: block;
}

.interview-popup-content {
    font-size: clamp(1.4rem, 1.25vw, 1.6rem);
    line-height: 1.8;
    color: #333;
}

.interview-popup-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
}

.interview-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #888;
    padding: 0;
    margin-bottom: 2.4rem;
    display: block;
}

.interview-back:hover {
    color: #111;
}

.interview-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.interview-list-item {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    cursor: pointer;
    padding: 1.6rem;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.interview-list-item:hover {
    background: #f7f7f7;
}

.interview-list-thumb {
    width: 12rem;
    height: 8rem;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.interview-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.interview-list-title {
    font-size: clamp(1.4rem, 1.25vw, 1.6rem);
    font-weight: 600;
    color: #111;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.interview-list-date {
    font-size: 1.2rem;
    color: #aaa;
}

@media all and (max-width: 1024px) {
    .team-hero .hero-title h2 {
        font-size: clamp(2.8rem, 4vw, 4.8rem);
    }
    .team-hero .bg-image,.team-hero .bg-overlay,.team-hero .hero-title {

    height: 50vh;

}
.team-hero .bg-overlay,.team-hero .hero-title {margin-top: -50vh;}
    .team-hero .hero-title h3 {
        font-size: clamp(1.6rem, 2vw, 2.6rem);
    }

    .team-hero .center-content {
        grid-template-columns: 1fr;
        width: 92%;
    }

    .team-hero .center-content-inner {
        padding: clamp(3rem, 4vw, 5.4rem) clamp(2.5rem, 3.5vw, 5.8rem);
    }

    .team-hero .center-content .top .txt1 {
        font-size: 1.8rem;
    }

    .team-hero .center-content .top .txt2 {
        font-size: 1.6rem;
        margin-bottom: 7rem;
    }

    .team-hero .center-content .bottom .button a {
        font-size: 1.6rem;
        height: 5rem;
    }

    .team-hero .members-wrap h4 {
        font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    }

    .eso-content .center-title1 h2 {
        font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    }

    .eso-content .center-title1 h3 {
        font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    }

    .eso-content .center-title1 h4 {
        font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    }

    .eso-content .gallery .img {
        aspect-ratio: 454 / 270;
    }

    .eso-workspace-tabs .esotab {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .office-cards {
        grid-template-columns: 1fr;
        width: 92%;
        padding: 0 clamp(1rem, 1.5vw, 2rem);
    }

    .interview-popup-content {
        zoom: 0.8;
    }
}
