/* =========================================================
   Clean Green Editorial — 흰 배경 + 초록 포인트
   라이트: 화이트 / 다크: 짙은 그린 블랙 (§10.9)
   ========================================================= */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #1a221e;
  --teal: #059669;        /* 주 초록 (링크·버튼·강조) */
  --coral: #047857;       /* 짙은 초록 (번호·인덱스) */
  --tint: #ecfdf5;        /* 옅은 초록 배경 */
  --line: #e5e7eb;
  --muted: #64748b;
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.05);
  --shadow-hover: 0 8px 24px rgba(5, 150, 105, 0.1);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0e1210;
  --card: #161c18;
  --ink: #e6ebe8;
  --teal: #34d399;
  --coral: #6ee7b7;
  --tint: #123527;
  --line: #263129;
  --muted: #94a39b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: 16px;
}
.brand { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--teal); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
  padding: 10px 12px; border-radius: 6px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--teal); text-decoration: none; }

.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; min-width: 44px; min-height: 40px;
  padding: 6px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.theme-toggle:hover { color: var(--teal); border-color: var(--teal); }

/* 모바일 메뉴 버튼 (800px 이하에서만 보임) */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; min-height: 40px; padding: 6px 16px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }

/* ---------- 히어로 ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(640px 360px at 88% 18%, color-mix(in srgb, var(--teal) 11%, transparent), transparent 70%),
    radial-gradient(420px 260px at 70% 90%, color-mix(in srgb, var(--teal) 6%, transparent), transparent 70%);
}
.hero .eyebrow {
  font-size: 0.85rem; font-weight: 700; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
  max-width: 860px; word-break: keep-all;
}
.hero .sub {
  margin-top: 20px; font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted); max-width: 720px; word-break: keep-all; line-height: 1.75;
}
/* 핵심 구절 초록 마커 밑줄 */
.hl {
  background: linear-gradient(transparent 62%, var(--tint) 62%);
  box-shadow: inset 0 -2px 0 var(--teal);
  padding: 0 2px;
}
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-size: 0.82rem; font-weight: 600; color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 999px; padding: 6px 14px;
  background: var(--tint);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: opacity 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-primary { background: var(--teal); color: #fff; }
[data-theme="dark"] .btn-primary { color: #0e1210; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 스크롤 프로그레스 바 (③) ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--teal); z-index: 200;
}

/* ---------- 스탯 카운터 (①) ---------- */
.stats-band { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--tint) 45%, var(--bg)); padding-top: 26px; }
.stats-cap {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  width: fit-content; max-width: 100%; margin: 0 auto; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  color: var(--ink); font-size: 0.88rem; text-align: center; word-break: keep-all;
}
.stats-cap:hover { text-decoration: none; border-color: var(--teal); }
.stats-cap strong { font-weight: 800; }
.stats-line { display: inline-flex; align-items: center; gap: 8px; }
.stats-book { color: var(--teal); display: inline-flex; flex: none; }
.nowrap { white-space: nowrap; }
.stats-book svg { width: 18px; height: 18px; }
.stats-go { color: var(--teal); font-weight: 700; font-size: 0.82rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px; padding-top: 22px; padding-bottom: 34px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800;
  color: var(--teal); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
/* 격 섹션 옅은 초록 배경 (⑥) */
.section-alt { background: color-mix(in srgb, var(--tint) 45%, var(--bg)); }

/* 강점 네트워크 다크 밴드 (온톨로지 iframe) */
.section-onto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b100e; }
.section-onto iframe { display: block; width: 100%; height: 780px; border: 0; }
.section-head { margin-bottom: 40px; }
.section-head .index {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.8rem; color: var(--coral); font-weight: 700; letter-spacing: 0.1em;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-top: 8px; word-break: keep-all;
}
.section-head p { color: var(--muted); margin-top: 12px; max-width: 640px; word-break: keep-all; }

/* ---------- 소개 ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin-bottom: 16px; word-break: keep-all; }
.about-text .lead { font-size: 1.1rem; font-weight: 700; color: var(--teal); }

/* 소개: 일하는 방식 노트 */
.translate-note {
  margin-top: 26px; padding: 20px 22px; border-left: 3px solid var(--teal);
  background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0;
}
.translate-note .tn-lead { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.translate-note .tn-lead strong { color: var(--teal); }
.translate-note p { margin-bottom: 0; font-size: 0.94rem; color: var(--muted); }
.tn-quote {
  margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line);
  font-size: 0.92rem; color: var(--ink); word-break: keep-all;
}
.tn-quote cite {
  display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); font-style: normal;
}
.tn-quote cite a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.tn-quote cite a:hover { color: var(--teal); }

