/* ── 공통 타이틀 (Pretendard 800 · eyebrow 영문 700) ── */
.ek-section-title, .ek-hhero h1, .ek-cta-band h2 { font-family: 'Pretendard', sans-serif; letter-spacing: -.02em; }
.ek-section-title { font-weight: 800; font-size: clamp(23px, 3.6vw, 34px); line-height: 1.3; }
.ek-eyebrow { font-weight: 700; }
.ek-eyebrow--ink { color: var(--ink); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.ek-section-head.center { text-align: center; }
.ek-section-head.center .ek-section-title, .ek-section-head.center .ek-section-desc { margin-left: auto; margin-right: auto; }
.ek-more.light { color: #fff; }

/* ── 홈 오버레이 헤더: 호버 전 투명+흰색 / 호버 시 기본 헤더 ── */
.ek-header { transition: background .25s ease, border-color .25s ease, -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease; }
.ek-header.is-overlay { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ek-header.is-overlay:hover { background: rgba(255, 255, 255, .94); border-bottom-color: rgba(228, 231, 236, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ek-header .ek-brand img, .ek-header .ek-console .gi { transition: filter .25s ease; }
.ek-header.is-overlay:not(:hover) .ek-brand img, .ek-header.is-overlay:not(:hover) .ek-console .gi { filter: brightness(0) invert(1); }
.ek-header.is-overlay:not(:hover) .ek-nav a { color: #fff; }
.ek-header.is-overlay:not(:hover) .ek-console { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.ek-header.is-overlay:not(:hover) .ek-fam-btn { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.ek-header.is-overlay:not(:hover) .ek-fam-btn .ek-fam-ic { color: #fff; }
.ek-header.is-overlay:not(:hover) .ek-menu-button { color: #fff; }

/* Merit / 강점 섹션 */
.ek-merit-wrap { display: grid; grid-template-columns: .85fr 1.6fr; gap: 56px; align-items: start; }
.ek-merit-head .ek-section-title { margin: 14px 0 0; }
.ek-merit-list { display: flex; flex-direction: column; }
.ek-merit-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); }
.ek-merit-row:last-child { border-bottom: 1px solid var(--line); }
.ek-merit-info h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.ek-merit-info p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.ek-merit-word { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; }
.ek-merit-word span { font-size: clamp(1.9rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.ek-merit-word i { font-size: 1.15rem; color: #9aa2b1; margin-bottom: 4px; }
/* 영문 호버 시 글자색에 블루 그라데이션이 흐르는 효과 (배경 없음) */
.ek-merit-row:hover .ek-merit-word span,
.ek-merit-word.is-sweeping span { background-image: linear-gradient(90deg, #1e40af 0%, #3b82f6 25%, #7dd3fc 50%, #3b82f6 75%, #1e40af 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ek-merit-row:hover .ek-merit-word span { animation: ekGradMove 1.6s linear infinite; }
.ek-merit-word.is-sweeping span { animation: ekGradSweep 1.3s ease-in-out; }
@keyframes ekGradMove { from { background-position: 0% center; } to { background-position: -200% center; } }
@keyframes ekGradSweep { from { background-position: 100% center; } to { background-position: -100% center; } }
@media (max-width: 860px) {
    .ek-merit-wrap { grid-template-columns: 1fr; gap: 26px; }
    .ek-merit-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
    .ek-merit-word { justify-content: flex-start; }
    .ek-merit-word span { font-size: clamp(1.7rem, 9vw, 2.4rem); }
}

/* 섹션 타이틀 강조(파랑) */
.ek-section-title b { color: var(--blue); font-weight: inherit; }

/* 포트폴리오 '전체 보기' 테두리 버튼 */
.pf-view-all { flex: 0 0 auto; padding: 11px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.pf-view-all:hover { border-color: var(--blue); color: var(--blue); background: #f4f8ff; }

/* ── 1. 히어로 ── */
.ek-hhero { position: relative; margin-top: calc(-1 * var(--header)); padding: 44px 0 60px; background: #0a1120; color: #fff; overflow: hidden; }
.ek-hhero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: url(../img/home-hero-bg.png) center / cover no-repeat; }
.ek-hhero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .45s ease; }
.ek-hhero-video.is-on { opacity: 1; }
.ek-hhero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 11, 20, .45) 0%, rgba(8, 11, 20, .5) 45%, rgba(8, 11, 20, .68) 100%); }
.ek-hhero > .ek-container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: calc(100vh - 104px); padding-top: var(--header); }
.ek-hhero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 30px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #cdd6e6; }
.ek-hhero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #3699ff; box-shadow: 0 0 10px #3699ff; }
.ek-hhero-titles { position: relative; display: block; width: 100%; min-height: clamp(180px, 30vh, 400px); margin: 0; }
.ek-hhero-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 24px)); display: block; margin: 0; font-size: clamp(3.2rem, 7.2vw, 6.6rem); font-weight: 900; line-height: 1.04; letter-spacing: .02em; opacity: 0; transition: opacity .5s ease, transform .5s ease; will-change: opacity, transform; }
.ek-hhero-title.is-active { opacity: 1; transform: translateY(-50%); }
.ek-hhero-title { --fill: #fff; --stroke: rgba(255, 255, 255, .45); }
.ek-fill { --fill: #3b9bff; --stroke: rgba(59, 155, 255, .5); font-style: normal; }
.ek-hhero-title .ek-c { display: inline-block; color: var(--fill); -webkit-text-stroke: 0 var(--stroke); }
.ek-hhero-title.is-active .ek-c { animation-name: ekCharFill; animation-duration: .001s; animation-timing-function: steps(1, jump-end); animation-fill-mode: both; }
@keyframes ekCharFill { from { color: transparent; -webkit-text-stroke-width: 2px; } to { color: var(--fill); -webkit-text-stroke-width: 0; } }
.ek-hhero-title b { color: #8ec5ff; font-weight: inherit; }
.ek-hhero p { margin: 24px 0 0; max-width: 620px; color: #b9c3d6; font-size: 1.08rem; line-height: 1.75; }
.ek-hhero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.ek-hhero-studios { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.ek-hhero-studios.is-active { opacity: 1; visibility: visible; }
.ek-hhero-studios.is-active span { animation: ekPop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.ek-hhero-studios.is-active span:nth-child(1) { animation-delay: .04s; }
.ek-hhero-studios.is-active span:nth-child(2) { animation-delay: .12s; }
.ek-hhero-studios.is-active span:nth-child(3) { animation-delay: .20s; }
.ek-hhero-studios.is-active span:nth-child(4) { animation-delay: .28s; }
@keyframes ekPop { 0% { opacity: 0; transform: translateY(26px) scale(.9); } 60% { opacity: 1; transform: translateY(-7px) scale(1.03); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.ek-hhero-studios span { display: inline-flex; align-items: center; gap: 11px; padding: 14px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; background: rgba(255, 255, 255, .22); font-size: 1.18rem; font-weight: 700; color: #e6ebf3; }
.ek-hhero-studios img { width: 30px; height: 30px; }

/* ── 2. 공감 / 이런 고민 ── */
.ek-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.ek-pain-grid li { display: flex; align-items: center; gap: 14px; padding: 24px; border: 0; border-radius: 14px; background: #f6e5e7; box-shadow: 0 6px 18px rgba(16, 24, 40, .06); transition: transform .28s ease, box-shadow .28s ease, background .28s ease; }
.ek-pain-grid li:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16, 24, 40, .1); border-color: #d6dae1; background: #fff; }
.ek-pain-grid .ic { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #eef4ff; color: var(--blue); font-size: 1.3rem; }
.ek-pain-grid p { color: var(--ink); font-size: 1.2rem; line-height: 1.5; font-weight: 600; }
.ek-pain-grid b { font-weight: 800; color: #e5484d; }
/* 이런 고민 — 가운데 타이틀 + 2×3 카드 그리드 */
.ek-hpain-head { text-align: center; margin-bottom: 64px; }
.ek-hpain-head .ek-section-title { font-size: clamp(23px, 3.6vw, 34px); line-height: 1.3; margin: 0 auto; max-width: none; }
.ek-hpain .ek-pain-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 0; }
.ek-hpain .ek-pain-grid li { flex-direction: column; align-items: center; text-align: center; gap: 0; min-height: 128px; justify-content: center; padding: 24px 22px; }
@media (max-width: 900px) { .ek-hpain .ek-pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ek-hpain .ek-pain-grid { grid-template-columns: 1fr; }
    .ek-hpain .ek-pain-grid li { min-height: 0; }
    .ek-hpain-head .ek-section-title br { display: none; }
}

/* ── 3. WHAT WE DO / 복잡한 플랫폼 (다크) ── */
.ek-hfocus-copy { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.ek-hfocus-copy p { margin: 20px auto 26px; max-width: 640px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.ek-hfocus-copy .ek-more { justify-content: center; }
.ek-hfocus-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ek-hfocus-list div { display: block; padding: 30px 24px; border: 1px solid var(--line); border-radius: 16px; background: #f2f3f6; }
.ek-hfocus-list span { display: block; color: var(--blue); font-size: .92rem; font-weight: 800; margin-bottom: 16px; }
.ek-hfocus-list strong { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.ek-hfocus-list small { color: var(--muted); line-height: 1.6; }

/* ── 4. 스튜디오 캐러셀 (배경 풀블리드) ── */
.ek-scar-section { position: relative; padding: clamp(64px, 9vw, 108px) 0 clamp(80px, 11vw, 128px); background: #0a0f1a center/cover no-repeat; background-image: url(../img/studio-bg/digital.jpg); overflow: hidden; transition: background-image .3s ease; }
.ek-scar-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(12, 18, 30, .34), rgba(12, 18, 30, .52)); }
.ek-scar-head, .ek-scar-stage { position: relative; z-index: 1; }
.ek-scar-head { text-align: center; margin-bottom: 42px; color: #fff; }
.ek-scar-head .ek-eyebrow { color: #cddafc; }
.ek-scar-head h2 { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: clamp(23px, 3.6vw, 34px); letter-spacing: -.02em; }
.ek-scar-head h2 .ek-scar-en { color: #7dd3fc; margin: 0 .12em; }
.ek-scar-word span { display: inline-block; animation: ekLetterBounce 1.9s infinite; will-change: transform; }
.ek-scar-word span:nth-child(1) { animation-delay: 0s; }
.ek-scar-word span:nth-child(2) { animation-delay: .15s; }
.ek-scar-word span:nth-child(3) { animation-delay: .3s; }
.ek-scar-word span:nth-child(4) { animation-delay: .45s; }
.ek-scar-word span:nth-child(5) { animation-delay: .6s; }
.ek-scar-word span:nth-child(6) { animation-delay: .75s; }
@keyframes ekLetterBounce {
    0%   { transform: translateY(0); }
    12%  { transform: translateY(-14px); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
    26%  { transform: translateY(0); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
    36%  { transform: translateY(-5px); }
    46%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}
.ek-scar-stage { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ek-scar { display: flex; align-items: stretch; justify-content: center; gap: 24px; }
.ek-scar-card { flex: 0 0 320px; min-height: 380px; padding: 34px; border-radius: 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); border: 1px solid rgba(255, 255, 255, .28); cursor: pointer; }
.ek-scar-card.is-left { order: 1; transform: scale(.9); opacity: .72; }
.ek-scar-card.is-active { order: 2; }
.ek-scar-card.is-right { order: 3; transform: scale(.9); opacity: .72; }
.ek-scar-card.is-hidden { display: none; }
.ek-scar-card { transition: transform .5s cubic-bezier(.34, 1.3, .5, 1), box-shadow .5s ease, opacity .5s ease, background .4s ease, border-color .4s ease; }
.ek-scar-card.is-active { animation: ekScarIn .55s cubic-bezier(.34, 1.4, .5, 1) both; }
.ek-scar-card.is-active .ek-scar-ic { animation: ekScarPop .55s cubic-bezier(.34, 1.56, .64, 1) both .06s; }
.ek-scar-card.is-active .ek-scar-name { animation: ekScarUp .5s ease both .12s; }
.ek-scar-card.is-active .ek-scar-body { animation: ekScarUp .55s ease both .2s; }
@keyframes ekScarIn { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ekScarPop { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.15) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ekScarUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ek-scar-card:hover { transform: translateY(-8px); }
.ek-scar-card.is-left:hover { transform: scale(.94) translateY(-8px); }
.ek-scar-card.is-right:hover { transform: scale(.94) translateY(-8px); }
.ek-scar-ic { width: 54px; height: 54px; margin: 0 auto 16px; display: block; background: var(--ico) center / contain no-repeat; }
.ek-scar-card.is-active .ek-scar-ic { margin: 0 0 14px; background-image: var(--ic); }
.ek-scar-name { font-size: 1.35rem; font-weight: 700; }
.ek-scar-body { display: none; }
.ek-scar-card.is-active { justify-content: flex-start; text-align: left; color: var(--ink); background: #fff; border-color: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); cursor: default; }
.ek-scar-card.is-active .ek-scar-body { display: flex; flex-direction: column; flex: 1; margin-top: 14px; }
.ek-scar-card.is-active .ek-scar-body p { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.ek-scar-go { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--ink); font-weight: 700; }
.ek-scar-go i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1rem; }
.ek-scar-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.5rem; cursor: pointer; animation: ekArrowGlow 2.4s ease-in-out infinite; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.ek-scar-arrow i { color: #fff; }
.ek-scar-arrow:hover { background: rgba(255, 255, 255, .34); transform: scale(1.1); box-shadow: 0 0 22px 4px rgba(255, 255, 255, .5); animation: none; }
@keyframes ekArrowGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 50% { box-shadow: 0 0 16px 2px rgba(255, 255, 255, .4); } }

/* ── 5. 시너지 ── */
.ek-more-center { margin-top: 44px; text-align: center; }

/* ── 6. SELECTED WORK (포트폴리오 페이지 카드와 동일) ── */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 22px); }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(24, 28, 50, .04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pf-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cdddf7; }
.pf-card a { display: block; color: inherit; }
.pf-thumb { position: relative; aspect-ratio: 4 / 4; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-card-body { padding: 16px 18px 18px; }
.pf-card-studio { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 3px; }
.pf-card-studio::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pf-card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: #98a2b3; }
.pf-card-more i { transition: transform .2s ease; }
.pf-card:hover .pf-card-more i { transform: translateX(3px); }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }

/* ── 7. 하단 2분할 배너 ── */
.ek-split { display: grid; grid-template-columns: 1fr 1fr; }
.ek-split-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 340px; padding: clamp(48px, 7vw, 92px) clamp(30px, 6vw, 84px); color: #fff; text-decoration: none; overflow: hidden; }
.ek-split-panel .t { font-family: 'Pretendard', sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.ek-split-panel p { margin: 16px 0 30px; max-width: 420px; color: rgba(255, 255, 255, .84); font-size: 1.02rem; line-height: 1.65; }
.ek-split-panel .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.ek-split-panel .go i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); animation: ekIconBounce 1.15s ease-in-out infinite; }
@keyframes ekIconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ek-split-panel:hover .go i { transform: translateX(6px) scale(1.08); }
.ek-split-panel .go i { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease; }
.ek-split-panel:hover .go i { background: rgba(255, 255, 255, .34); }
.ek-split-panel > * { position: relative; z-index: 2; transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.ek-split-panel:hover > * { transform: translateX(10px); }
.ek-split-panel::before { content: ''; position: absolute; inset: 0; z-index: 0; background-size: cover; background-repeat: no-repeat; transition: transform .7s cubic-bezier(.22, .61, .36, 1), filter .5s ease; }
.ek-split-panel::after { content: ''; position: absolute; inset: 0; z-index: 1; transition: opacity .5s ease; }
.ek-split-panel:hover::before { transform: scale(1.14) rotate(1deg); filter: brightness(1.12) saturate(1.15); }
.ek-split-panel:hover::after { opacity: .78; }
.ek-split-contact::before { background-image: url(../img/contact-bg.png); background-position: 90% bottom; }
.ek-split-contact::after { background: linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .76) 48%, rgba(0, 0, 0, .3) 100%); }
.ek-split-download::before { background-image: url(../img/download-bg-flip.jpg); background-position: center; }
.ek-split-download::after { background: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, .54) 100%); }

/* ── 반응형 ── */
@media (max-width: 1000px) {
    .ek-pain-grid { grid-template-columns: repeat(2, 1fr); }
    .ek-hfocus-list { grid-template-columns: repeat(2, 1fr); }
    .ek-scar-card { flex-basis: 300px; }
    .ek-scar-card.is-left, .ek-scar-card.is-right { display: none; }
}
@media (max-width: 640px) {
    .ek-hhero p { font-size: 1rem; }
    .ek-hhero { padding: 28px 0 40px; }
    .ek-hhero > .ek-container { min-height: calc(100vh - 68px); }
    .ek-hhero::before { background: url(../img/home-hero-bg.png) center / cover no-repeat; opacity: .6; }
    .ek-hhero::after { background: linear-gradient(rgba(10, 17, 32, .55), rgba(10, 17, 32, .78)); }
    .ek-pain-grid { grid-template-columns: 1fr; gap: 12px; }
    .ek-scar-card { flex-basis: 76vw; min-height: 320px; padding: 28px; }
    .ek-scar-stage { gap: 8px; }
    .ek-split { grid-template-columns: 1fr; }
    .ek-split-panel { min-height: 260px; }
}
