/* rapsso.com 포트폴리오 (2026-11-20) · B안(왼쪽 고정 프로필 + 프로젝트 타일)
   스킨: 시안 D "모눈 다크(청사진)" 2026-11-20 사용자 확정. 깊은 남색 + 흰 잉크 모눈(120px/24px 두 겹), 각진 모서리(6px/4px),
   면은 얇은 테두리 + 어긋난 면(--offset), 숫자·영문 라벨만 IBM Plex Mono, 본문 Pretendard. 강조 주황 #FF7A2E.
   왼쪽 세로 띠 강조 금지(모든 페이지). 맨 아래 "청사진 스킨" 블록이 컴포넌트별 덮어쓰기 */
:root {
  color-scheme: dark;
  --bg: #0E1C28;
  --bg-2: #122333;
  --surface: #15283A;
  --raise: #1A3045;
  --line: #24405A;
  --line-2: #3E5F7C;
  --ink: #EAF1F5;
  --ink-2: #C3D2DC;
  --muted: #8DA3B3;
  --hi: none;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --accent: #FF7A2E;
  --accent-ink: #1E0C00;
  --scrim: rgba(10, 22, 32, .95);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --aside: 360px;
  --grid-1: rgba(200, 225, 240, .09);
  --grid-2: rgba(200, 225, 240, .035);
  --offset: 3px 3px 0 rgba(200, 225, 240, .07);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; background: radial-gradient(1100px 620px at 12% -8%, rgba(255, 236, 214, .06), transparent 70%), var(--bg); background-attachment: fixed; color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
body > * { position: relative; z-index: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@view-transition { navigation: auto; }

/* ── 회사별 맞춤 인사 ─────────────────────────── */
.greet { display: none; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; text-align: center; padding: 9px 16px; }
.greet.on { display: block; }

/* ── 홈: 왼쪽 프로필 + 오른쪽 내용 ───────────── */
.shell { display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); max-width: 1480px; margin: 0 auto; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg-2) 82%, transparent); border-right: 1px solid var(--line); padding: 40px 32px 28px; display: flex; flex-direction: column; gap: 24px; }
.side::-webkit-scrollbar { display: none; }
.who { display: flex; gap: 16px; align-items: center; }
.avatar { width: 68px; height: 68px; border-radius: 50%; background: #F4F1E8; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who h1 { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.who p { color: var(--muted); font-weight: 600; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.stats b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--muted); }
.side h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: transparent; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip i { width: 8px; height: 8px; border-radius: 2px; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact { display: grid; gap: 8px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #FF7D3A; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.find { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; }
.find:hover { color: var(--ink); border-color: var(--ink-2); }
kbd { font: 600 12px var(--sans); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; color: var(--ink-2); }

.main { min-width: 0; padding: 0 44px 96px; }

/* 대표 모션: 흩어진 요구사항이 구조로 정리됨 */
.hero { position: relative; margin: 32px 0 0; border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: var(--hi), 0 20px 50px rgba(0, 0, 0, .18); border: 1px solid var(--line); min-height: 330px; display: flex; align-items: flex-end; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg-2) 94%, transparent) 0%, color-mix(in srgb, var(--bg-2) 70%, transparent) 46%, transparent 78%); pointer-events: none; }
.hero-text { padding: 40px 40px 36px; max-width: 640px; }
.hero h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.22; font-weight: 800; letter-spacing: -.025em; }
.hero h2 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 520px; }

/* 탭 */
.tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; padding: 18px 0 14px; margin-top: 8px; background: linear-gradient(var(--bg) 78%, transparent); }
.tab { position: relative; border: 0; background: none; font-size: 18px; font-weight: 800; padding: 8px 14px; border-radius: 10px; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.tab small { font-size: 13px; font-weight: 600; margin-left: 4px; color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--bg); background: var(--ink); }
.tab[aria-selected="true"] small { color: var(--bg); opacity: .7; }
.tab { border-radius: 999px; padding: 8px 18px; }
.panel[hidden] { display: none; }

