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

.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;

}}

/* ══════════════════════════════════
   조직 환경 페이지 (a04)
══════════════════════════════════ */

/* ── 섹션 ── */
/* ── 첫 화면 래퍼: hero + org = 100vh ── */
.a04-first-view {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 우측 배경 이미지 — 히어로 섹션 내부에만 */
.a04-hero-bg {
    position: absolute;
    top: -90px;
    right: 0;
    width: 34%;
    height: calc(100% + 90px);
    background:
        linear-gradient(to right, #0b0b0b 0%, rgba(11,11,11,0.7) 18%, transparent 45%),
        url('/img/2_about/about_4_bg.png') top center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* 노이즈 오버레이 */
.a04-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.07;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%),
                        linear-gradient(to top, transparent 0%, black 25%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, black 35%),
                linear-gradient(to top, transparent 0%, black 25%);
    mask-composite: intersect;
}

/* 히어로 섹션 */
.a04-hero-section {
    flex: 1;
    position: relative;
    overflow: visible;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 140px 80px 48px;
    box-sizing: border-box;
}

/* 히어로 내부 — 세로 flex, 가운데 정렬 */
.a04-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* 조직도 섹션 (레거시, 더 이상 사용 안 함) */
.a04-org-section { display: none; }

/* base fallback */
.a04-section { box-sizing: border-box; }

.a04-section-title.is-small {
    background: linear-gradient(90deg, #2a2d33 0%, #4a4f58 8%, #ffffff 22%);
    -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;
    margin-bottom: 40px;
}

/* ── 섹션 타이틀 ── */
.a04-section-title {
    background: linear-gradient(90deg, #2a2d33 0%, #4a4f58 8%, #ffffff 22%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 60px;
}

/* 히어로 shape 이미지 */
.a04-hero-shape {
    display: block;
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

/* 히어로 태그 박스 */
.a04-hero-tags {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.a04-hero-tag {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.a04-hero-tag:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}

/* 히어로 타이틀: 가운데 정렬 */
.a04-section-title.is-hero {
    background: linear-gradient(90deg, #2a2d33 0%, #6a6f78 12%, #ffffff 28%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    margin: 0 0 48px;
}

/* ── 등장 애니메이션 ── */
.a04-anim {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1.4s cubic-bezier(0.22,1,0.36,1), transform 1.4s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--delay, 0s);
}
.a04-anim.is-visible {
    opacity: 1;
    transform: none;
}

/* ══════════════════════════════════
   조직도
══════════════════════════════════ */
.a04-org {
    text-align: center;
    overflow-x: auto;
    padding-bottom: 10px;
}
.a04-org-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 960px;
}
.a04-org-ceo-row {
    display: flex;
    justify-content: center;
}
.a04-org-vline {
    width: 2px;
    height: 24px;
    background: #ea4c38;
    flex-shrink: 0;
}
.a04-org-depts {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
.a04-org-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 16px;
}
.a04-org-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ea4c38;
}
.a04-org-col:first-child::before { left: 50%; }
.a04-org-col:last-child::before  { right: 50%; }
.a04-org-col-vup {
    width: 2px;
    height: 24px;
    background: #ea4c38;
    flex-shrink: 0;
}
.a04-org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 22px;
    padding: 16px 28px;
    min-width: 130px;
    background: rgba(255,255,255,0.03);
    gap: 4px;
    white-space: nowrap;
    transition: transform 0.26s cubic-bezier(0.16,1,0.3,1),
                background 0.26s ease,
                border-color 0.26s ease,
                color 0.26s ease,
                box-shadow 0.26s ease;
}
.a04-org-node:hover {
    transform: none;
}
.a04-org-node.is-ceo {
    border-color: #ea4c38;
    background: #ea4c38;
    min-width: 200px;
    padding: 20px 40px;
    box-shadow: 0 14px 36px rgba(234,76,56,0.24);
}
.a04-org-node.is-dept {
    width: 100%;
    box-sizing: border-box;
    border-color: #ea4c38;
    background: #ea4c38;
    box-shadow: 0 12px 30px rgba(234,76,56,0.2);
}
.a04-org-node.is-member {
    width: 100%;
    box-sizing: border-box;
    min-height: 144px;
    padding: 18px 28px;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.25);
    white-space: normal;
    border-radius: 22px;
    justify-content: center;
}
.a04-org-node-label {
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.a04-org-node-name {
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.a04-org-node.is-ceo .a04-org-node-name {
    font-size: 20px;
}
.a04-org-node.is-member .a04-org-node-name {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
}
.a04-org-node.is-member:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.a04-org-node.is-member:hover .a04-org-node-name,
.a04-org-node.is-member:hover .a04-org-node-desc {
    color: #090b10;
}
.a04-org-node.is-member:hover .a04-org-node-desc li {
    color: #090b10;
}

/* ══════════════════════════════════
   업무 영역 섹션
══════════════════════════════════ */
.a04-work-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    box-sizing: border-box;
    position: relative;
}

.a04-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.a04-work-card {
    padding: 56px 52px;
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}
.a04-work-card:hover {
    background: rgba(255,255,255,0.055);
}

.a04-work-num {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.12em;
    font-weight: 400;
}
.a04-work-card-title {
    font-size: clamp(20px, 2.2vw, 30px);
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0;
}
.a04-work-card-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.48);
    line-height: 1.75;
    margin: 0;
}

/* ── 반응형 ── */

/* ── 아웃라인 하이라이트 ── */
.a04-org-node.is-highlighted {
    border-color: #ea4c38 !important;
    box-shadow: 0 0 0 1px rgba(234, 76, 56, 0.22), 0 12px 30px rgba(234,76,56,0.2);
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* ── 버튼 활성 상태 ── */
.a04-hero-tag.is-active {
    border-color: #ea4c38;
    color: #ea4c38;
    background: rgba(234, 76, 56, 0.1);
}

/* ── 팀/실 설명 리스트 ── */
.a04-org-node-desc {
    list-style: none;
    margin: 7px 0 0;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    white-space: normal;
    font-weight: 400;
}
.a04-org-node-desc li {
    position: relative;
    padding-left: 0;
    color: inherit;
}
.a04-org-node-desc li::before {
    content: none;
}

@media (max-width: 768px) {
    .a04-hero-section { padding: 100px 20px 36px; }
    .a04-hero-bg { width: 100%; }
    .a04-section-title {
        font-size: clamp(20px, 5vw, 30px);
        margin-bottom: 36px;
    }
    .a04-section-title.is-small {
        font-size: clamp(18px, 5.5vw, 28px);
        margin-bottom: 28px;
    }

    /* 조직도 */
    .a04-org-inner {
        min-width: 0;
        width: 100%;
    }
    .a04-org-depts {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }
    .a04-org-col {
        flex: 0 0 50%;
        padding: 0 8px;
        margin-bottom: 16px;
    }
    /* 모바일에서 수평 연결선 제거 */
    .a04-org-col::before { display: none; }

    .a04-org-node.is-ceo {
        min-width: 140px;
        padding: 14px 24px;
    }
    .a04-org-node.is-ceo .a04-org-node-name { font-size: 16px; }

    .a04-org-node.is-dept {
        min-width: 90px;
        padding: 10px 16px;
    }
    .a04-org-node-name { font-size: 14px; }

    .a04-org-node.is-member {
        min-width: 80px;
        min-height: 116px;
        padding: 8px 12px;
    }
    .a04-org-node.is-member .a04-org-node-name { font-size: 13px; }

}
