/* ══════════════════════════════════════════════════════════════
   중등 Aristos 페이지 전용 스타일
══════════════════════════════════════════════════════════════ */

/* 모바일 전용 줄바꿈 기본 숨김 */
.mo-br {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   섹션 1 · 커리큘럼
══════════════════════════════════════════════════════════════ */

#sec-curriculum {
    background: url(../imgs_sub/aristos/back1.png) center bottom / 100% 100% no-repeat;
}

.cur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 8, 4, 0.76);
}

/* 라인 + 카드 */
.line-cards-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 28%;
    width: 70%;
    z-index: 1;
    pointer-events: none;
}

/* 연결 라인 도형 */
.cur-line {
    display: block;
    width: 100%;
    height: auto;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2.2s ease-out;
}

.cur-line.drawn {
    clip-path: inset(0 0% 0 0);
}

/* 카드 래퍼 — 라인 이미지 영역에 완전히 겹침 */
.cards-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 상단 브랜딩 */
.cur-brand {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cur-quote {
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cur-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

.cur-logo {
    width: 280px;
    margin-top: -20px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cur-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 카드 이미지 공통 ────────────────────────────────────────── */
.card-img {
    position: absolute;
    height: auto;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.card-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ARI 카드  */
.card-img-1 {
    left: 5%;
    top: 20%;
    width: 24%;
}

/* STO 카드 */
.card-img-2 {
    left: 36%;
    top: 22%;
    width: 28%;
}

/* SS 카드 */
.card-img-3 {
    left: 72%;
    top: 20%;
    width: 22%;
}

/* 탭 바 — 데스크탑에서 숨김 */
.mob-tabs {
    display: none;
}

/* ─── 1640px 이하: 대형 노트북 ──────────────────────────────── */
@media (max-width: 1640px) {
    .line-cards-wrap {
        top: 32%;
    }
}

/* ─── 1440px 이하: 데스크탑 ──────────────────────────────── */
@media (max-width: 1440px) {
    .line-cards-wrap {
        top: 32%;
    }
}

/* ─── 1280px 이하: 일반 노트북 ──────────────────────────────── */
@media (max-width: 1280px) {
    .line-cards-wrap {
        width: 76%;
        top: 33%;
    }
}

/* ─── 1024px 이하: 소형 노트북 / iPad 가로 ─────────────────── */
@media (max-width: 1024px) {
    .line-cards-wrap {
        width: 82%;
        top: 33%;
    }

    .cur-brand {
        top: 140px;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .cur-brand {
        top: 125px;
        white-space: normal;
        text-align: center;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .cur-quote {
        font-size: 0.90rem;
    }

    .cur-logo {
        width: 250px;
    }

    /* 라인 숨김, 래퍼 위치 조정 */
    .cur-line {
        display: none;
    }

    .line-cards-wrap {
        top: 350px;
        width: 80%;
    }

    /* 탭 바 */
    .mob-tabs {
        display: flex;
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        background: rgba(10, 6, 3, 0.55);
        border-radius: 12px;
        padding: 5px;
        gap: 4px;
        z-index: 3;
    }

    .mob-tab {
        flex: 1;
        padding: 17px 0;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: rgb(255, 255, 255);
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    .mob-tab.active {
        background: #2dc4a0;
        color: #0d2620;
    }

    /* 카드 래퍼 — 라인 숨김 */
    .cards-wrap {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        display: block;
        z-index: 2;
    }

    /* 카드 이미지 — 기본 숨김, 데스크탑 위치값 해제 */
    .card-img {
        display: none;
        position: static;
        width: 100%;
        opacity: 0;
        transform: none;
        transition: opacity 0.3s ease;
    }

    /* 활성 카드 */
    .card-img.mob-active {
        display: block;
        opacity: 1;
    }

    /* 데스크탑 개별 위치값 무력화 */
    .card-img-1,
    .card-img-2,
    .card-img-3 {
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 0;
    }

    .card-img-1,
    .card-img-3 {
        width: 80%;
        margin: 0 auto;
        margin-left: 7%;
    }

    /* STO 카드  */
    .card-img-2 {
        margin-top: 0;
    }
}


/* ══════════════════════════════════════════════════════════════
   섹션 2  왜 아리스토스인가
══════════════════════════════════════════════════════════════ */

#sec-why {
    background: url(../imgs_sub/aristos/back2.png) center center / cover no-repeat;
}

/* 전체 레이아웃 */
.why-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 60px 48px;
    gap: 36px;
}

/* 상단 헤드 */
.why-head {
    text-align: center;
}

.why-title {
    font-size: 3rem;
    font-weight: 700;
    color: #5B3419;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.why-quote {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    color: #1F1F1F;
    line-height: 1.9;
    text-align: center;
}

/* 카드 영역 */
.why-cards {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 1행 래퍼 */
.why-row {
    display: flex;
    gap: 14px;
}

/* 카드 공통 */
.step-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(90, 40, 10, 0.08);
    padding: 32px 36px;
    text-align: center;
    opacity: 0;
    /* 초기 숨김 */
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1행 카드 — 동일 너비 */
.card-step1,
.card-step2 {
    flex: 1;
}

/* 2행 카드 — 전체 너비 */
.card-step3 {
    width: 100%;
}

/* 스텝 pill 배지 */
.step-pill {
    display: inline-block;
    background: #7b3f1e;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

/* 카드 타이틀 */
.step-ttl {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b1f0e;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 카드 설명 */
.step-desc {
    font-size: 0.9rem;
    color: #6b4c36;
    line-height: 1.75;
}

.step-desc strong {
    font-weight: 700;
    color: #3b1f0e;
}

/* ─── 1280px 이하: why 섹션 패딩 ────────────────────────────── */
@media (max-width: 1280px) {
    .why-inner {
        padding: 80px 40px 40px;
    }

    .why-title {
        font-size: 2.5rem;
    }
}

/* ─── 1024px 이하: why 섹션 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .why-inner {
        padding: 80px 24px 32px;
        gap: 24px;
    }

    .why-title {
        font-size: 2rem;
    }

    .why-quote {
        font-size: 1rem;
        line-height: 1.7;
    }

    .step-card {
        padding: 24px 24px;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .why-inner {
        padding: 88px 20px 32px;
        gap: 24px;
    }

    .why-title {
        font-size: 1.5rem;
    }

    .why-quote {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .why-row {
        flex-direction: column;
    }

    .step-card {
        padding: 24px 20px;
    }

    .step-desc {
        line-height: 1.35;
    }
}


/* ══════════════════════════════════════════════════════════════
   섹션 3 · TCT System
══════════════════════════════════════════════════════════════ */

#sec-tct {
    background: url(../imgs_sub/aristos/back3.png) center top / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--gnb-h, 72px) + 24px) 40px 24px;
    box-sizing: border-box;
    gap: clamp(12px, 2.5vh, 36px);
}

/* 헤더 */
.tct-head {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    text-align: center;
    z-index: 1;
    margin-bottom: 50px;
}

.tct-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tct-hr {
    width: 36px;
    height: 1px;
    background: #ffffff;
    margin: 0 auto 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tct-sub {
    font-size: 0.90rem;
    color: rgb(255, 255, 255);
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 페이드인 활성 */
.tct-title.visible,
.tct-hr.visible,
.tct-sub.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 다이아몬드 + 설명 ──────────────────────────────── */
.tct-mid {
    position: static;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 4vh, 50px);
    z-index: 1;
    width: 90%;
    max-width: 900px;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.tct-mid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 다이아몬드 가로 */
.diamond-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* 다이아몬드 도형 */
.diamond {
    width: 140px;
    height: 140px;
    background: rgba(10, 20, 50, 0.7);
    border: 1.5px solid #08E5FF;
    box-shadow:
        0 0 15px rgba(0, 229, 255, 0.6),
        0 0 35px rgba(45, 196, 160, 0.3),
        0 0 60px rgba(45, 196, 160, 0.15);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diamond-inner {
    transform: rotate(-45deg);
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* +  */
.diamond-plus {
    font-size: 4.0rem;
    font-weight: 50;
    color: #08E5FF;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 20px;
    /* 좌우 padding 추가 */
}

/* 설명 텍스트 */
.tct-desc {
    text-align: center;
}

.tct-desc-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.6;
}

.tct-teal {
    color: #00fae5;
}

.tct-desc-sub {
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
    line-height: 1.7;
}

.mob-br {
    display: none;
}


@media (max-width: 768px) {

    #sec-tct {
        padding: calc(var(--gnb-h, 60px) + 8px) 16px 16px;
        gap: 8px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .tct-head {
        width: 90%;
        white-space: nowrap;
        margin-top: 16px;
        margin-bottom: 20px;
    }

    .tct-mid {
        width: 90%;
        gap: 20px;
    }

    .diamond-wrap {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .tct-title {
        font-size: 1.8rem;
    }

    .tct-hr,
    .tct-sub {
        display: none;
    }

    .diamond {
        width: 90px;
        height: 90px;
    }

    .diamond-inner {
        font-size: 1.1rem;
    }

    .diamond-plus {
        padding: 0 5px;
        font-size: 3.0rem;
        transform: translateY(-15px);
    }

    .tct-desc-main {
        font-size: 0.9rem;
    }

    .tct-desc-sub {
        font-size: 0.8rem;
    }

    .mob-br {
        display: inline;
    }
}


/* ══════════════════════════════════════════════════════════════
    TCT 시스템 테이블
══════════════════════════════════════════════════════════════ */

.tct-system-wrap {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 82%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1;
}

/* 행: 레이블 + 테이블 */
.sys-row {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 20px;
    align-items: center;
}

/* 레이블 공통 */
.sys-label {
    text-align: right;
    padding-right: 16px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.sys-label.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 교과 시스템 디바이더 */
.label-kyogwa {
    border-right: 1px solid #02ff1f;
    ;
    align-self: stretch;
}

/* 심화 시스템 디바이더  */
.label-simhwa {
    border-right: 1px solid #07E5FF;
}

/* 심화 시스템 + 결과 테이블 묶음 */
.sys-group-simhwa {
    display: grid;
    grid-template-columns: 185px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 15px;
    align-items: start;
}

.sys-group-simhwa .label-simhwa {
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
}

.lbl-ttl {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #02ff1f;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.lbl-ttl2 {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #07E5FF;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.lbl-sub {
    display: block;
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
    line-height: 1.5;
    white-space: nowrap;
}

/* 테이블 공통 */
.sys-table {
    background: rgba(5, 15, 35, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    min-height: 110px;
}

.sys-table.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 테이블별 테두리 */
.sys-table-1 {
    border: 1px solid #2dc4a0;
}

.sys-table-2,
.sys-table-3 {
    border: 1px solid rgba(8, 229, 255, 0.90);

}

/* 2×2 그리드 (table-1, table-2) */
.sys-table-1,
.sys-table-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    justify-items: center;
    align-items: center;
}

.tbl-cell {

    font-size: 1.0rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.85;
    text-align: center;
    white-space: nowrap;
}



/* 3열 그리드 (table-3) */
.sys-table-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-content: center;
    justify-items: center;
    align-items: center;
}

.tbl-cell3 {
    padding: 10px 14px;
    text-align: center;
}

.tbl3-ttl {
    font-size: 1.0rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.85;
    white-space: nowrap;
}

.tbl3-desc {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.597);
    line-height: 1.55;
    text-align: center;
}

/* 반응형 — 시스템 테이블 */
@media (max-width: 768px) {

    .tct-system-wrap {
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 95%;
        max-width: none;
        gap: 2px;
        margin-top: 2px;
    }

    /* 행: 레이블 위, 테이블 아래 (1열) */
    .sys-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .sys-label {
        text-align: left;
        transform: translateY(-6px);
        border-right: none;
    }

    .sys-label.visible {
        transform: translateY(0);
    }

    /* 모바일: 묶음 해제 — 1열 세로 스택 */
    .sys-group-simhwa {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 15px;
        width: 100%;
    }

    .sys-group-simhwa .label-simhwa {
        grid-row: unset;
        align-self: auto;
        padding-top: 0;
    }

    /* 테이블 높이 내용에 맞게 */
    .sys-table {
        min-height: 0;
        height: auto;
        width: 100%;
    }

    /* table-1, table-2: 2×2 동일 */
    .sys-table-1,
    .sys-table-2 {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        text-align: center;
    }

    /* table-3: 1행 3열 */
    .sys-table-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 셀 텍스트 축소 */
    .tbl-cell {
        font-size: 12px;
        padding: 8px;
        line-height: 1.0;
    }

    .tbl-cell3 {
        padding: 8px 6px;

    }

    .lbl-ttl {
        font-size: 1.0rem;
    }

    .lbl-ttl2 {
        font-size: 1.0rem;
    }


    .tbl3-ttl {
        font-size: 12px;
    }

    .tbl3-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tbl-cell {
        font-size: 12px
    }

    .tbl3-ttl {
        font-size: 12px;
    }

    .tbl3-desc {
        display: none;
    }

    .mo-br {
        display: block;
    }
}

/* 별빛 트윙클 */
/* ── 짧은 뷰포트(노트북·태블릿 가로) 대응 ─────────────────── */
@media (max-height: 860px) and (min-width: 769px) {
    #sec-tct {
        padding: calc(var(--gnb-h, 72px) + 10px) 40px 10px;
        gap: clamp(8px, 1.2vh, 18px);
    }

    .tct-title {
        font-size: 2.0rem;
        margin-bottom: 12px;
    }

    .tct-hr {
        margin-bottom: 12px;
    }

    .tct-sub {
        font-size: 0.85rem;
    }

    .tct-mid {
        gap: clamp(10px, 1.8vh, 24px);
    }

    .diamond {
        width: 110px;
        height: 110px;
    }

    .diamond-inner {
        font-size: 1.4rem;
    }

    .diamond-plus {
        font-size: 3.2rem;
    }

    .tct-desc-main {
        font-size: 1.0rem;
    }

    .tct-desc-sub {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .sys-table {
        min-height: 80px;
    }

    .tct-system-wrap {
        gap: 10px;
    }

    .tbl-cell {
        font-size: 0.85rem;
    }

    .tbl3-ttl {
        font-size: 0.85rem;
    }

    .tbl3-desc {
        font-size: 0.72rem;
    }

    .lbl-ttl {
        font-size: 1.1rem;
    }

    .lbl-ttl2 {
        font-size: 1.1rem;
    }

    .lbl-sub {
        font-size: 0.78rem;
    }
}

@keyframes tct-twinkle {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    30% {
        opacity: var(--star-opacity);
        transform: scale(1.3);
    }

    60% {
        opacity: calc(var(--star-opacity) * 0.4);
        transform: scale(0.9);
    }

    80% {
        opacity: var(--star-opacity);
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(0.6);
    }
}

.tct-star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: tct-twinkle var(--star-dur) ease-in-out infinite var(--star-delay);
}


/* ══════════════════════════════════════════════════════════════
   섹션 4  Summit Class
══════════════════════════════════════════════════════════════ */

#sec-summit {
    background: url(../imgs_sub/aristos/back4.png) center center / cover no-repeat;
}

/* 헤더 */
.summit-head {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    z-index: 1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.summit-head.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.summit-kicker {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffe59e;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

.summit-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffe59e;
    letter-spacing: 0.02em;
}

/* 메인 래퍼 */
.summit-wrap {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    width: 90%;
    max-width: 1290px;
    z-index: 1;
}

/* 카드 그리드 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 100%;
    height: 80%;
}

/* 카드 공통 */
.s-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #2a1e0f;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 카드 개별 이미지 */
.s-card-1 {
    background-image: url(../imgs_sub/aristos/photo1.png);
}

.s-card-2 {
    background-image: url(../imgs_sub/aristos/photo2.png);
}

.s-card-3 {
    background-image: url(../imgs_sub/aristos/photo3.png);
}

.s-card-4 {
    background-image: url(../imgs_sub/aristos/photo4.png);
}

.s-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 카드 하단 그라디언트 */
.s-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

/* 텍스트 오버레이  */
.s-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.s-overlay-right {
    align-items: center;
    text-align: center;
}

.s-card-text {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.s-card-text small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

/* 트로피 */
.trophy {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    top: -20px;
    height: 110%;
    width: auto;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.trophy.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── 1280px 이하: summit 섹션 ──────────────────────────────── */
@media (max-width: 1280px) {
    .summit-kicker {
        font-size: 1.5rem;
    }

    .summit-title {
        font-size: 2.4rem;
    }

    .summit-head {
        top: 130px;
    }

    .summit-wrap {
        top: 250px;
    }
}

/* ─── 1024px 이하: summit 섹션 ──────────────────────────────── */
@media (max-width: 1024px) {
    .summit-head {
        top: 110px;
    }

    .summit-kicker {
        font-size: 1.3rem;
    }

    .summit-title {
        font-size: 2.0rem;
    }

    .summit-wrap {
        top: 210px;
        width: 94%;
    }

    .card-grid {
        gap: 14px;
    }

    .s-card-text {
        font-size: 1.5rem;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .summit-head {
        top: 100px;
    }

    .summit-title {
        font-size: 1.8rem;
    }

    .summit-wrap {
        top: 200px;
        width: 92%;
    }

    .trophy {
        height: 60%;
        top: 20%;
    }

    .s-card-text {
        font-size: 1.0rem;
    }
}

/* 트로피 골드 글로우 펄스 */
@keyframes trophy-glow-in {
    0% {
        filter: drop-shadow(0 0 0px transparent);
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.25)) drop-shadow(0 0 10px rgba(255, 229, 102, 0.15));
    }
}

@keyframes trophy-glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.25)) drop-shadow(0 0 10px rgba(255, 229, 102, 0.15));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.65)) drop-shadow(0 0 24px rgba(255, 229, 102, 0.35)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.15));
    }
}

.trophy.glowing {
    animation:
        trophy-glow-in 2s ease-out 1 forwards,
        trophy-glow-pulse 2.8s ease-in-out infinite 2s;
}

/* ══════════════════════════════════════════════════════════════
   초저높이 실기기 대응 (아이폰16/갤럭시S24 등 ≤740px 높이)
══════════════════════════════════════════════════════════════ */
@media (max-height: 740px) and (max-width: 480px) {

 
    .why-inner {
        justify-content: flex-start;
        padding: calc(var(--gnb-h, 60px) + 10px) 16px 16px;
        gap: 12px;
    }

    .why-title {
        font-size: 1.7rem;
        margin: 30px 0 10px 0px;
    }

    .why-quote {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .why-cards {
        gap: 8px;
    }

    .step-card {
        padding: 14px 16px;
    }

    .step-pill {
        font-size: 0.8rem;
        padding: 4px 14px;
        margin-bottom: 8px;
    }

    .step-ttl {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .step-desc {
        font-size: 0.88rem;
        line-height: 1.35;
    }


    .tct-desc {
        display: none;
    }
}