/* ===========================================================
   KIDA — company site  (KIDA_main redesign)
   Pure CSS, no build step
   =========================================================== */

/* ---------- design tokens ---------- */
:root {
    --black:    #050507;
    --ink:      #0c0c0f;
    --white:    #ffffff;
    --paper:    #fafafa;
    --text:     #0e0e12;
    --muted:    #6b6b73;
    --line:     #e6e6ea;
    --line-d:   rgba(255, 255, 255, .12);
    --muted-d:  rgba(255, 255, 255, .55);

    --blue:     #2f6bff;
    --blue-2:   #4f8bff;
    --purple:   #7c5cff;
    --magenta:  #e23ad0;

    --container: 1280px;
    --pad:       clamp(20px, 5vw, 64px);
    --radius:    18px;

    --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
            'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

/* ---------- layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section--light { background: var(--white); color: var(--text); }
.section--dark  { background: var(--black); color: #fff; }

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--muted-d); }

/* ---------- reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease) var(--d, 0ms),
                transform .9s var(--ease) var(--d, 0ms);
    will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- scroll progress + cursor ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    z-index: 200; transition: width .1s linear;
}
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 199; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; background: var(--blue); }
.cursor__ring {
    width: 34px; height: 34px; border: 1px solid rgba(120,120,140,.5);
    transition: width .25s, height .25s, background .25s;
}
.cursor.is-hover .cursor__ring { width: 52px; height: 52px; background: rgba(47,107,255,.1); }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 120;
    transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
.nav__inner {
    max-width: var(--container); margin-inline: auto;
    padding: 18px var(--pad);
    display: flex; align-items: center; gap: 28px;
}
.nav.is-scrolled {
    background: rgba(5, 5, 7, .72);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom-color: var(--line-d);
}
.nav__brand { color: #fff; display: inline-flex; font-size: 1.5rem; }
.nav__menu { margin-left: auto; display: flex; gap: 32px; }
.nav__menu a {
    font-size: .9rem; color: rgba(255,255,255,.7);
    letter-spacing: .01em; position: relative; padding-block: 4px;
    transition: color .25s;
}
.nav__menu a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--blue-2); transition: width .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; }
.nav__menu a.is-active::after { width: 100%; }
.nav__cta {
    font-size: .85rem; color: #0a0a0a; background: #fff;
    padding: 9px 22px; border-radius: 999px; font-weight: 600;
    transition: transform .25s var(--ease), box-shadow .25s;
}
.nav__cta:hover { box-shadow: 0 8px 30px rgba(255,255,255,.25); }

/* 회사소개서 다운로드 (헤더·푸터 공용) */
.nav__download, .footer__download {
    display: inline-flex; align-items: center; gap: 8px;
    opacity: .82; transition: opacity .25s var(--ease);
}
.nav__download:hover, .footer__download:hover { opacity: 1; }
.nav__download-label, .footer__download-label { height: 14px; width: auto; display: block; }
.nav__download-icon,  .footer__download-icon  { height: 15px; width: 15px; display: block; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px var(--pad) 24px;
    background: rgba(5,5,7,.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-d);
}
.nav__mobile a { color: #fff; padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-d); }

/* ---------- KIDA logo (이미지 에셋) ---------- */
.kida-logo { display: inline-flex; line-height: 0; }
.kida-logo__img { height: 1.6rem; width: auto; display: block; }

/* ===========================================================
   HERO
   =========================================================== */
/* 핀 트랙: 이 길이만큼 스크롤하는 동안 .hero 가 화면에 고정된다 */
.hero-pin { position: relative; height: 260vh; background: var(--black); }
.hero {
    position: sticky; top: 0;
    height: 100vh; min-height: 620px;
    background: var(--black); color: #fff;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 120px; padding-bottom: 48px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero > .container { position: relative; z-index: 2; }

.hero__top {
    display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: center;
    flex: 1;
}
.hero__title {
    font-size: clamp(2.6rem, 6.2vw, 5.4rem);
    line-height: 1.03; font-weight: 700; letter-spacing: -.02em;
}
.hero__eyebrow {
    margin-top: 28px; font-size: .95rem; font-weight: 600;
    color: #fff; letter-spacing: .01em;
}
.hero__desc { margin-top: 14px; color: var(--muted-d); font-size: 1rem; max-width: 46ch; }

/* keycaps — 실제 이미지 (검은 배경은 screen 블렌드로 제거) */
.hero__keycaps {
    justify-self: end; align-self: center;
    width: clamp(170px, 20vw, 280px); height: auto; display: block;
    mix-blend-mode: screen;
    animation: keyfloat 6s var(--ease) infinite;
    will-change: transform;
    /* 이미지의 사각형 검은 배경 경계가 페이지 배경과 티 나지 않도록
       가장자리를 부드럽게 페이드(상하/좌우 모두) — 키캡은 중앙이라 유지됨 */
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0, #000 11%, #000 89%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 9%,  #000 91%, transparent 100%);
            mask-image:
        linear-gradient(to right,  transparent 0, #000 11%, #000 89%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 9%,  #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
}
@keyframes keyfloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero__keycaps { animation: none; } }

/* pillars */
.hero__pillars {
    position: relative; z-index: 2; margin-top: 64px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.pillar__rule {
    position: relative; display: block; height: 2px; margin-bottom: 18px;
    background: var(--line-d); overflow: hidden; border-radius: 2px;
}
.pillar__rule::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-2));
    transform: scaleX(var(--fill, 0)); transform-origin: left;
    transition: transform .12s linear;
    box-shadow: 0 0 10px rgba(47, 107, 255, .7);
}
.pillar__title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.pillar__desc { font-size: .85rem; color: var(--muted-d); line-height: 1.7; }

/* 핀 동안은 선 채움이 스크롤에 직접 동기화되므로 transition 최소화 */
.hero-pin .pillar__rule::after { transition: transform .05s linear; }

/* ===========================================================
   THINK DIGITAL  (about)
   =========================================================== */
.think__inner {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end;
}
.think__big {
    font-size: clamp(3rem, 9vw, 7rem); line-height: .98; font-weight: 800;
    letter-spacing: -.03em; color: var(--blue);
    display: flex; flex-direction: column;
}
.think__big .think__dark { color: var(--text); }
.think__side { padding-bottom: 14px; }
.think__side p { font-size: 1.15rem; font-weight: 500; }
.think__muted { margin-top: 18px; font-size: .95rem; color: var(--muted); font-weight: 400; }

/* stats — 슬라이드 배너 (자동 흐르는 가로 캐러셀) */
.stats-slider {
    position: relative;
    margin-top: clamp(60px, 9vw, 120px);
    --gap: 3px;                 /* 슬라이드 사이 간격 (시안처럼 거의 없게) */
}
/* 슬라이드 영역 배경을 검정으로 — 흰 섹션 위에서도 틈으로 흰색이 비치지 않게 */
.stats-slider__viewport { overflow: hidden; background: var(--black); }
.stats-slider__track {
    display: flex; gap: var(--gap);
    will-change: transform;
    transition: transform .6s cubic-bezier(.6, .05, .15, 1);
    touch-action: pan-y;
}
.stats-slider.is-dragging .stats-slider__track { transition: none; }

/* 슬라이드 한 장 — 한 화면에 약 2.4장 부분 노출 (5:3 비율) */
.stat-slide {
    position: relative; flex: 0 0 calc((100% - 2 * var(--gap)) / 2.4);
    aspect-ratio: 5 / 3;
    border-radius: 0; overflow: hidden;
    background: var(--ink); color: #fff;
    user-select: none;
}
.stat-slide__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
/* 하단 텍스트 가독성을 위한 그라디언트 (텍스트 박힌 슬라이드는 약하게) */
.stat-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 7, .72) 100%);
    pointer-events: none;
}
.stat-slide.is-baked::after { background: linear-gradient(180deg, transparent 60%, rgba(5, 5, 7, .35) 100%); }