/* 방문자 유형별 소개 */

.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: grid; gap: 24px; position: sticky; top: 96px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--bg);
}
.timeline-item .period {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem; color: var(--muted);
}
.timeline-item .title { font-weight: 700; margin-top: 2px; }
.timeline-item .desc { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ---------- 활동 흐름: 세로 스텝퍼 (②) ---------- */
.stepper { position: relative; display: grid; gap: 0; max-width: 560px; }
.step { position: relative; display: flex; gap: 20px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
/* 초록 연결선 */
.step::before {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 2px; background: color-mix(in srgb, var(--teal) 35%, var(--line));
}
.step:last-child::before { display: none; }
.step-dot {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--tint); border: 2px solid var(--teal); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  font-family: ui-monospace, Consolas, monospace;
  position: relative; z-index: 1;
}
.step-body { padding-top: 5px; }
.step-body .label { font-weight: 700; word-break: keep-all; }
.step-body .desc { color: var(--muted); font-size: 0.88rem; margin-top: 2px; word-break: keep-all; }

/* 넓은 화면: 가로 한 줄 흐름 */
@media (min-width: 801px) {
  .stepper { max-width: none; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .step { flex-direction: column; gap: 14px; padding-bottom: 0; }
  .step::before { left: 44px; right: -8px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .step-body { padding-top: 0; }
}

/* ---------- 직무 연결 ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.fit-card h3 {
  font-size: 1.02rem; font-weight: 800; color: var(--teal); margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); word-break: keep-all;
}
.fit-card ul { list-style: none; display: grid; gap: 12px; }
.fit-card li { font-size: 0.92rem; line-height: 1.6; word-break: keep-all; display: grid; gap: 4px; padding-left: 14px; position: relative; }
.fit-card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.fit-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.fit-links a { font-size: 0.8rem; font-weight: 700; }
.fit-gap {
  margin-top: 20px; font-size: 0.86rem; color: var(--muted); word-break: keep-all;
  padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card);
}

/* ---------- 강점 카드 덱 ---------- */
#strength { overflow: hidden; }
.strength-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.strength-side .section-head { margin-bottom: 18px; }
.strength-thesis { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.strength-thesis strong { color: var(--teal); }
.strength-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.s-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.s-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--s-main); }
.deck-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.deck-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
.deck-btn:hover { border-color: var(--teal); color: var(--teal); }
.deck-count { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; color: var(--muted); }
.strength-more { font-size: 0.85rem; font-weight: 600; }

/* 카드별 색 */
.theme-gold   { --s-main: #e9a93a; --s-soft: #fff3d8; --s-deep: #b8790f; --s-ink: #9a6408; }
.theme-blue   { --s-main: #4c8df6; --s-soft: #e7f0ff; --s-deep: #2c63d1; --s-ink: #1f56c2; }
.theme-green  { --s-main: #2fbf77; --s-soft: #e2f8ec; --s-deep: #149157; --s-ink: #0f7d49; }
.theme-teal   { --s-main: #1aaeaa; --s-soft: #dcf5f4; --s-deep: #0a8783; --s-ink: #087572; }
.theme-purple { --s-main: #8b6cf0; --s-soft: #efeaff; --s-deep: #6347d6; --s-ink: #5638c2; }
.theme-pink   { --s-main: #ee6f9b; --s-soft: #ffe8f0; --s-deep: #cf4877; --s-ink: #b83a66; }

.deck { position: relative; height: 560px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck img, .deck a { -webkit-user-drag: none; }
.s-card {
  position: absolute; left: 0; top: 0; width: min(400px, 100%); height: 540px;
  background: var(--card); border-radius: 28px; padding: 14px;
  box-shadow: 0 1px 2px rgba(16,24,20,.06), 0 24px 48px -18px rgba(16,40,30,.28);
  border: 1px solid color-mix(in srgb, var(--s-main) 18%, var(--line));
  display: flex; flex-direction: column; cursor: grab;
  transform-origin: 50% 90%;
  will-change: transform, opacity; backface-visibility: hidden;
  transition: transform .55s cubic-bezier(.22,.8,.24,1), opacity .45s ease;
}
/* 뒤 카드는 움직임을 멈춰 넘김을 가볍게 */
.s-card:not(.is-front) .s-blob, .s-card:not(.is-front) .s-shadow, .s-card:not(.is-front) .s-spark { animation-play-state: paused; }
.deck.dragging .s-card { transition: none; }
.s-card:not(.is-front) { cursor: pointer; }
.s-panel {
  position: relative; flex: 1; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #fff 0%, transparent 60%),
    linear-gradient(160deg, var(--s-soft), color-mix(in srgb, var(--s-soft) 55%, #fff));
}
[data-theme="dark"] .s-panel {
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--s-main) 22%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--s-main) 18%, #111a15), #111a15);
}
.s-kind {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.9); color: #1a221e;
  border-radius: 999px; padding: 6px 12px; font-size: 0.78rem; font-weight: 700;
}
.s-kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-main) 25%, transparent); }
.s-num {
  position: absolute; right: 14px; top: 14px; font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem; font-weight: 700; color: var(--s-ink); background: rgba(255,255,255,.7);
  border-radius: 10px; padding: 6px 9px;
}
.s-chip {
  position: absolute; z-index: 2; background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.9); color: #1a221e; border-radius: 12px;
  padding: 7px 11px; font-size: 0.78rem; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0,0,0,.18);
  white-space: nowrap;
}
.s-chip.c1 { left: 14px; top: 34%; transform: rotate(-4deg); }
.s-chip.c2 { right: 14px; top: 50%; transform: rotate(4deg); }
.s-spark {
  position: absolute; right: 30%; top: 18%; width: 16px; height: 16px; background: var(--s-main);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: .7; animation: s-twinkle 3s ease-in-out infinite;
}
.s-blob {
  position: absolute; left: 50%; top: 52%; width: 150px; height: 138px; margin: -69px 0 0 -75px;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 28%),
    radial-gradient(circle at 68% 76%, var(--s-deep), transparent 60%),
    radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--s-main) 70%, #fff), var(--s-main));
  box-shadow: inset -10px -14px 26px color-mix(in srgb, var(--s-deep) 55%, transparent),
              inset 8px 10px 20px rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  animation: s-float 6s ease-in-out infinite, s-morph 10s ease-in-out infinite;
}
.s-blob-icon { color: rgba(255,255,255,.95); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.s-blob-icon svg { width: 54px; height: 54px; stroke-width: 1.9; }
.s-shadow {
  position: absolute; left: 50%; top: 52%; width: 120px; height: 18px; margin: 70px 0 0 -60px;
  border-radius: 50%; background: color-mix(in srgb, var(--s-deep) 30%, transparent); filter: blur(8px);
  animation: s-shadow 6s ease-in-out infinite;
}
.s-note {
  position: absolute; right: 20px; bottom: 16px; font-family: "Nanum Pen Script", cursive;
  font-size: 1.45rem; color: var(--s-ink); transform: rotate(-6deg);
}
.s-note::before { content: "↗"; display: inline-block; margin-right: 4px; font-family: inherit; }
.s-body { padding: 16px 8px 4px; }
.s-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.s-body h3 small { font-size: 0.8rem; font-weight: 600; color: var(--s-ink); margin-left: 6px; letter-spacing: 0; }
.s-body p { font-size: 0.9rem; color: var(--muted); margin-top: 6px; word-break: keep-all; min-height: 3em; }
.s-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-links a {
  font-size: 0.82rem; font-weight: 700; color: #fff; background: #1b2a22;
  border-radius: 999px; padding: 8px 14px;
}
[data-theme="dark"] .s-links a { background: var(--s-main); color: #0e1210; }
.s-links a:hover { text-decoration: none; opacity: .88; }

@keyframes s-float { 0%,100% { transform: translate3d(0,0,0) rotate(-2deg); } 50% { transform: translate3d(0,-10px,0) rotate(2deg); } }
@keyframes s-morph {
  0%,100% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
  50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
}
@keyframes s-shadow { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .6; } }
@keyframes s-twinkle { 0%,100% { transform: scale(.8) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: .9; } }

/* ---------- 대표 프로젝트 카드 ---------- */
.featured-list { display: grid; gap: 28px; }
.featured-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.featured-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
/* 썸네일: 프로젝트 아이콘 (⑤) */
.featured-card .thumb {
  background: var(--tint);
  border-right: 1px solid var(--line);
  min-height: 220px; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem; padding: 20px; text-align: center;
}
.thumb-icon { color: var(--teal); }
.thumb-icon svg { width: 60px; height: 60px; }
.detail-thumb .thumb-icon svg { width: 76px; height: 76px; }

/* 실제 스크린샷이 있는 썸네일 */
.thumb.has-img, .detail-thumb.has-img { padding: 0; background: var(--tint); }
.thumb.has-img img, .detail-thumb.has-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
/* 카드 높이는 본문이 정하고, 이미지는 그 칸을 채우기만 함 */
.featured-card .thumb.has-img { position: relative; min-height: 260px; }
.featured-card .thumb.has-img img { position: absolute; inset: 0; transition: transform 0.35s ease; }
.featured-card:hover .thumb.has-img img { transform: scale(1.03); }
.detail-thumb.has-img { overflow: hidden; max-height: 460px; min-height: 0; display: block; }
.detail-thumb.has-img img { max-height: 460px; height: auto; }
.thumb-cap { font-size: 0.82rem; color: var(--muted); margin: -28px 0 40px; word-break: keep-all; }
.featured-card .body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
/* 상태 배지: 컬러 도트 + 옅은 초록 배경 (색+텍스트 이중 표시, §10.8) */
.badge.status-live::before,
.badge.status-done::before,
.badge.status-exp::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
}
.badge.status-live { color: var(--teal); border-color: var(--teal); background: var(--tint); }
.badge.status-live::before { background: var(--teal); }
.badge.status-done { color: var(--muted); }
.badge.status-done::before { background: var(--muted); }
.badge.status-exp { color: var(--coral); border-color: var(--coral); }
.badge.status-exp::before { background: var(--coral); }
.proj-no {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem; color: var(--coral); font-weight: 700;
}
.featured-card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all; }
.featured-card h3 a { color: var(--ink); }
.featured-card h3 a:hover { color: var(--teal); text-decoration: none; }
.featured-card .summary { color: var(--muted); font-size: 0.95rem; word-break: keep-all; }
.card-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.card-metrics div { background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-metrics b {
  font-size: 1.05rem; font-weight: 800; color: var(--teal); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.card-metrics span { font-size: 0.72rem; color: var(--muted); line-height: 1.4; word-break: keep-all; }
.featured-card .story a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.featured-card .story {
  font-size: 0.9rem; padding: 12px 16px; border-left: 3px solid var(--coral);
  background: color-mix(in srgb, var(--coral) 6%, var(--card));
  border-radius: 0 6px 6px 0; word-break: keep-all;
}
.card-foot {
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px;
  font-size: 0.8rem; color: var(--muted);
}
.card-foot .tag { border: 1px dashed var(--line); border-radius: 4px; padding: 2px 8px; }

/* ---------- 아카이브 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 8px 18px; min-height: 44px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
[data-theme="dark"] .filter-btn[aria-pressed="true"] { color: #0e1210; }

.archive-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.archive-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 8px; border-bottom: 1px solid var(--line);
  color: var(--ink); transition: background 0.15s;
}
.archive-row:hover { background: var(--tint); text-decoration: none; }
.archive-row .no {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--coral); font-weight: 700; font-size: 0.82rem;
}
.archive-row .info h3 { font-size: 1rem; font-weight: 700; word-break: keep-all; }
.archive-row .info p { font-size: 0.85rem; color: var(--muted); margin-top: 2px; word-break: keep-all; }
.archive-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.archive-row .period {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem; color: var(--muted);
}
.archive-row.hidden, .archive-row.folded { display: none; }
.archive-more { display: flex; justify-content: center; margin-top: 24px; }
.archive-more[hidden] { display: none; }

/* ---------- 현장 기록 ---------- */
.media-list { display: grid; gap: 18px; margin-bottom: 48px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-card {
  display: flex; flex-direction: column; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.media-card:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.media-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.6); transition: background 0.2s, transform 0.2s;
}
.media-thumb .play::after {
  content: ""; position: absolute; left: 18px; top: 14px;
  border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.media-card:hover .play { background: var(--teal); transform: scale(1.08); }
.media-len {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.media-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.media-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--muted); }
.media-title { font-weight: 800; font-size: 0.95rem; line-height: 1.45; word-break: keep-all; }
.media-desc { font-size: 0.84rem; color: var(--muted); word-break: keep-all; }
.media-start { margin-top: auto; padding-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--teal); }

/* 인터뷰: 가로로 긴 인용 카드 */
.media-card.no-thumb { flex-direction: row; align-items: center; }
.media-quote {
  flex: none; font-size: 4.2rem; line-height: 1; font-weight: 800; color: var(--teal);
  padding: 18px 0 0 26px; font-family: Georgia, serif; align-self: flex-start;
}
.media-card.no-thumb .media-body { padding: 20px 26px 20px 16px; }
.media-card.no-thumb .media-title { font-size: 1.05rem; }

.record-sub { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.record-sub span { font-size: 0.82rem; font-weight: 600; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.activity-card {
  display: flex; flex-direction: column; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.activity-card:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-2px); }
.activity-card.folded { display: none; }
.activity-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.activity-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.activity-card:hover .activity-photo img { transform: scale(1.04); }
.activity-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.activity-date { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; color: var(--coral); font-weight: 700; }
.activity-title { font-weight: 800; font-size: 0.98rem; word-break: keep-all; }
.activity-desc { font-size: 0.85rem; color: var(--muted); word-break: keep-all; }

/* ---------- AI 작업 방식 ---------- */
.ai-flow { display: grid; gap: 14px; }
.ai-step {
  display: grid; grid-template-columns: 130px 1fr 1fr; gap: 16px; align-items: baseline;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 20px;
}
.ai-step .step-name { font-weight: 800; font-size: 0.95rem; }
.ai-step .step-tool { font-size: 0.88rem; color: var(--teal); font-weight: 600; }
.ai-step .step-human { font-size: 0.85rem; color: var(--muted); }
.ai-step .step-human::before { content: "사람: "; font-weight: 700; color: var(--coral); }
.ai-principle {
  margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); max-width: 720px;
}
.ai-principle h3 { font-size: 0.95rem; margin-bottom: 10px; color: var(--teal); }
.ai-principle li { margin-left: 20px; font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; word-break: keep-all; }

/* ---------- 연락 ---------- */
.contact-box { text-align: center; padding: 24px 0; }
.contact-box .email-line {
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em;
}
.contact-box .topics { color: var(--muted); font-size: 0.92rem; margin-top: 16px; word-break: keep-all; }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  font-size: 0.82rem; color: var(--muted);
}
.site-footer .wrap { display: grid; gap: 8px; }
.site-footer p { word-break: keep-all; }

