/* 메인 페이지 — 좌/우 50:50 스플릿 + 호버 아코디언 내비 */

.split {
    position: fixed;
    inset: 0;
    display: flex;
    background: var(--white);
    overflow: hidden;
}

/* ---------- 좌측: 배경 이미지 크로스페이드 슬라이드 ---------- */
.hero-left {
    position: relative;
    width: 40%;
    height: 100%;
    overflow: hidden;
    background: #0a1a3f; /* 이미지 로딩 전 폴백 */
}

/* 배경 슬라이드 레이어 */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.4s ease;
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
    /* 느린 줌(켄번스)으로 자연스러운 흐름 */
    animation: heroKenburns 7.5s ease-out forwards;
}

@keyframes heroKenburns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.13); }
}

/* 네이비 스크림 — 브랜드 톤 유지 + 문구 가독성 */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 20, 47, 0.62) 0%, rgba(8, 20, 47, 0.34) 32%, rgba(8, 20, 47, 0.42) 60%, rgba(8, 20, 47, 0.82) 100%),
        linear-gradient(90deg, rgba(8, 20, 47, 0.55) 0%, rgba(8, 20, 47, 0.22) 60%, rgba(8, 20, 47, 0.30) 100%);
}

/* 콘텐츠(로고/문구)는 스크림 위 */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6vh 5vw;
}

/* 좌측 상단: 로고 */
.hero-left-top {
    flex: 1 1 50%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8vh;
}

/* 좌측 하단: 슬라이드 동기화 문구 + 인디케이터 */
.hero-left-bottom {
    flex: 1 1 30%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* 문구 크로스페이드 컨테이너 */
.hero-captions {
    position: relative;
    width: 100%;
    min-height: 152px;
}

.hero-caption {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    pointer-events: none;
}

.hero-caption.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-caption-eyebrow {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #fff;
}

.hero-caption-body {
    margin: 0;
    color: rgba(216, 225, 244, 0.86);
    font-size: clamp(12.5px, 0.98vw, 14.5px);
    font-weight: 400;
    line-height: 1.75;
    text-wrap: pretty;
    word-break: keep-all;
    max-width: 42ch;
}

/* 인디케이터(점) */
.hero-dots {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.hero-dot {
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background .3s var(--ease), width .3s var(--ease);
}

.hero-dot.is-active {
    width: 40px;
    background: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active { animation: none; transform: none; }
    .hero-slide { transition: opacity .01s; }
}

.hero-logo {
    width: clamp(288px, 29vw, 450px);
    height: auto;
}

.hero-divider {
    width: 54px;
    height: 3px;
    background: var(--accent-soft);
    margin: 0 0 26px;
    border-radius: 2px;
}

/* 로고 아래 한 줄 요약 (작게) */
.hero-lead {
    margin: 50px 0 0;
    text-align: left;
    color: rgba(216, 225, 244, 0.8);
    font-size: clamp(13px, 1.02vw, 15px);
    font-weight: 500;
    line-height: 1.62;
    letter-spacing: -0.2px;
    text-wrap: pretty;
    word-break: keep-all;
    max-width: 40ch;
}

/* 하단 회사 소개 본문 */
.hero-about-body {
    margin: 0 0 13px;
    text-align: left;
    color: rgba(216, 225, 244, 0.8);
    font-size: clamp(12.5px, 0.98vw, 14.5px);
    font-weight: 400;
    line-height: 1.75;
    text-wrap: pretty;
    word-break: keep-all;
    max-width: 42ch;
}

.hero-about-body:last-child {
    margin-bottom: 0;
}

.hero-tagline {
    margin: 30px 0 0 2px;
    color: rgba(214, 224, 245, 0.62);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

/* ---------- 우측: 화이트 아코디언 내비 ---------- */
.accordion-nav {
    width: 60%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5.2vh 6vw 5.2vh 4.5vw;
}

.accordion-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 780px;
    margin: auto 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    color: inherit;
    border-top: 1px solid var(--line);
    padding: 18px 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 1;
    flex-grow: 0;
    transition: flex-grow .5s var(--ease);
}

.nav-item:last-child {
    border-bottom: 1px solid var(--line);
}

.nav-item:hover {
    background: rgba(20, 42, 94, 0.025);
}

.nav-item.is-active {
    flex-grow: 1;
}

/* 헤더 행 */
.nav-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-height: 40px;
    justify-content: flex-end;
}

.nav-item.is-active .nav-head {
    justify-content: flex-start;
}

.nav-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--label);
    letter-spacing: 1px;
    min-width: 26px;
    display: none;
}

.nav-item.is-active .nav-num {
    display: inline-block;
}

.nav-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.05;
    color: var(--muted);
    font-size: 20px;
    transition: font-size .42s var(--ease), color .35s;
}

.nav-item.is-active .nav-title {
    color: var(--accent);
    font-size: clamp(28px, 2.5vw, 38px);
}

.nav-ko {
    margin-left: auto;
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    display: none;
}

.nav-item.is-active .nav-ko {
    display: inline-block;
}

.nav-arrow {
    font-size: 24px;
    font-weight: 400;
    color: var(--accent);
    display: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: all .35s;
}

.nav-item.is-active .nav-arrow {
    display: inline-block;
    opacity: 1;
    transform: translateX(0);
}

/* 펼쳐지는 본문 */
.nav-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: all .5s var(--ease);
}

.nav-item.is-active .nav-reveal {
    max-height: 600px;
    opacity: 1;
    margin-top: 18px;
}

/* reveal 내부 콘텐츠 — 좌측 46px 들여쓰기로 타이틀과 정렬 */
.reveal-lead {
    margin: 0 0 18px 46px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 52ch;
    word-break: keep-all;   /* 한국어 단어 중간 끊김 방지 */
    text-wrap: pretty;      /* 마지막 줄 한 글자/단어 고아 방지 */
}

.about-lead {
    margin: 0 0 16px 46px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    max-width: 48ch;
}

.about-sub {
    margin: 0 0 0 46px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7488;
    max-width: 48ch;
}

/* SERVICE 2x2 카드 그리드 */
.service-grid {
    margin-left: 46px;
    margin-right: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 26px;
    background: #f7f8fa;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: #dfe3ec;
    box-shadow: 0 10px 28px -14px rgba(20, 42, 94, 0.35);
}

.service-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(42, 77, 150, 0.08);
    color: var(--accent);
}

.service-card-icon svg {
    width: 27px;
    height: 27px;
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-strong);
    letter-spacing: -0.2px;
}

.service-card-desc {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 5px;
    word-break: keep-all;
}

/* PROJECT 리스트 */
.project-list {
    margin: 0 0 16px 46px;
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.project-name {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.project-meta {
    font-size: 14px;
    color: var(--muted-2);
}

.project-empty,
.know-empty {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
    color: var(--muted-2);
}

.project-more {
    display: inline-block;
    margin-left: 46px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* KNOWLEDGE 리스트 */
.know-list {
    margin: 0 0 0 46px;
}

.know-item {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.know-item:last-child {
    border-bottom: 0;
}

.know-empty:last-child {
    border-bottom: 0;
}

/* CONTACT — 카드(박스) 형태 */
.contact-cards {
    margin-left: 46px;
    margin-right: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 18px;
    background: #f7f8fa;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: #dfe3ec;
    box-shadow: 0 10px 28px -14px rgba(20, 42, 94, 0.35);
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(42, 77, 150, 0.08);
    color: var(--accent);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-strong);
    letter-spacing: -0.2px;
}

.contact-card-value {
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    word-break: keep-all;
}
