.joy-work {
    --joy-header: 70px;
    position: relative;
    overflow: visible;
    background: var(--color-primary) url('/images/main_pvrq.png') center / cover no-repeat;
    color: #fff;
}

.joy-work-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-height: 100vh;
    padding-top: var(--joy-header);
    box-sizing: border-box;
    overflow: visible;
}

.joy-work-inner {
    position: absolute;
    top: var(--joy-header);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 250px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joy-work-first,
.joy-work-second {
    position: relative;
    left: auto;
    top: auto;
    width: min(920px, 100%);
    margin: 0;
    text-align: center;
    transform: none;
}

.joy-work-first {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.joy-work-second,
.joy-hero-fly {
    display: none !important;
}

.joy-work.is-cards-done .joy-work-second {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (min-width: 1025px) {
    .joy-work.is-cards .joy-work-first {
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

.joy-work.is-cards .joy-work-slider,
.joy-work.is-cards .joy-work-cards {
    opacity: 1;
    visibility: visible;
}

.joy-work.is-cards-done .joy-work-card {
    visibility: visible;
}

.joy-work-second {
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
    overflow: hidden;
    background: var(--color-primary);
}

.joy-work-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    overflow: hidden;
}

.joy-work-logo-img {
    display: block;
    width: min(840px, 50vw);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.joy-work-en {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(28px, 4.2vw, 56px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: 0.02em;
    color: #fff;
}

.joy-work-line {
    display: block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.joy-work-line:nth-child(1) { transition-delay: 0.04s; }
.joy-work-line:nth-child(2) { transition-delay: 0.12s; }
.joy-work-line:nth-child(3) { transition-delay: 0.2s; }

.joy-work.is-intro .joy-work-line {
    opacity: 1;
    transform: none;
}

.joy-work-ko {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 400;
    line-height: 1.8;
    color: #fff;
}

.joy-work-ko p {
    margin: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.joy-work-ko p:nth-child(1) { transition-delay: 0.34s; }
.joy-work-ko p:nth-child(2) { transition-delay: 0.46s; }

.joy-work.is-intro .joy-work-ko p {
    opacity: 1;
    transform: none;
}

.joy-work-logo-top,
.joy-work-logo-sub {
    display: none;
}

.joy-work-cards {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    align-items: start;
    opacity: 0;
    visibility: hidden;
}

.joy-work-card {
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.joy-work.is-cards .joy-work-card:nth-child(1) { transition-delay: 0.05s; }
.joy-work.is-cards .joy-work-card:nth-child(2) { transition-delay: 0.27s; }
.joy-work.is-cards .joy-work-card:nth-child(3) { transition-delay: 0.49s; }

.joy-work.is-cards .joy-work-card {
    opacity: 1;
    transform: none;
}

.joy-work-card-img {
    overflow: hidden;
    aspect-ratio: 4 / 4.5;
    margin-bottom: 40px;
}

.joy-work-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.joy-work-card h3 {
    margin: 0 0 12px;
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.45;
}

.joy-work-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.joy-work-slider {
    position: absolute;
    top: var(--joy-header);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 250px;
    box-sizing: border-box;
}

.joy-work-dots {
    display: none;
}

.joy-work-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.28s ease, background-color 0.28s ease;
}

.joy-work-dot.is-on {
    width: 22px;
    background: #fff;
}

.joy-hero-fly,
.joy-hero-fly img {
    display: none !important;
}

.joy-hero-fly-to {
    opacity: 0;
}

@media (max-width: 1500px) {
    .joy-work-inner,
    .joy-work-slider {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .joy-work {
        --joy-header: 64px;
    }
}

@media (max-width: 1024px) {
    .joy-work {
        overflow: visible;
        contain: none;
        transform: none !important;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .joy-work-stage {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: visible;
    }

    .joy-work-inner {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: auto;
        max-width: none;
        margin: 0;
        padding: 72px 20px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .joy-work-first {
        position: relative;
        inset: auto;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        transform: none !important;
        visibility: visible !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        box-sizing: border-box;
    }

    .joy-work-second {
        display: none !important;
    }

    .joy-work-line {
        white-space: normal;
    }

    .joy-work-en {
        font-size: clamp(18px, 5vw, 24px);
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.35;
        text-align: center;
    }

    .joy-work-ko {
        font-size: 1.05rem;
        line-height: 1.7;
        gap: 16px;
        word-break: keep-all;
        text-align: center;
    }

    .joy-work-slider {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: block;
        width: min(420px, calc(100% - 40px));
        height: auto;
        margin: 0 auto;
        padding: 8px 0 48px;
        overflow: hidden;
        z-index: 2;
        opacity: 0;
        visibility: hidden;
    }

    .joy-work.is-cards .joy-work-slider {
        opacity: 1;
        visibility: visible;
    }

    .joy-work-card {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .joy-work-cards {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .joy-work-cards.is-dragging {
        transition: none;
    }

    .joy-work-card {
        display: flex;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .joy-work-card-img {
        width: min(86vw, 300px);
        max-height: none;
        margin: 0 auto 16px;
        aspect-ratio: 4 / 4.5;
    }

    .joy-work-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .joy-work-card h3 {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.4;
    }

    .joy-work-card p {
        font-size: 1rem;
        line-height: 1.65;
        word-break: keep-all;
    }

    .joy-work-card p br {
        display: none;
    }

    .joy-work-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 22px;
        margin-top: 20px;
    }
}
