/* 서비스 소개 히어로 설명 텍스트 고정 및 여백 */
.s01-hero-desc-wrap {
    width: 100%;
    margin-top: 12px;
    /* 등장 애니메이션 적용 금지 */
}
.s01-hero-desc {
    margin: 0;
    padding-top: 10px;
    font-size: clamp(14px, 1vw, 16px);
    color: #e0e0e0;
    line-height: 1.65;
    font-weight: 400;
    /* 등장 애니메이션 적용 금지 */
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

body {
    margin: 0;
    color: #f2f2f2;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

/* ══════════════════════════════════
   서비스 소개 히어로 (about04 동일 구조)
══════════════════════════════════ */
.s01-first-view {
    position: relative;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    isolation: isolate;
    z-index: 0;
}

.s01-hero-bg {
    position: absolute;
    top: -90px;
    right: 0;
    width: 42%;
    height: calc(55vh + 90px);
    background:
        linear-gradient(to right, #0b0b0b 0%, rgba(11,11,11,0.7) 18%, transparent 45%),
        url('/img/3_services/service_1.png') top center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.s01-hero-section {
    flex: 1;
    position: relative;
    overflow: visible;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 140px 0 36px;
    box-sizing: border-box;
}

.s01-wrap,
.s01-content,
.s01-grid,
.s01-card {
    position: relative;
    z-index: 3;
}

/* 헤더 블러 — 최상단일 때 제거 */
body.s01-page #gnb {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.s01-page #gnb.is-scrolled {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.s01-hero-shape {
    display: block;
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
    object-position: left center;
}

.s01-hero-title {
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 4%, #ffffff 11%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: clamp(38px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: left;
    margin: 0;
    line-height: 1.2;
    min-height: clamp(92px, 13.2vw, 192px);
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

/* \ud0c0\uc774\ud551 \ud6a8\uacfc */
.s01-typing-title {
    display: block;
    -webkit-text-fill-color: initial;
    color: initial;
    background: none;
}
.s01-typing-title .s01-typing-text {
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 4%, #ffffff 11%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: pre-wrap;
    min-height: 2.4em;
}
.s01-typing-cursor {
    display: inline-block;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 200;
    margin-left: 6px;
    opacity: 0;
}
.s01-typing-cursor.blinking {
    opacity: 1;
    animation: s01TypingBlink 1s step-end infinite;
}
@keyframes s01TypingBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 등장 애니메이션 */
.s01-anim {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
    transition-delay: var(--delay, 0s);
}

/* s01-hero-desc에는 .s01-anim 효과 적용하지 않음 */
.s01-hero-desc.s01-anim,
.s01-hero-desc.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.s01-anim.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .s01-hero-section { padding: 100px 0 24px; }
    .s01-hero-bg { width: 100%; }
    .s01-hero-title {
        font-size: clamp(28px, 8vw, 48px);
        min-height: 2.4em;
    }
    .s01-hero-desc-wrap { margin-top: 10px; }
    .s01-hero-desc {
        padding-top: 8px;
        font-size: 13px;
        line-height: 1.6;
    }
}

/* ══════════════════════════════════
   본문: 2열 그리드 + 카드 박스
══════════════════════════════════ */
.s01-wrap {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    box-sizing: border-box;
}

.s01-content {
    margin: 0;
    max-width: 100%;
}

.s01-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 1280px;
    margin: 0 auto;
}

.s01-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 56px 56px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background-color: #0b0b0b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.s01-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.55) 35%, rgba(255,255,255,0) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.s01-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 100%, rgba(232, 50, 50, 0.65) 0%, rgba(220, 38, 38, 0.38) 16%, rgba(190, 30, 30, 0.14) 36%, transparent 58%),
        radial-gradient(circle at 95% 95%, rgba(255, 110, 100, 0.42) 0%, transparent 26%);
    opacity: 0.95;
}
.s01-card.s01-section.is-visible:hover,
.s01-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(232, 50, 50, 0.28),
        0 12px 50px rgba(220, 38, 38, 0.22);
}