.stat-slide__body {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    padding: clamp(18px, 2.4vw, 28px);
}
.stat-slide__text { display: flex; flex-direction: column; min-width: 0; }
.stat-slide__label { font-size: clamp(.95rem, 1.3vw, 1.15rem); font-weight: 700; }
.stat-slide__desc  { margin-top: 6px; font-size: clamp(.72rem, 1vw, .82rem); color: var(--muted-d); }
.stat-slide__num {
    flex: none; align-self: flex-end;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1;
}

/* 좌우 화살표 */
.stats-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 10, 14, .55); color: #fff;
    border: 1px solid var(--line-d); backdrop-filter: blur(8px);
    cursor: pointer; transition: background .25s var(--ease), opacity .25s var(--ease);
}
.stats-slider__arrow:hover { background: var(--blue); border-color: var(--blue); }
.stats-slider__arrow--prev { left: -8px; }
.stats-slider__arrow--next { right: -8px; }
.stats-slider__arrow[disabled] { opacity: 0; pointer-events: none; }

/* 인디케이터 점 */
.stats-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.stats-slider__dot {
    width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
    background: var(--line-d); border: 0; padding: 0;
    transition: width .3s var(--ease), background .3s var(--ease);
}
.stats-slider__dot.is-active { width: 24px; border-radius: 4px; background: var(--blue-2); }