/* 프로젝트 타일 */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { --c: #333; position: relative; grid-column: span 3; min-height: 340px; border-radius: 20px; overflow: hidden; background: var(--c); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; color: #fff; transition: transform .45s var(--ease), opacity .4s var(--ease); }
.tile.w4 { grid-column: span 4; } .tile.w2 { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78) 100%); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%); transition: opacity .3s var(--ease); }
.tile:hover img { transform: scale(1.045); }
.tile:hover::after { opacity: 1; }
.tile:hover { transform: translateY(-3px); }
.tile .badge { position: absolute; top: 18px; left: 18px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.tile .go { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; transform: scale(.8); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.tile:hover .go, .tile:focus-visible .go { transform: scale(1); opacity: 1; }
.tile .go svg { width: 18px; height: 18px; }
.tile .d { font-size: 13px; font-weight: 600; opacity: .88; }
.tile h3 { font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin-top: 4px; }
.tile p { font-size: 15px; opacity: .92; margin-top: 4px; }
.tile.dim { opacity: .18; transform: scale(.985); }
.more-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.more-note button { border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; cursor: pointer; }

/* 경력 */
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.strengths p { box-shadow: var(--hi); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; font-size: 15px; color: var(--ink-2); }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; }
.block-h h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.block-h span { color: var(--muted); font-size: 14px; }
.timeline { position: relative; height: 46px; border-radius: 10px; background: var(--surface); overflow: hidden; }
.timeline i { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--bg); transform-origin: left; }
.timeline i.free { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .28) 0 3px, transparent 3px 8px); }
.js .timeline i { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .timeline.drawn i { transform: scaleX(1); }
.tl-years { position: relative; height: 22px; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-years span { position: absolute; transform: translateX(-50%); }
.tl-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; opacity: 0; transition: opacity .15s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend .fr { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 5px); }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.job.dim { display: none; }
.job-meta .period { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-meta h4 { font-size: 19px; font-weight: 800; line-height: 1.35; margin-top: 4px; }
.job-meta .role { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.job-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.pill i { width: 7px; height: 7px; border-radius: 2px; }
.pill.free { border-color: var(--accent); color: var(--accent); }
.job-proj + .job-proj { margin-top: 18px; }
.job-proj h5 { font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-proj h5 a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.job-proj h5 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-proj ul { margin-top: 6px; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.job-proj li + li { margin-top: 3px; }
.job-proj li::marker { color: var(--muted); }
.older { display: none; }
.older.open { display: block; }
.more-jobs { margin-top: 18px; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.facts section { box-shadow: var(--hi); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.facts h4 { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.facts ul { list-style: none; display: grid; gap: 6px; font-size: 15px; }
.facts li small { display: block; color: var(--muted); font-size: 13px; }
.facts .tagset { display: flex; flex-wrap: wrap; gap: 6px; }

footer.foot { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 14px; }
footer.foot a:hover { color: var(--ink); }

/* ── 프로젝트 상세 ───────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar a.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.topbar a.back:hover { color: var(--ink); }
.topbar .t-name { font-weight: 800; opacity: 0; transition: opacity .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar.scrolled .t-name { opacity: 1; }
.topbar .acts { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 16px; height: 16px; }
.p-hero { --c: #333; position: relative; overflow: hidden; isolation: isolate; background: var(--c); }
.p-hero .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 15%, transparent) 0%, color-mix(in srgb, var(--bg) 65%, transparent) 60%, var(--bg) 100%); }
.p-hero .in { max-width: 1180px; margin: 0 auto; padding: 120px 24px 48px; }
.p-hero .d { font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .85); }
.p-hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-top: 8px; color: #fff; }
.p-hero .one { font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .92); margin-top: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 36px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.meta-grid div { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 16px 18px; }
.meta-grid dt { font-size: 13px; color: var(--muted); }
.meta-grid dd { font-size: 15px; font-weight: 600; margin-top: 2px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.p-body { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--bg); background: var(--ink); font-weight: 700; }
.p-content { min-width: 0; }
.p-sec { padding: 28px 0 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.p-sec:first-child { padding-top: 8px; }
.p-sec h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.anchor { border: 0; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .2s; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.anchor svg { width: 18px; height: 18px; }
.p-sec h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--ink); background: var(--surface); }
.p-sec .lead { font-size: 18px; color: var(--ink-2); margin-top: 12px; max-width: 760px; }
.p-sec .ov p { font-size: 17px; color: var(--ink-2); max-width: 760px; }
.p-sec .ov p + p { margin-top: 14px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 24px; }
.group { box-shadow: var(--hi); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.group h3 { font-size: 16px; font-weight: 800; line-height: 1.45; }
.group ul { margin-top: 10px; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.group li + li { margin-top: 5px; }
.group li::marker { color: var(--c, var(--accent)); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 20px; align-items: start; }
.shot { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; position: relative; margin: 0; }
.shot .frame { display: flex; justify-content: center; background: #fff; }
.shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; }
.shot figcaption, .shot .cap { display: block; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 10px 14px; border-top: 1px solid var(--line); }
.slides { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-top: 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.slides button { flex: 0 0 220px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; padding: 0; }
.slides img { width: 100%; aspect-ratio: 813 / 566; object-fit: cover; }
.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.pn a { --c: #333; position: relative; overflow: hidden; border-radius: var(--r); padding: 22px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--c); isolation: isolate; color: #fff; }
.pn a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; transition: transform .6s var(--ease); }
.pn a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); }
.pn a:hover img { transform: scale(1.05); }
.pn small { font-weight: 700; opacity: .85; }
.pn b { font-size: 22px; font-weight: 800; }
.pn a.next { text-align: right; }
.cta { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta h3 { font-size: 22px; font-weight: 800; }
.cta p { color: var(--muted); }
.cta .btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 라이트박스 ──────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 100; background: var(--scrim); display: none; touch-action: none; }
.lb.open { display: block; }
.lb .stage { position: absolute; inset: 56px 0 64px; overflow: hidden; cursor: grab; }
.lb .stage.drag { cursor: grabbing; }
.lb .stage img { position: absolute; left: 50%; top: 50%; max-width: 92vw; max-height: calc(100vh - 140px); transform-origin: 0 0; user-select: none; -webkit-user-drag: none; border-radius: 6px; background: #fff; }
.lb .bar { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 12px; color: var(--ink); }
.lb .bar .cap { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .ctrl { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; }
.lb .ctrl button, .lb .bar button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lb .ctrl button:hover, .lb .bar button:hover { background: var(--surface); }
.lb .ctrl span { min-width: 64px; display: grid; place-items: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb svg { width: 20px; height: 20px; }

/* ── 찾기 창(Ctrl K) ─────────────────────────── */
.pal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal.open { display: flex; }
.pal .box { width: min(640px, 100%); background: var(--raise); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.pal input { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 17px var(--sans); padding: 18px 20px; outline: none; }
.pal ul { list-style: none; max-height: 52vh; overflow-y: auto; padding: 8px; }
.pal li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; }
.pal li a b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal li a small { color: var(--muted); font-size: 13px; grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal li a span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.pal li a.on, .pal li a:hover { background: var(--surface); }
.pal mark { background: none; color: var(--accent); }
.pal .empty { padding: 20px; color: var(--muted); text-align: center; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--raise) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--hi), 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--bg); }
.to-top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 등장 모션 (스크립트가 있을 때만 숨겼다가 보여 줌) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  :root { --aside: 300px; }
  .main { padding: 0 24px 80px; }
  .tile, .tile.w4, .tile.w2 { grid-column: span 3; }
  .strengths, .facts { grid-template-columns: minmax(0, 1fr); }
  .p-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 16px 22px; gap: 20px; }
  .find { display: none; }
  .main { padding: 0 16px 72px; }
  .hero { margin-top: 20px; min-height: 360px; }
  .btn-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .btn-row .btn { flex-direction: column; gap: 4px; min-height: 60px; font-size: 13px; padding: 6px 4px; }
  .stats b { font-size: 26px; }
  .hero-text { padding: 26px 22px 24px; }
  .hero::after { background: linear-gradient(0deg, color-mix(in srgb, var(--bg-2) 95%, transparent) 0%, color-mix(in srgb, var(--bg-2) 55%, transparent) 55%, color-mix(in srgb, var(--bg-2) 10%, transparent) 100%); }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile, .tile.w4, .tile.w2 { grid-column: auto; min-height: 260px; }
  .tile .go { opacity: 1; transform: none; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .p-hero .in { padding: 96px 16px 32px; }
  .p-body { padding: 16px 16px 64px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 12px; }
  .icon-btn .lbl { display: none; }
  .anchor { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .timeline i { transform: none; }
  @view-transition { navigation: none; }
}
@media print {
  .side, .tabs, .hero, .lb, .pal, .topbar, .greet { display: none !important; }
}

/* ── AI 활용 탭 (모션 마음껏) ───────────────── */
.ai-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--accent); }
.ai-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ai-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: stretch; }
.ai-hero-text .pill { margin-bottom: 12px; }
.ai-hero h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.ai-hero-text > p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.ai-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.ai-stats div { background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ai-stats b { display: block; font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ai-stats span { font-size: 13px; color: var(--muted); }
.term { background: #121816; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--hi), 0 24px 60px rgba(0, 0, 0, .28); display: flex; flex-direction: column; min-height: 300px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: #E2566A; }
.term-bar i:nth-child(2) { background: #E9C46A; }
.term-bar i:nth-child(3) { background: #2FA39A; }
.term-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }

.board { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; min-height: 260px; }
.col { background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 260px; }
.col.done { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.col h5 { font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.col h5 small { font-size: 12px; font-weight: 600; color: var(--muted); }
.col.done h5 small { color: var(--accent); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card { position: absolute; left: 0; top: 0; height: 40px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); transition: transform .8s var(--ease), opacity .5s var(--ease), border-color .3s; will-change: transform; white-space: nowrap; overflow: hidden; }
.card i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.card.back { border-color: #E2566A; }
.card.ok { border-color: var(--accent); }

.term { min-height: 340px; }
.flog { list-style: none; flex: 1; margin: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; font: 13.5px/1.6 "IBM Plex Mono", ui-monospace, Consolas, monospace; color: #D9E2DC; }
.flog li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; animation: logIn .35s var(--ease); }
.flog li span { color: #8FA39A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flog li.wait span, .flog li.wait b { color: #FFB27F; }
.flog li.back span, .flog li.back b { color: #FF8C9B; }
.flog li.ok span, .flog li.ok b { color: #7FD3B4; }
.flog b { font-weight: 500; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.board { margin-top: 14px; min-height: 120px; }
.board .col { min-height: 120px; }
.card.wait { border-color: #FFB27F; animation: waitPulse 1.1s var(--ease) infinite alternate; }
@keyframes waitPulse { to { box-shadow: 0 0 0 4px color-mix(in srgb, #FFB27F 30%, transparent); } }
.stages { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stages li { background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stages b { font-size: 18px; font-weight: 800; }
.stages .who { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--raise); color: var(--ink-2); }
.stages p { font-size: 14px; color: var(--ink-2); }
.stages .nx { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ai-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-card { position: relative; background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 18px; padding: 22px; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), border-color .3s; }
.ai-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); transition: opacity .3s; }
.ai-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ai-card:hover::after { opacity: 1; }
.ai-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ai-card h4 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.ai-card > p { color: var(--ink-2); margin-top: 4px; }
.ai-card ul { margin-top: 12px; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.ai-card li + li { margin-top: 4px; }
.ai-card li::marker { color: var(--accent); }


.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.way { background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.way small { font-size: 13px; color: var(--muted); font-weight: 600; }
.way b { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; }
.way p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--hi); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.stack span:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--ink); color: var(--bg); }
.js .ai .stack span { opacity: 0; transform: translateY(12px) scale(.96); }
.ai.play .stack span { animation: pop .6s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .ai-hero { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ai-cards, .ways, .rules, .stages { grid-template-columns: minmax(0, 1fr); }
  .flog li { grid-template-columns: 104px minmax(0, 1fr); gap: 8px; font-size: 12px; }
  .board, .board .col { min-height: 96px; }
              .board { gap: 5px; min-height: 230px; }
  .col { padding: 8px 6px; min-height: 230px; border-radius: 10px; }
  .col h5 { flex-direction: column; font-size: 12px; gap: 0; }
  .card { height: 30px; font-size: 0; padding: 0 6px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ai .stack span { opacity: 1; transform: none; }
}


/* ── 청사진 스킨 (시안 D, 2026-11-20 확정) ───────── */
body { background:
  linear-gradient(var(--grid-1) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(90deg, var(--grid-1) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(var(--grid-2) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--grid-2) 1px, transparent 1px) 0 0 / 24px 24px,
  radial-gradient(1200px 700px at 20% -10%, rgba(80, 140, 180, .12), transparent 70%), var(--bg); background-attachment: fixed; }
body::before { opacity: .05; }
.hero, .tile, .ai-card, .way, .stages li, .col, .term, .ai-stats div, .shot, .meta-grid, .pn a, .pal .box, .facts > section, .strengths > *, .group, .job { border-radius: 6px; }
.btn, .chip, .tab, .pill, .stack span, .card, .stages .who, .tile .badge, .toc a { border-radius: 4px; }
.hero { background: rgba(10, 22, 32, .75); border: 1px solid var(--line-2); box-shadow: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(200, 225, 240, .07) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(200, 225, 240, .07) 1px, transparent 1px) 0 0 / 24px 24px; }
.hero::after { background: linear-gradient(90deg, rgba(10, 22, 32, .95) 0%, rgba(10, 22, 32, .6) 46%, transparent 78%); }
.ai-card, .way, .stages li, .col, .ai-stats div, .group { border: 1px solid var(--line-2); box-shadow: var(--offset); }
.col h5 small, .stages .who, .stats b, .ai-stats b, .tab small { font-family: var(--mono); letter-spacing: 0; }
.side { background: rgba(14, 28, 40, .8); }
.btn.primary:hover { background: #FF8A45; }
.term { background: #08131C; }
.col.done { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.card { box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
/* 경력 카드: 모눈이 비치지 않게 불투명 면 + 안쪽 여백 */
.jobs { border-top: 0; display: grid; gap: 12px; }
.older.open { display: grid; gap: 12px; }
.job { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--offset); padding: 24px 28px; }
@media (max-width: 820px) { .job { padding: 20px 18px; } }
