/* ───────── 폰트 ───────── */
@font-face {
  font-family: 'Geist';
  src: url('vendor/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('vendor/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ───────── 토큰 ───────── */
:root {
  --sans: 'Geist', 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --mono: 'Geist Mono', 'Pretendard Variable', Pretendard, ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 18px;
  --inv: 1; /* 1 / zoom — JS가 갱신 */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d0e11;
  --bg-2: #121418;
  --surface: #17191e;
  --surface-2: #1e2127;
  --glass: rgba(22, 24, 29, .72);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eceef2;
  --muted: #8d929c;
  --faint: #5b606a;
  --accent: #d4ff4f;
  --accent-ink: #11140a;
  --dot: 255, 255, 255;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --note-mix: 14%;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f2f0ea;
  --bg-2: #ebe8e0;
  --surface: #fffdf8;
  --surface-2: #f6f3ec;
  --glass: rgba(255, 253, 248, .78);
  --line: rgba(20, 20, 30, .09);
  --line-2: rgba(20, 20, 30, .18);
  --text: #16171b;
  --muted: #696c74;
  --faint: #a3a5ab;
  --accent: #3540ff;
  --accent-ink: #ffffff;
  --dot: 30, 30, 40;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -22px rgba(40, 30, 10, .35);
  --note-mix: 30%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.muted { color: var(--muted); }
kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--muted);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────── 캔버스 ───────── */
.viewport {
  position: fixed; inset: 0; overflow: hidden;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(1200px 800px at 70% 10%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%),
    var(--bg);
}
.viewport.dragging { cursor: grabbing; }
.viewport.dragging .item { pointer-events: none; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.edges { position: absolute; left: 0; top: 0; overflow: visible; width: 1px; height: 1px; }
.regions, .items { position: absolute; left: 0; top: 0; }

/* 연결선 */
.edge { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; transition: opacity .3s, stroke-width .3s; }
.edge.tag { opacity: .85; stroke-width: 2; }
.edge.lang { stroke-dasharray: 4 6; opacity: .5; }
.edge.flow { stroke-dasharray: 2 10; stroke-width: 2; opacity: 0; animation: flow 1.2s linear infinite; }
.edge-label { font-family: var(--mono); fill: var(--muted); opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.focusing .edge { opacity: .08; }
.focusing .edge.lit { opacity: 1; stroke-width: 2.4; }
.focusing .edge.flow.lit { opacity: .9; }
.focusing .edge-label.lit { opacity: 1; }
.focusing .item.project:not(.lit) { opacity: .28; filter: saturate(.4); }
.focusing .item.note:not(.lit), .focusing .item.hero { opacity: .45; }

/* 영역(클러스터) */
.region {
  position: absolute; border-radius: 48px;
  border: 1px dashed color-mix(in oklab, var(--rc) 45%, transparent);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--rc) 9%, transparent), transparent);
  transition: opacity .5s var(--ease);
}
.region.out { opacity: 0; }
.region-label {
  position: absolute; left: 28px; top: 0; transform: translateY(-120%);
  font-family: var(--mono); font-size: calc(12px * max(1, var(--inv)));
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in oklab, var(--rc) 70%, var(--text));
  display: flex; gap: .6em; align-items: center;
}
.region-label i { width: .6em; height: .6em; border-radius: 50%; background: var(--rc); box-shadow: 0 0 1em var(--rc); }
.region-label span { color: var(--muted); }

/* 공통 아이템 */
.item { position: absolute; left: 0; top: 0; transition: opacity .35s, filter .35s; }
.item.moving { transition: none; }