/* ===========================================================
   EXPERIENCE COMPOUNDS
   =========================================================== */
.compounds { border-top: 1px solid var(--line); overflow: hidden; }
.compounds__inner {
    position: relative;
    /* 시안처럼 풀 와이드 — container 최대폭 제한 해제, 좌우 끝까지 사용 */
    max-width: none;
    padding-left: var(--pad); padding-right: clamp(16px, 2vw, 32px);
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    min-height: clamp(520px, 58vw, 860px);
}
.compounds__head { position: relative; z-index: 2; max-width: 42%; }
.compounds__title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.compounds__desc { margin-top: 20px; color: var(--muted); max-width: 32ch; font-size: .92rem; line-height: 1.7; }

/* 오른쪽 연도 — 2026 + 보조 연도를 한 열에 오른쪽 정렬, 우측 세로선(스크롤 진행 필) */
.compounds__year {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 16px;
    padding-right: 4px;
}
.compounds__years-col {
    display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.compounds__yr-small {
    font-size: .8rem; color: var(--muted); line-height: 1;
    transition: opacity .3s ease;
}
.compounds__year-now {
    font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; line-height: 1;
    letter-spacing: -.03em; color: var(--text);
    border-bottom: 3px solid var(--text); padding-bottom: 8px;
    margin: 6px 0;
}

.compounds__reel-line {
    position: relative; width: 1px; margin-left: 6px;
    height: clamp(280px, 32vw, 380px);
    background: var(--line);
}
.compounds__reel-fill {
    position: absolute; left: 0; top: 0; width: 100%; height: 0;
    background: var(--blue-2);
}
/* 육각형 — 가운데 절대배치 오버레이 (크기를 키워도 좌우 텍스트/연도를 밀지 않음) */
.compounds__shape {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 1; pointer-events: none;
    display: grid; place-items: center;
}
.compounds__hex {
    width: clamp(720px, 74vw, 1080px); height: auto; display: block;
    /* GIF 흰 배경이 흰 섹션 위에서 사각 경계 없이 녹아들도록 */
    mix-blend-mode: multiply;
}

/* ===========================================================
   REAL INTELLIGENCE  (service)
   =========================================================== */
/* 상단 히어로 — 배경 이미지 위 타이틀 + 문의 링크 */
.intel__hero {
    position: relative; overflow: hidden;
    min-height: clamp(440px, 46vw, 780px);
    background: #05060a;
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(40px, 6vw, 96px) var(--pad);
}
.intel__hero-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.intel__hero > :not(.intel__hero-bg) { position: relative; z-index: 1; }
.intel__title {
    font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.15;
    letter-spacing: -.02em; max-width: 18ch;
}
.intel__hero .intel__title { color: #fff; }
.intel__accent {
    background: linear-gradient(90deg, var(--blue), var(--blue-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intel__cta {
    align-self: flex-end; width: min(58%, 680px);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    color: #fff; font-size: clamp(.9rem, 1.3vw, 1.02rem);
    padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .45);
    transition: border-color .25s var(--ease);
}
.intel__cta:hover { border-bottom-color: #fff; }
.intel__cta svg { flex: none; }

.intel__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--line);
}
.intel-card {
    padding: 32px 24px; border-right: 1px solid var(--line);
}
.intel-card:last-child { border-right: none; padding-right: var(--pad); }
.intel-card:first-child { padding-left: var(--pad); }
.intel-card__no { font-size: .75rem; color: var(--blue); font-weight: 700; letter-spacing: .1em; }
.intel-card__title { font-size: 1.05rem; font-weight: 700; margin: 12px 0 10px; }
.intel-card__desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* E-Commerce 카드 아래 플랫폼 칩 — 물리(범퍼카) 인터랙션 */
.chips {
    margin-top: 26px;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 14px 14px; max-width: 210px; min-height: 96px; align-content: flex-start;
}
.chips .chip {
    display: block; height: auto;
    will-change: transform; opacity: 0;     /* JS가 떨어뜨리며 보이게 함 */
    transform-origin: 50% 50%;
    filter: drop-shadow(0 6px 14px rgba(40, 80, 220, .25));
}
/* JS가 물리 시뮬레이션을 켤 때: 칩들이 자유롭게 부딪히며 떨어지는 아레나 */
.chips.is-physics {
    position: relative;               /* 칩 절대배치 기준 = 이 박스 */
    display: block; max-width: 330px; width: 100%;
    height: 130px; min-height: 0;
    overflow: hidden;                 /* 위 텍스트로 새어나가지 않게 */
    touch-action: pan-y;              /* 모바일 세로 스크롤 유지 */
}
.chips.is-physics .chip {
    position: absolute; top: 0; left: 0;
    user-select: none; -webkit-user-drag: none;   /* 네이티브 이미지 드래그 끔 */
}
/* 시안 비율에 맞춘 크기 (삽바이/카페24 / 고도몰·CRM·ERP) */
.chips .chip:nth-child(1) { width: 62px; }   /* 삽바이 */
.chips .chip:nth-child(2) { width: 70px; }   /* 카페24 */
.chips .chip:nth-child(3) { width: 60px; }   /* 고도몰 */
.chips .chip:nth-child(4) { width: 56px; }   /* CRM */
.chips .chip:nth-child(5) { width: 52px; }   /* ERP */
@media (prefers-reduced-motion: reduce) { .chips .chip { opacity: 1; } }

/* ===========================================================
   BEYOND DELIVERY
   =========================================================== */
.beyond__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); position: relative; }
.beyond__head { align-self: start; }
.beyond__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.beyond__desc { margin-top: 20px; color: var(--muted-d); font-size: .92rem; max-width: 30ch; }

.beyond__list { display: flex; flex-direction: column; }
.beyond-item {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
    padding: 28px 0; border-top: 1px solid var(--line-d);
    transition: padding .4s var(--ease);
}
.beyond-item:last-child { border-bottom: 1px solid var(--line-d); }
.beyond-item__title { font-size: 1.25rem; font-weight: 600; color: rgba(255,255,255,.85); transition: color .3s; }
.beyond-item__desc {
    max-height: 0; overflow: hidden; opacity: 0; color: var(--muted-d); font-size: .9rem;
    transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.beyond-item__no { font-size: .85rem; color: var(--muted-d); font-weight: 600; }
.beyond-item.is-active .beyond-item__title,
.beyond-item:hover .beyond-item__title { color: #fff; }
.beyond-item.is-active .beyond-item__desc,
.beyond-item:hover .beyond-item__desc { max-height: 80px; opacity: 1; margin-top: 10px; }

.beyond__shape {
    position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
    pointer-events: none;
}
.beyond__cube {
    display: block; width: auto; height: clamp(220px, 27vw, 300px);
    opacity: .95;
    mix-blend-mode: screen;   /* 검은 배경 날리고 발광만 자연스럽게 블렌딩 */
}

/* ===========================================================
   COMMERCE SPRINT PROCESS  (process)
   =========================================================== */
.process__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: clamp(40px, 6vw, 80px); padding-inline: var(--pad); }
.process__intro { padding-top: 8px; }
.process__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
.process__intro p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pill {
    display: inline-block; background: var(--blue); color: #fff;
    padding: 9px 20px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}

/* 5단계 스텝 — 스태거드 이미지 슬라이드 (드래그/스와이프 + 닷) */
.proc-scroll {
    overflow: hidden; padding-left: var(--pad);   /* 좌우 여백 없이 풀 와이드, 01만 페이지 패딩에 맞춤 */
    cursor: grab; touch-action: pan-y;
}
.proc-scroll.is-dragging { cursor: grabbing; }
.proc-steps {
    display: flex; align-items: flex-start; justify-content: flex-start;
    gap: clamp(10px, 1.5vw, 22px);
    width: max-content; will-change: transform;
}
.proc-shot { user-select: none; -webkit-user-drag: none; }

/* 페이지네이션 닷 */
.proc-dots { display: flex; justify-content: center; gap: 10px; margin-top: clamp(28px, 4vw, 52px); }
.proc-dot {
    width: 9px; height: 9px; border-radius: 50%; padding: 0; border: 0;
    background: var(--line); cursor: pointer;
    transition: width .3s var(--ease), background .3s var(--ease);
}
.proc-dot.is-active { width: 30px; border-radius: 5px; background: var(--text); }
.proc-shot {
    flex: none; height: auto; display: block;
    /* 이미지 상단 헤더는 투명 영역 → 사각 box-shadow 대신 알파를 따르는 drop-shadow로
       (투명 헤더가 떠 보이지 않고 비주얼 카드에만 은은한 그림자) */
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .12));
}
.proc-step__media {
    aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; margin-bottom: 16px;
    display: grid; place-items: center; position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.proc-step__media span {
    position: relative; z-index: 2; color: #fff; font-weight: 700;
    letter-spacing: .04em; font-size: .9rem; opacity: .92;
}
.proc-step--dark .proc-step__media { background: linear-gradient(160deg, #2a3350, #0b0e1c); }
.proc-step--blue .proc-step__media { background: linear-gradient(160deg, #2742d8, #0a1133); }
.proc-step--pink .proc-step__media { background: linear-gradient(160deg, #ff5db0, #6a1f8f); }
.proc-step--mono .proc-step__media { background: linear-gradient(160deg, #4a4a52, #161618); }
.proc-step--teal .proc-step__media { background: linear-gradient(160deg, #1f9b8e, #07343a); }
.proc-step__media::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.28), transparent 70%);
}
.proc-step__no { font-size: .78rem; color: var(--blue); font-weight: 700; }
.proc-step__title { font-size: 1.02rem; font-weight: 700; margin: 6px 0 8px; }
.proc-step__desc { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ===========================================================
   BUILD WITH THE RIGHT TECHNOLOGY
   =========================================================== */
.tech__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.tech__title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.tech__desc { margin: 22px 0 22px; color: var(--muted-d); font-size: .92rem; max-width: 42ch; }
/* 로고 3열 무한 세로 마퀴 */
.tech__cols {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line-d); border: 1px solid var(--line-d);
    border-radius: 14px; overflow: hidden;
    height: clamp(360px, 42vw, 520px);
    /* 위·아래 가장자리 페이드 */
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.tech__col { position: relative; overflow: hidden; background: #0c0c10; }
.tech__track { display: flex; flex-direction: column; will-change: transform; }
.tech__col--up   .tech__track { animation: techScrollUp   34s linear infinite; }
.tech__col--down .tech__track { animation: techScrollDown 34s linear infinite; }
.tech__cell {
    flex: none;
    display: flex; align-items: center; justify-content: center;
    padding: 6px 10px;   /* 위아래 여백 최소화 — 시안처럼 촘촘하게 */
}
.tech__cell img {
    display: block; width: 100%; height: auto;   /* 이미지 자체 높이(2:1)로 카드 꽉 채움 */
    opacity: .92;
}
/* 세트 3겹 → 1/3(=한 세트)만큼 이동하며 무한 루프 */
@keyframes techScrollUp   { from { transform: translateY(0); }            to { transform: translateY(-33.3333%); } }
@keyframes techScrollDown { from { transform: translateY(-33.3333%); }    to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .tech__col--up .tech__track, .tech__col--down .tech__track { animation: none; }
}

/* ===========================================================
   EXPERIENCE PROJECT  (works)
   =========================================================== */
.works__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.works__intro { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.works__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; justify-self: end; text-align: right; }

/* 양옆 여백 최소화 — 풀와이드에 가깝게 */
.works .container,
.works__masonry { max-width: none; padding-inline: clamp(24px, 4vw, 72px); }

/* 시안 스태거드 masonry: 12열 그리드 명시 배치 */
.works__masonry {
    display: grid; grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(20px, 2.2vw, 44px);
    row-gap: clamp(36px, 5vw, 96px);   /* 세로 여백 크게 — "중간에 여백 많이" */
    align-items: start;
}
.work--sg { grid-column: 1 / 7;   grid-row: 1; }    /* Smilegate — 가로 큰 직사각형(좌) */
.work--bk { grid-column: 10 / 13; grid-row: 1; }    /* 한국은행 — 정사각형(우) */
.work--mm { grid-column: 5 / 10;  grid-row: 2; }    /* MMCA — 중앙 큰 카드 */
.work--n3 { grid-column: 10 / 13; grid-row: 2; }    /* N32 — 우 */
.work--ho {                                          /* HOYO — 좌측 정렬, MMCA에 붙여 간격 균일(빈 열 제거) */
    grid-column: 1 / 5; grid-row: 2;
    align-self: end;                                  /* MMCA 행 하단 기준 */
    margin-bottom: -24%;                              /* 아래로 내려 세로 겹침 ~30% */
}

.work { transition: transform .35s var(--ease); }
.work__media {
    border-radius: 16px; overflow: hidden; position: relative;
    display: grid; place-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.work--wide   .work__media { aspect-ratio: 16 / 9; }
.work--tall   .work__media { aspect-ratio: 41 / 48; }
.work--square .work__media { aspect-ratio: 1 / 1; }
.work--land   .work__media { aspect-ratio: 11 / 10; }
/* 카드 이미지(오버레이/풀이미지) — 카드를 꽉 채움 */
.work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.work__brand { position: relative; z-index: 2; color: #fff; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .02em; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.work__media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.28)); pointer-events: none; }
.work__media--space    { background: radial-gradient(120% 100% at 30% 20%, #5b1a12, #0a0406 70%); }
.work__media--space .work__brand { color: #ff6a3d; }
.work__media--bank     { background: linear-gradient(160deg, #0a3a6b, #061a33); }
.work__media--mmca     { background: linear-gradient(160deg, #3a3a40, #0e0e10); }
.work__media--pet      { background: linear-gradient(160deg, #c7a06a, #5a3f22); }
.work__meta { padding: 16px 4px 0; }
.work__title { font-size: 1.05rem; font-weight: 700; }
.work__tag { margin-top: 6px; font-size: .8rem; color: var(--muted); letter-spacing: .01em; }

/* ===========================================================
   AX INTEGRATED SERVICE
   =========================================================== */
.ax { overflow: hidden; }
.ax__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.ax__inner { position: relative; z-index: 2; }
.ax__head { margin-bottom: clamp(40px, 6vw, 80px); }
.ax__title { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.ax__sub { margin-top: 18px; color: var(--muted-d); }
.ax__quote {
    margin-top: 30px; padding-left: 22px; border-left: 2px solid var(--blue);
    color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; font-weight: 500;
}

.ax__body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.ax__iso {
    position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%;
    transform-style: preserve-3d;
}
.iso {
    position: absolute; width: 38%; height: 38%; left: 50%; top: 50%;
    background: linear-gradient(150deg, #4f8bff, #1c2db0);
    transform-origin: center;
    box-shadow: 0 20px 40px rgba(31,55,180,.4), inset 0 2px 0 rgba(255,255,255,.3);
    border-radius: 6px;
}
.iso--0 { transform: translate(-100%, -50%)   rotate(45deg) skew(-12deg, -12deg); background: linear-gradient(150deg, #7ad0ff, #2f6bff); }
.iso--1 { transform: translate(-50%, -110%)    rotate(45deg) skew(-12deg, -12deg); }
.iso--2 { transform: translate(0%, -50%)       rotate(45deg) skew(-12deg, -12deg); }
.iso--3 { transform: translate(-50%, 10%)      rotate(45deg) skew(-12deg, -12deg); }
.iso--4 { transform: translate(-100%, 10%)     rotate(45deg) skew(-12deg, -12deg); background: linear-gradient(150deg, #3a5bff, #101a6b); }
.iso--5 { transform: translate(0%, -110%)      rotate(45deg) skew(-12deg, -12deg); background: linear-gradient(150deg, #3a5bff, #101a6b); }

.ax__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ax-step {
    background: #0e0e14; border: 1px solid var(--line-d); border-radius: 16px;
    padding: 22px 22px 24px; transition: border-color .3s, transform .35s var(--ease);
}
.ax-step:hover { border-color: rgba(79,139,255,.5); }
.ax-step:nth-child(odd):last-child { grid-column: 1 / -1; }
.ax-step__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ax-step__no { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--muted-d); }
.ax-step__kw { font-size: .72rem; font-weight: 600; color: var(--blue-2); }
.ax-step__icon { margin-left: auto; width: 30px; height: 30px; color: var(--blue-2); }
.ax-step__icon svg { width: 100%; height: 100%; }
.ax-step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.ax-step__desc { font-size: .85rem; color: var(--muted-d); line-height: 1.65; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { overflow: hidden; }
.contact__watermark {
    position: absolute; left: -2%; bottom: 6%; font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 800; line-height: .95; color: #f1f1f3; letter-spacing: -.03em;
    pointer-events: none; user-select: none; max-width: 50%; z-index: 0;
}
.contact__inner { position: relative; z-index: 2; }
.contact__title {
    font-size: clamp(2rem, 5.5vw, 4.4rem); font-weight: 700; line-height: 1.05;
    letter-spacing: -.02em; text-align: right; margin-bottom: clamp(40px, 6vw, 80px);
}
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.contact__lead { font-size: 1.6rem; font-weight: 700; }
.contact__desc { margin-top: 14px; color: var(--muted); font-size: .92rem; }

.contact__form { display: flex; flex-direction: column; }
.cfield { padding: 22px 0; border-top: 1px solid var(--line); }
.cfield:first-of-type { border-top: 1px solid var(--text); }
.cfield__label { display: block; font-size: 1.02rem; font-weight: 600; margin-bottom: 12px; }
.cfield input, .cfield textarea {
    width: 100%; border: none; background: transparent; font: inherit; color: var(--text);
    resize: none; padding: 2px 0;
}
.cfield input::placeholder, .cfield textarea::placeholder { color: #b6b6bd; }
.cfield input:focus, .cfield textarea:focus { outline: none; }
.cfield__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.cfield__row input { background: var(--white); padding: 8px 10px 8px 14px; }
.cfield__row input:first-child { padding-left: 0; }

.filepick { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.filepick input[type=file] { display: none; }
.filepick__btn { color: var(--blue); font-weight: 600; font-size: .92rem; }
.filepick__hint { font-size: .82rem; color: var(--muted); }

.contact__submit {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 24px;
}
.consent { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent input { width: 15px; height: 15px; accent-color: var(--blue); }
.btn-submit {
    background: var(--ink); color: #fff; padding: 14px 40px; border-radius: 8px;
    font-weight: 600; transition: transform .25s var(--ease), background .25s;
}
.btn-submit:hover { background: var(--blue); }
.btn-submit:disabled { opacity: .6; cursor: default; }

.form-status { margin-top: 16px; font-size: .88rem; white-space: pre-line; min-height: 1em; }
.form-status.is-ok { color: #1f9d57; }
.form-status.is-err { color: #d83a3a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--black); color: #fff; padding: clamp(50px, 8vw, 90px) 0 32px; }
.footer__inner {
    max-width: var(--container); margin-inline: auto; padding-inline: var(--pad);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}
.footer__tag { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.footer__meta { margin-top: 24px; font-style: normal; color: var(--muted-d); font-size: .88rem; line-height: 1.9; }
.footer__meta a:hover { color: #fff; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer__menu { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: flex-end; }
.footer__menu a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .25s; }
.footer__menu a:hover { color: var(--blue-2); }
.footer__bar {
    max-width: var(--container); margin: 48px auto 0; padding: 24px var(--pad) 0;
    border-top: 1px solid var(--line-d);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.footer__copy { color: var(--muted-d); font-size: .8rem; }
.footer__logo .kida-logo__img { height: 2.4rem; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
    .proc-steps { grid-template-columns: repeat(3, 1fr); }
    .intel__grid { grid-template-columns: repeat(2, 1fr); }
    .intel__cta { width: 100%; align-self: stretch; }
    .chips { max-width: none; }
    .intel-card { border-bottom: 1px solid var(--line); }
    .intel-card:nth-child(odd) { padding-left: var(--pad); }
    .intel-card:nth-child(even) { padding-right: var(--pad); }
}
@media (max-width: 860px) {
    .nav__menu, .nav__cta, .nav__download { display: none; }
    .nav__toggle { display: flex; margin-left: auto; }
    .nav.is-open .nav__mobile { display: flex; }

    .hero__top { grid-template-columns: 1fr; gap: 30px; }
    .hero__keycaps { justify-self: start; width: clamp(150px, 44vw, 230px); }
    .hero__pillars { grid-template-columns: 1fr; gap: 24px; }
    /* 모바일: 핀 해제 — 일반 흐름으로 쌓고 선은 JS가 모두 채움 */
    .hero-pin { height: auto; }
    .hero { position: static; height: auto; min-height: 100vh; }

    .think__inner,
    .compounds__inner,
    .beyond__inner,
    .process__top,
    .tech__inner,
    .works__top,
    .ax__body,
    .contact__grid { grid-template-columns: 1fr; }

    /* 모바일: compounds 세로 적층, 육각형은 흐름 안으로 되돌려 작게 */
    .compounds__inner { flex-direction: column; align-items: flex-start; min-height: 0; gap: 24px; }
    .compounds__head { max-width: none; }
    .compounds__shape { position: static; transform: none; order: 3; margin: 0 auto; }
    .compounds__hex { width: clamp(280px, 80vw, 460px); }
    .compounds__year { align-self: flex-start; }
    .compounds__reel-line { display: none; }

    /* 모바일: 슬라이드를 더 크게(약 1.15장 노출), 화살표 숨김 */
    .stat-slide { flex: 0 0 calc(100% - 2 * var(--gap)); }
    .stats-slider__arrow { display: none; }
    .compounds__year { justify-self: start; }
    .beyond__shape { display: none; }
    .tech__cols { height: clamp(320px, 70vw, 460px); margin-top: 8px; }
    /* 모바일: 명시 배치 해제 → 1열 자연 적층 */
    .works__masonry { grid-template-columns: 1fr; row-gap: clamp(28px, 6vw, 44px); }
    .work--sg, .work--bk, .work--mm, .work--n3, .work--ho { grid-column: 1 / -1; grid-row: auto; align-self: auto; }
    .works__title { justify-self: start; text-align: left; }
    .ax__steps { grid-template-columns: 1fr; }
    .ax-step:nth-child(odd):last-child { grid-column: auto; }
    .contact__title, .contact__watermark { text-align: left; }
    .contact__watermark { max-width: 100%; }
    .cfield__row { grid-template-columns: 1fr 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__menu { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .proc-steps, .cfield__row { grid-template-columns: 1fr; }
    .contact__submit { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; }
}
