@charset "utf-8";
/* ========================================
   step1234 - Scroll Progress 4-Step Section
   고유 프리픽스: step1234-
   (모든 선택자는 .{스킨폴더명} 으로 스코핑됨)
======================================== */

.step1234 .step1234-wrapper {
    height: var(--step1234-scroll, 250vh);
    position: relative;
}

.step1234 .step1234-section {
    position: sticky;
    top: var(--step1234-sticky-top, 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

/* 헤더 */
.step1234 .step1234-header {
    width: 100%;
    margin-bottom: 60px;
}
.step1234 .step1234-header-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 30px;
}
.step1234 .step1234-textset {
    text-align: center;
}
.step1234 .step1234-subtit {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--step1234-subtit, #00c896);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.step1234 .step1234-title {
    font-size: clamp(24px, calc(1.41vw + 19.5px), 42px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
}
.step1234 .step1234-desc {
    font-size: clamp(14px, calc(0.16vw + 13.5px), 16px);
    color: #666;
    line-height: 1.8;
}

/* 프로그레스 라인 컨테이너 - 화면 100% */
.step1234 .step1234-line-wrap {
    width: 100%;
    position: relative;
    height: 2px;
    margin-bottom: 50px;
}
.step1234 .step1234-line-bg {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
}
.step1234 .step1234-line-fill {
    width: 0%;
    height: 100%;
    background: var(--step1234-active, #1a1a1a);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s ease-out;
}

/* 1560px 중앙 정렬 컨테이너 */
.step1234 .step1234-content {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 점들 컨테이너 */
.step1234 .step1234-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1560px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 30px;
    pointer-events: none;
}
.step1234 .step1234-dots[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.step1234 .step1234-dots[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.step1234 .step1234-dots[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.step1234 .step1234-dots[data-count="6"] { grid-template-columns: repeat(6, 1fr); }

.step1234 .step1234-dot-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.step1234 .step1234-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.step1234 .step1234-dot.step1234-active {
    background: var(--step1234-active, #1a1a1a);
    transform: scale(1.2);
}

/* 박스 그리드 */
.step1234 .step1234-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.step1234 .step1234-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.step1234 .step1234-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.step1234 .step1234-grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.step1234 .step1234-grid[data-count="6"] { grid-template-columns: repeat(6, 1fr); }

/* 개별 박스 */
.step1234 .step1234-box {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #e8e8e8;
    transform: translateY(30px);
    opacity: 0.9;
    transition: transform 0.7s ease, opacity 0.5s ease;
}
.step1234 .step1234-box.step1234-active {
    transform: translateY(0);
    opacity: 1;
}
.step1234 .step1234-box .step1234-box-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
    display: block;
}
.step1234 .step1234-box.step1234-active .step1234-box-img {
    filter: grayscale(0%);
}
.step1234 .step1234-box .step1234-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 하단→상단 어두운 그라데이션 오버레이 */
.step1234 .step1234-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    border-radius: 20px;
}

/* 우상단 뱃지 */
.step1234 .step1234-box-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.75);
    padding: 8px 16px;
    border-radius: 100px;
    z-index: 2;
}
.step1234 .step1234-badge-label {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}
.step1234 .step1234-badge-step {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.step1234 .step1234-badge-step em {
    font-style: normal;
    color: var(--step1234-subtit, #46b99a);
}

/* 좌하단 텍스트 */
.step1234 .step1234-box-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
}
.step1234 .step1234-box-title {
    font-size: clamp(22px, calc(0.78vw + 19.5px), 30px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}
.step1234 .step1234-box-desc {
    font-size: clamp(13px, calc(0.31vw + 12px), 15px);
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* 반응형 */
@media (max-width: 1200px) {
    .step1234 .step1234-grid,
    .step1234 .step1234-grid[data-count="3"],
    .step1234 .step1234-grid[data-count="4"],
    .step1234 .step1234-grid[data-count="5"],
    .step1234 .step1234-grid[data-count="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .step1234 .step1234-dots {
        display: none;
    }
    .step1234 .step1234-section {
        top: 80px;
        padding: 80px 0;
    }
    .step1234 .step1234-box-badge {
        top: 24px;
        right: 24px;
    }
    .step1234 .step1234-box-text {
        bottom: 24px;
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 600px) {
    .step1234 .step1234-grid,
    .step1234 .step1234-grid[data-count="3"],
    .step1234 .step1234-grid[data-count="4"],
    .step1234 .step1234-grid[data-count="5"],
    .step1234 .step1234-grid[data-count="6"] {
        grid-template-columns: 1fr;
    }
    .step1234 .step1234-box {
        border-radius: 16px;
    }
    .step1234 .step1234-header {
        margin-bottom: 40px;
    }
    .step1234 .step1234-section {
        top: 60px;
        padding: 60px 0;
    }
}
