/* =========================================================
  INDEX.CSS (CLEAN)
  - Common → sec01 → sec02(kpi) → sec03 → sec04 → sec05 → sec06 → sec07
========================================================= */

/* =========================================================
  0) COMMON
========================================================= */
:root {
    --bg: #141414;
    --bg2: #101010;
    --ink: #fff;
    --muted: rgba(255, 255, 255, .65);
    --line: rgba(255, 255, 255, .12);
    --accent: #ff1a7a;

    /* 네 프로젝트에서 쓰는 변수랑 충돌 안 나게 유지 */
    /* base.css에 --text 등이 있으면 그대로 사용됨 */
}

.inner {
    max-width: 80%;
    margin: 0 auto;
}

.sec-title {
    color: #fff;
    text-align: center;
    font-size: 50px;
    letter-spacing: -.02em;
}

.swiper-wrapper {
    height: auto !important;
}

/* =========================================================
  1) SEC01
========================================================= */
.sec01 {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec01 .sec-inner {
    width: 100%;
}

/* Top copy */
.sec01 .section-head {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.sec01 .title {
    margin: 0;
    font-size: 50px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
    font-weight: 700;
}

.sec01 .title .accent {
    background: linear-gradient(90deg, #ed1c8c 0%, #ed1c24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sec01 .desc {
    max-width: 30vw;
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--text);
    font-weight: 600;
}

/* Slider shell */
.sec01 .slider-shell {
    position: relative;
    padding-top: 4em;
}

/* ✅ sec01 swiper only */
.sec01 .swiper {
    width: 100%;
    /* overflow: visible; */
    /* 옆 슬라이드 살짝 보임 */
}

.sec01 .swiper-slide {
    position: relative;
    overflow: hidden;
}

.sec01 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02);
}

/* + button */
.sec01 .plus-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border: 0;
    cursor: pointer;
    background: #000;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    display: grid;
    place-items: center;
    opacity: .92;
}

/* caption */
.sec01 .slide-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 16px;
    color: #fff;
    text-align: left;
}

.sec01 .slide-caption .small {
    font-size: 20px;
}

.sec01 .slide-caption .big {
    margin-top: 6px;
    font-size: 32px;
    line-height: 1.2;
}

/* navigation */
.sec01 .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
}

.sec01 .nav-btn svg {
    width: 28px;
    height: 28px;
}

.sec01 .nav-prev {
    left: 10px;
}

.sec01 .nav-next {
    right: 10px;
}

/* fraction */
.sec01 .fraction {
    text-align: center;
    padding: 14px 0 0;
    color: #111;
    font-size: 20px;
}

/* responsive */
@media (max-width:900px) {
    .sec01 .title {
        font-size: 32px;
    }

    /* .sec01 .desc {
        max-width: 100%;
    } */

    .sec01 .nav-prev {
        left: 0;
    }

    .sec01 .nav-next {
        right: 0;
    }
}

@media (max-width:560px) {
    .sec01 .title {
        font-size: 26px;
    }
}

/* =========================================================
  2) SEC02 KPI
========================================================= */
.kpi {
    padding: 150px 0;
    color: #fff;
    background: #000;
}

.kpi__inner {
    width: 80%;
    margin: 0 auto;
    padding: 56px 48px 52px;
    border-radius: 18px;
    position: relative
}

.kpi__title {
    margin: 0 0 3em;
    font-size: 50px;
    letter-spacing: -.02em;
    line-height: 1.15
}

.kpi__stage {
    position: relative;
    height: 670px
}

/* ---------------- arrow ---------------- */
.arrowWrap {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35));
    z-index: 4;
}

.arrowSvg {
    width: 100%;
    height: 100%;
    display: block
}

/* ---------------- chart ---------------- */
.chart {
    /* position: absolute; */
    left: 34px;
    right: 34px;
    bottom: 40px;
    height: 360px
}

.axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 66px;
    height: 3px;
    background: #eaeaea;
    opacity: .95
}

.bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 66px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(20px, 5.8vw, 96px);
    pointer-events: none;
}

.col {
    width: clamp(66px, 8vw, 130px);
    position: relative;
    text-align: center;
    --hpx: unset
}