/* ---------- 프로젝트 상세 ---------- */
.detail-hero { padding: 64px 0 40px; }
.back-link { font-size: 0.88rem; font-weight: 600; }
.detail-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.02em; margin-top: 16px; word-break: keep-all; max-width: 760px;
}
.detail-hero .summary { color: var(--muted); font-size: 1.05rem; margin-top: 14px; max-width: 680px; word-break: keep-all; }

.meta-table {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 32px;
}
.meta-cell { background: var(--card); padding: 14px 18px; }
.meta-cell dt { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.meta-cell dd { font-size: 0.9rem; font-weight: 600; margin-top: 4px; word-break: keep-all; }

/* 성과 지표 (상세 상단 강조) */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--teal);
  border-radius: var(--radius); overflow: hidden; margin-top: 20px;
}
.metric { background: var(--tint); padding: 18px 16px; text-align: center; }
.metric-value {
  display: block; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800;
  color: var(--teal); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.metric-label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: 4px; word-break: keep-all; }

.detail-thumb {
  margin: 40px 0; min-height: 280px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--tint);
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.82rem; text-align: center; padding: 20px;
}

/* 상세 갤러리 (여러 장) */
.gallery { display: grid; gap: 16px; margin: 8px 0 8px; }
.gallery figure {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--tint); margin: 0;
}
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption {
  font-size: 0.82rem; color: var(--muted); padding: 10px 14px;
  border-top: 1px solid var(--line); background: var(--card); word-break: keep-all;
}

