/* 칼퇴공학연구소 KALTI */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --card: #ffffff;
  --ink: #0c0e13;
  --ink-2: #4b5160;
  --ink-3: #8b91a0;
  --line: #e7e9ee;
  --line-2: #d6d9e0;
  --accent: #f0435a;
  --tint: rgba(255, 77, 109, .08);

  --dark: #07080c;
  --dark-2: #0d1016;
  --dark-card: rgba(255, 255, 255, .035);
  --dark-line: rgba(255, 255, 255, .09);
  --on-dark: #f4f5f7;
  --on-dark-2: #a7adba;
  --on-dark-3: #6c7383;

  --c1: #ff7a3d;
  --c2: #ff3d7f;
  --c3: #8b5cf6;
  --grad: linear-gradient(100deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(12, 14, 19, .04), 0 18px 40px -18px rgba(12, 14, 19, .18);
  --header: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c11;
    --bg-soft: #0e1117;
    --card: #12151c;
    --ink: #f2f3f6;
    --ink-2: #b1b7c4;
    --ink-3: #7b8292;
    --line: #1d212a;
    --line-2: #2a2f3a;
    --accent: #ff6b7d;
    --tint: rgba(255, 107, 125, .1);
    --dark: #05060a;
    --dark-2: #090b10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: #fff; color: #000; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── header ─────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  border-bottom: 1px solid transparent; color: var(--on-dark);
  transition: border-color .35s ease;
}
/* 흐림 효과는 가상 요소에 둔다. 헤더에 직접 걸면 그 안의 position:fixed 메뉴가 화면이 아니라 헤더 높이에 갇힌다. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(7, 8, 12, .78);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  transition: opacity .35s ease;
}
.site-header.scrolled::before, .site-header.open::before { opacity: 1; }
.site-header.scrolled, .site-header.open { border-bottom-color: var(--dark-line); }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: .07em; }
.logo small { font-size: 13px; font-weight: 500; color: var(--on-dark-2); padding-left: 11px; border-left: 1px solid var(--dark-line); line-height: 1.1; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); transition: color .2s, background .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.nav-cta:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.nav-cta svg { width: 18px; height: 18px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
/* 번역 단추: 같은 구성의 다른 언어판으로 간다 */
.lang-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.lang-toggle:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); }
.lang-toggle svg { width: 17px; height: 17px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.site-header.open .menu-btn span { background: transparent; }
.site-header.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255, 61, 127, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 61, 127, .85); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .09); }
.btn-light { color: #0c0e13; background: #fff; }
.btn-line { color: var(--ink); border: 1px solid var(--line-2); background: var(--card); }
.btn-line:hover { border-color: var(--ink-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── hero ─────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(760px, 100svh); display: flex; flex-direction: column; background: var(--dark); color: var(--on-dark); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 75% 65% at 62% 42%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; left: -20%; right: -20%; bottom: -55%; height: 95%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 110, 61, .34), rgba(255, 61, 127, .17) 45%, rgba(139, 92, 246, .09) 72%, transparent);
}
.graph { position: absolute; z-index: -1; top: 50%; right: -9vw; width: min(1120px, 76vw); aspect-ratio: 1; transform: translateY(-48%); opacity: 0; transition: opacity 1.6s ease; }
.graph.ready { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--dark) 0%, rgba(7, 8, 12, .9) 28%, rgba(7, 8, 12, .35) 52%, rgba(7, 8, 12, 0) 66%); }
.hero-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header) + 72px); padding-bottom: 72px; }
.hero-copy { max-width: 800px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--on-dark-2); background: rgba(255, 255, 255, .045); border: 1px solid var(--dark-line); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .55); animation: ping 2.4s ease-out infinite; }
.badge b { color: #fff; font-weight: 700; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(62, 224, 143, 0); } }
.display { margin: 28px 0 26px; font-size: clamp(46px, 6.1vw, 86px); line-height: 1.06; font-weight: 800; letter-spacing: -.05em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em; }
.hero-lead { max-width: 34em; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.75; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.graph-note { position: absolute; right: 32px; bottom: 28px; max-width: 440px; text-align: right; text-shadow: 0 0 3px var(--dark), 0 0 12px var(--dark); }
@media (min-width: 721px) {
  .graph-note::before { content: ""; position: absolute; z-index: -1; inset: -18px -14px -14px -22px; pointer-events: none; border-radius: 28px; background: rgba(7, 8, 12, .8); filter: blur(16px); }
}
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: 12.5px; color: var(--on-dark-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.graph-note figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--on-dark-3); }
.k-P { background: #fff; } .k-C { background: #ffd8a8; box-shadow: 0 0 8px #ff9d5c; } .k-J { background: #8d96a8; }
.k-F { background: #ff7a3d; } .k-H { background: #ff4d8d; } .k-D { background: #9b7bff; }

.hero-stats { position: relative; border-top: 1px solid var(--dark-line); background: rgba(7, 8, 12, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hstat { padding: 30px 0 32px 32px; border-left: 1px solid var(--dark-line); }
.hstat:first-child { padding-left: 0; border-left: 0; }
.hstat b { display: block; font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hstat b small { font-size: .42em; font-weight: 700; letter-spacing: 0; margin-left: 3px; color: var(--on-dark-2); }
.hstat > span { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.hstat > em { display: block; margin-top: 2px; font-style: normal; font-size: 13.5px; color: var(--on-dark-3); }

/* ── sections ─────────────────────────────────────────── */
.section { position: relative; padding: 136px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.dark .eyebrow { color: #ff8a8f; }
.h2 { margin: 18px 0 20px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.2; font-weight: 800; letter-spacing: -.045em; }
.sub { max-width: 38em; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.dark .sub { color: var(--on-dark-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.section-head .sub { margin-bottom: 4px; }
/* 영어판: 라틴 글자는 한글만큼 자간을 좁히지 않는다 */
html[lang="en"] .display { letter-spacing: -.04em; }
html[lang="en"] .h2, html[lang="en"] .cta h2, html[lang="en"] .page-hero h1 { letter-spacing: -.035em; }
html[lang="en"] .display, html[lang="en"] .h2, html[lang="en"] .cta h2 { text-wrap: balance; }

/* about */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.features { margin-top: 44px; display: grid; gap: 26px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.ficon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.ficon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.feature p { font-size: 16px; color: var(--ink-2); }
.chart-card { padding: 34px 34px 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
.chart-top h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.chart-top strong { display: block; margin-top: 6px; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.chart-top strong small { font-size: 20px; font-weight: 700; margin-left: 4px; color: var(--ink-2); letter-spacing: 0; }
.chart-top .pill { flex: none; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-size: 13px; font-weight: 700; fill: var(--ink-2); font-family: var(--font); }
.chart-axis { position: relative; height: 22px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
.chart-axis span { position: absolute; top: 6px; }
.chart-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #2fbf71; }

/* areas */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 330px; padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.s4 { grid-column: span 4; } .tile.s2 { grid-column: span 2; } .tile.s6 { grid-column: span 6; min-height: 0; }
.tile-art { position: absolute; z-index: -1; right: -44px; top: -44px; width: 190px; height: 190px; color: var(--accent); opacity: .07; }
.tile-art svg { width: 100%; height: 100%; }
.tile.s4 .tile-art { width: 280px; height: 280px; right: -30px; top: -50px; }
.tile.dark-tile { background: var(--dark-2); color: var(--on-dark); border-color: transparent; }
.tile.dark-tile::before { content: ""; position: absolute; inset: auto -30% -60% 30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 92, 92, .28), rgba(139, 92, 246, .14) 60%, transparent); }
.tile.dark-tile .tile-art { color: #fff; opacity: .1; }
.tile.dark-tile p { color: var(--on-dark-2); }
.tile.dark-tile .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: var(--on-dark); }
.tile.dark-tile .tile-meta { color: var(--on-dark-2); }
.tile.dark-tile .ticon { background: rgba(255, 255, 255, .08); color: #fff; }
.ticon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 26px; }
.ticon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px; }
.tile p { font-size: 16px; color: var(--ink-2); max-width: 34em; }
.tile-meta { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.tile-meta b { font-size: 15px; color: inherit; font-weight: 800; color: var(--ink); }
.dark-tile .tile-meta b { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); }
.tile.s6 { flex-direction: row; align-items: center; gap: 28px; padding: 28px 34px; }
.tile.s6 .ticon { margin: 0; flex: none; }
.tile.s6 .tile-text { flex: 1; }
.tile.s6 h3 { margin-bottom: 4px; font-size: 21px; }
.tile.s6 .tile-meta { margin: 0; padding: 0; flex: none; text-align: right; }

/* projects */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.area-tag { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.on { color: #1f9d5c; background: rgba(47, 191, 113, .1); }
.status.hold { color: #b7791f; background: rgba(214, 158, 46, .12); }
.status.done { color: #5b6ee1; background: rgba(91, 110, 225, .1); }
.pcard h3 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 8px; }
.pcard p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.pcard-spark { margin-top: auto; padding-top: 26px; }
.spark { width: 100%; height: 40px; }
.spark .z { fill: var(--line-2); }
.spark-cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.pcard-meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.pcard-meta b { color: var(--ink); font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.more-row { display: flex; justify-content: center; margin-top: 48px; }

/* method */
.method-glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(closest-side, rgba(139, 92, 246, .22), rgba(255, 61, 127, .08) 55%, transparent); pointer-events: none; }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.flow::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(255, 122, 61, .9), rgba(255, 61, 127, .9) 50%, rgba(139, 92, 246, .9)); opacity: .55; }
.flow li { position: relative; padding: 0 8px 0 0; }
.flow-dot { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 26px; }
.flow-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--grad); opacity: .9; z-index: -1; }
.flow-dot { z-index: 0; isolation: isolate; }
.flow b { display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.flow b small { font-size: 17px; letter-spacing: -.01em; font-weight: 700; color: var(--on-dark-2); margin-left: 4px; }
.flow h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.flow p { font-size: 15.5px; color: var(--on-dark-2); }
.skills { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 48px; border-radius: 28px; background: var(--dark-card); border: 1px solid var(--dark-line); }
.skills h3 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.skills p { font-size: 16px; color: var(--on-dark-2); margin-bottom: 26px; }
.skills .link-arrow { color: #fff; }
.term { border-radius: 18px; overflow: hidden; background: #0b0d12; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4b; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: 12.5px; color: var(--on-dark-3); font-family: var(--mono); }
.term pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: #e6e8ee; letter-spacing: 0; }
.term .c { color: #6c7383; font-family: var(--font); letter-spacing: -.01em; } .term .p { color: #ff7a8a; } .term .s { color: #ffb38a; } .term .k { color: #c4b5fd; }
.term .cur { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: #e6e8ee; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* findings */
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.concept { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.concept:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.concept-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.concept-top .no { font-size: 14px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reach { font-size: 13px; color: var(--ink-3); }
.reach b { color: var(--ink); font-weight: 800; }
.concept h3 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px; }
.concept p { font-size: 15.5px; color: var(--ink-2); }
.concept .dots { margin-top: auto; padding-top: 26px; width: 100%; height: auto; }
.dots circle { fill: var(--line-2); }
.dots circle.on { fill: url(#kg-dots); }
.dots-cap { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.concept-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.concept-more li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.concept-more b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.concept-more span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.concept-more p { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); }

/* news */
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.issue { position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.issue.lead { background: var(--dark-2); color: var(--on-dark); border-color: transparent; }
.issue.lead::before { content: ""; position: absolute; z-index: -1; inset: -40% -30% auto auto; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(255, 92, 92, .26), rgba(139, 92, 246, .12) 60%, transparent); }
.issue-mast { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.issue.lead .issue-mast { border-color: var(--dark-line); color: var(--on-dark-2); }
.issue-mast span:first-child { letter-spacing: .02em; }
.issue h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.issue p { font-size: 16px; color: var(--ink-2); }
.issue.lead p { color: var(--on-dark-2); }
.issue-nums { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: auto; padding-top: 30px; }
.issue-nums div { font-size: 13px; color: var(--ink-3); }
.issue.lead .issue-nums div { color: var(--on-dark-3); }
.issue-nums dd { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.issue.lead .issue-nums dd { color: #fff; }
.issue-foot { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.issue.lead .issue-foot { color: var(--on-dark-3); }
.news-side { display: grid; gap: 18px; }
.weekly { padding: 30px 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.weekly h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; }
.weekly p { font-size: 15px; color: var(--ink-2); }

/* history */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-2); }
.timeline li { position: relative; padding-top: 38px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); box-sizing: border-box; }
.timeline li.key::before { border: 0; background: var(--grad); box-shadow: 0 0 0 5px var(--tint); }
.timeline time { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 6px 0 4px; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.timeline p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: var(--grad); margin-bottom: 22px; }
.member:nth-child(2) .avatar { background: linear-gradient(135deg, #ff3d7f, #8b5cf6); }
.member:nth-child(3) .avatar { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.member h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.member .role { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.member .chips { margin-top: 20px; }

/* ── 자주 묻는 질문 ─────────────────────────────────── */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item { padding: 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.faq-item h3 { position: relative; padding-left: 36px; margin-bottom: 12px; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: -.03em; }
.faq-item h3::before { content: "Q"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.faq-item p { padding-left: 36px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }

@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .faq-item { padding: 24px 22px; }
}

/* cta */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0; background: var(--dark); color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 1400px; height: 900px; transform: translate(-50%, -52%); background: radial-gradient(closest-side, rgba(255, 110, 61, .45), rgba(255, 61, 127, .25) 45%, rgba(139, 92, 246, .14) 70%, transparent); }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.2; font-weight: 800; letter-spacing: -.045em; }
.cta p { margin: 18px auto 40px; max-width: 34em; font-size: 18px; color: var(--on-dark-2); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--dark-line); padding: 72px 0 40px; font-size: 14.5px; }
.f-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.f-brand .logo { color: #fff; }
.f-brand p { margin-top: 18px; max-width: 26em; line-height: 1.7; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.f-cols h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.f-cols a { display: block; padding: 4px 0; transition: color .2s; }
.f-cols a:hover { color: #fff; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; font-size: 13px; color: var(--on-dark-3); }

/* sub page */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header) + 96px) 0 88px; background: var(--dark); color: var(--on-dark); }
.page-hero::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -120%; height: 200%; background: radial-gradient(closest-side, rgba(255, 110, 61, .3), rgba(255, 61, 127, .15) 45%, rgba(139, 92, 246, .08) 70%, transparent); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); }
.page-hero h1 { margin: 18px 0 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; font-weight: 800; letter-spacing: -.05em; }
.page-hero .sub { color: var(--on-dark-2); }
.page-hero .eyebrow { color: #ff8a8f; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--on-dark-3); }
.crumbs a:hover { color: #fff; }
.counts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.counts span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-2); }
.counts b { color: #fff; font-weight: 800; }
.filters { position: sticky; top: var(--header); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters .container { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.filters .container::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); transition: all .2s; }
.filters button:hover { border-color: var(--line-2); color: var(--ink); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.filters .sep { flex: none; width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; }
.filters button span { margin-left: 6px; font-weight: 500; opacity: .6; }
/* 영어판은 분야 이름이 길어, 넓은 화면에서는 상태 단추를 둘째 줄로 내린다 */
@media (min-width: 1100px) {
  html[lang="en"] .filters .container { flex-wrap: wrap; }
  html[lang="en"] .filters .sep { flex-basis: 100%; height: 0; margin: 0; }
}
.plist { padding: 56px 0 120px; }
.pcard[hidden] { display: none; }
.plist-note { margin-top: 32px; font-size: 14px; color: var(--ink-3); }
.empty { display: none; padding: 60px 0; text-align: center; color: var(--ink-3); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pgrid, .concepts { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .f-top { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .menu { display: none; }
  .nav-cta { display: none; }
  .nav-end { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .site-header.open .menu {
    display: flex; position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 16px 40px; background: var(--dark); overflow-y: auto;
  }
  .site-header.open .menu a { font-size: 22px; font-weight: 700; color: #fff; padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--dark-line); background: none; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.s4, .tile.s2 { grid-column: span 1; }
  .tile.s6 { grid-column: span 2; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .flow::before { display: none; }
  .skills { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .news { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr 1fr; }
  .concept-more { grid-template-columns: 1fr 1fr; }
  .graph { width: 118vw; right: -42vw; opacity: 0; }
  .graph.ready { opacity: .62; }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 8, 12, .92) 0%, rgba(7, 8, 12, .6) 55%, rgba(7, 8, 12, .2) 100%); }
}
@media (max-width: 720px) {
  :root { --header: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .logo small { display: none; }
  .logo svg { width: 30px; height: 30px; }
  .nav-end { gap: 4px; }
  .lang-toggle { padding: 8px 13px 8px 11px; font-size: 13.5px; }
  .section { padding: 88px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .sub { font-size: 16.5px; }
  .hero { min-height: auto; }
  .hero-body { padding-top: calc(var(--header) + 56px); padding-bottom: 40px; }
  .graph { position: relative; order: 2; align-self: center; flex: none; width: 118vw; max-width: none; top: auto; right: auto; transform: none; margin: -14vw 0 -8vw; }
  .graph.ready { opacity: .95; }
  .hero-stats { order: 3; }
  .hero-shade { display: none; }
  .display { font-size: clamp(40px, 11.5vw, 56px); margin: 22px 0 20px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .graph-note { position: static; margin-top: 40px; text-align: left; max-width: none; }
  .legend { justify-content: flex-start; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; }
  .hstat { padding: 22px 0 22px 18px; }
  .hstat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hstat:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .chart-card { padding: 24px 20px 20px; border-radius: 22px; }
  .chart-top strong { font-size: 40px; }
  .bento, .pgrid, .concepts, .team, .concept-more { grid-template-columns: 1fr; }
  .tile.s6 { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: 18px; }
  .tile.s6 .tile-meta { text-align: left; }
  .tile { min-height: 0; padding: 28px 24px; }
  .tile-art { width: 160px; height: 160px; }
  .tile.s4 .tile-art { width: 200px; height: 200px; }
  .flow { grid-template-columns: 1fr; row-gap: 36px; margin-bottom: 48px; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .flow-dot { grid-row: span 3; margin: 0; }
  .flow b { font-size: 36px; }
  .flow h3 { margin-top: 10px; }
  .skills { padding: 24px 18px; border-radius: 22px; }
  .skills h3 { font-size: 24px; }
  .term pre { font-size: 12.5px; padding: 18px 16px 20px; }
  .issue { padding: 28px 22px; }
  .weekly { padding: 24px 20px; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline::before { display: block; left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 30px 40px; }
  .timeline li:last-child { padding-bottom: 0; }
  .cta { padding: 88px 0; }
  .cta-actions .btn { flex: 1 1 100%; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: calc(var(--header) + 64px) 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.issue-nums div { display: flex; flex-direction: column-reverse; }
.filters { display: none; }
.js .filters { display: block; }

.issue-points { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--dark-line); }
.issue-points li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.issue-points b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.issue-points span { font-size: 14.5px; line-height: 1.6; color: var(--on-dark-2); }
@media (max-width: 720px) { .issue-points li { grid-template-columns: 1fr; gap: 2px; } }