.bar {
    width: 100%;
    height: var(--hpx, var(--h));
    background: #fff;
    border-radius: 1.3em 1.3em 0 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}

.label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -44px;
    font-size: 20px;
    white-space: nowrap
}

.years {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5.8vw, 96px)
}

.years .y {
    width: clamp(66px, 8vw, 130px);
    text-align: center;
    font-size: clamp(16px, 1.8vw, 26px)
}

/* ---------------- bubble ---------------- */
.col.last .bubbleImg {
    position: absolute;
    left: 50%;
    bottom: calc(var(--hpx, var(--h)) + 22px);
    transform: translateX(-50%) translateY(16px) scale(.7);
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35));
}

.col.last .bubbleImg img {
    display: block;
    width: clamp(100px, 20vw, 200px);
    height: auto;
}

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

@keyframes bubbleBounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(28px) scale(.55)
    }

    55% {
        opacity: 1;
        transform: translateX(-50%) translateY(-6px) scale(1.12)
    }

    75% {
        transform: translateX(-50%) translateY(6px) scale(.95)
    }

    90% {
        transform: translateX(-50%) translateY(-2px) scale(1.03)
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1)
    }
}

@media(max-width:900px) {
    /* .kpi__inner {
                padding: 44px 18px 38px
            } */

    .kpi__stage {
        height: 520px
    }

    .chart {
        bottom: 26px
    }

    .axis,
    .bars {
        bottom: 62px
    }

    .label {
        font-size: 16px;
        top: -38px
    }
}

/* =========================================================
  3) SEC03 (Word Drop)
========================================================= */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.sec03 .title {
    position: absolute;
    left: 0;
    top: 25vh;
    z-index: 0;
    width: 100%;
}

.sec03 .title>h2 {
    font-size: 50px;
    color: #fff;
    text-align: center;
}

.drop-zone {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
}

.drop-zone::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: radial-gradient(900px 240px at 50% 100%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.word {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5em 1.3em;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: clamp(24px, 2.5vw, 50px);
    letter-spacing: -.02em;
    user-select: none;
    will-change: transform;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .30);
}

.word.is-big {
    padding: .5em 1.3em;
    font-size: clamp(24px, 2.5vw, 50px);
}

@media (prefers-reduced-motion:reduce) {
    .word {
        transition: none !important;
    }
}

.sec03 .bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    /* background: linear-gradient(135deg, #ed1c8c, #ed1c24); */
}

.sec03 .bg>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
  4) SEC04 (Tabs + Portfolio Swiper)
========================================================= */
.wrap {
    max-width: 80%;
    margin: 0 auto;
    padding: 150px 0;
}

.sec04 .title {
    text-align: center;
    font-size: 50px;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}

.sec04 .desc {
    text-align: center;
    margin: 0 auto 34px;
    color: #666;
    line-height: 1.6;
    max-width: 720px;
    font-size: 20px;
    font-weight: 600;
}

/* tabs */
.tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 26px;
}

.tab {
    border: 1px solid #e9e9ee;
    background: #f2f2f4;
    color: #222;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: clamp(16px, 1.3vw, 26px);
    cursor: pointer;
    transition: .2s ease;
    user-select: none;
}

.tab[aria-selected="true"] {
    background: linear-gradient(135deg, #ed1c8c, #ed1c24);
    border-color: transparent;
    color: #fff;
}

.tab:focus-visible {
    outline: 3px solid rgba(255, 26, 122, .25);
    outline-offset: 3px;
}

/* head */
.slider-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 0 12px;
}

.sec04 .fraction {
    font-weight: 900;
    color: #222;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.sec04 .fraction .current {
    font-size: 18px;
}

.sec04 .fraction .slash {
    color: #bbb;
}

.sec04 .fraction .total {
    color: #888;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e9e9ee;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .15s ease;
}

.nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.nav button:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ✅ sec04 swiper only */
.sec04 .swiper {
    /* padding: 8px 4px 18px; */
}

.sec04 .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    background: transparent !important;
}

/* card */
.card {
    width: 100%;
    /* max-width: 360px; */
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e9ee;
    transform: translateZ(0);
}

.thumb {
    aspect-ratio: 3/4;
    background: #f6f6f8;
}

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

