:root {
  --bg: #0b0f14;
  --bg-alt: #121820;
  --card: #161d26;
  --text: #e8edf2;
  --text-dim: #9aa7b4;
  --accent: #4fd1c5;
  --accent-dim: #2c7a72;
  --border: #23303c;
  --radius: 10px;
  --max-w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  word-break: keep-all;        /* 한글 단어 중간 줄바꿈 방지 */
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

nav.site ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.site a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
nav.site a:hover, nav.site a.active { color: var(--accent); text-decoration: none; }

.hero {
  padding: 96px 0 72px;
  text-align: left;
}
.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 32px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}
.btn.primary {
  background: var(--accent);
  color: #06201d;
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-dim); text-decoration: none; }
.btn.ghost { color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); text-decoration: none; }

section { padding: 64px 0; }
section h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
section .section-sub {
  color: var(--text-dim);
  margin: 0 0 36px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat.txt .num { font-size: 1.15rem; line-height: 1.4; }
.stats-sec { padding-top: 16px; }
.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.grid-cards > .card.wide { grid-column: 1 / -1; }
.grid-cards.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-cards.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-cards.grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(79, 209, 197, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  font-weight: 600;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.card .ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(79, 209, 197, 0.10);
  border: 1px solid rgba(79, 209, 197, 0.22);
}
.card .ico svg { display: block; }
.card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.card .meta { color: var(--text-dim); font-size: 0.85rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.card .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.card .stack span {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text-dim);
}


form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
form.contact-form label {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form textarea { resize: vertical; min-height: 140px; }
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 8px; }

/* 문의 폼: 선택 항목, 첨부, 동의 */
form.contact-form .hp { display: none; }
form.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
form.contact-form legend { padding: 0; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-dim); }
form.contact-form .picks { display: flex; flex-wrap: wrap; gap: 8px; }
form.contact-form label.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
form.contact-form label.pick input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}
form.contact-form label.pick:has(input:checked) { border-color: var(--accent); }
form.contact-form label.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
form.contact-form input[type="file"] { padding: 10px; font-size: 0.9rem; cursor: pointer; }
form.contact-form .consent label.pick { border: 0; background: none; padding: 0; }
form.contact-form ul.form-note { padding-left: 1.2em; margin-bottom: 0; }
form.contact-form button:disabled { opacity: 0.6; cursor: default; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.85rem; }
.file-list[hidden] { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li span:last-child { color: var(--text-dim); white-space: nowrap; }
.file-list li.total { border-bottom: 0; color: var(--text-dim); }
.file-list li.over span:last-child { color: #fc8181; }
.form-warn { margin: 8px 0 0; font-size: 0.85rem; color: #f6ad55; }
.form-status { margin: 0; font-size: 0.9rem; color: var(--text-dim); }
.form-status[data-kind="error"] { color: #fc8181; }
.form-status[hidden], .contact-done[hidden] { display: none; }
.contact-done { max-width: 560px; padding: 24px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.contact-done h2 { margin: 0 0 8px; font-size: 1.2rem; }
.contact-done p { margin: 0; color: var(--text-dim); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- 진행 방식 (공통 시작 → 3갈래) ---------- */
.process-sec .num {
  display: block;
  font: 600 0.72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.process-sec em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  white-space: nowrap;
}
.process-sec .node {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--card);
  border: 1.5px solid var(--accent);
}
.flow-start {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.fs-item { display: flex; align-items: center; gap: 14px; max-width: 300px; }
.fs-item h3 { margin: 0; font-size: 1.02rem; }
.fs-item p { margin: 2px 0 0; color: var(--text-dim); font-size: 0.86rem; }
.fs-arrow {
  flex: none;
  width: 48px;
  height: 10px;
  position: relative;
  border-top: 1.5px dashed var(--accent-dim);
  margin-top: 9px;
}
.fs-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6.5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.flow-branch {
  display: block;
  width: calc(100% - 0px);
  height: 56px;
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.track .when { color: var(--text-dim); font-size: 0.88rem; margin: -2px 0 6px; }
.track h3 { font-size: 1.1rem; }
ol.mini { list-style: none; margin: 4px 0 0; padding: 0; }
ol.mini li {
  position: relative;
  padding: 0 0 12px 24px;
  font-size: 0.92rem;
  color: var(--text);
}
ol.mini li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--card);
  z-index: 1;
}
ol.mini li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.5em + 10px);
  bottom: 0;
  border-left: 1.5px dashed var(--accent-dim);
}
.track .out {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-left: 2px solid var(--accent-dim);
  padding-left: 8px;
}
.process-sec .note, .security-sec .note, .debug-sec .note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .flow-start { flex-direction: column; align-items: flex-start; width: 100%; gap: 12px; }
  .fs-item { max-width: none; }
  .fs-arrow { width: 0; height: 22px; border-top: 0; border-left: 1.5px dashed var(--accent-dim); margin: 0 0 0 23px; }
  .fs-arrow::after { right: auto; left: -5.5px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .flow-branch { display: none; }
  .tracks { grid-template-columns: 1fr; margin-top: 20px; }
}

/* ---------- 보안·기밀 유지 ---------- */
.security-sec .card h3 { font-size: 1.02rem; }

/* ---------- 포트폴리오 원리도 썸네일 ---------- */
.card .thumb {
  margin: -24px -24px 8px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--border) 1px, transparent 1.3px);
  background-size: 16px 16px;
  overflow: hidden;
}
.card .thumb svg { display: block; width: 100%; height: auto; }
.thumb .pf-axis { fill: none; stroke: var(--border); stroke-width: 1.2; }
.thumb .pf-line { fill: none; stroke: var(--text-dim); stroke-opacity: 0.8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thumb .pf-thin { stroke-width: 1; stroke-opacity: 0.5; }
.thumb .pf-acc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumb .pf-accfill-soft { fill: var(--accent); fill-opacity: 0.10; }
.thumb .pf-dash { stroke-dasharray: 4 3; }
.thumb .pf-box { fill: var(--card); stroke: var(--text-dim); stroke-opacity: 0.55; stroke-width: 1.2; }
.thumb .pf-box-acc { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 1.4; }
.thumb .pf-dot-acc { fill: var(--accent); }
.thumb .pf-ring { fill: none; stroke: var(--text-dim); stroke-opacity: 0.7; stroke-width: 1.4; }
.thumb .pf-ring-solid { fill: var(--card); stroke: var(--text-dim); stroke-width: 1.4; }
.thumb .pf-on-acc { fill: none; stroke: var(--card); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thumb .pf-prog { stroke-opacity: 0.6; }
.thumb .pf-pill { fill: none; stroke: var(--border); }
.thumb .pf-pill-acc { stroke: var(--accent); }
.thumb .pf-bar { fill: var(--text-dim); fill-opacity: 0.25; }
.thumb .pf-bar-acc { fill: var(--accent); }
.thumb .pf-eye { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1.2; }
.thumb .pf-screen { fill: var(--bg); stroke: var(--border); }
.thumb .pf-btn { fill: none; stroke: var(--text-dim); stroke-opacity: 0.6; }
.thumb .pf-btn-acc { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-opacity: 1; }
.thumb .pf-ripple { fill: none; stroke: var(--accent); stroke-dasharray: 2 3; stroke-opacity: 0.8; }
.thumb .pf-wall { fill: var(--text-dim); fill-opacity: 0.35; }
.thumb .pf-chip { fill: var(--bg-alt); stroke: var(--text-dim); stroke-opacity: 0.55; stroke-width: 1.1; }
.thumb .pf-chip-bad { stroke: var(--accent); stroke-opacity: 1; stroke-width: 1.5; }
.thumb .pf-lens { fill: var(--accent); fill-opacity: 0.06; stroke: var(--accent); stroke-width: 2.4; }
.thumb .pf-handle { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.thumb .pf-t {
  fill: var(--text-dim);
  font: 600 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
.thumb .pf-tb { fill: var(--text); }
.thumb .pf-ta { fill: var(--accent); }
.thumb .pf-small { font-size: 9px; }
.thumb .pf-big { font-size: 15px; }

/* 원리도 애니메이션: js/portfolio-anim.js가 .thumb에 pf-play를 붙이면 한 번 재생된다.
   모든 동작은 원래의 정지 그림에서 끝나므로, 스크립트가 없으면 그림은 그대로 보인다.
   요소별 조정: --d 시작 지연, --t 길이, --e 가감속, --len 신호 점 길이(경로 대비 비율) */
.thumb .pf-fx { opacity: 0; }
.thumb .pf-weak { opacity: 0.5; }
.thumb .pf-pulse {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: var(--len, 0.3) 2; stroke-dashoffset: 0.6;   /* --len은 0.5 이하 */
}
.thumb .pf-pulse-hi { stroke: var(--text); }
.thumb .pf-seq > :nth-child(2) { --i: 1; }
.thumb .pf-seq > :nth-child(3) { --i: 2; }
.thumb .pf-seq > :nth-child(4) { --i: 3; }
.thumb .pf-seq > :nth-child(5) { --i: 4; }
.thumb .pf-seq > :nth-child(6) { --i: 5; }
.thumb .pf-seq > :nth-child(7) { --i: 6; }
.thumb .pf-seq > :nth-child(8) { --i: 7; }
.thumb .pf-seq > :nth-child(9) { --i: 8; }

.thumb.pf-play .pf-pulse,
.thumb.pf-play [class*="pf-a-"] {
  animation-duration: var(--t, 0.5s);
  animation-timing-function: var(--e, ease-out);
  animation-delay: calc(var(--d, 0s) + var(--i, 0) * var(--step, 0.06s));
  animation-fill-mode: both;
}
.thumb.pf-play .pf-pulse      { animation-name: pf-pulse; animation-timing-function: linear; }
.thumb.pf-play .pf-a-draw     { animation-name: pf-draw; stroke-dasharray: 1 2; }
.thumb.pf-play .pf-a-drawfill { animation-name: pf-drawfill; stroke-dasharray: 1 2; }
.thumb.pf-play .pf-a-drawfx   { animation-name: pf-drawfx; stroke-dasharray: 1 2; }
.thumb.pf-play .pf-a-fade     { animation-name: pf-fade; }
.thumb.pf-play .pf-a-march    { animation-name: pf-march; animation-timing-function: linear; }
.thumb.pf-play .pf-a-flash    { animation-name: pf-flash; }
.thumb.pf-play .pf-a-glow     { animation-name: pf-glow; }
.thumb.pf-play .pf-a-beat     { animation-name: pf-beat; }
.thumb.pf-play .pf-a-hit      { animation-name: pf-hit; }
.thumb.pf-play .pf-a-found    { animation-name: pf-found; }
.thumb.pf-play .pf-a-settle   { animation-name: pf-settle; animation-timing-function: ease-in-out; }
.thumb.pf-play .pf-a-scan     { animation-name: pf-scan; }
.thumb.pf-play .pf-a-shake    { animation-name: pf-shake; }
.thumb.pf-play .pf-a-blow     { animation-name: pf-blow; }
.thumb.pf-play .pf-a-fall     { animation-name: pf-fall; animation-iteration-count: 2; }
.thumb.pf-play .pf-a-pop,
.thumb.pf-play .pf-a-ripple,
.thumb.pf-play .pf-a-spin,
.thumb.pf-play .pf-a-growx,
.thumb.pf-play .pf-a-growy { transform-box: fill-box; transform-origin: center; }
.thumb.pf-play .pf-a-pop    { animation-name: pf-pop; }
.thumb.pf-play .pf-a-ripple { animation-name: pf-ripple; }
.thumb.pf-play .pf-a-spin   { animation-name: pf-spin; }
.thumb.pf-play .pf-a-growx  { animation-name: pf-growx; transform-origin: left center; }
.thumb.pf-play .pf-a-growy  { animation-name: pf-growy; transform-origin: center bottom; }
/* 화면에 들어오기 전: 첫 장면에서 대기 */
.thumb.pf-wait .pf-pulse,
.thumb.pf-wait [class*="pf-a-"] { animation-play-state: paused; }

@keyframes pf-pulse    { from { stroke-dashoffset: 0.6; } to { stroke-dashoffset: -1.1; } }
@keyframes pf-draw     { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes pf-drawfill { from { stroke-dashoffset: 1.05; fill-opacity: 0; } to { stroke-dashoffset: 0; } }
@keyframes pf-drawfx   { 0% { opacity: 0.8; stroke-dashoffset: 1.05; } 85% { opacity: 0.8; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes pf-fade     { from { opacity: 0; } }
@keyframes pf-march    { from { stroke-dashoffset: 28; } }
@keyframes pf-flash    { 35% { stroke: var(--accent); stroke-opacity: 1; } }
@keyframes pf-glow     { 35% { fill-opacity: 0.5; } }
@keyframes pf-beat     { 35% { stroke-width: 3.8; } }
@keyframes pf-hit      { 30% { fill: var(--accent); fill-opacity: 0.9; } }
@keyframes pf-found    { from { stroke: var(--text-dim); stroke-opacity: 0.55; stroke-width: 1.1; } }
@keyframes pf-pop      { from { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.18); } to { transform: scale(1); } }
@keyframes pf-ripple   { from { opacity: 0; transform: scale(0.3); } }
@keyframes pf-spin     { from { opacity: 0; transform: rotate(-120deg) scale(0.5); } }
@keyframes pf-growx    { from { transform: scaleX(0); } }
@keyframes pf-growy    { from { transform: scaleY(0.12); } }
@keyframes pf-blow     { from { opacity: 0; transform: translateX(-16px); } }
@keyframes pf-fall     { from { opacity: 0; transform: translateY(-9px); } }
@keyframes pf-shake    { 12%, 50%, 88% { transform: translateX(-2.5px); } 30%, 70% { transform: translateX(2.5px); } }
@keyframes pf-settle {
  0%   { opacity: 0; transform: translateX(52px); }
  12%  { opacity: 1; }
  38%  { transform: translateX(-22px); }
  62%  { transform: translateX(10px); }
  82%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
@keyframes pf-scan {
  0%   { transform: translate(-82px, 16px); }
  30%  { transform: translate(-58px, -14px); }
  62%  { transform: translate(-24px, 22px); }
  100% { transform: translate(0, 0); }
}

/* ---------- 소개: 코어 + 협력 네트워크 구성도 ---------- */
.about-art svg { max-width: 460px; margin-left: auto; }
.about-art .ab-link { fill: none; stroke: var(--accent-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }
.about-art .ab-orbit { fill: none; stroke: var(--border); stroke-width: 1.2; }
.about-art .ab-core-halo { fill: var(--accent); fill-opacity: 0.05; }
.about-art .ab-core { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 2; }
.about-art .ab-chip { fill: var(--card); stroke: var(--border); stroke-width: 1.2; }
.about-art .ab-partner { fill: var(--card); stroke: var(--text-dim); stroke-opacity: 0.6; stroke-width: 1.4; stroke-dasharray: 4 4; }
.about-art .ab-mono { fill: var(--text-dim); font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.about-art .ab-acc { fill: var(--accent); }
.about-art .ab-dim { font-size: 10px; }
.about-art .ab-strong { fill: var(--text); font-weight: 700; font-size: 17px; }
.about-art .ab-sm { font-size: 14px; }

/* ---------- 소개: 걸어온 길 (연도 축 없는 단계 흐름) ---------- */
.journey { position: relative; }
.j-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
/* 단계를 잇는 흐름선: 왼쪽은 흐리게 시작(2000년대 초 이전부터), 오른쪽은 화살표로 계속 */
.j-phases::before {
  content: "";
  position: absolute;
  top: 21px;
  left: -8px;
  right: 6px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-dim) 12%, var(--accent) 100%);
}
.j-phases::after {
  content: "";
  position: absolute;
  top: 16.5px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}
.j-phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.j-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.j-node {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  background: var(--card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}
.j-now .j-node { background: var(--accent); color: var(--bg); }
.j-when {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  position: relative;
  z-index: 1;
}
.j-now .j-when { color: var(--accent); border-color: var(--accent-dim); }
.j-phase h3 { margin: 0; font-size: 1.15rem; }
.j-phase > p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.j-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.j-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.j-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.j-span {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px dashed var(--accent-dim);
  border-radius: var(--radius);
}
.j-span-label { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-right: 6px; }
.j-chip {
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 3px 12px;
}
@media (max-width: 900px) {
  .j-phases { grid-template-columns: 1fr; gap: 28px; }
  .j-phases::before {
    top: -8px; bottom: 10px; left: 21px; right: auto; width: 2px; height: auto;
    background: linear-gradient(to bottom, transparent, var(--accent-dim) 6%, var(--accent) 100%);
  }
  .j-phases::after { top: auto; bottom: 4px; right: auto; left: 16.5px; transform: rotate(135deg); }
  .j-phase { padding-left: 0; }
  .j-phase h3, .j-phase > p, .j-points { margin-left: 56px; }
}

/* ---------- 소개: 역량 지도 ---------- */
.cap-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cap-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 8px;
}
.cap-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cap-no {
  font: 600 0.75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 2px 6px;
}
.cap-col ul { list-style: none; margin: 0; padding: 0; }
.cap-col li { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.cap-col li:last-child { border-bottom: 0; }
.cap-col h3 { margin: 0 0 4px; font-size: 0.98rem; }
.cap-col p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
@media (max-width: 900px) {
  .cap-map { grid-template-columns: 1fr; }
}

/* ---------- 메인 히어로: 텍스트 + 대표 일러스트 ---------- */
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }

.hero-art .ha-dot { fill: var(--border); }
.hero-art .ha-stop-a { stop-color: var(--accent); stop-opacity: 0.30; }
.hero-art .ha-stop-b { stop-color: var(--accent); stop-opacity: 0.03; }
.hero-art .ha-ring-arc { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; }
.hero-art .ha-panel { fill: var(--card); stroke: var(--border); }
.hero-art .ha-axis { fill: none; stroke: var(--border); stroke-width: 1; }
.hero-art .ha-curve { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.hero-art .ha-acc-fill { fill: var(--accent); }
.hero-art .ha-faint-fill { fill: var(--border); }
.hero-art .ha-board { fill: var(--card); stroke: var(--border); }
.hero-art .ha-board-inner { fill: none; stroke: var(--border); stroke-dasharray: 3 4; opacity: 0.7; }
.hero-art .ha-trace { fill: none; stroke: var(--text-dim); stroke-opacity: 0.45; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hero-art .ha-via { fill: var(--card); stroke: var(--text-dim); stroke-opacity: 0.6; stroke-width: 1.6; }
.hero-art .ha-pad { fill: var(--text-dim); opacity: 0.55; }
.hero-art .ha-pin { fill: none; stroke: var(--text-dim); stroke-opacity: 0.7; stroke-width: 2; }
.hero-art .ha-chip { fill: var(--bg-alt); stroke: var(--text-dim); stroke-opacity: 0.7; stroke-width: 1.4; }
.hero-art .ha-pulse {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 16 420; stroke-dashoffset: 16;
  animation: ha-flow 3.2s linear infinite;
}
.hero-art .ha-body { fill: var(--bg-alt); stroke: var(--text-dim); stroke-opacity: 0.7; stroke-width: 1.4; stroke-linejoin: round; }
.hero-art .ha-yoke { fill: none; stroke: var(--text-dim); stroke-width: 3; stroke-linecap: round; }
.hero-art .ha-motion { fill: none; stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 1.2; stroke-dasharray: 3 3; }
.hero-art .ha-sum { fill: url(#ha-sum); stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1.2; }
.hero-art .ha-delta { fill: none; stroke: var(--text-dim); stroke-opacity: 0.55; stroke-width: 1.1; stroke-dasharray: 4 3; }
.hero-art .ha-bore { stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1; }
.hero-art .ha-wave {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 3 21; animation: ha-out 1.1s linear infinite;
}
.hero-art .ha-strut { fill: none; stroke: var(--text-dim); stroke-width: 1.4; }
.hero-art .ha-dish { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.hero-art .ha-feed { fill: var(--accent); }
.hero-art .ha-hub { fill: var(--bg-alt); stroke: var(--text-dim); stroke-width: 2; }
.hero-art .ha-reticle { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.hero-art .ha-ping {
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
  animation: ha-ping 2.4s ease-out infinite;
}
.hero-art .ha-label {
  fill: var(--text-dim);
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}
.hero-art .ha-greek { font-size: 15px; fill: var(--text); opacity: 0.75; }
.hero-art .ha-acc-text { fill: var(--accent); }
.hero-art .ha-val { fill: var(--text); }
.hero-art .ha-mode { fill: var(--accent); }

/* 무인기 추적: js/hero-track.js가 켜졌을 때만(svg.ha-live) 고정 표적 대신 표시 */
.hero-art svg { pointer-events: none; }
.hero-art .ha-uav { display: none; transition: opacity 0.15s; }
.hero-art .ha-live .ha-uav { display: inline; }
.hero-art .ha-live .ha-target { display: none; }
.hero-art .ha-uav-body { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.hero-art .ha-uav .ha-ping { animation: none; opacity: 0; }
.hero-art .ha-uav-ring,
.hero-art .ha-uav-lock { opacity: 0; transition: opacity 0.2s; }
.hero-art [data-state="track"] .ha-uav-ring { opacity: 0.5; stroke-dasharray: 3 4; }
.hero-art [data-state="lock"] .ha-uav-ring,
.hero-art [data-state="lock"] .ha-uav-lock { opacity: 1; }
.hero-art [data-state="lock"] .ha-uav .ha-ping { animation: ha-ping 2.4s ease-out infinite; }
.hero-art [data-state="track"] .ha-mode { fill: var(--text); }
.hero-art [data-state="search"] .ha-mode { fill: var(--text-dim); }
.hero-art [data-state="search"] .ha-err-dot { opacity: 0.3; }
/* 그림 밖(본문 위)에서는 글을 가리지 않게 레티클을 줄이고, 링크 위에서는 무인기를 흐리게 */
.hero-art .ha-far .ha-uav .ha-ping { animation: none; }
.hero-art .ha-far .ha-uav-ring,
.hero-art .ha-far .ha-uav-lock { opacity: 0.45; }
.hero-art .ha-far[data-state="search"] .ha-uav-ring,
.hero-art .ha-far[data-state="search"] .ha-uav-lock,
.hero-art .ha-far[data-state="track"] .ha-uav-lock { opacity: 0; }
.hero-art .ha-dim .ha-uav { opacity: 0.25; }
.hero.ha-cursor { cursor: none; }
.hero.ha-cursor a { cursor: pointer; }

@keyframes ha-flow { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -420; } }
@keyframes ha-out  { to { stroke-dashoffset: -24; } }
@keyframes ha-ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art * { animation: none !important; }
}

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 480px; }
}

@media (max-width: 640px) {
  nav.site ul { gap: 14px; }
  .hero { padding: 64px 0 48px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 1rem; }
  nav.site ul { gap: 12px; }
  nav.site a { font-size: 0.88rem; }
}

/* ---------- 회사형 공통: 로고 마크 · 하단 회사 정보 ---------- */
header.site .wrap { flex-wrap: wrap; row-gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }
.brand-glint { fill: var(--bg); }
.stat-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--text-dim); }
.contact-mail { margin: -16px 0 0; color: var(--text-dim); }

footer.site { text-align: left; padding: 36px 0 40px; }
.foot { display: flex; flex-direction: column; gap: 6px; }
.foot-brand { font-weight: 700; color: var(--text); margin-right: 12px; }
.foot-brand span { color: var(--accent); }
.foot-info a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.foot-info a:hover { color: var(--accent); }
.foot-sep { margin: 0 8px; }
.foot-copy { margin-top: 6px; }

/* ---------- 회사소개: 눈 모양 그림 · 협력 체계 ---------- */
.eye-art svg { max-width: 460px; margin-left: auto; }
.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.partner-sec .about-art svg { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
@media (max-width: 860px) {
  .partner-grid { grid-template-columns: 1fr; gap: 20px; }
  .eye-art { max-width: 420px; }
}

/* ---------- 개인정보처리방침 ---------- */
.doc { max-width: 800px; }
.doc h2 { font-size: 1.12rem; margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-dim); font-size: 0.95rem; }
.doc ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.doc p { margin: 0 0 10px; }
.doc-table { overflow-x: auto; margin: 12px 0 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); background: var(--card); font-weight: 600; }
.doc td { color: var(--text-dim); }
.doc tr:last-child td { border-bottom: 0; }
.nw{white-space:nowrap}
