@charset "UTF-8";
@font-face {
  font-family: "Wanted Sans Variable";
  src: url("fonts/WantedSansVariable.subset.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Wanted Sans Outline";
  src: url("fonts/WantedSansOutline.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Hangul";
  src: url("fonts/JetBrainsMonoHangul-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0f1115;
  --muted: #565c66;
  --faint: #8b949e;
  --line: #d8dade;
  --stroke: #d9dee4;
  --accent: #1447e6;
  --hl: #bfdbfe;
  --tint: #eff6ff;
  --hue: #1447e6;
  --pad: 6vw;
  --top: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:root { interpolate-size: allow-keywords; }
html { scroll-behavior: smooth; }
body {
  font-family: "Wanted Sans Variable", "Wanted Sans", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: "JetBrains Mono Hangul", "SF Mono", Menlo, monospace; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; display: inline-block; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
::selection { background: var(--hl); }

/* 폰트 로드 게이트 */
body { transition: opacity 0.2s ease; }
html.wf body { opacity: 0; }

/* ===== 리빌 애니메이션 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mq-track, .type, .type-res, .caret, .hint { animation: none !important; }
  .type { width: auto !important; }
  .type-res { opacity: 1 !important; max-width: none !important; }
}

/* ===== 상단 바 + 진행 바 ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  background: #ffffffe6;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.topbar a:hover { color: var(--accent); }
#tb-now { position: absolute; left: 50%; transform: translateX(-50%); color: var(--faint); transition: opacity 0.3s; letter-spacing: 0.16em; white-space: nowrap; }
#progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21;
  height: 2px;
  width: 0;
  background: var(--accent);
}

/* ===== 히어로 ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--top) var(--pad) 14dvh;
  overflow: hidden;
}
.mq {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--top) + 4dvh);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.mq-track {
  font-family: "Wanted Sans Outline", "Wanted Sans Variable", sans-serif;
  display: inline-block;
  font-size: clamp(96px, 13vw, 190px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--stroke);
  padding: 0.08em 0 0.12em;
  animation: mq 70s linear infinite;
}
.mq-track .cap { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

.hero-main { position: relative; z-index: 1; margin-top: 10dvh; }
.hv-name {
  font-size: clamp(76px, 12.5vw, 176px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hv-name .dot { color: var(--accent); }
.hv-role {
  margin-top: 4.4dvh;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 600;
  color: var(--muted);
}
.hv-role b { color: var(--ink); }
.hv-quote {
  margin-top: 1.8dvh;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.em {
  background: linear-gradient(var(--hl), var(--hl)) no-repeat left 90% / 100% 0.34em;
  padding-bottom: 1px;
}

.hero .tree {
  position: absolute;
  right: var(--pad);
  bottom: 16dvh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 14px 20px;
  background: #ffffffd9;
  backdrop-filter: blur(4px);
}
.tree .ihd { color: var(--ink); font-weight: 700; }
.tree b { color: var(--ink); font-weight: 700; }
.tree a { transition: color 0.15s; }
.tree a:hover, .tree a:hover b { color: var(--accent); }

.hero-foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 5dvh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  font-size: 12.5px;
  color: var(--faint);
}
.type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  animation: typing 2s steps(40) 0.5s forwards;
}
@keyframes typing { to { width: var(--tw, 40ch); } }
.type-res {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  animation: resshow 0.4s ease 2.8s forwards;
}
.type-res .ok { color: var(--accent); font-weight: 700; }
@keyframes resshow { to { max-width: 40ch; opacity: 1; } }
.caret {
  display: inline-block;
  width: 0.58em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.12em;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hint { animation: hint 2.2s ease-in-out infinite; white-space: nowrap; }
@keyframes hint { 50% { transform: translateY(5px); } }

/* 서브 히어로 (포트폴리오) */
.hero.sub { min-height: 56dvh; padding-bottom: 10dvh; }
.hero.sub .mq-track { font-size: clamp(64px, 8vw, 120px); }
.hero.sub .hv-name { font-size: clamp(48px, 7.5vw, 104px); }
.hero.sub .hero-main { margin-top: 2dvh; }
.hero.sub .tree { bottom: 11dvh; }
.hero.sub .term { bottom: 3dvh; }

/* ===== 섹션 공통: 스티키 챕터 헤드 ===== */
.sec {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 9dvh var(--pad) 13dvh;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 5vw;
  align-items: start;
}
.sec-head { position: sticky; top: calc(var(--top) + 5dvh); text-align: right; }
.g-num {
  font-family: "Wanted Sans Outline", "Wanted Sans Variable", sans-serif;
  font-size: clamp(96px, 9vw, 150px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.4px #e4e8ed;
  margin-bottom: 2dvh;
  user-select: none;
}
.kicker { font-size: 11px; letter-spacing: 0.16em; color: var(--faint); }
.sec h2 {
  margin-top: 1.2dvh;
  font-size: clamp(27px, 2.7vw, 40px);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.22;
  word-break: keep-all;
  text-wrap: balance;
}
.sec h2 .l2 { display: block; text-wrap: balance; }
.meta { margin-top: 1.6dvh; font-size: 12px; color: var(--faint); line-height: 1.8; font-family: "Wanted Sans Variable", "Wanted Sans", "Apple SD Gothic Neo", sans-serif; letter-spacing: 0; }

.sec-body > * + * { margin-top: 4.5dvh; }
.lead {
  font-size: clamp(16px, 1.45vw, 20px);
  color: var(--muted);
  word-break: keep-all;
}
.lead b { color: var(--ink); }

ul.points { list-style: none; }
ul.points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 2.2dvh;
  font-size: clamp(14.5px, 1.2vw, 17px);
  color: var(--muted);
  word-break: keep-all;
}
ul.points li::before { content: "\25AA"; position: absolute; left: 0; top: 0.2em; color: var(--accent); font-size: 0.75em; }
ul.points b { color: var(--ink); }

/* 다이어그램 */
.fig {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 36px);
  background: #fff;
}
.fig svg { width: 100%; height: auto; display: block; font-family: inherit; }
.fig .bx { fill: #ffffff; stroke: #cbd5e1; stroke-width: 1; }
.fig .hi { fill: var(--tint); stroke: var(--hue); stroke-width: 1.2; }
.fig .ghost { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 4 3; }
.fig .chip { fill: #f8fafc; stroke: #e2e8f0; stroke-width: 1; }
.fig text { text-anchor: middle; }
.fig .t { font-size: 11.5px; font-weight: 700; fill: #0f172a; }
.fig .s { font-size: 9.5px; fill: #64748b; }
.fig .h { font-size: 11.5px; font-weight: 800; fill: var(--hue); }
.fig .ln { stroke: #94a3b8; stroke-width: 1.2; fill: none; }
.fig .lh { stroke: var(--hue); stroke-width: 1.4; fill: none; }
.fig .dash { stroke-dasharray: 4 3; }
.fig-tag {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
}

/* 성과 콜아웃 */
.result {
  border-left: 3px solid var(--accent);
  background: var(--tint);
  padding: 16px 20px;
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  color: var(--ink);
  word-break: keep-all;
}
.result .label { color: var(--accent); font-weight: 800; margin-right: 10px; }

/* 태그 칩 */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 11px;
  transition: border-color 0.15s, color 0.15s;
}
.tags i:hover { border-color: var(--accent); color: var(--accent); }

/* 룰드 로우 */
.rows { border-top: 2.5px solid var(--ink); }
.row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 2.6dvh 6px 2.4dvh;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.row .num .ic { margin-right: 3px; vertical-align: -0.18em; }
.row .num { flex: 0 0 92px; font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.row .ttl { flex: 0 0 auto; font-size: clamp(15px, 1.3vw, 18px); font-weight: 800; word-break: keep-all; }
.row .dsc { flex: 1 1 auto; font-size: clamp(13px, 1.05vw, 15px); color: var(--muted); word-break: keep-all; }
.row .ext { flex: 0 0 auto; margin-left: auto; font-size: 11.5px; color: var(--faint); }
a.row:hover { background: var(--tint); }
a.row:hover .ttl { color: var(--accent); }

/* 스탯 */
.stats { border-top: 2.5px solid var(--ink); }
.stats .ks { display: flex; align-items: baseline; gap: 20px; padding: 2.6dvh 4px 2.4dvh; border-bottom: 1px solid var(--line); }
.stats .ks .n {
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 3em;
}
.stats .ks .n small { font-size: 0.5em; font-weight: 800; }
.stats .ks .d { font-size: clamp(12.5px, 1vw, 14.5px); font-weight: 600; color: var(--muted); line-height: 1.6; word-break: keep-all; }

/* 지도 리스트 */
ul.map { list-style: none; border-top: 2.5px solid var(--ink); }
ul.map li { border-bottom: 1px solid var(--line); }
ul.map a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 2.2dvh 6px 2dvh;
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  word-break: keep-all;
}
ul.map a b { color: var(--accent); font-weight: 800; font-size: 0.8em; letter-spacing: 0.04em; }
ul.map a:hover { background: var(--tint); color: var(--ink); }
ul.map a .go { margin-left: auto; font-size: 12px; color: var(--faint); opacity: 0; transition: opacity 0.15s; }
ul.map a:hover .go { opacity: 1; color: var(--accent); }

/* 전폭 요소 (섹션 그리드 1/-1) */
.fig.wide { max-width: none; }

/* 소단락: 제목 + 본문 + 관련 이미지 */
.blk h4 { font-size: clamp(16px, 1.35vw, 19px); font-weight: 800; letter-spacing: -0.012em; word-break: keep-all; }
.blk h4 .no { color: var(--accent); font-size: 0.78em; margin-right: 10px; letter-spacing: 0.04em; }
.blk > p { margin-top: 8px; color: var(--muted); font-size: clamp(14px, 1.12vw, 16px); word-break: keep-all; }
.blk > p b { color: var(--ink); }
.blk .fig, .blk .shot, .blk .shot-duo { margin-top: 22px; }
.blk .shot-duo + .shot-duo { margin-top: 14px; }
.full-bleed { grid-column: 1 / -1; width: 100%; }

/* 하프 컬럼 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: start; }
.col h3 { font-size: clamp(20px, 1.9vw, 27px); font-weight: 900; letter-spacing: -0.015em; }
.col .sub { margin-top: 0.6dvh; font-size: 12px; color: var(--faint); }
.col p { margin-top: 2dvh; font-size: clamp(14px, 1.1vw, 15.5px); color: var(--muted); word-break: keep-all; }
.col p b { color: var(--ink); }
.col .stats { margin-top: 2.6dvh; }
.golink { display: inline-block; margin-top: 2.4dvh; font-size: 13px; font-weight: 700; color: var(--accent); font-family: "Wanted Sans Variable", "Wanted Sans", "Apple SD Gothic Neo", sans-serif; letter-spacing: 0; }
.golink:hover { text-decoration: underline; }

/* 캡처 */
.shot { width: 100%; border: 1px solid var(--line); background: #fff; padding: 10px; }
.shot img { width: 100%; display: block; cursor: zoom-in; }
.shot figcaption { padding-top: 9px; font-size: 10.5px; color: var(--faint); }
.shot-duo { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.shot-duo .shot { max-width: none; padding: 8px; }
.duo-mix { grid-template-columns: 100fr 26fr; }
.duo-mix .shot { padding: 0; }
.duo-mix .shot figcaption { padding: 8px 10px 9px; }

.brand { display: flex; justify-content: flex-start; align-items: center; gap: 14px; }
.brand img { height: 40px; width: auto; display: block; }
.brand .slug { font-size: 12px; color: var(--faint); }

/* 상단바 네비 */
.tb-left { display: flex; align-items: center; gap: 26px; }
.tb-nav { display: flex; gap: 16px; }
.tb-nav a { color: var(--faint); }
.tb-nav a.on { color: var(--accent); }
.tb-nav a:hover { color: var(--ink); }

/* 콜랩서블 로우 */
details.rowd summary { list-style: none; cursor: pointer; }
details.rowd summary::-webkit-details-marker { display: none; }
details.rowd summary:hover { background: var(--tint); }
.chev { width: 14px; height: 14px; margin-left: 5px; color: var(--accent); vertical-align: -2px; transition: transform 0.25s; }
details.rowd[open] .chev { transform: rotate(180deg); }
details.rowd::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.32s ease, content-visibility 0.32s allow-discrete; }
details.rowd[open]::details-content { block-size: auto; }
.fold-list { list-style: none; columns: 2; column-gap: 44px; padding: 1.8dvh 6px 2.8dvh 112px; border-bottom: 1px solid var(--line); }
.fold-list.one { columns: 1; }
.fold-list li { break-inside: avoid; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--ink); font-weight: 600; }
.fold-list li:last-child, .fold-list.one li:last-child { border-bottom: 0; }
.fold-list li i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.fold-list .fd { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .fold-list { columns: 1; padding-left: 6px; } }

/* 라이트박스 */
#lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; }
#lightbox[open] { display: flex; align-items: center; justify-content: center; }
#lightbox::backdrop { background: rgba(15, 17, 21, 0.87); }
#lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
#lightbox img { max-width: 92vw; max-height: 80dvh; object-fit: contain; background: #fff; padding: 10px; box-sizing: border-box; cursor: zoom-out; }
#lightbox figcaption { color: #c8cdd4; font-size: 11px; letter-spacing: 0.08em; }
.lb-close { position: fixed; top: 74px; right: 24px; background: none; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; font-size: 11px; letter-spacing: 0.12em; padding: 7px 13px; cursor: pointer; }
.lb-close:hover { border-color: #fff; }

/* ===== 푸터 ===== */
.foot {
  border-top: 2px solid var(--ink);
  padding: 5dvh var(--pad) 6dvh;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}
.foot .ok { color: var(--accent); font-weight: 700; }

/* ===== 모바일 ===== */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .tb-mid { display: none; }
  .topbar { font-size: 10px; letter-spacing: 0.12em; }
  .hero { padding-bottom: 20dvh; justify-content: flex-start; }
  .mq-track { font-size: 72px; }
  .hero-main { margin-top: calc(var(--top) + 4dvh + 100px); }
  .hero .tree {
    position: static;
    margin-top: 30px;
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    background: #fff;
  }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hint { display: none; }
  .sec { display: block; padding: 7dvh var(--pad) 9dvh; }
  .sec-head { position: static; text-align: left; }
  .g-num { font-size: 84px; margin-bottom: 8px; }
  .sec-body { margin-top: 30px; }
  .sec-body > * + * { margin-top: 30px; }
  .duo { display: block; }
  .duo > * + * { margin-top: 44px; }
  .row { flex-wrap: wrap; gap: 4px 14px; }
  .row .num { flex-basis: 100%; }
  .row .dsc { flex-basis: 100%; }
  .stats .ks { gap: 14px; }
  .shot-duo { grid-template-columns: 1fr; }
}

/* JS 미동작 폴백 */
.no-js .reveal { opacity: 1; transform: none; }