.meta {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.meta .kicker {
    font-size: 12px;
    color: #666;
    font-weight: 800;
}

.meta .name {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.meta .tag {
    font-size: 12px;
    color: #888;
}

.sec04 .card.is-wide .thumb {
    aspect-ratio: 5 / 3;
    /* 더 길게: 21/9 */
    overflow: hidden;
}

.sec04 .thumb img,
.sec04 .thumb a,
.sec04 .thumb a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.thumbLink {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width:640px) {
    .wrap {
        padding: 56px 16px;
    }

    .sec04 .title {
        font-size: 34px;
    }

    .sec04 .desc {
        font-size: 15px;
    }

    .slider-head {
        justify-content: space-between;
    }
}

/* =========================================================
  5) SEC05 Partners
========================================================= */
.sec-partners {
    background: var(--bg);
    padding: 150px 0;
}

.sec05 .sec-title {
    margin-bottom: 1.5em;
}

.sec05 .logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 50px 30px;
    align-items: center;
    justify-items: center;
}

.sec05 .logo-item {
    width: 100%;
    display: block;
    text-decoration: none;
}

.sec05 .logo-frame {
    width: 100%;
    height: 46px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    transition: .2s ease;
    cursor: pointer;
}

.sec05 .logo {
    max-width: 84%;
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.logo.bw {
    opacity: .85;
    filter: grayscale(1) contrast(1.1) brightness(.95);
}

.logo.color {
    opacity: 0;
}

.logo-item:hover .logo.color,
.logo-item:focus-visible .logo.color {
    opacity: 1;
}

.logo-item:hover .logo.bw,
.logo-item:focus-visible .logo.bw {
    opacity: 0;
}

.logo-item:focus-visible {
    outline: 3px solid rgba(255, 26, 122, .25);
    outline-offset: 6px;
    border-radius: 12px;
}

@media (max-width:1024px) {
    .sec05 .logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:560px) {
    .sec-partners {
        padding: 70px 0 40px;
    }

    .sec05 .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .sec05 .logo-frame {
        height: 42px;
    }
}

/* =========================================================
  6) SEC06 Reviews
========================================================= */
.sec-reviews {
    background: var(--bg);
    padding: 50px 0 150px;
}

.review-title {
    color: #fff;
    text-align: center;
    font-size: 50px;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 1.5em;
}

.review-shell {
    position: relative;
    padding: 30px 54px 0;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-20%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
    z-index: 5;
}

.review-prev {
    left: 0;
}

.review-next {
    right: 0;
}

.review-nav:hover {
    transform: translateY(-20%) scale(1.03);
    background: rgba(255, 255, 255, .07);
}

.review-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ✅ review swiper only (충돌 방지 핵심) */
.sec06 .review-swiper {
    /* padding: 0 6px 6px; */
}

.sec06 .review-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    border-radius: 20px;
}

/* card */
.review-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.review-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #ddd;
}

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

.review-quote {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.2;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.review-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.review-company {
    font-size: 20px;
}

.review-person {
    font-size: 18px;
    color: #111;
}

@media (max-width:860px) {
    .review-shell {
        padding: 24px 0 0;
    }

    .review-prev {
        left: -6px;
    }

    .review-next {
        right: -6px;
    }
}

/* =========================================================
  7) SEC07 CTA
========================================================= */
.sec-cta {
    background: #fff;
    padding: 150px 0;
}

.sec07 .cta-inner {
    text-align: center;
}

.sec07 .cta-title {
    margin: 0 0 .7em;
    font-size: 60px;
    font-weight: 900;
    line-height: 1.05;
}

.sec07 .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #ed1c8c, #ed1c24);
    color: #fff;
    padding: .5em 1em;
    border-radius: 999px;
    text-decoration: none;
    font-size: 24px;
}

.sec07 .cta-btn .dot {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #fff;
}

/* =========================================================
  RESPONSIVE PACK (Mobile ~ Tablet ~ Desktop)
  - 이 블록을 index.css 맨 아래에 추가해줘
========================================================= */

/* ---------- 1) 공통: 컨테이너/타이포 스케일 ---------- */
:root {
    --container: min(80%, 1280px);
}

.inner,
.wrap,
.kpi__inner {
    width: var(--container);
}

