/* ===== 김현지 포트폴리오 · 슬라이드 공용 스타일 (clean card) ===== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #4b5160;
  --ink-3: #8b91a0;
  --line: #e6e8ee;
  --acc: #2f5bea;
  --acc-2: #e9efff;
  --acc-3: #c9d6ff;
  --ok: #18a058;
  --shadow: 0 1px 2px rgba(20,24,40,.04), 0 6px 20px rgba(20,24,40,.06);
  --font: "Pretendard Variable", Pretendard, "Noto Sans CJK KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #e9ebf0; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; word-break: keep-all; }

/* ---------- 무대 ---------- */
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.deck { position: relative; width: 1280px; height: 720px; transform-origin: center center; flex: none; }
.slide {
  position: absolute; inset: 0; width: 1280px; height: 720px;
  background: var(--bg); padding: 52px 64px 48px;
  display: none; flex-direction: column; overflow: hidden;
  border-radius: 6px;
}
.slide.active { display: flex; }
.slide::before { /* 상단 은은한 그라데이션 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px;
  background: linear-gradient(180deg, #eef2ff 0%, rgba(246,247,249,0) 100%); pointer-events: none;
}
.slide > * { position: relative; }
.slide.vc { justify-content: center; }
.slide.hero { background: linear-gradient(135deg, #eef2ff 0%, #f6f7f9 55%, #f6f7f9 100%); }
.slide.hero::before { display: none; }

/* ---------- 컨트롤 ---------- */
.ui { position: fixed; left: 0; right: 0; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 13px; z-index: 10; pointer-events: none; }
.ui > * { pointer-events: auto; }
.ui button { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; height: 32px; min-width: 32px; padding: 0 12px; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.ui button:hover { border-color: var(--acc); color: var(--acc); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; max-width: 60vw; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #c7cbd6; cursor: pointer; }
.dots i.on { background: var(--acc); width: 18px; border-radius: 4px; }
.counter { font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.topbar { position: fixed; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 10; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar a { color: var(--ink-2); font-size: 13px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow); }
.topbar a:hover { color: var(--acc); border-color: var(--acc); }
.topbar .hint { color: var(--ink-3); font-size: 12px; }

/* ---------- 타이포 ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--acc); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; }
.pill.soft { background: var(--acc-2); color: var(--acc); }
.pill.gray { background: #eef0f4; color: var(--ink-2); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--acc); text-transform: uppercase; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
h1 { font-size: 52px; line-height: 1.2; }
h2 { font-size: 32px; margin-top: 12px; }
h3 { font-size: 19px; }
h4 { font-size: 15px; }
.hl { color: var(--acc); }
.sub { font-size: 16px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
b, strong { font-weight: 700; color: var(--ink); }

/* ---------- 레이아웃 ---------- */
.grow { flex: 1; min-height: 0; }
.row { display: flex; gap: 18px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.foot { position: absolute; left: 64px; right: 64px; bottom: 20px; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.card.acc { border-color: var(--acc-3); background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%); }
.card.tint { background: var(--acc-2); border-color: transparent; box-shadow: none; }
.card .lab { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--acc); text-transform: uppercase; }
.card h3, .card h4 { margin-top: 6px; }

/* 개조식 */
ul.b { list-style: none; margin-top: 8px; }
ul.b li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 4px; }
ul.b li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
ul.b.tight li { margin-bottom: 2px; font-size: 13.5px; }
ul.b li b { color: var(--ink); }

/* 숫자 */
.kpi { display: flex; flex-direction: column; }
.kpi .n { font-size: 38px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.kpi .n small { font-size: 17px; font-weight: 800; margin-left: 2px; }
.kpi .n.acc { color: var(--acc); }
.kpi .l { font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

/* 메타 정보 행 (기간 · 역할 · 팀) */
.meta { display: grid; grid-template-columns: 64px 1fr; row-gap: 6px; font-size: 13.5px; }
.meta dt { color: var(--ink-3); font-weight: 600; }
.meta dd { color: var(--ink); }

/* 기여도 막대 */
.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 1fr 120px 40px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.bar .t { height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.bar .t i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }
.bar .v { font-weight: 800; color: var(--acc); text-align: right; }

/* STEP 카드 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps.s3 { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--acc); }
.step .k { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--acc); }
.step h4 { margin-top: 4px; font-size: 15px; }
.step .o { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); margin-top: 10px; }
.step .ov { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.step ul.b li { font-size: 12.5px; }

/* OUTCOME / INSIGHT */
.outcome .r { display: grid; grid-template-columns: 112px 1fr; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.outcome .r:last-child { border-bottom: 0; }
.outcome .r b { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.outcome .r span { font-size: 13px; color: var(--ink-2); }
.insight q { display: block; font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; quotes: "“" "”"; }
.insight p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; }

/* 결과물 이미지 */
.shot { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
.shot img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; cursor: zoom-in; background: #fff; min-height: 0; flex: 1; }
.shot .cap { font-size: 11.5px; color: var(--ink-3); padding: 6px 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.shot .cap b { color: var(--ink-2); font-weight: 700; }
.cover { border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; display: block; text-decoration: none; color: inherit; }
.cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover .t { padding: 10px 12px 12px; }
.cover .t b { font-size: 14px; display: block; }
.cover .t span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; line-height: 1.4; }

/* 문제 → 제안 화살표 흐름 */
.flow { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: stretch; gap: 8px; }
.flow .ar { display: grid; place-items: center; color: var(--acc); font-size: 22px; font-weight: 900; }

/* 브릿지 (크래프톤에서라면) */
.bridge { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--acc-3); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); }
.bridge .pill { flex: none; }

/* 표 */
table.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
table.tb th { text-align: left; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); }
table.tb td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--ink-2); }
table.tb tr:last-child td { border-bottom: 0; }
table.tb td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.tb .tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--acc); background: var(--acc-2); padding: 2px 8px; border-radius: 99px; }