/* 라이브/저장소 링크 버튼 */
.detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-links .btn { min-height: 42px; padding: 10px 20px; font-size: 0.9rem; }

.detail-body { display: grid; gap: 44px; padding-bottom: 72px; max-width: 760px; }
.detail-section h2 {
  font-size: 1.15rem; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 10px;
}
.detail-section h2 .idx {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem; color: var(--coral);
}
.detail-section p { color: var(--ink); word-break: keep-all; }
.detail-section ul { margin-left: 20px; display: grid; gap: 6px; }
.detail-section li { word-break: keep-all; }
.detail-note {
  font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--line);
  padding-left: 14px; font-style: normal;
}

.detail-nav {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 32px 0 72px; border-top: 1px solid var(--line);
}
.detail-nav a { font-weight: 700; font-size: 0.92rem; max-width: 45%; word-break: keep-all; }

/* ---------- 애니메이션 (§10.7: 150~250ms만) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.22s ease, transform 0.22s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 반응형 ---------- */
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }

  /* 헤더: 이름 + 메뉴 버튼 한 줄, 메뉴는 아래로 펼침 */
  .site-header .wrap { min-height: 56px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: 4px 0 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .theme-toggle { margin-top: 12px; align-self: flex-start; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }

  .stats-cap { border-radius: 14px; font-size: 0.82rem; padding: 10px 14px; flex-direction: column; gap: 4px; }
  .stats-line { align-items: flex-start; text-align: left; }
  .stats-book { margin-top: 2px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 28px; padding-bottom: 28px; }
  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: 0.74rem; word-break: keep-all; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .timeline { position: static; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-card .thumb { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-card .thumb.has-img { min-height: 0; aspect-ratio: 16 / 9; }
  .featured-card .body { padding: 22px 20px 24px; }
  .card-metrics div { padding: 9px 8px; }
  .card-metrics b { font-size: 0.92rem; }
  .card-metrics span { font-size: 0.68rem; }

  /* 필터: 한 줄 가로 스크롤 */
  .filter-bar {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 20px; padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; min-height: 40px; padding: 6px 16px; }

  /* 아카이브: 상태·기간을 요약 아래로 */
  .archive-row { grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 16px 4px; align-items: start; }
  .archive-row .no { padding-top: 3px; }
  .archive-row .side { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; margin-top: 6px; }

  .ai-flow { gap: 8px; }
  .ai-step { grid-template-columns: 1fr; gap: 3px; padding: 12px 14px; border-radius: 10px; }
  .ai-step .step-name { font-size: 0.9rem; }
  .ai-step .step-tool { font-size: 0.82rem; }
  .ai-step .step-human { font-size: 0.8rem; }
  .ai-principle { padding: 16px 18px; }
  /* 강점 탭: 한 줄 가로 스크롤 */
  .strength-tabs {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px 4px;
    scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .strength-tabs::-webkit-scrollbar { display: none; }
  .s-tab { flex: none; }
  .deck-controls { margin-bottom: 10px; }
  .strength-wrap { grid-template-columns: 1fr; gap: 24px; }
  .deck { height: 520px; }
  .s-card { width: calc(100% - 44px); height: 500px; }
  .s-blob { width: 128px; height: 118px; margin: -59px 0 0 -64px; }
  .s-blob-icon svg { width: 46px; height: 46px; }
  .fit-grid { grid-template-columns: 1fr; gap: 14px; }
  .fit-card { padding: 18px 18px; }

  .media-list { margin-bottom: 36px; }
  /* 영상: 가로로 넘겨 보는 카드 */
  .video-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid .media-card { scroll-snap-align: start; }
  .media-card:hover { transform: none; }
  .media-card.no-thumb { flex-direction: column; align-items: stretch; }
  .media-quote { font-size: 3.2rem; padding: 16px 18px 0; }
  .media-card.no-thumb .media-body { padding: 4px 18px 18px; }
  /* 활동 기록: 가로로 넘겨 보는 카드 */
  .activity-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .activity-grid::-webkit-scrollbar { display: none; }
  .activity-card { scroll-snap-align: start; }
  .activity-card.folded { display: flex; }
  #activityMore { display: none; }

  /* 상세: 메타 2열, 홀수 마지막 칸은 전체 폭 */
  .meta-table { grid-template-columns: 1fr 1fr; }
  .meta-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metrics { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .metric { padding: 14px 8px; }
  .metric-value { font-size: 1.25rem; }
  .detail-hero { padding: 40px 0 28px; }
  .detail-body { gap: 36px; }
  .detail-nav { flex-direction: column; }
  .detail-nav a { max-width: none; }
}
