/* ============================================================
   BK Portfolio 스타일 (이력서형)
   토큰 → 기본 → 내비 → 헤더 → 숫자 → 프로필 → 프로젝트 → 진행 중 → 타임라인 → 방식 → 푸터 → 모달 → 모션 → 반응형
   형태 규칙: 카드 14px, 버튼·칩 pill, 입력 10px
   ============================================================ */

:root {
  --bg: #f6f6f8; --surface: #fdfdfe; --surface-2: #eeeff2;
  --line: #e2e4e9; --line-strong: #cfd2da;
  --text: #16181d; --text-2: #585d69; --text-3: #8b909c;
  --accent: #2b5ce6; --accent-ink: #ffffff;
  --accent-soft: rgba(43, 92, 230, 0.10); --accent-line: rgba(43, 92, 230, 0.35);
  --ok: #1f8a5b; --warn: #b8731a;
  --shadow: 0 18px 40px -22px rgba(22, 24, 29, 0.28); --shadow-sm: 0 6px 18px -10px rgba(22, 24, 29, 0.25);
  --radius: 14px; --radius-sm: 10px; --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1014; --surface: #16171c; --surface-2: #1d1f25;
    --line: #262932; --line-strong: #353947;
    --text: #ebedf1; --text-2: #a4a8b4; --text-3: #6f7483;
    --accent: #7f9cff; --accent-ink: #0f1014;
    --accent-soft: rgba(127, 156, 255, 0.14); --accent-line: rgba(127, 156, 255, 0.4);
    --ok: #4fc08d; --warn: #e0a24a;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7); --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1014; --surface: #16171c; --surface-2: #1d1f25;
  --line: #262932; --line-strong: #353947;
  --text: #ebedf1; --text-2: #a4a8b4; --text-3: #6f7483;
  --accent: #7f9cff; --accent-ink: #0f1014;
  --accent-soft: rgba(127, 156, 255, 0.14); --accent-line: rgba(127, 156, 255, 0.4);
  --ok: #4fc08d; --warn: #e0a24a;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7); --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-head { max-width: 65ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.section-head p { margin-top: 10px; color: var(--text-2); }

/* ---------- 내비게이션 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 0.95rem; transition: color .2s var(--ease), background .2s var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 18px; transition: transform .2s var(--ease), background .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.96); }
.theme-toggle .ph-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ph-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .ph-moon { display: none; }
}

/* ---------- 헤더 (이력서형) ---------- */
.hero { padding: 64px 0 48px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.name { margin-top: 14px; position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.name::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--accent); }
.name-ko { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; }
.name-en { font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem); font-weight: 400; color: var(--text-2); letter-spacing: 0.02em; }
.hero-headline { margin-top: 26px; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.hero-sub { margin-top: 14px; font-size: 1.05rem; color: var(--text-2); max-width: 52ch; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; white-space: nowrap; transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 24px -12px var(--accent); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn .ph { font-size: 1.05em; }

/* 사진 + 연락처 카드 */
.hero-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.photo { width: 100%; max-width: 260px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo .initials { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-2); }
.contact-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .ph { font-size: 18px; color: var(--accent); margin-top: 2px; }
.contact-list small { display: block; color: var(--text-3); font-size: 0.78rem; }
.contact-list a:hover { color: var(--accent); }

/* ---------- 숫자 요약 ---------- */
.stats { padding: 0 0 8px; }
.stats .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 26px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- 프로필 ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.profile-block + .profile-block { margin-top: 40px; }
.profile-block h3 { font-size: 1.05rem; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--text); display: inline-block; min-width: 96px; }
.summary { font-size: 1.08rem; color: var(--text); padding-left: 16px; border-left: 3px solid var(--accent); margin-bottom: 18px; }
.about-text p { color: var(--text-2); }
.about-text p + p { margin-top: 12px; }

/* 경력 타임라인 (세로 선 + 점) */
.xp { position: relative; padding-left: 26px; }
.xp::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.xp li { position: relative; padding: 0 0 26px; }
.xp li:last-child { padding-bottom: 0; }
.xp li::before { content: ""; position: absolute; left: -24px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.xp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.xp-head h4 { font-size: 1.05rem; }
.xp-head .period { color: var(--text-3); font-size: 0.88rem; margin-left: auto; }
.xp-org { color: var(--text-2); font-size: 0.95rem; margin-top: 2px; }
.xp ul { margin-top: 8px; }
.xp ul li { padding: 3px 0 3px 14px; position: relative; color: var(--text-2); font-size: 0.93rem; }
.xp ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); border: 0; }

