/* ==========================================================
   김창홍 포트폴리오 - 공통 스타일
   색상은 :root 변수에서 한 번에 바꿀 수 있습니다.
   ========================================================== */
:root {
  --navy-900: #0f1830;
  --navy-800: #141e3a;
  --navy-700: #1d2949;
  --navy-600: #2a3760;
  --ink: #18213a;
  --ink-soft: #4a5572;
  --ink-mute: #7c86a2;
  --line: #e2e6f0;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --accent: #d08a1e;
  --accent-soft: #fbf1e1;
  --after: #1f7a5c;
  --after-soft: #e6f3ee;
  --on-dark: #e8ecf6;
  --on-dark-soft: #a9b3cc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 58, .06), 0 8px 24px rgba(20, 30, 58, .06);
  --shadow-lg: 0 12px 40px rgba(15, 24, 48, .18);
  --container: 1120px;
  --header-h: 64px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(15, 24, 48, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.site-header.is-scrolled { background: rgba(15, 24, 48, .94); border-color: rgba(255, 255, 255, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent); color: var(--navy-900); font-size: 12px; letter-spacing: .04em;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none;
  color: var(--on-dark-soft); font-size: 15px; font-weight: 500; transition: color .15s, background .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .08);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-header.is-open .site-nav { max-height: 420px; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-900); }
.btn-primary:hover { background: #e19a2c; }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-mute); }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--navy-800); color: var(--on-dark); }
.section-white { background: var(--surface); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.section-dark .section-head p { color: var(--on-dark-soft); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 프로젝트 상세 히어로 이미지 ---------- */
.hero-shot {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08); aspect-ratio: 4 / 4.3;
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 강점 카드 (프로젝트 상세) ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strength {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.strength h3 { font-size: 21px; margin: 0 0 10px; }
.strength p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .strengths { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li {
  font-size: 13px; padding: 4px 10px; border-radius: 999px;
  background: #eef1f7; color: var(--ink-soft); font-weight: 500;
}
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: #9a5f08; }
.badge-green { background: var(--after-soft); color: var(--after); }

/* ---------- 영상 (프로젝트 상세) ---------- */
.video-card { background: var(--navy-700); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; cursor: pointer; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-poster:hover img { opacity: 1; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(208, 138, 30, .95); border-radius: 12px; transition: transform .15s;
}
.video-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--navy-900);
}
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-empty { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #1a2443, #1a2443 12px, #1d2849 12px, #1d2849 24px); }
.video-empty-inner { text-align: center; color: var(--on-dark-soft); }
.video-empty-icon { font-size: 28px; color: var(--accent); }

/* ---------- 타임라인 (이력) ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline .when { font-size: 14px; color: var(--ink-mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 18px; margin: 2px 0 4px; }
.timeline p { color: var(--ink-soft); font-size: 15px; }

/* ==========================================================
   메인 페이지
   ========================================================== */

/* ① 지원 분야 밴드 */
.apply-band {
  position: relative; color: var(--on-dark);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 56px) 0 168px;
  background:
    linear-gradient(180deg, rgba(15, 24, 48, .86) 0%, rgba(15, 24, 48, .94) 60%, var(--navy-900) 100%),
    url("../img/p1-more.jpg") center 30% / cover no-repeat,
    var(--navy-900);
}
.apply-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.apply-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase;
}
.apply-label::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.apply-title {
  margin-top: 14px; font-size: clamp(36px, 6.4vw, 72px); font-weight: 800; color: #fff;
  letter-spacing: -0.035em; line-height: 1.08;
}
.apply-title em { font-style: normal; color: var(--accent); }
.apply-sub { margin-top: 14px; font-size: clamp(16px, 2vw, 19px); color: var(--on-dark-soft); }
.apply-stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.apply-stack li {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-dark);
}

/* ② 프로필 카드 */
.profile { margin-top: -120px; position: relative; z-index: 2; padding-bottom: 24px; }
.profile-card {
  background: var(--surface); border-radius: 22px; box-shadow: 0 20px 60px rgba(15, 24, 48, .16);
  border: 1px solid var(--line); overflow: hidden;
}
.profile-main {
  display: grid; grid-template-columns: 1fr 360px; grid-template-areas: "head info" "mind mind";
  gap: 28px 44px; padding: 44px 48px 40px; align-items: center;
}
.profile-head { grid-area: head; }
.profile-info { grid-area: info; }
.profile-name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.profile-name h1 { font-size: clamp(34px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.profile-name span { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--ink-mute); }
.profile-role { margin-top: 4px; font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.profile-mind {
  grid-area: mind; margin: 0; padding: 18px 24px; border-radius: 12px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  font-size: clamp(16px, 1.8vw, 18px); font-weight: 600; line-height: 1.65; color: var(--ink);
}
/* 인적 사항 패널 */
.profile-info { margin: 0; padding: 6px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.profile-info div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; min-width: 0; }
.profile-info div + div { border-top: 1px solid var(--line); }
.profile-info dt { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-mute); }
.profile-info dd { margin: 0; font-size: 16.5px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-info a { text-decoration: none; }
.profile-info a:hover { color: var(--accent); }

/* 이메일 복사 버튼 */
.copy-field { display: flex; align-items: center; gap: 8px; }
.copy-wrap { position: relative; display: inline-flex; flex: none; }
.copy-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-mute); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-btn svg { grid-area: 1 / 1; width: 15px; height: 15px; }
.copy-btn .i-check { display: none; }
.copy-btn.is-copied { color: var(--after); border-color: var(--after); background: var(--after-soft); }
.copy-btn.is-copied .i-copy { display: none; }
.copy-btn.is-copied .i-check { display: block; }
.copy-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 10px; border-radius: 6px; background: var(--navy-900); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.copy-tip.is-shown { opacity: 1; transform: translate(-50%, 0); }
.facts .copy-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: var(--on-dark-soft); }
.facts .copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.facts .copy-btn.is-copied { color: #7fd8b2; border-color: #7fd8b2; background: rgba(127, 216, 178, .12); }
.facts .copy-tip { background: #fff; color: var(--navy-900); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.chip-link:hover { border-color: var(--ink-mute); background: var(--surface); }
.chip-link svg { width: 16px; height: 16px; flex: none; }

.profile-strengths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fafbfd; }
.ps-item { padding: 26px 30px 28px; }
.ps-item + .ps-item { border-left: 1px solid var(--line); }
.ps-num { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.ps-item h2 { font-size: 19px; margin: 6px 0 8px; }
.ps-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

@media (max-width: 900px) {
  .profile-main { grid-template-columns: 1fr; grid-template-areas: "head" "mind" "info"; gap: 24px; padding: 32px 24px 28px; }
  .profile-strengths { grid-template-columns: 1fr; }
  .ps-item { padding: 22px 24px; }
  .ps-item + .ps-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .apply-band { padding-bottom: 140px; }
  .profile-info { padding: 4px 18px; }
  .profile-info div { grid-template-columns: 68px 1fr; }
}

/* 섹션 머리 (메인) */
.home-section { padding: 72px 0; }
.home-section + .home-section { padding-top: 8px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.home-head h2 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.home-head h2 .no { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.home-head p { color: var(--ink-soft); font-size: 15.5px; }

/* ③ 기술 스택 */
.stack-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stack-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 28px; align-items: center; }
.stack-row + .stack-row { border-top: 1px solid var(--line); }
.stack-row h3 { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--ink-mute); }
.stack-row .tags li { background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; padding: 5px 12px; }
.stack-row .tags li.main { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
@media (max-width: 620px) { .stack-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; } }

/* ④ 프로젝트 */
.pj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pj-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pj-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-800); overflow: hidden; }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pj-card:hover .pj-thumb img { transform: scale(1.04); }
.pj-engine {
  position: absolute; left: 14px; top: 14px; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 8px;
  background: rgba(15, 24, 48, .82); color: #fff; letter-spacing: .02em;
}
.pj-body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.pj-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--ink-mute); }
.pj-meta .no { font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.pj-body h3 { font-size: 20px; margin: 6px 0 8px; }
.pj-body h3 a { text-decoration: none; }
.pj-body h3 a:hover { color: var(--accent); }
.pj-role { font-size: 15px; color: var(--ink-soft); }
.pj-points { list-style: none; display: grid; gap: 6px; margin: 14px 0 16px; }
.pj-points li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink); }
.pj-points li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.pj-points strong { color: var(--after); }
.pj-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-600); }