/* 타임라인 */
.tl .it { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tl .it:last-child { border-bottom: 0; }
.tl .w { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl b { font-size: 14.5px; }
.tl p { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.tl .acc b { color: var(--acc); }

.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); margin: 0 6px 6px 0; }
.chip.acc { background: var(--acc-2); color: var(--acc); border-color: transparent; }

/* 빈칸 (사용자 확인 필요) */
.todo { background: #fff3b0; color: #6b5300; border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: .92em; }
body.clean .todo { display: none; }

/* 라이트박스 */
.lb { position: fixed; inset: 0; background: rgba(15,18,28,.86); display: none; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; padding: 24px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* 링크 버튼 */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--acc); text-decoration: none; background: #fff; border: 1px solid var(--acc-3); border-radius: 99px; padding: 5px 12px; }
.btn:hover { background: var(--acc-2); }

/* ---------- 인쇄 (PDF) ---------- */
@page { size: 1280px 720px; margin: 0; }
@media print {
  html, body { background: none; overflow: visible; height: auto; }
  .ui, .topbar, .lb { display: none !important; }
  .stage { position: static; display: block; }
  .deck { transform: none !important; width: auto; height: auto; }
  .slide { position: relative; display: flex !important; page-break-after: always; break-after: page; border-radius: 0; }
  .slide:last-child { page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 이미지 끌어서 저장 방지 (가벼운 억제) */
img { -webkit-user-drag: none; user-select: none; }

/* ===== 문제 → 생각 → 기획 → 결과 흐름도 ===== */
.flow4 { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr; align-items: stretch; }
.flow4 .ar { display: grid; place-items: center; color: var(--acc); font-size: 20px; font-weight: 900; }
.fs { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.fs .hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 800; }
.fs .hd i { font-style: normal; font-size: 10.5px; letter-spacing: .12em; opacity: .75; }
.fs .bd { padding: 12px 14px 14px; flex: 1; }
.fs .bd h4 { font-size: 15px; line-height: 1.35; }
.fs .bd ul.b { margin-top: 6px; }
.fs .bd ul.b li { font-size: 13px; margin-bottom: 3px; }
.fs.p .hd { background: #f1f2f5; color: var(--ink-2); }
.fs.t .hd { background: #eef2ff; color: #4b63c9; }
.fs.k .hd { background: var(--acc-2); color: var(--acc); }
.fs.r { border-color: var(--acc); }
.fs.r .hd { background: var(--acc); color: #fff; }
.fs.r .bd { background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%); }

/* 프로젝트 설명 카드 */
.desc { display: grid; grid-template-columns: 72px 1fr; row-gap: 10px; column-gap: 12px; margin-top: 10px; font-size: 14px; }
.desc dt { color: var(--ink-3); font-weight: 700; font-size: 13px; padding-top: 1px; }
.desc dd { color: var(--ink); line-height: 1.5; }

/* 큰 성과 숫자 카드 */
.res { display: grid; gap: 12px; }
.res .card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.res .n { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; color: var(--acc); min-width: 150px; line-height: 1; }
.res .n small { font-size: 16px; font-weight: 800; margin-left: 2px; }
.res .l { font-size: 14px; font-weight: 700; }
.res .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* 세로 미니 흐름 (요약본용) */
.mini { display: flex; flex-direction: column; gap: 6px; }
.mini .m { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.mini .m b { font-size: 11.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; padding-top: 1px; }
.mini .m.r { border-color: var(--acc); background: #f7f9ff; }
.mini .m.r b { color: var(--acc); }
.mini .m.r span { color: var(--ink); font-weight: 700; }
.mini .dn { text-align: center; color: var(--acc); font-size: 11px; line-height: 1; margin: -3px 0; }

/* 가로 미니 흐름 (P.04용) */
.hflow { display: grid; grid-template-columns: 1fr 16px 1fr 16px 1fr 16px 1fr; align-items: stretch; margin-top: 12px; }
.hflow .ar { display: grid; place-items: center; color: var(--acc); font-weight: 900; font-size: 14px; }
.hflow .m { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; background: #fff; }
.hflow .m b { display: block; font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 2px; }
.hflow .m.r { border-color: var(--acc); background: #f7f9ff; }
.hflow .m.r b { color: var(--acc); }

/* =====================================================================
   KRAFTON 톤 — Black & Red (위 스타일을 덮어씀)
   ===================================================================== */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #8a8a8a;
  --line: #e9e9e9;
  --acc: #e4002b;
  --acc-2: #fdebee;
  --acc-3: #f5b3bf;
  --dark: #111111;
  --shadow: none;
}
body { background: #dcdcdc; }
.slide { background: #fff; border-radius: 0; }
.slide::before { display: none; }

/* 섹션 라벨: 레퍼런스처럼 작은 대문자 텍스트 */
.pill { background: none; color: var(--acc); padding: 0; border-radius: 0; font-size: 12.5px; letter-spacing: .16em; font-weight: 800; }
.pill.soft, .pill.gray { background: none; color: var(--acc); }
h2 { font-size: 34px; letter-spacing: -0.035em; margin-top: 10px; }
.hl { color: var(--acc); }

/* 카드: 그림자 없이 얇은 선 */
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.card .lab { color: var(--acc); }
.card.tint { background: #f6f6f6; }

/* 강조 카드 = 블랙 블록 */
.card.acc { background: var(--dark); border-color: var(--dark); color: #fff; }
.card.acc h3, .card.acc h4, .card.acc b, .card.acc .kpi .l, .card.acc a { color: #fff; }
.card.acc ul.b li { color: #cfcfcf; }
.card.acc ul.b li::before { background: var(--acc); }
.card.acc .kpi .s, .card.acc .muted { color: #9a9a9a; }
.card.acc .kpi .n, .card.acc .kpi .n.acc { color: #fff; }

/* 숫자 */
.kpi .n.acc { color: var(--acc); }
.res .card { border-left: 3px solid var(--acc); border-radius: 12px; }
.res .n { color: var(--ink); }

/* 칩 */
.chip { border-color: var(--line); background: #fff; color: var(--ink-2); }
.chip.acc { background: var(--dark); color: #fff; }

/* 결과물 이미지 */
.shot { box-shadow: none; border-color: var(--line); background: #fafafa; }
.cover { box-shadow: none; }

/* 표 */
table.tb { box-shadow: none; }
table.tb th { background: #fafafa; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
table.tb .tag { background: var(--dark); color: #fff; }

/* 흐름도: 회색 → 회색 → 블랙 → 레드 */
.fs { box-shadow: none; border-color: var(--line); }
.fs.p .hd { background: #f3f3f3; color: #666; }
.fs.t .hd { background: #e6e6e6; color: #333; }
.fs.k .hd { background: var(--dark); color: #fff; }
.fs.r { border-color: var(--acc); }
.fs.r .hd { background: var(--acc); color: #fff; }
.fs.r .bd { background: #fff7f8; }
.flow4 .ar, .hflow .ar, .mini .dn { color: var(--acc); }
.fs .bd ul.b li::before, ul.b li::before { background: var(--acc); }

.mini .m { border-color: var(--line); }
.mini .m.r, .hflow .m.r { border-color: var(--acc); background: #fff7f8; }
.mini .m.r b, .hflow .m.r b { color: var(--acc); }

.step { box-shadow: none; border-top-color: var(--acc); }
.step .k { color: var(--acc); }
.bridge { border-color: var(--line); background: #f7f7f7; }
.bridge .pill { color: var(--acc); }
.btn { color: var(--ink-2); border-color: var(--line); }
.tl .acc b { color: var(--acc); }

/* 컨트롤 */
.ui button { box-shadow: none; }
.ui button:hover { border-color: var(--acc); color: var(--acc); }
.dots i.on { background: var(--acc); }
.topbar a { box-shadow: none; }
.topbar a:hover { color: var(--acc); border-color: var(--acc); }

/* 블랙 표지 · 마무리 */
.slide.hero { background: var(--dark); color: #fff; }
.slide.hero h1, .slide.hero b { color: #fff; }
.slide.hero .hl { color: var(--acc); }
.slide.hero .sub, .slide.hero .muted { color: #9a9a9a; }
.slide.hero .chip { background: #1e1e1e; border-color: #333; color: #ccc; }
.slide.hero .chip.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.slide.hero .card { background: #1a1a1a; border-color: #2c2c2c; }
.slide.hero .card h4, .slide.hero .card .kpi .l { color: #fff; }
.slide.hero .card ul.b li { color: #bbb; }
.slide.hero .card .kpi .n.acc { color: var(--acc); }
.slide.hero .foot { color: #666; }
.slide.hero .photo { filter: grayscale(.2); }

/* 한눈에: 레퍼런스식 숫자 + 세로 구분선 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
.stats .st { padding: 4px 28px; border-left: 1px solid var(--ink); }
.stats .st .n { font-size: 46px; }