/* 큰 제목들: 모바일에서도 자연스럽게 줄어듦 */
.sec01 .title,
.kpi__title,
.sec03 .title>h2,
.sec04 .title,
.sec-title,
.review-title,
.sec07 .cta-title {
    font-size: clamp(28px, 3vw, 60px);
}

/* 섹션 공통 패딩: 화면이 작아질수록 줄어들게 */
.kpi,
.wrap,
.sec-partners,
.sec-reviews,
.sec-cta {
    padding-top: clamp(60px, 10vw, 150px);
    padding-bottom: clamp(60px, 10vw, 150px);
}

/* ---------- 2) 태블릿 이하 (<= 1024px) ---------- */
@media (max-width: 1024px) {
    :root {
        --container: min(92vw, 980px);
    }

    .sec01 {
        height: auto;
        /* ✅ 모바일에서 100vh 강제 X */
        padding: 120px 0 60px;
    }

    .sec01 .section-head {
        width: var(--container);
    }

    /* KPI */
    .kpi__inner {
        padding: 44px 18px 38px;
    }

    .kpi__stage {
        height: 520px;
    }

    .arrowWrap {
        left: 10%;
        top: 105px;
        width: min(520px, 78vw);
        height: 200px;
    }

    /* sec03 title 위치 살짝 위로 */
    .sec03 .title {
        top: 18vh;
    }

    /* partners */
    .sec05 .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px 18px;
    }

    /* review shell 좌우 패딩 감소 */
    .review-shell {
        padding: 24px 0 0;
    }

    .review-prev {
        left: -6px;
    }

    .review-next {
        right: -6px;
    }

    /* CTA 버튼 */
    .sec07 .cta-btn {
        font-size: 18px;
        gap: 18px;
    }
}


/* ---------- 3) 모바일 (<= 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --container: 92vw;
    }

    /* sec01 nav 버튼: 가장자리로 */
    .sec01 .nav-btn {
        width: 40px;
        height: 40px;
    }

    .sec01 .nav-btn svg {
        width: 24px;
        height: 24px;
    }

    .sec01 .nav-prev {
        left: 0;
    }

    .sec01 .nav-next {
        right: 0;
    }

    /* sec01 슬라이드 캡션 글자 줄임 */
    .sec01 .slide-caption .small {
        font-size: 16px;
    }

    .sec01 .slide-caption .big {
        font-size: 22px;
    }

    /* KPI: 차트 폭/간격 줄이기 */
    .chart {
        left: 12px;
        right: 12px;
    }

    .bars {
        gap: clamp(10px, 4vw, 26px);
    }

    .col {
        width: clamp(46px, 12vw, 90px);
    }

    .label {
        font-size: 14px;
        top: -32px;
    }

    .years .y {
        font-size: 14px;
    }

    /* sec03: 타이틀이 너무 크면 줄바꿈 자연스럽게 */
    .sec03 .title>h2 {
        padding: 0 10px;
        line-height: 1.2;
    }

    /* sec04: wrap padding 모바일 */
    .wrap {
        padding-left: 0;
        padding-right: 0;
    }

    /* sec05 partners: 3열 */
    .sec05 .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .sec05 .logo-frame {
        height: 42px;
    }

    /* sec06 reviews: nav 버튼 겹침 방지 */
    .review-nav {
        width: 38px;
        height: 38px;
    }

    .review-company {
        font-size: 16px;
    }

    .review-person {
        font-size: 14px;
    }

    /* CTA */
    .sec07 .cta-btn {
        /* width: 100%; */
        max-width: 420px;
        justify-content: center;
    }
}


/* ---------- 4) 초소형 모바일 (<= 420px) ---------- */
@media (max-width: 420px) {
    .sec01 {
        padding: 70px 0 48px;
    }

    /* sec01 이미지 높이 조금 낮게 */
    .sec01 .swiper-slide img {
        aspect-ratio: 4/3;
    }

    .sec01 .fraction {
        font-size: 16px;
    }

    /* KPI 더 압축 */
    .kpi__title {
        margin-bottom: 1.5em;
    }

    .kpi__stage {
        height: 470px;
    }

    /* 리뷰: padding 최소 */
    .sec06 .review-swiper {
        padding: 0 2px 6px;
    }

    /* CTA */
    .sec07 .cta-btn {
        font-size: 16px;
        padding: .6em 1em;
    }
}