/* 포트폴리오 (한국어판). 차가운 무채색 + 강조색 하나(파랑), 모서리 12px 하나로 통일 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #14171c;
  --ink-2: #3a414b;
  --muted: #505f6d;
  --line: #e1e5ea;
  --accent: #245669;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0f2;
  --fig-dark: #2b2f35;
  --fig-light: #f4f4f4;
  --r: 12px;
  --font: "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #161a1f;
    --ink: #e9ecf0;
    --ink-2: #c3c9d1;
    --muted: #8f98a4;
    --line: #262c33;
    --accent: #98c9dc;
    --accent-ink: #0f1215;
    --accent-soft: #1a2333;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); word-break: keep-all; overflow-wrap: break-word; }
html:lang(en) body { font-family: "Segoe UI", Arial, sans-serif; word-break: normal; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* 버튼: 강조 하나 + 테두리 하나 */
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding: 72px 0 48px; }
.role { color: var(--accent); font-weight: 650; font-size: 16px; }
.hero h1 { font-size: clamp(43px, 5.5vw, 66px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin-top: 8px; }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink-2); max-width: 36em; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-photo img { width: 196px; border-radius: var(--r); filter: saturate(.92); }

/* 큰 숫자 띠: 카드 없이 위 선과 여백만. 누르면 해당 프로젝트가 열림 */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.fig-num { text-decoration: none; }
.fig-num strong { display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.fig-num:hover strong { color: var(--accent); }
.fig-num strong span { font-size: .5em; margin-left: 2px; letter-spacing: 0; color: var(--muted); font-weight: 650; }
.fig-num p { margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.fig-num small { font-weight: 450; color: var(--muted); font-size: 14px; }

section + section { margin-top: 120px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; font-weight: 750; line-height: 1.25; }
.sub { color: var(--ink-2); margin-top: 12px; max-width: 64ch; }

/* 프로젝트 카드: 12칸 그리드에 8/4, 5/7, 7/5 로 엇갈려 배치 */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 32px; }
.card { grid-column: span 6; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid transparent; transition: border-color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card > img { width: 100%; height: 260px; object-fit: cover; background: var(--fig-dark); }
.card > img.light { object-fit: contain; background: var(--fig-light); padding: 8px; }
.card-body { padding: 22px 24px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.35; }
.card p { color: var(--ink-2); font-size: 16px; }
.card-wide { grid-column: span 8; display: grid; grid-template-columns: 1.25fr 1fr; }
.card-wide > img { height: 100%; min-height: 340px; }
.card-wide h3 { font-size: 25px; }
.card-stat { grid-column: span 4; background: var(--accent-soft); }
.card-5 { grid-column: span 5; }
.card-7 { grid-column: span 7; }
.more-link { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
.more-link::after { content: " →"; transition: margin .2s ease; }
.card:hover .more-link::after { margin-left: 4px; }

.kpi { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.kpi dt { font-size: 14px; color: var(--muted); }
.kpi dd { font-size: 28px; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }

.stat-big { margin: 8px 0 4px; }
.stat-big strong { display: block; font-size: clamp(36px, 4.3vw, 54px); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-big strong span { font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.stat-big > span { display: block; margin-top: 8px; font-weight: 600; }

/* 그 외 프로젝트: 주제별 4묶음, 묶음마다 위 선 하나 */
.more-head { font-size: 22px; letter-spacing: -.02em; margin: 72px 0 20px; }
.groups { display: grid; gap: 44px; }
.group { border-top: 2px solid var(--ink); padding-top: 14px; }
.group h4 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }

/* 일하는 방식: 4단계 한 줄 */
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 0 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 6px; }
.steps span { display: block; color: var(--ink-2); margin-top: 6px; font-size: 16px; }

/* 공개 앱: 화면 + 관점 · 해결 · 차별점 3줄 */
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 40px 24px; margin-top: 32px; align-items: start; }
.demo { display: grid; gap: 8px; }
.demo-main { display: grid; gap: 8px; text-decoration: none; }
.demo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: var(--r); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.demo-main:hover img { transform: translateY(-4px); }
.demo b { font-size: 20px; margin-top: 8px; }
.demo b::after { content: " →"; color: var(--accent); }
.demo-kind { color: var(--muted); font-size: 14px; }
.demo-why { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 6px 0 0; font-size: 15px; }
.demo-why dt { color: var(--muted); font-weight: 600; }
.demo-why dd { margin: 0; color: var(--ink-2); }
.demo-more { align-self: stretch; align-content: start; padding: 24px; background: var(--surface); border-radius: var(--r); }
.demo-more h3 { margin: 0 0 4px; font-size: 18px; }
.demo-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.demo-more li > a { font-weight: 650; color: var(--ink); text-decoration: none; }
.demo-more li > a::after { content: " →"; color: var(--accent); }
.demo-more p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.demo-src { justify-self: start; font-size: 15px; color: var(--accent); }
.soon { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* 경력 */
.career { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; }
.timeline { list-style: none; padding: 0; margin-top: 28px; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.timeline p { color: var(--ink-2); }
.side h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 8px 0 10px; }
.side h3 + ul + h3 { margin-top: 30px; }
.plain { list-style: none; padding: 0; display: grid; gap: 12px; }
.plain b { display: block; font-weight: 600; }
.plain span { color: var(--ink-2); font-size: 15.5px; }

/* 연락 */
.contact { padding: 64px 0 24px; border-top: 1px solid var(--line); }
.contact p { color: var(--ink-2); margin-top: 12px; }
.foot { padding: 64px 0 40px; color: var(--muted); font-size: 13.5px; }

/* 세부 내용 패널: 오른쪽에서 열리는 시트 */
.sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(760px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: -16px 0 40px rgb(0 0 0 / .12); border-left: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .sheet { box-shadow: none; } }
.sheet::backdrop { background: rgb(12 16 22 / .45); backdrop-filter: blur(2px); }
.sheet-bar { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; align-items: center; padding: 14px 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sheet-nav, .sheet-close { font: 600 14px var(--font); color: var(--ink-2); text-decoration: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.sheet-nav[data-dir="prev"]::before { content: "← "; }
.sheet-nav[data-dir="next"]::after { content: " →"; }
.sheet-nav[hidden] { display: none; }
.sheet-close { margin-left: auto; }
.sheet-body { padding: 28px 40px 56px; display: flex; flex-direction: column; gap: 18px; }
.sheet-body h2 { font-size: clamp(26px, 3vw, 34px); }
.sheet-body h3 { font-size: 20px; letter-spacing: -.015em; margin-top: 12px; }
.sheet-body ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.d-meta { color: var(--muted); font-size: 14.5px; }
.d-fig { border-radius: var(--r); overflow: hidden; background: var(--fig-dark); }
.d-fig.light { background: var(--fig-light); }
.d-fig figcaption { font-size: 13px; color: #b9c0c9; padding: 9px 14px 10px; }
.d-fig.light figcaption { color: #5f6773; }
.d-fig.light figcaption summary { color: #2f62d6; }
.d-tags { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.evidence { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.evidence caption { text-align: left; font-weight: 700; padding-bottom: .55rem; }
.evidence th, .evidence td { text-align: left; vertical-align: top; padding: .55rem .4rem; border-bottom: 1px solid var(--line); }
.evidence thead { background: var(--bg); }
.evidence th:first-child { width: 34%; }
.evidence.decisions th:first-child { width: 60%; }
.evidence small { color: var(--muted); font-weight: 400; }
.sequence { margin: 0; padding-inline-start: 1.5rem; }
.sequence li + li { margin-top: .8rem; }
.sequence b { display: block; }

/* 움직임: 스크롤로 들어올 때 한 번, 시트는 옆에서 들어옴. 움직임 줄이기 설정이면 끔 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .sheet[open] { animation: sheet-in .38s cubic-bezier(.16, 1, .3, 1); }
  .sheet[open]::backdrop { animation: fade-in .3s ease; }
}
/* 투명도는 애니메이션하지 않음: 애니메이션이 멈춘 환경에서도 시트 내용이 보이게 */
@keyframes sheet-in { from { transform: translateX(48px); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 태블릿 */
@media (max-width: 1020px) {
  .card-wide { grid-template-columns: 1fr; }
  .card-wide > img { height: 280px; min-height: 0; }
}
/* 모바일: 전부 한 줄로, 시트는 화면 전체 */
@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 40px; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 120px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  section + section { margin-top: 88px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .card, .card-wide, .card-stat, .card-5, .card-7 { grid-column: auto; }
  .card > img { height: 220px; }
  .demos, .career { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .career { gap: 40px; }
  .sheet { width: 100vw; }
  .sheet-bar { padding: 12px 16px; }
  .sheet-body { padding: 22px 18px 48px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

/* 그 외 프로젝트: 그림 카드 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 10px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid transparent; transition: border-color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.tile:hover { border-color: var(--line); transform: translateY(-3px); }
.tile img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; background: var(--fig-dark); }
.tile img.light { object-fit: contain; background: var(--fig-light); }
.tile b { padding: 14px 16px 2px; font-size: 16px; font-weight: 650; line-height: 1.4; }
.tile span { padding: 0 16px 16px; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tile:hover b { color: var(--accent); }

/* 세부 패널: 단계마다 번호, 그림, 짧은 글 */
.d-step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.d-step h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.d-step h3 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; flex: none; }
.d-step p { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 70ch; }
.d-step b { color: var(--ink); }
@media (max-width: 1020px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.contact .mail { color: var(--ink); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* 강점 3가지: 누르면 근거 프로젝트 */
.proof { list-style: none; padding: 0; margin-top: 26px; max-width: 44em; border-top: 1px solid var(--line); }
.proof a { display: grid; grid-template-columns: minmax(0, 17em) 1fr auto; gap: 2px 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.proof a::after { content: "→"; color: var(--muted); }
.proof b { font-weight: 650; }
.proof span { color: var(--ink-2); font-size: 15.5px; }
.proof a:hover b, .proof a:hover::after { color: var(--accent); }
.plain .made { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.plain .made a { color: var(--accent); text-decoration: none; }
.plain .made a:hover { text-decoration: underline; }
.d-source { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .proof a { grid-template-columns: 1fr auto; } .proof span { grid-column: 1; } }

/* 석사 연구와 앞으로 */
.research { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; margin-top: 32px; align-items: start; }
.research-flow { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.research-flow li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.research-flow b { font-size: 19px; letter-spacing: -.015em; }
.research-flow span { color: var(--ink-2); font-size: 16px; }
.research-links { margin-top: 22px; color: var(--ink-2); font-size: 15.5px; }
.research-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.research-links a:hover { text-decoration: underline; }
@media (max-width: 860px) { .research { grid-template-columns: 1fr; gap: 24px; } }

/* 연구: RAC 순서와 연구가 더할 단계 */
.pipeline { margin-top: 28px; padding: 20px 22px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.pipeline > p:first-child { font-size: 14.5px; color: var(--muted); font-weight: 600; }
.pipeline ol { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.pipeline ol { column-gap: 22px; }
.pipeline li { position: relative; font-size: 15px; padding: 6px 12px; border-radius: var(--r); background: var(--bg); color: var(--ink); }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pipeline li a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pipeline li.next { background: var(--accent-soft); color: var(--accent); font-weight: 650; outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
.pipeline li.next small { font-size: 12.5px; margin-left: 4px; }
.pipeline-side { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.pipeline-side a { color: var(--accent); text-decoration: none; font-weight: 600; margin-right: 6px; }

/* 세부 패널의 움직이는 그림 (assets/widgets.js) */
.widget canvas { display: block; width: 100%; height: auto; }
.widget-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px 0; color: #3a414b; font-size: 15px; }
.widget-ctl label { font-weight: 650; }
.widget-ctl input[type="range"] { flex: 1 1 200px; accent-color: var(--accent); min-height: 28px; }
.widget-ctl output { min-width: 4.5em; font-weight: 650; font-variant-numeric: tabular-nums; color: #2f62d6; }
.widget-read { padding: 6px 14px 0; font-size: 14px; color: #5f6773; font-variant-numeric: tabular-nums; }

/* 검사 흐름 지도: 순서 6단계 + 모든 단계에 걸친 일 */
.flowmap { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; counter-reset: f; }
.flowmap li { counter-increment: f; display: flex; flex-direction: column; gap: 7px; padding-top: 14px; border-top: 2px solid var(--ink); }
.flowmap b { font-size: 17px; letter-spacing: -.015em; margin-bottom: 4px; }
.flowmap b::before { content: counter(f) "  "; color: var(--accent); font-variant-numeric: tabular-nums; }
.flowmap a, .flow-all a { color: var(--ink-2); font-size: 15px; line-height: 1.4; text-decoration: none; }
.flowmap a:hover, .flow-all a:hover { color: var(--accent); }
.flow-all { margin-top: 24px; padding: 14px 18px; background: var(--surface); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.flow-all b { font-size: 15px; color: var(--muted); font-weight: 600; }
@media (max-width: 1020px) { .flowmap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 420px) { .flowmap { grid-template-columns: 1fr 1fr; } }

/* 일하는 방식: 틀렸던 것과 바꾼 것 */
.lessons-head { font-size: 22px; letter-spacing: -.02em; margin-top: 64px; }
.lessons { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lessons li { background: var(--surface); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.lessons b { font-size: 18px; letter-spacing: -.015em; }
.lessons p { color: var(--ink-2); font-size: 16px; }
.lessons a { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lessons a::after { content: " →"; }
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr; } }

/* 세부 패널 안의 다른 프로젝트 링크 */
.sheet-body p a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sheet-body p a:hover { text-decoration: underline; }

/* 일하는 방식: 검증에 쓴 반복과 시험 */
.checks { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.checks a { display: block; height: 100%; padding: 16px 18px; background: var(--surface); border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; border: 1px solid transparent; transition: border-color .2s ease; }
.checks a:hover { border-color: var(--line); }
.checks strong { display: block; margin-bottom: 6px; font-size: 28px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.checks strong span { font-size: .5em; margin-left: 2px; letter-spacing: 0; color: var(--muted); font-weight: 650; }

/* 언어 전환 스위치 (KO / EN) */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang-switch a { padding: 6px 10px; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.nav-in .lang-switch + .btn-sm { margin-left: -14px; }
@media (max-width: 860px) { .nav .lang-switch { margin-left: auto; } .nav .lang-switch + .btn-sm { margin-left: 0; } }

/* 기술 노트: 첫 화면 목록과 글 페이지(notes/*.html) */
.notes { list-style: none; padding: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.notes a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.notes b { font-size: 19px; letter-spacing: -.015em; }
.notes b::after { content: " →"; color: var(--accent); }
.notes a:hover b { color: var(--accent); }
.notes span { color: var(--ink-2); font-size: 16px; }
.note { width: min(720px, 100% - 32px); margin: 0 auto; padding: 36px 0 80px; display: flex; flex-direction: column; gap: 14px; }
.note-back { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.note h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.035em; line-height: 1.2; font-weight: 800; margin-top: 10px; }
.note h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 26px; }
.note p, .note li { color: var(--ink-2); }
.note b { color: var(--ink); }
.note .d-meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.note ul { padding-left: 20px; display: grid; gap: 8px; }
.note pre { margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; font: 13.5px/1.6 ui-monospace, Consolas, monospace; color: var(--ink); }
.note code { font: inherit; }
.note .note-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
/* 검증 단계 칩: 양산 적용 / 현장 검증 / 사내 검증 / 예정 */
.st { display: inline-block; padding: 2px 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.st-prod { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.st-field { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.st-dev { border-style: dashed; }
.card-body .st { align-self: flex-start; }
.d-meta .st { margin-right: 8px; }
/* 맡은 범위: SW 계층 표 */
.layers li { grid-template-columns: 150px 1fr; }
.layers time { font-variant-numeric: normal; }
.layers p a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.layers p a:hover { text-decoration: underline; }
@media (max-width: 560px) { .layers li { grid-template-columns: 1fr; gap: 4px; } }
/* 그 외 프로젝트 접기, 캡션 안 조건 접기 */
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: attr(data-more); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--accent); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; }
details.more[open] > summary::after { content: attr(data-less); }
figcaption details { margin-top: 6px; }
figcaption summary { cursor: pointer; color: var(--accent); font-weight: 600; }
