@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css");

@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

/* ============================================================
   XON JOBS design tokens
   ink        : 본문/헤드라인
   brand      : 시그니처 오렌지 — 매칭·액션
   signal     : 틸그린 — 검증·에스크로·안전
   flag       : 레드 — 마감임박/알림
   grade      : 골드 — 파트너 등급
   ============================================================ */
:root {
  --ink: #171310;
  --ink-2: #4a3f38;
  --muted: #857a72;
  --muted-2: #ada49d;
  --line: #eae5e1;
  --line-2: #f4f1ee;
  --paper: #ffffff;
  --canvas: #faf7f5;
  --canvas-2: #f2ede9;

  --brand: #f9490a;
  --brand-ink: #c4380a;
  --brand-soft: #fff0e9;
  --brand-line: #ffd2be;

  --signal: #0f9d76;
  --signal-soft: #e2f7f0;
  --flag: #d92d20;
  --flag-soft: #fdeceb;
  --grade: #b9873a;
  --grade-soft: #faf1e2;
  --danger: #d92d20;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-1: 0 1px 2px rgba(16, 19, 28, .05);
  --shadow-2: 0 6px 20px -6px rgba(16, 19, 28, .14);
  --shadow-3: 0 24px 60px -22px rgba(16, 19, 28, .3);

  --font-display: "GmarketSans", "Pretendard", system-ui, sans-serif;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gnb-h: 64px;
  --sub-h: 46px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
}
img { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.disp { font-family: var(--font-display); }

/* ---------------- Global nav ---------------- */
.gnb {
  position: sticky; top: 0; z-index: 400;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.gnb-in { height: var(--gnb-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; display: block; }
.gnb-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.gnb-menu > li > a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.gnb-menu > li > a:hover { background: var(--canvas); color: var(--ink); }
.gnb-menu > li.on > a { color: var(--brand); }
.gnb-menu .tag-ai { margin-left: 5px; font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 5px; letter-spacing: .02em; }
.gnb-util { display: flex; align-items: center; gap: 8px; }
.gnb-util a.txt { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 6px; }
.gnb-util a.txt:hover { color: var(--ink); }

/* sub nav (context bar) */
.subnav { background: var(--canvas); border-bottom: 1px solid var(--line); position: sticky; top: var(--gnb-h); z-index: 380; }
.subnav-in { height: var(--sub-h); display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subnav a.on { color: var(--brand); }
.subnav a:hover { color: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 20px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; transition: .16s ease;
  white-space: nowrap;
}
.btn-pri { background: var(--brand); color: #fff; }
.btn-pri:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: var(--brand-line); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }

/* ---------------- Chips / badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--ink-2); transition: .14s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
}
.b-brand { background: var(--brand-soft); color: var(--brand-ink); }
.b-signal { background: var(--signal-soft); color: #00755a; }
.b-flag { background: var(--flag-soft); color: #b2440c; }
.b-grade { background: var(--grade-soft); color: var(--grade); }
.b-line { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.b-ink { background: var(--ink); color: #fff; }
.dday { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--flag); }

/* stack of skill tags */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--canvas); border-radius: 4px; padding: 3px 7px; }

/* ---------------- Cards ---------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 22px; }
.card-hover { transition: .18s ease; }
.card-hover:hover { border-color: var(--brand-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }

.sec { padding: 76px 0; }
.sec-tight { padding: 52px 0; }
.sec-canvas { background: var(--canvas); }
.sec-ink { background: var(--ink); color: #fff; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.sec-h { font-family: var(--font-display); font-size: 32px; letter-spacing: -.035em; }
.sec-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.more { font-size: 14px; font-weight: 600; color: var(--muted); }
.more:hover { color: var(--brand); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- Forms ---------------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .flabel { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.flabel .req { color: var(--danger); margin-left: 3px; }
.inp, select.inp, textarea.inp {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: 14.5px; transition: .14s;
}
textarea.inp { height: auto; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.inp::placeholder { color: var(--muted-2); }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); }
.inline { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

/* ---------------- Tables ---------------- */
.tbl { font-size: 13.5px; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); text-align: center; }
.tbl thead th { background: var(--canvas); font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:hover { background: #fafbfe; }
.tbl td.l, .tbl th.l { text-align: left; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl a.lnk { font-weight: 600; }
.tbl a.lnk:hover { color: var(--brand); text-decoration: underline; }

.pager { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 26px; }
.pager a, .pager span {
  min-width: 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--paper);
}
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Tabs / accordion ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button {
  padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabpane { display: none; }
.tabpane.on { display: block; }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; text-align: left; font-size: 16px; font-weight: 700; }
.acc-q::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--muted); flex: none; }
.acc-item.on .acc-q::after { content: "−"; color: var(--brand); }
.acc-a { display: none; padding: 0 4px 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.acc-item.on .acc-a { display: block; }

/* ---------------- Signature: dual matching rail ---------------- */
.rail { position: relative; }
.rail svg { display: block; width: 100%; height: auto; }
.rail .track { stroke: var(--line); stroke-width: 1.5; fill: none; }
.rail .track-live { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 7 9; animation: railFlow 1.6s linear infinite; }
.rail .track-live.alt { stroke: var(--signal); animation-duration: 2.1s; }
@keyframes railFlow { to { stroke-dashoffset: -32; } }
.rail .node { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.rail .node-hub { fill: var(--ink); stroke: none; }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: .07; transform: scale(1.5); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- Footer ---------------- */
.foot { background: var(--ink); color: #99a0b5; padding: 56px 0 40px; font-size: 13.5px; }
.foot a { color: #c5cade; }
.foot a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 34px; border-bottom: 1px solid #262b3c; }
.foot h5 { color: #fff; font-size: 13.5px; margin-bottom: 13px; }
.foot li { margin-bottom: 8px; }
.foot-brand .logo img { height: 38px; }
.foot-cs { margin-top: 16px; }
.foot-cs strong { display: block; font-family: var(--font-mono); font-size: 22px; color: #fff; letter-spacing: -.02em; }
.foot-bot { padding-top: 26px; font-size: 12.5px; color: #6d768e; line-height: 1.9; }
.foot-legal { display: flex; gap: 16px; margin-bottom: 12px; font-weight: 600; }

/* ---------------- Modal / toast ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(16,19,28,.5); display: none; align-items: center; justify-content: center; z-index: 900; padding: 20px; }
.modal-bg.on { display: flex; }
.modal { background: var(--paper); border-radius: var(--r-xl); width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-3); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 18px; }
.modal-b { padding: 24px; }
.modal-f { padding: 16px 24px 24px; display: flex; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .24s; z-index: 950; box-shadow: var(--shadow-3); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Page head ---------------- */
.phead { border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.crumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 10px; }
.crumb span { margin: 0 6px; }
.phead h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.035em; }
.phead p { margin-top: 8px; color: var(--muted); }

/* ---------------- Layout: filter + list ---------------- */
.split { display: grid; grid-template-columns: 258px 1fr; gap: 32px; align-items: start; padding: 30px 0 80px; }
.filter { position: sticky; top: calc(var(--gnb-h) + 16px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.filter-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; background: var(--canvas); }
.fgroup { border-bottom: 1px solid var(--line-2); }
.fgroup > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 13.5px; font-weight: 700; text-align: left; }
.fgroup > button::after { content: "▾"; font-size: 10px; color: var(--muted-2); transition: .2s; }
.fgroup.on > button::after { transform: rotate(180deg); }
.fbody { display: none; padding: 0 16px 14px; }
.fgroup.on .fbody { display: block; }
.fbody label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.fbody input[type=checkbox], .fbody input[type=radio] { accent-color: var(--brand); }
.list-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.list-bar .cnt { font-size: 14px; color: var(--muted); }
.list-bar .cnt b { color: var(--ink); font-family: var(--font-mono); }
.sorts { display: flex; gap: 14px; font-size: 13.5px; }
.sorts button { color: var(--muted); font-weight: 600; }
.sorts button.on { color: var(--ink); }

/* project row card */
.pcard { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.pcard:hover .pcard-t { color: var(--brand); }
.pcard-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.pcard-t { font-size: 18px; font-weight: 700; letter-spacing: -.02em; transition: .14s; }
.pcard-info { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 11px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.pcard-info b { font-weight: 700; }
.pcard-info .sep { color: var(--line); }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; }
.pcard-cli { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--canvas-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; }
.avatar.rnd { border-radius: 50%; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; }

/* stat block */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats > div { background: var(--paper); padding: 24px 20px; }
.stats .n { font-family: var(--font-display); font-size: 30px; letter-spacing: -.04em; }
.stats .n em { font-style: normal; font-size: 17px; color: var(--muted); margin-left: 2px; }
.stats .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .gnb-menu { display: none; }
  .split { grid-template-columns: 1fr; }
  .filter { position: static; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sec { padding: 52px 0; }
  .sec-h { font-size: 25px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