/* 프로젝트 카드 */
.project { width: 360px; --c: #888; }
.card {
  position: relative; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px 22px 18px; overflow: hidden;
  transition: background .35s, border-color .35s, box-shadow .35s;
  cursor: pointer;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in oklab, var(--c) 22%, transparent), transparent 70%);
}
.card::after {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c), transparent);
}
.project:hover .card, .project:focus-within .card, .project.current .card { border-color: color-mix(in oklab, var(--c) 55%, var(--line)); box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--c) 30%, transparent), 0 30px 80px -30px var(--c); }
.card-body { position: relative; transition: opacity .3s; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.card-top .idx { color: var(--c); font-weight: 600; }
.card h3 { margin: 18px 0 2px; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
.card .kicker { margin: 0; color: var(--muted); font-size: 15px; }
.card .cat { margin: 10px 0 0; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.card .desc { margin: 16px 0 0; font-size: 14.5px; line-height: 1.65; color: color-mix(in oklab, var(--text) 86%, var(--muted)); word-break: keep-all; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tags li.hit { border-color: var(--c); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.stats div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.stats dt { font-family: var(--mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.langbar { margin: 16px 0 0; }
.langbar .bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.langbar .bar i { display: block; height: 100%; }
.langbar ul { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.langbar li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; background: var(--lc); }
.links { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.links a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 550;
  padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
}
.links a:hover { border-color: var(--c); }
.links a::after { content: '↗'; font-family: var(--mono); color: var(--c); }

/* 노드(멀리서 볼 때) */
.orb {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--c) 40%, white), var(--c) 45%, color-mix(in oklab, var(--c) 50%, black));
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--c) 18%, transparent), 0 0 120px 20px color-mix(in oklab, var(--c) 55%, transparent);
  opacity: 0; transform: scale(.4); transition: opacity .35s, transform .5s var(--ease);
  pointer-events: none;
}
.orb::after { /* 맥동 고리 */
  content: ''; position: absolute; inset: -30px; border-radius: 50%; border: 2px solid var(--c); opacity: 0;
  animation: pulse 3.2s var(--ease) infinite; animation-delay: var(--d, 0s);
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.orb-label {
  position: absolute; left: 50%; top: calc(50% + 110px); transform: translateX(-50%);
  white-space: nowrap; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none;
  font-size: calc(13px * var(--inv)); line-height: 1.25;
}
.orb-label b { display: block; font-weight: 650; letter-spacing: -.02em; }
.orb-label small { display: block; font-family: var(--mono); font-size: .78em; color: var(--muted); }

/* 시맨틱 줌 단계 */
[data-lod='far'] .item .card { background: transparent; border-color: transparent; box-shadow: none; }
[data-lod='far'] .item .card::before, [data-lod='far'] .item .card::after { opacity: 0; }
[data-lod='far'] .item .card-body { opacity: 0; visibility: hidden; }
[data-lod='far'] .item .orb { opacity: 1; transform: none; }
[data-lod='far'] .item .orb-label { opacity: 1; }
[data-lod='mid'] .item .detail { opacity: 0; visibility: hidden; }
.detail { transition: opacity .3s; }

/* 히어로 */
.hero { width: 720px; }
.hero .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { margin: 18px 0 0; font-size: 76px; line-height: 1.02; letter-spacing: -.045em; font-weight: 700; word-break: keep-all; }
.hero h1 span { display: block; }
.hero h1 span:last-child { background: linear-gradient(90deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .intro { margin-top: 26px; font-size: 18px; color: var(--muted); max-width: 560px; word-break: keep-all; }
.hero .intro p { margin: 0; }
.hero .intro b { color: var(--text); font-weight: 600; }
.hero .cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .cta .chip { font-size: 15px; padding: 11px 18px; }

/* 스티키 노트 */
.note { width: 400px; --note: #ffd43b; }
.note-card {
  position: relative; padding: 26px 26px 22px; border-radius: 6px 6px 22px 6px;
  background: color-mix(in oklab, var(--note) var(--note-mix), var(--surface));
  border: 1px solid color-mix(in oklab, var(--note) 25%, var(--line));
  box-shadow: var(--shadow); transform: rotate(var(--rot, -1.2deg));
  transition: transform .5s var(--ease);
}
.note:hover .note-card { transform: rotate(0deg) translateY(-3px); }
.note-card::before { /* 테이프 */
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; margin-left: -55px;
  background: color-mix(in oklab, var(--note) 35%, transparent); border: 1px solid color-mix(in oklab, var(--note) 30%, transparent);
  transform: rotate(2deg); backdrop-filter: blur(2px);
}
.note h2 { margin: 0 0 12px; font-size: 13px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in oklab, var(--note) 60%, var(--text)); }
.note p { margin: 0 0 10px; word-break: keep-all; }
.note .big { font-size: 22px; line-height: 1.4; letter-spacing: -.02em; font-weight: 550; }
.note .loc { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fw { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fw li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid var(--line); min-width: 0; }
.fw .mk { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; background: var(--text); color: var(--bg); }
.fw b { display: block; font-size: 13px; line-height: 1.2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.toolrow span { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--text); color: var(--bg); }
.contact-links { display: grid; gap: 8px; margin: 14px 0 0; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 11px 14px; border-radius: 12px; background: color-mix(in oklab, var(--surface) 75%, transparent); border: 1px solid var(--line); font-weight: 550; }
.contact-links a span { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.contact-links a:hover { border-color: var(--note); }
[data-lod='far'] .note-card > :not(h2) { opacity: .25; }
[data-lod='far'] .note h2 { font-size: calc(13px * max(1, var(--inv) * .8)); }

/* ───────── HUD ───────── */
.hud { position: fixed; z-index: 10; }
.hud-top {
  top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.glass, .brand, .search, .actions, .hud-zoom, .minimap, .caption, .hint {
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; text-decoration: none; min-width: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 200deg, #7b61ff, #3a86ff, #22b8a8, #f4a300, #ef476f, #7b61ff); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 3px; background: var(--bg); }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 14px; font-weight: 650; white-space: nowrap; }
.brand-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search { position: relative; flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; height: 44px; }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; max-height: 60vh; overflow: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.results li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.results li[aria-selected='true'], .results li:hover { background: var(--surface-2); }
.results li i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.results li b { font-weight: 600; }
.results li small { color: var(--muted); font-family: var(--mono); font-size: 11px; margin-left: auto; text-align: right; }
.results .empty { color: var(--muted); cursor: default; }

.actions { display: flex; align-items: center; gap: 4px; padding: 4px; }
.chip, .actions .icon, .seg button, .hud-zoom button, .cap-ctrl button {
  border: 1px solid transparent; background: none; border-radius: 10px; height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover, .actions .icon:hover, .seg button:hover, .hud-zoom button:hover, .cap-ctrl button:hover { background: var(--surface-2); }
.chip.accent { background: var(--accent); color: var(--accent-ink); }
.chip.accent:hover { background: color-mix(in oklab, var(--accent) 85%, var(--text)); }
.chip[aria-pressed='true']:not(.accent) { background: var(--text); color: var(--bg); }
.actions .icon { width: 34px; padding: 0; justify-content: center; }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 2px; }
.seg button { height: 30px; padding: 0 10px; border-radius: 8px; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.i-play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
[data-tour][aria-pressed='true'] .i-play { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.i-theme { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.hud-zoom { left: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 4px; }
.hud-zoom button { width: 34px; padding: 0; justify-content: center; font-size: 17px; }
.hud-zoom output { font-family: var(--mono); font-size: 12px; min-width: 50px; text-align: center; }
.hud-zoom .coords, .hud-zoom .lod { font-size: 11px; color: var(--faint); padding: 0 8px; border-left: 1px solid var(--line); white-space: nowrap; }
.hud-zoom .coords { min-width: 104px; }
.hud-zoom .lod { color: var(--accent); }

.minimap { right: 14px; bottom: 14px; padding: 6px; }
.minimap canvas { display: block; width: 220px; height: 150px; border-radius: 9px; cursor: crosshair; touch-action: none; }

.hint { left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 14px; font-size: 12.5px; color: var(--muted); transition: opacity .6s; white-space: nowrap; }
.hint.gone { opacity: 0; pointer-events: none; }

.caption {
  left: 50%; bottom: 74px; transform: translateX(-50%); width: min(620px, calc(100vw - 28px));
  padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center;
  animation: rise .5s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.cap-progress { grid-column: 1 / -1; height: 3px; background: var(--line); }
.cap-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.cap-body { display: flex; gap: 14px; align-items: flex-start; padding: 14px 6px 14px 18px; min-width: 0; }
.cap-step { font-size: 12px; color: var(--accent); padding-top: 3px; white-space: nowrap; }
.cap-text { min-width: 0; }
.cap-text b { display: block; font-size: 16px; letter-spacing: -.02em; }
.cap-text span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; word-break: keep-all; }
.cap-ctrl { display: flex; gap: 2px; padding: 0 10px; }
.cap-ctrl button { width: 34px; padding: 0; justify-content: center; font-size: 16px; }

/* 도움말 */
.help {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); padding: 24px 26px; width: min(420px, calc(100vw - 32px));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
}
.help::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); }
.help h2 { margin: 0 0 14px; font-size: 18px; }
.help dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; align-items: center; }
.help dt { display: flex; gap: 4px; }
.help dd { margin: 0; font-size: 14px; }
.help p { font-size: 13px; margin: 16px 0; }
.help form { text-align: right; }

/* ───────── 목록 보기 ───────── */
.list {
  position: fixed; inset: 0; z-index: 9; overflow-y: auto; background: var(--bg); outline: none;
  animation: fade .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.list-inner { max-width: 760px; margin: 0 auto; padding: 96px 20px 80px; }
.list-head h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 18px; word-break: keep-all; }
.list-head h1 span { display: block; }
.list-intro { color: var(--muted); font-size: 17px; }
.list-intro p { margin: 0; }
.list-intro b { color: var(--text); }
.list-head .chip { margin-top: 22px; height: 40px; padding: 0 16px; }
.list section { margin-top: 56px; }
.list h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.l-projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.l-projects > li { --c: #888; }
.l-projects .card { cursor: default; }
.l-projects .card .goto { margin-left: auto; }
.l-stack { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.l-stack li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.l-stack li small { display: block; color: var(--muted); font-size: 12.5px; }
.l-tools { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.l-contact { list-style: none; padding: 0; display: grid; gap: 8px; }
.l-contact a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
body.listing .viewport, body.listing .hud:not(.hud-top) { visibility: hidden; }
body.listing .hud-top .search, body.listing .hud-top .seg, body.listing [data-tour], body.listing [data-help] { display: none !important; }
body.listing .actions { margin-left: auto; }

/* ───────── 반응형 ───────── */
@media (max-width: 900px) {
  .hud-zoom .coords { display: none; }
  .hint { display: none; }
  .actions .lbl { display: none; }
  [data-list] .lbl { display: inline; }
  .hero { width: 640px; }
}
@media (max-width: 640px) {
  .hud-top { flex-wrap: wrap; top: 10px; left: 10px; right: 10px; gap: 8px; }
  .brand { flex: 1; }
  .brand { flex: 0 0 auto; padding: 7px; }
  .brand-text { display: none; }
  .actions { margin-left: auto; }
  body.touring .minimap { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .search kbd { display: none; }
  .actions { gap: 2px; }
  .seg button { padding: 0 7px; }
  [data-help] { display: none !important; }
  .hud-zoom { left: 10px; bottom: 10px; }
  .hud-zoom .lod { display: none; }
  .minimap { right: 10px; bottom: 10px; padding: 4px; }
  .minimap canvas { width: 132px; height: 90px; }
  .caption { bottom: 64px; grid-template-columns: 1fr; }
  .cap-body { padding: 12px 14px 4px; }
  .cap-ctrl { justify-content: flex-end; padding: 0 8px 8px; }
  .list-inner { padding-top: 76px; }
}

/* ───────── 모션 줄이기 ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .orb::after { display: none; }
}

/* ── AI Next 추가: 편집 보조 요소, 연락 폼 ── */
.ai-swatch { display: none; }
.contact-form { display: grid; gap: 8px; margin: 14px 0 0; position: relative; }
.contact-form input:not(.hp), .contact-form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text);
  background: color-mix(in oklab, var(--surface) 75%, transparent); border: 1px solid var(--line); border-radius: 12px; resize: vertical;
}
.contact-form input:not(.hp):focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--note); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .chip { justify-self: start; }
.form-status { margin: 0; min-height: 1em; font-size: 12px; color: var(--muted); }
