/* jkitworks.co.kr
   거의 무채색 다크. 액센트 색을 쓰지 않고 흰색 대비와 여백으로만 위계를 만든다.
   강조가 필요한 곳은 색 대신 크기와 흰색 대비를 쓴다. */

@font-face {
  font-family: "Pretendard";
  src: url("../font/Pretendard-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #070808;
  --raised: #0e0f10;
  --line: #1e2021;
  --line-2: #2a2c2e;
  --ink: #e9e9eb;
  --body: #b4b4b8;
  --muted: #75767a;
  --max: 1280px;
  --pad: 32px;
  --sec: 140px;          /* 섹션 상하 여백 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -0.022em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* 섹션 위 작은 라벨. 색이 아니라 크기와 자간으로 구분한다. */
.label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 26px;
}

.h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; }
.sub { max-width: 620px; margin-top: 20px; font-size: 16.5px; }

.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  background: rgba(7, 8, 8, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
}
.brand { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.nav-mid { display: flex; gap: 30px; justify-content: center; font-size: 15px; }
.nav-mid a { color: var(--body); transition: color .18s; }
.nav-mid a:hover { color: var(--ink); }
.nav-end { display: flex; justify-content: flex-end; }

/* 흰 알약 버튼 — 페이지에서 유일하게 밝은 면 */
.pill {
  display: inline-block; background: #f2f2ef; color: #0a0a0a;
  border-radius: 999px; padding: 13px 26px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .18s, background .18s;
}
.pill:hover { background: #fff; transform: translateY(-1px); }
.pill.sm { padding: 9px 18px; font-size: 14px; }
.pill.lg { padding: 17px 34px; font-size: 16.5px; }

.ghost {
  display: inline-block; border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 999px; padding: 13px 26px; font-size: 15px; transition: border-color .18s;
}
.ghost:hover { border-color: var(--body); }

/* ── hero ────────────────────────────────────────────────────────── */
.hero { padding: 130px 0 120px; }
.hero h1 {
  font-size: clamp(38px, 7.4vw, 88px);
  line-height: 0.98; letter-spacing: -0.032em; max-width: 15ch;
}
.hero .sub { margin-top: 30px; font-size: clamp(16px, 1.5vw, 18.5px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ── 클라이언트 월 ───────────────────────────────────────────────── */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo {
  border: 1px solid var(--line); border-radius: 12px;
  min-height: 92px; display: flex; align-items: center; justify-content: center;
  padding: 16px 14px; text-align: center;
  color: var(--body); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: border-color .2s, color .2s;
}
.logo:hover { border-color: var(--line-2); color: var(--ink); }

/* ── 숫자 ────────────────────────────────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fig b {
  display: block; color: var(--ink); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.035em;
}
.fig span { display: block; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
/* 숫자가 아니라 단어가 들어가는 칸은 크기를 낮춘다 */
.fig.txt b { font-size: clamp(17px, 1.9vw, 23px); line-height: 1.2; }

/* ── selected work ───────────────────────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--raised); aspect-ratio: 4 / 3; display: block;
}
.w-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.2,.7,.3,1); opacity: .92;
}
.w-card:hover img { transform: scale(1.03); opacity: 1; }
.w-shade {
  position: absolute; inset: 0;
  /* 밝은 스크린샷(크림색 마케팅 컷) 위에서도 흰 글씨가 읽혀야 한다.
     캡션이 앉는 아래 30%는 아예 불투명으로 깐다. */
  background: linear-gradient(to top,
              #050506 0%, #050506 30%,
              rgba(5,5,6,.78) 46%, rgba(5,5,6,.22) 66%, rgba(5,5,6,0) 84%);
}
.w-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px; }
.w-txt .eye { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #9a9a9e; }
.w-txt h3 { margin-top: 9px; font-size: 20px; line-height: 1.22; }
.w-txt .ext { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

/* ── 일하는 방식 (번호 카드) ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 30px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 11px; color: var(--ink); margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; }
.steps-note { margin-top: 34px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ── 프로젝트 그리드 ─────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  background: none; border: 1px solid var(--line); color: var(--body);
  border-radius: 999px; padding: 8px 18px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; letter-spacing: -0.01em; transition: all .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.on { background: #f2f2ef; border-color: #f2f2ef; color: #0a0a0a; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 16 / 10; background: #0b0c0d; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .9; }
.ph { width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #0b0c0d, #0b0c0d 9px, #0e0f11 9px, #0e0f11 18px); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; }
.c-eye { font-size: 10.5px; letter-spacing: .13em; color: var(--muted); }
.card-body h4 { font-size: 16.5px; line-height: 1.3; }
.card-body p { font-size: 13.5px; }
.stack { font-size: 12px; color: var(--muted); line-height: 1.62; }

/* ── 경력 ────────────────────────────────────────────────────────── */
.career { list-style: none; padding: 0; margin: 0; }
.career li { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); }
.career li:last-child { border-bottom: 1px solid var(--line); }
.c-when { font-size: 13.5px; color: var(--muted); }
.c-what b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.c-what span { display: block; font-size: 13.5px; color: var(--muted); margin: 4px 0 11px; }
.c-what p { font-size: 14.5px; }

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.skill { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.skill b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.skill span { font-size: 13px; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 26px 40px 26px 0; position: relative;
  color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 28px 0; font-size: 15px; }

/* ── contact ─────────────────────────────────────────────────────── */
.contact h2 { font-size: clamp(32px, 5.2vw, 62px); line-height: 1.02; }
.contact .mail { display: inline-block; margin-top: 34px; }
.contact .tel { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: var(--sec); }
.f-in { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

section { padding: var(--sec) 0; }
section.tight { padding-top: 0; }

/* ── responsive ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  :root { --sec: 100px; }
  .work, .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .skills { grid-template-columns: 1fr; }
  .career li { grid-template-columns: 1fr; gap: 8px; }
  .nav-mid { display: none; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; --sec: 78px; }
  .hero { padding: 74px 0 68px; }
  .work, .cards, .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .w-card { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ══ 인터랙션 ═════════════════════════════════════════════════════════════
   스크롤 등장은 IntersectionObserver 가 .is-visible 을 붙여서 켠다.
   opacity 와 transform 의 이징을 다르게 준다 — 투명도는 평범하게,
   움직임은 끝에서 감속하는 곡선으로. 같이 주면 뻣뻣하게 보인다. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition-property: opacity, transform;
  transition-duration: .5s, .62s;
  transition-timing-function: ease, cubic-bezier(.16, 1, .3, 1);
}
/* 그리드 안에서 순차로 뜨게 하는 지연 */
.js [data-reveal].d1.is-visible { transition-delay: .06s; }
.js [data-reveal].d2.is-visible { transition-delay: .12s; }
.js [data-reveal].d3.is-visible { transition-delay: .18s; }

/* ── 로고 마퀴 ─────────────────────────────────────────────────────────
   같은 목록을 두 벌 이어 붙이고 -50% 까지만 밀면 이음매가 안 보인다.
   양 끝은 mask 로 배경에 녹인다. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.mq-track {
  display: flex; gap: 12px; width: max-content;
  animation: mq 64s linear infinite;
}
.mq-track.rev { animation-direction: reverse; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.mq-track .logo { flex: 0 0 auto; min-width: 210px; }

/* ── 히어로 진입 ───────────────────────────────────────────────────────
   로드 직후 위에서 살짝 내려온다. 스크롤 등장과 같은 곡선을 쓴다. */
.hero h1, .hero .sub, .hero-cta {
  opacity: 0; transform: translateY(16px);
  animation: rise .8s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero .sub { animation-delay: .1s; }
.hero-cta  { animation-delay: .18s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── 카드 호버 ─────────────────────────────────────────────────────────*/
.card { transition: border-color .22s, transform .22s cubic-bezier(.16,1,.3,1); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card img { transition: opacity .3s, transform .5s cubic-bezier(.2,.7,.3,1); }
.card:hover img { opacity: 1; transform: scale(1.035); }

.w-card { transition: transform .28s cubic-bezier(.16,1,.3,1); }
.w-card:hover { transform: translateY(-4px); }
.w-txt .ext { transition: border-color .2s; }
.w-card:hover .w-txt .ext { border-color: var(--ink); }

.step { transition: border-color .22s, background .22s; }
.step:hover { border-color: var(--line-2); background: #0b0c0d; }

.faq summary { transition: color .18s; }
.faq summary:hover { color: #fff; }

/* 키보드 포커스는 남긴다 */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--body); outline-offset: 3px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .mq-track { animation: none; }
  .hero h1, .hero .sub, .hero-cta { opacity: 1; transform: none; animation: none; }
}