.pj-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.pj-mini-grid.is-lead { margin: 0 0 24px; }   /* 최신 플레이 빌드: 프로젝트 목록 맨 위 */
.pj-mini-grid.is-single { grid-template-columns: 1fr; }
.pj-mini {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 16px;
  background: var(--surface); border: 1px dashed #cfd5e4;
}
.pj-mini-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--accent); font-weight: 800; font-size: 15px;
}
.pj-mini h3 { font-size: 17px; margin: 2px 0 4px; }
.pj-mini p { font-size: 14.5px; color: var(--ink-soft); }
.pj-mini .btn-row { margin-top: 12px; gap: 8px; }
@media (max-width: 900px) { .pj-grid, .pj-mini-grid { grid-template-columns: 1fr; } }

/* ⑤ 문서 */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.doc-icon {
  width: 48px; height: 56px; border-radius: 6px 16px 6px 6px; position: relative; margin-bottom: 18px;
  background: var(--navy-800); color: #fff; display: grid; place-items: end center; padding-bottom: 9px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
}
.doc-icon::after {
  content: ""; position: absolute; right: 0; top: 0; width: 16px; height: 16px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--accent) 50%); border-radius: 0 16px 0 4px;
}
.doc-card h3 { font-size: 18px; }
.doc-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }
.doc-meta { font-size: 13px; color: var(--ink-mute); margin-top: 10px; font-variant-numeric: tabular-nums; }
.doc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 20px; }
.doc-actions .btn { justify-content: center; }
@media (max-width: 1000px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-soft); font-size: 14px; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-inner strong { color: #fff; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ==========================================================
   서브 페이지 (자기소개 / 이력 / 프로젝트 상세)
   ========================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--on-dark);
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 64px) 0 64px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); color: #fff; font-weight: 800; }
.page-hero p { color: var(--on-dark-soft); margin-top: 12px; font-size: 17px; max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--on-dark-soft); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.prose { max-width: 780px; }
.prose-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.prose-section:last-child { border-bottom: 0; }
.prose-section > h2 { font-size: 28px; margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.prose-section > h2::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--accent); }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose h3:first-of-type { margin-top: 0; }
.prose p { color: #333c55; font-size: 16.5px; line-height: 1.9; }
.prose p + p { margin-top: 14px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a {
  font-size: 14px; padding: 7px 14px; border-radius: 999px; text-decoration: none;
  color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .18);
}
.toc a:hover { border-color: rgba(255, 255, 255, .5); }

/* 이력 표 */
.resume-grid { display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; }
.resume-grid + .resume-grid { margin-top: 0; }
.resume-label { font-size: 20px; font-weight: 800; padding-top: 4px; }
.resume-block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.resume-block:last-child { border-bottom: 0; }
.resume-items { display: grid; gap: 22px; }
.resume-item h3 { font-size: 18px; }
.resume-item .when { font-size: 14px; color: var(--ink-mute); font-weight: 600; }
.resume-item p, .resume-item li { color: var(--ink-soft); font-size: 15.5px; }
.resume-item ul { padding-left: 18px; margin-top: 6px; }
.resume-item ul li + li { margin-top: 2px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 820px) { .resume-grid { grid-template-columns: 1fr; gap: 16px; } }

/* 프로젝트 상세 */
.detail-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.detail-hero-grid .hero-shot { aspect-ratio: 1; }
.facts { display: grid; grid-template-columns: 96px 1fr; gap: 12px 20px; margin-top: 28px; font-size: 15.5px; }
.facts dt { color: var(--accent); font-weight: 700; }
.facts dd { margin: 0; color: var(--on-dark); }
.page-hero .btn-row { margin-top: 32px; }
@media (max-width: 900px) { .detail-hero-grid { grid-template-columns: 1fr; } .detail-hero-grid .hero-shot { max-width: 420px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.feature + .feature { margin-top: 72px; }
.feature-media {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.feature-media img { border-radius: var(--radius-sm); cursor: zoom-in; width: 100%; }
.feature-text h3 { font-size: 24px; margin: 6px 0 16px; }
.feature-points { display: grid; gap: 14px; }
.feature-points div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.feature-points strong { display: block; font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.feature-points p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 24px; } }

.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.case + .case { margin-top: 32px; }
.case-head { padding: 26px 30px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-head h3 { font-size: 22px; }
.case-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .12em; }
.case-media { padding: 20px 30px 0; }
.case-media img { border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; width: 100%; }
.case-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 24px; border-top: 1px solid var(--line); }
.case-step { background: var(--surface); padding: 20px 24px; }
.case-step strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.case-step p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.case-step.problem { background: var(--accent-soft); }
.case-step.problem strong { color: #9a5f08; }
.case-step.verify strong { color: var(--after); }
.case-step.limit strong { color: var(--ink-mute); }
@media (max-width: 900px) { .case-steps { grid-template-columns: 1fr; } .case-head, .case-media { padding-left: 20px; padding-right: 20px; } .case-step { padding: 18px 20px; } }
@media (max-width: 620px) {
  /* 가로로 긴 Before/After 이미지는 좌우 스크롤로 보기 */
  .case-media { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .case-media img { width: 680px; max-width: none; }
  .case-media::after { content: "← 좌우로 밀어서 보기 · 눌러서 확대 →"; display: block; font-size: 12px; color: var(--ink-mute); margin-top: 6px; position: sticky; left: 0; }
}

.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.gallery img { border-radius: var(--radius-sm); cursor: zoom-in; }

.next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-nav a {
  display: block; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.next-nav a:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
.next-nav small { display: block; color: var(--ink-mute); font-size: 13px; font-weight: 600; }
.next-nav strong { font-size: 17px; }
.next-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 620px) { .next-nav { grid-template-columns: 1fr; } .next-nav .next { grid-column: auto; } }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 26, .92);
  display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
@media (max-width: 620px) {
  .lightbox { overflow: auto; justify-content: flex-start; padding: 64px 12px 24px; }
  .lightbox img.is-wide { width: 1100px; max-width: none; max-height: none; }
}
.lightbox img { max-width: 100%; max-height: 100%; width: auto; border-radius: 8px; cursor: default; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