.s01-section {
    padding: 0;
    border-top: 0;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.s01-section.is-visible {
    opacity: 1;
    transform: none;
}
/* 행 단위 순차 등장 (좌우는 동시, 위에서 아래로) */
.s01-grid > .s01-section:nth-child(1),
.s01-grid > .s01-section:nth-child(2) { transition-delay: 0s; }
.s01-grid > .s01-section:nth-child(3),
.s01-grid > .s01-section:nth-child(4) { transition-delay: 0.12s; }
.s01-grid > .s01-section:nth-child(5),
.s01-grid > .s01-section:nth-child(6) { transition-delay: 0.24s; }
.s01-grid > .s01-section:nth-child(7),
.s01-grid > .s01-section:nth-child(8) { transition-delay: 0.36s; }
.s01-grid > .s01-section:nth-child(9),
.s01-grid > .s01-section:nth-child(10) { transition-delay: 0.48s; }

.s01-section-inner {
    max-width: 100%;
    text-align: center;
}

.s01-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}

.s01-section-title {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 28px;
    /* \uae30\ubcf8: \uc9e7\uc740 \ud14d\uc2a4\ud2b8(2\uae00\uc790)\uc6a9 \ub113\uc740 \ubc94\uc704 */
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 18%, #ffffff 45%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}
/* \uc911\uac04 \uae38\uc774(5~7\uc790) */
#s01-library .s01-section-title,
#s01-recap .s01-section-title,
#s01-seminar .s01-section-title {
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 14%, #ffffff 32%);
    -webkit-background-clip: text;
    background-clip: text;
}
/* \uae34 \ud14d\uc2a4\ud2b8(8\uc790 \uc774\uc0c1) \u2014 \ud788\uc5b4\ub85c\uc640 \ub3d9\uc77c */
#s01-video .s01-section-title,
#s01-workshop .s01-section-title {
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 8%, #ffffff 20%);
    -webkit-background-clip: text;
    background-clip: text;
}
.s01-section--lead .s01-section-title {
    font-size: clamp(28px, 3vw, 44px);
    display: inline-block;
}

.s01-section-desc {
    font-size: clamp(13px, 0.95vw, 14.5px);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin: 0 0 12px;
    word-break: keep-all;
}
.s01-section-desc:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    .s01-card { padding: 44px 36px; min-height: 280px; }
}
@media (max-width: 768px) {
    .s01-wrap { padding: 40px 20px 80px; }
    .s01-grid { grid-template-columns: 1fr; gap: 24px; }
    .s01-card { padding: 36px 28px; min-height: 0; border-radius: 14px; }
}

.menu-page {
    min-height: calc(100vh - 170px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 150px 80px 90px;
    box-sizing: border-box;
}

.menu-page > * {
    opacity: 0;
    transform: translateY(24px);
    animation: menuFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.menu-page > *:nth-child(1) { animation-delay: 0.08s; }
.menu-page > *:nth-child(2) { animation-delay: 0.2s; }
.menu-page > *:nth-child(3) { animation-delay: 0.32s; }
.menu-page > *:nth-child(4) { animation-delay: 0.44s; }
.menu-page > *:nth-child(5) { animation-delay: 0.56s; }
.menu-page > *:nth-child(6) { animation-delay: 0.68s; }

.menu-page h1 {
    margin: 0 0 16px;
    font-size: clamp(27px, 3.4vw, 40px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.menu-page p {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

@keyframes menuFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .menu-page {
        padding: 120px 20px 70px;
    }

    .menu-page h1 {
        font-size: clamp(24px, 7.2vw, 32px);
    }

    .page-heading {
        padding: 120px 20px 32px;
    }

    .page-heading h1 {
        font-size: clamp(24px, 7.2vw, 32px);
    }
}

.page-heading {
    max-width: 1600px;
    margin: 0 auto;
    padding: 150px 80px 40px;
    box-sizing: border-box;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(27px, 3.4vw, 40px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(24px);
    animation: menuFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.08s;
}
