/* 포트폴리오 스타일 (View). 색은 :root 변수로만 바꾼다. 한 단 배치, 모바일 우선 */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1c2226;
  --muted: #5a656e;
  --line: #dddcd4;
  --accent: #1f6f5c;
  --accent-soft: #e3efe9;
  --ai: #6a3fd1;
  --ai-soft: #f0eafc;
  --radius: 12px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171a;
    --surface: #1a2125;
    --ink: #e8ecef;
    --muted: #9ba7af;
    --line: #2d373d;
    --accent: #5cc4a6;
    --accent-soft: #1d3029;
    --ai: #b49bff;
    --ai-soft: #251d3b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 8px; }
.name { margin: 0; font-size: 1.25rem; font-weight: 700; }
.name span { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.role { margin: 0; color: var(--muted); font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hint-contact { color: var(--muted); font-size: 0.82rem; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 0; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

main { padding-top: 28px; padding-bottom: 40px; }
h1 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.45; margin: 0 0 24px; }
.section-title { font-size: 1.2rem; margin: 34px 0 12px; }
.panel > .section-title:first-child { margin-top: 0; }
.lead { color: var(--muted); margin: 0 0 14px; }
.tag { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.numbers div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.numbers dt { color: var(--muted); font-size: 0.85rem; }
.numbers dd { margin: 2px 0; font-size: 2rem; font-weight: 800; }
.numbers dd span { font-size: 1rem; font-weight: 600; margin-left: 3px; color: var(--muted); }
.numbers p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 8px; font-size: 0.92rem; }
.card .more { color: var(--accent); font-weight: 600; margin: 0; }
.card.ai, .study.ai { border: 2px solid var(--ai); background: var(--ai-soft); }
.card.ai .tag, .study.ai .tag { color: var(--ai); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .when { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.timeline h3 { margin: 0; font-size: 1.02rem; }
.timeline h3 span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.timeline p { margin: 4px 0 0; font-size: 0.93rem; }
.timeline .link { font-size: 0.88rem; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case, .study { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.case h3, .study h3 { margin: 0 0 10px; font-size: 1.05rem; }
dl { margin: 0; }
.case dt, .study dt { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.case dd, .study dd { margin: 2px 0 0; font-size: 0.93rem; }
.study { margin-bottom: 16px; }
.study figure { margin: 8px 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
figure { margin: 0; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.diagram { margin: 14px 0; max-width: 760px; }
.bullets { padding-left: 1.1rem; margin: 0; }
.bullets li { margin-bottom: 8px; }
.tools { margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.foot { padding-bottom: 30px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .numbers, .cards, .cases { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr; }
  .hint-contact { display: none; }
}
@media print {
  .top { position: static; }
  .panel[hidden] { display: block !important; }
  .tabs, .actions .btn { display: none; }
  .card, .case, .study { break-inside: avoid; }
}