.skill-group + .skill-group { margin-top: 14px; }
.skill-group h4 { font-size: 0.85rem; color: var(--text-3); font-weight: 600; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--text-2); }
.lang li, .edu li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.lang li:first-child, .edu li:first-child { border-top: 0; padding-top: 0; }
.lang li span, .edu li span { display: block; color: var(--text-3); font-size: 0.85rem; }
.link-list li + li { margin-top: 8px; }
.link-list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-list a:hover { color: var(--accent); }

/* ---------- 프로젝트 필터 ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.select, .search { height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 0 12px; font-size: 0.92rem; }
.search-wrap { position: relative; }
.search-wrap .ph { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; pointer-events: none; }
.search { padding-left: 34px; width: 210px; }
.search::placeholder { color: var(--text-3); }
.result-count { color: var(--text-3); font-size: 0.88rem; }

/* ---------- 프로젝트 목록 (작은 썸네일 + 글) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 20px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:active { transform: translateY(0) scale(0.995); }
.thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb--logo { background: #f7f7f8; border-color: #e2e4e9; } /* 로고는 다크 모드에서도 밝은 타일 위에 */
.thumb--logo img { width: 70%; height: 70%; object-fit: contain; }
.thumb--full { border: 0; background: transparent; } /* 앱 아이콘형 로고는 타일을 꽉 채움 */
.thumb--full img { width: 100%; height: 100%; object-fit: cover; }
.thumb .monogram { font-weight: 800; font-size: 1.4rem; color: var(--text-2); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.badge--live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.badge--wip  { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.badge--hold { color: var(--text-3); }
.badge--done { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.card h3 { font-size: 1.08rem; }
.card-sub { color: var(--text-3); font-size: 0.86rem; margin-top: -2px; }
.card-summary { color: var(--text-2); font-size: 0.93rem; }
.card-foot { margin-top: 4px; display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 0.84rem; }
.card-foot .ph { font-size: 18px; color: var(--text-2); transition: transform .25s var(--ease); }
.card:hover .card-foot .ph { transform: translate(2px, -2px); }
.empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); }
.empty b { display: block; color: var(--text); margin-bottom: 6px; }

/* ---------- 진행 중 ---------- */
.wip-list { border-top: 1px solid var(--line); }
.wip-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.wip-row h3 { font-size: 1.15rem; margin-top: 10px; }
.wip-row h3 button { background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.wip-row h3 button:hover { color: var(--accent); }
.wip-row p { margin-top: 8px; color: var(--text-2); }
.wip-next-label { font-size: 0.8rem; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.wip-next li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--text-2); font-size: 0.95rem; }
.wip-next .ph { margin-top: 4px; color: var(--accent); flex: none; }

/* ---------- 타임라인 (가로) ---------- */
.timeline { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 4px 0 12px; scrollbar-width: none; -ms-overflow-style: none; }
.timeline-track::-webkit-scrollbar { display: none; } /* 스크롤바는 숨기고 스와이프·트랙패드로 넘긴다 */
.tl-item { flex: 0 0 240px; scroll-snap-align: start; padding-right: 20px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.tl-item::after { content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
/* 컨트롤러 ( -  ---  - ) : 가운데 정렬, 30% 너비 */
.tl-ctrl { width: 30%; min-width: 200px; margin: 20px auto 0; display: grid; grid-template-columns: 12px minmax(0, 1fr) 12px; gap: 14px; align-items: center; }
.tl-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); transition: background .2s var(--ease), transform .2s var(--ease); }
.tl-dot:hover { background: var(--accent); }
.tl-dot:active { transform: scale(0.9); }
.tl-bar { position: relative; height: 6px; border-radius: 999px; background: var(--line-strong); cursor: pointer; touch-action: none; }
.tl-bar::before { content: ""; position: absolute; inset: -10px 0; } /* 클릭 영역 확장 */
.tl-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 30%; border-radius: 999px; background: var(--accent); cursor: grab; transition: width .2s var(--ease); }
.tl-thumb::after { content: ""; position: absolute; inset: -8px 0; }
.tl-ctrl.dragging .tl-thumb { cursor: grabbing; transition: none; }
.timeline-track.dragging { scroll-snap-type: none; scroll-behavior: auto; }
.tl-date { display: block; padding-top: 22px; font-size: 0.8rem; color: var(--text-3); }
.tl-item button { background: none; border: 0; padding: 0; text-align: left; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.tl-item button:hover { color: var(--accent); }
.tl-item small { display: block; margin-top: 4px; color: var(--text-3); font-size: 0.82rem; }

/* ---------- 만드는 방식 ---------- */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.process-list { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-num { font-size: 1.6rem; font-weight: 700; color: var(--text-3); letter-spacing: -0.03em; line-height: 1.1; }
.step h3 { font-size: 1.1rem; }
.step p { margin-top: 6px; color: var(--text-2); max-width: 60ch; }

/* ---------- 푸터 ---------- */
footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.88rem; }
footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a:hover { color: var(--text); }

/* ---------- 상세 모달 (이미지는 표지 한 장) ---------- */
dialog.modal { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
dialog.modal::backdrop { background: rgba(10, 11, 14, 0.55); backdrop-filter: blur(4px); }
.modal-scroll { max-height: calc(100vh - 48px); overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-cover { position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-cover.cover--phone { background: linear-gradient(135deg, var(--surface-2), var(--accent-soft)); }
.modal-cover.cover--phone img { position: absolute; top: 7%; left: 50%; height: 93%; width: auto; max-width: none; aspect-ratio: 430 / 932; transform: translateX(-50%); object-fit: cover; object-position: top; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.modal-cover.cover--mono { display: grid; place-items: center; aspect-ratio: 16 / 5; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.modal-cover.cover--mono img { width: 84px; height: 84px; object-fit: contain; border-radius: 20px; }
.modal-cover.cover--mono .monogram { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 800; font-size: 1.9rem; }
.modal-body { padding: 28px 32px 32px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.modal-body h2 { font-size: 1.6rem; }
.modal-sub { color: var(--text-3); margin-top: 4px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.modal-desc p { color: var(--text-2); }
.modal-desc p + p { margin-top: 12px; }
.modal-side h4 { font-size: 0.85rem; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.modal-side > div + div { margin-top: 24px; }
.hl li { display: flex; gap: 10px; padding: 5px 0; font-size: 0.93rem; color: var(--text-2); }
.hl .ph { margin-top: 4px; flex: none; color: var(--accent); }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 모션 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-text > *, .hero-card { animation: rise .8s var(--ease) both; }
.hero-text > *:nth-child(2) { animation-delay: .06s; }
.hero-text > *:nth-child(3) { animation-delay: .12s; }
.hero-text > *:nth-child(4) { animation-delay: .18s; }
.hero-text > *:nth-child(5) { animation-delay: .24s; }
.hero-card { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
dialog.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-text > *, .hero-card, dialog.modal[open] { animation: none; }
  .card, .btn, .card-foot .ph { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .hero .container { gap: 36px; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  section { padding: 60px 0; }
  .nav-links a { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  .photo { max-width: 200px; }
  .stats .container { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 18px 0; }
  .filters-right { margin-left: 0; width: 100%; }
  .search-wrap { flex: 1; }
  .search { width: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .thumb { width: 52px; height: 52px; border-radius: 14px; }
  .wip-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .xp-head .period { margin-left: 0; width: 100%; }
  .modal-body { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 26px; gap: 22px; }
  .modal-cover { aspect-ratio: 16 / 10; }
}
