/* ─────────────────────────────────────────────────────────────
   PORTFOLIO 2026 — CORE 테마 (레퍼런스: coreplatform.co.kr)
   블랙 & 레드 · Chakra Petch(대형 영문) · Inter(UI) · Poppins(프로젝트명) · Pretendard(한글)
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #060607;
  --bg2: #0c0d10;
  --card: #111216;
  --fg: #f2f2f4;
  --mut: #9a9ba3;
  --dim: #55565e;
  --line: #1d1e23;
  --red: #e5232b;
  --red2: #ff3b41;
  --white: #f5f5f3;
  --display: "Chakra Petch", "Pretendard Variable", sans-serif;
  --ui: "Inter", "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --pj: "Poppins", "Pretendard Variable", sans-serif;
  --kr: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --gut: clamp(16px, 2.6vw, 48px);
  --max: 1440px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { font-family: var(--kr); font-size: 16px; line-height: 1.6; background: var(--bg); word-break: keep-all; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 8px 12px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mut); }
.eyebrow.red { color: var(--red2); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.blank { color: var(--dim); }
.blank::before { content: "—"; }

/* ── 로고 마크 (CSS 큐브 아이콘) ── */
.mark { width: 22px; height: 22px; position: relative; display: inline-block; flex: none; }
.mark i { position: absolute; inset: 0; background: var(--red); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mark i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,0.35), transparent 45%, rgba(0,0,0,0.45)); clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%); }

/* ── 헤더: 캡슐 바 ── */
.hd { position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gut)), 1440px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(14, 14, 17, 0.72); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s, opacity 0.4s; }
.hd.hide { transform: translate(-50%, -140%); }
.hd-h1 { margin: 0; font: inherit; }
.hd-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 700; font-size: 17px; }
.hd-logo small { font-weight: 500; color: var(--mut); font-size: 12px; letter-spacing: 0.12em; }
.hd-nav { display: flex; gap: clamp(14px, 2.4vw, 40px); font-family: var(--kr); font-weight: 500; font-size: 15px; }
.hd-nav a { color: #d6d6da; transition: color 0.2s; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: var(--red2); }
.hd-cta { background: var(--white); color: #111; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.hd-cta:hover { background: var(--red); color: #fff; }
@media (max-width: 760px) {
  .hd { flex-wrap: wrap; row-gap: 8px; border-radius: 22px; padding: 10px 12px 10px 18px; }
  .hd-nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; font-size: 14px; padding: 2px 2px 4px; scrollbar-width: none; }
  .hd-nav a { white-space: nowrap; }
  .hd-logo small { display: none; }
}

/* ═════════════ HERO ═════════════ */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-meta { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); top: 104px; display: flex; justify-content: space-between; }
.hero-title { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); top: 44%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; color: var(--white); }
.hero-title .l1 { display: block; font-size: clamp(56px, 13.4vw, 250px); }
.hero-title .l2 { display: flex; justify-content: flex-end; align-items: center; gap: 0.18em; font-size: clamp(56px, 13.4vw, 250px); }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ready .hero-title .ch { opacity: 1; transform: none; }
.hero-foot { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-say { font-family: var(--kr); font-weight: 700; font-size: clamp(22px, 2.7vw, 44px); line-height: 1.3; letter-spacing: -0.03em; white-space: nowrap; }
.hero-say .w { color: #2a2a2e; transition: color 0.5s; }
.hero-say .w.on { color: #e6e6e9; }
.hero-say .w.r.on { color: var(--red); }
.hero-say .tag { display: inline-block; vertical-align: middle; margin: 0 0.3em; font-family: var(--ui); font-weight: 600; font-size: 11px; letter-spacing: 0.24em; color: var(--dim);
  border: 1px solid #2a2a2e; border-radius: 999px; padding: 3px 12px; transition: color 0.5s, border-color 0.5s; }
.hero-say .tag.on { color: var(--mut); border-color: #45464d; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; color: var(--mut); text-align: right; }
.hero-side .eyebrow { font-size: 11px; }
@media (max-width: 900px) { .hero-say { white-space: normal; } }
@media (max-width: 760px) { .hero-foot { flex-direction: column; align-items: flex-start; } .hero-side { align-items: flex-start; text-align: left; } }

/* CSS 3D 큐브 */
.cube-wrap { display: inline-block; position: relative; width: 0.82em; height: 0.82em; perspective: 900px; flex: none; }
.cube { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); }
.cube i { display: block; position: absolute; inset: 0; border: 1px solid rgba(255, 120, 120, 0.25);
  background: linear-gradient(145deg, #ff4148, #b80d16 70%, #6d0409); box-shadow: inset 0 0 40px rgba(0,0,0,0.25); }
.cube i:nth-child(1) { transform: translateZ(0.41em); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(0.41em); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(0.41em); background: linear-gradient(145deg, #d81a22, #7d0610); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(0.41em); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(0.41em); background: linear-gradient(145deg, #ff6a70, #e5232b); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(0.41em); background: #4a0207; }
.cube-glow { position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 35, 43, 0.35), transparent 65%); pointer-events: none; }

/* 육각형 아이콘 (히어로 슬로건) */
.hex { display: inline-block; vertical-align: middle; width: 0; height: 1.25em; margin: 0; overflow: visible; opacity: 0; transform: scale(0.4);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.6s, opacity 0.5s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hex.on { width: 1.08em; margin: 0 0.12em; opacity: 1; transform: scale(1); }
.hex svg { width: 1.08em; height: 1.25em; overflow: visible; display: block; }

/* ═════════════ CAPABILITIES (흰 섹션) ═════════════ */
.svc { background: #f4f4f2; color: #111; padding: 140px 0 120px; }
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.svc-head h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.22; letter-spacing: -0.03em; margin-top: 14px; }
.svc-head p { color: #666; font-size: 14px; }
.svc .eyebrow { color: var(--red); }
.svc-row { display: grid; grid-template-columns: 56px minmax(250px, 1.2fr) 1fr minmax(352px, 1.1fr) 32px; align-items: center; gap: 20px; padding: 34px 0; border-top: 1px solid #dcdcd8;
  transition: background 0.3s, padding 0.3s; }
.svc-row:last-child { border-bottom: 1px solid #dcdcd8; }
.svc-row:hover { background: #fff; padding-left: 14px; padding-right: 14px; }
.svc-row .n { font-family: var(--ui); font-size: 12px; color: #999; letter-spacing: 0.1em; }
.svc-row h3 { white-space: nowrap; font-size: clamp(24px, 2.1vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.svc-row h3 small { display: block; font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; color: #888; margin-top: 6px; }
.svc-row p { color: #555; font-size: 14px; white-space: nowrap; }
.svc-row .tools { display: flex; flex-wrap: nowrap; gap: 5px; }
.svc-row .tools i { white-space: nowrap; font-style: normal; font-family: var(--ui); font-size: 12px; font-weight: 500; border: 1px solid #cfcfca; border-radius: 4px; padding: 2px 8px; color: #333; transition: border-color 0.3s; }
.svc-row:hover .tools i { border-color: rgba(229, 35, 43, 0.45); }
.svc-row .arr { font-family: var(--ui); font-size: 20px; text-align: right; transition: transform 0.3s; }
.svc-row:hover .arr { transform: translateX(6px); color: var(--red); }
@media (max-width: 1240px) { .svc-row p, .svc-row h3 { white-space: normal; } .svc-row .tools { flex-wrap: wrap; } }
@media (max-width: 860px) { .svc-row { grid-template-columns: 40px 1fr 40px; } .svc-row p, .svc-row .tools { grid-column: 2 / 3; } .svc-row .arr { grid-row: 1; grid-column: 3; } }

/* ═════════════ CORE PROJECTS ═════════════ */
.work { background: linear-gradient(to bottom, #f4f4f2, #0b0c10 22vh, #0b0c10); padding: 26vh 0 120px; }
.work-head { text-align: center; margin-bottom: 120px; }
.work-head h2 { font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -0.03em; margin-top: 14px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 90px); }
.work-col.r { padding-top: 22vh; }
.wcard { display: block; margin-bottom: 120px; opacity: 0; transform: translateY(60px); transition: opacity 0.9s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wcard.in { opacity: 1; transform: none; }
.wcard-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #15161a; cursor: none; }
.wcard-img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--py, 0%)); transition: scale 0.8s; }
.wcard:hover .wcard-img img { scale: 1.06; }
.wcard-img.kv img { top: 0; height: 100%; transform: none; } /* 키 비주얼은 글자가 잘리지 않게 패럴랙스 없이 */
.wcard:hover .wcard-img.kv img { scale: 1.03; }
.wcard .no { display: block; font-family: ui-monospace, "JetBrains Mono", monospace; font-weight: 600; font-size: 13px; color: var(--mut); margin: 26px 0 6px; }
.wcard h3 { font-family: var(--pj); font-weight: 600; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.01em; line-height: 1.2; }
.wcard .ko { color: var(--mut); font-size: 15px; margin-top: 8px; }
.wcard .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { font-family: var(--ui); font-size: 12.5px; border: 1px solid #2e2f36; border-radius: 4px; padding: 3px 10px; color: #c9c9ce; }
.chip.ai { border-color: rgba(229,35,43,0.5); color: var(--red2); }
.chip.go { width: 30px; text-align: center; padding: 3px 0; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } .work-col.r { padding-top: 0; } .wcard { margin-bottom: 72px; } }

/* 빨간 원형 커서 */
.vcur { position: fixed; z-index: 150; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: var(--red);
  color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; line-height: 1.5;
  pointer-events: none; transform: scale(0); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vcur.on { transform: scale(1); }
@media (hover: none) { .vcur { display: none; } .wcard-img { cursor: auto; } }

/* ═════════════ WALL (전체 작업 카드 벽) ═════════════ */
.wall { position: relative; background: #0b0c10; padding: 40px 0 160px; overflow: hidden; }
.wall-view { perspective: 1400px; height: 640px; position: relative; }
.wall-plane { position: absolute; left: 50%; top: 0; width: 160%; transform: translateX(-50%) rotateX(32deg) rotateZ(-8deg) skewX(8deg); transform-style: preserve-3d; transform-origin: 50% 0; }
.wall-row { display: flex; gap: 18px; margin-bottom: 18px; width: max-content; will-change: transform; }
.wall-card { position: relative; width: 300px; aspect-ratio: 16 / 10; flex: none; overflow: hidden; border-radius: 10px; background: #15161a; }
.wall-card img { width: 100%; height: 100%; object-fit: cover; }
.wall-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 55%); }
.wall-card span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.wall-card span small { color: var(--mut); font-weight: 400; }
.wall-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, #0b0c10 0%, transparent 18%, transparent 55%, #0b0c10 92%); }
.wall-cta { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: -120px; }
.btn-red { display: inline-flex; align-items: center; gap: 14px; background: var(--red); color: #fff; border-radius: 999px; padding: 18px 30px;
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; transition: background 0.2s, transform 0.2s; }
.btn-red:hover { background: var(--red2); transform: translateY(-2px); }
.btn-red small { font-weight: 500; opacity: 0.8; }

/* ═════════════ FOOTER (파티클 호버) ═════════════ */
.ft { position: relative; min-height: 100vh; overflow: hidden; background: #040405; display: flex; flex-direction: column; justify-content: flex-end; }
.ft canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-in { position: relative; z-index: 2; pointer-events: none; }
.ft-in a, .ft-in button { pointer-events: auto; }
.ft-main { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding-bottom: 12vh; }
.ft h2 { font-size: clamp(40px, 6.4vw, 104px); line-height: 1.16; letter-spacing: -0.04em; }
.ft h2 em { font-style: normal; color: var(--red); }
.ft-sub { color: var(--mut); margin: 22px 0 28px; font-size: 16px; }
.ft-contact { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; font-size: 16px; }
.ft-contact dt { font-family: var(--ui); font-size: 12px; letter-spacing: 0.16em; color: var(--dim); padding-top: 3px; }
.ft-contact a:hover { color: var(--red2); }
.ft-cta { width: clamp(150px, 14vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: 16px; line-height: 1.6; box-shadow: 0 0 0 10px rgba(229, 35, 43, 0.12), 0 0 80px rgba(229, 35, 43, 0.35); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ft-cta:hover { transform: scale(1.06); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 36px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; color: #c9c9ce; }
.ft-nav a:hover { color: var(--red2); }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; color: var(--dim); }
.ft-bot span + span::before { content: "·"; margin: 0 10px; }
@media (max-width: 760px) { .ft-main { grid-template-columns: 1fr; } }

/* ═════════════ 하위 페이지 공통 ═════════════ */
.sub-hero { position: relative; padding: 200px 0 80px; overflow: hidden; }
.sub-hero .circuit { opacity: 0.5; }
.sub-hero .wrap { position: relative; z-index: 2; }
.sub-hero h2 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 10vw, 170px); line-height: 0.9; text-transform: uppercase; margin-top: 18px; }
.sub-hero p { color: var(--mut); max-width: 760px; margin-top: 24px; }
.page { padding-bottom: 120px; }

/* INDEX */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 1px solid #2e2f36; border-radius: 999px; padding: 7px 16px; font-family: var(--ui); font-size: 13px; color: var(--mut); transition: 0.2s; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.idx { width: 100%; border-collapse: collapse; font-size: 14px; }
.idx th { text-align: left; font-family: var(--ui); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.idx td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.idx tr.row { cursor: pointer; transition: background 0.2s; }
.idx tr.row:hover { background: rgba(229, 35, 43, 0.06); }
.idx tr.row:hover .nm b { color: var(--red2); }
.idx td.go { width: 40px; text-align: right; color: var(--dim); font-family: var(--ui); }
.idx tr.row:hover td.go { color: var(--red2); }
.idx .no { font-family: ui-monospace, monospace; color: var(--dim); width: 56px; }
.idx .nm b { font-family: var(--pj); font-weight: 600; font-size: 20px; transition: color 0.2s; }
.idx .nm small { display: block; color: var(--mut); font-size: 13px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid #2e2f36; white-space: nowrap; color: var(--mut); }
.pill.ok { border-color: var(--red); color: var(--red2); }
.preview { position: fixed; z-index: 120; width: 320px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; transform: scale(0.94); transition: opacity 0.2s, transform 0.25s; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .idx .hide-m { display: none; } .preview { display: none; } }

/* PROJECT */
.p-top { position: relative; padding: 170px 0 0; }
.p-top h2 { font-family: var(--pj); font-weight: 600; font-size: clamp(44px, 7vw, 112px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 16px; }
.p-top .ko { color: var(--mut); font-size: 18px; margin-top: 12px; }
.p-img { margin: 56px 0 0; aspect-ratio: 16 / 8; overflow: hidden; background: #15161a; border-radius: 6px; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-img.none { position: relative; background: radial-gradient(circle at 80% 20%, rgba(229, 35, 43, 0.28), transparent 45%), linear-gradient(160deg, #15161a, #070708);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); }
.p-img.none span { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 9vw, 150px); line-height: 0.9; text-transform: uppercase; }
.p-img.none small { font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red2); margin-top: 14px; }
.p-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.p-links a { font-family: var(--ui); font-weight: 600; font-size: 14px; border: 1px solid #34353b; border-radius: 999px; padding: 9px 18px; transition: 0.2s; }
.p-links a:hover { border-color: var(--red); color: var(--red2); }
.p-caps { display: flex; flex-wrap: wrap; gap: 10px; }
.p-caps a { border: 1px solid #2e2f36; border-radius: 6px; padding: 12px 18px; font-weight: 700; transition: 0.2s; }
.p-caps a small { display: block; font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em; color: var(--dim); }
.p-caps a:hover { border-color: var(--red); color: var(--red2); }
.p-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.p-meta dt, .cs dt { font-family: var(--ui); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.p-meta a, .cs a { border-bottom: 1px solid var(--red); }
.p-meta a:hover { color: var(--red2); }
.cs { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.cs h2 { font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.cs h2 em { font-style: normal; color: var(--red2); margin-right: 10px; font-family: ui-monospace, monospace; }
.cs dl { display: grid; grid-template-columns: 200px 1fr; gap: 14px 24px; font-size: 15px; }
.cs dl dt { margin: 3px 0 0; }
.cs .ch { grid-column: 1 / -1; margin-top: 12px; font-weight: 700; font-size: 17px; }
.cs .ch:first-child { margin-top: 0; }
.p-nav { display: flex; justify-content: space-between; gap: 16px; padding: 64px 0 0; }
.p-nav a { font-family: var(--pj); font-weight: 600; font-size: clamp(22px, 3vw, 44px); }
.p-nav a:hover { color: var(--red2); }
.p-nav small { display: block; font-family: var(--ui); font-size: 11px; color: var(--dim); letter-spacing: 0.16em; font-weight: 500; }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; gap: 18px; } .cs dl { grid-template-columns: 1fr; gap: 4px; } .cs dl dd { margin-bottom: 10px; } }

/* PROJECTS: 탭 + 코어 그리드 */
.ptabs { display: flex; gap: 8px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.ptab { position: relative; padding: 14px 4px 16px; margin-right: 28px; font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: var(--dim); transition: color 0.2s; }
.ptab small { font-weight: 500; color: inherit; opacity: 0.7; margin-left: 4px; }
.ptab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.3s; }
.ptab[aria-selected="true"] { color: var(--fg); }
.ptab[aria-selected="true"]::after { transform: none; }
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px clamp(24px, 4vw, 64px); }
.core-grid .wcard { margin: 0; }
.core-grid .wcard-img { cursor: pointer; }
@media (max-width: 760px) { .core-grid { grid-template-columns: 1fr; gap: 56px; } }

/* CAPABILITIES 페이지 */
.cap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.cap-h .n { display: block; font-family: ui-monospace, monospace; font-size: 13px; color: var(--red2); margin-bottom: 10px; }
.cap-h h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.02em; line-height: 1.2; }
.cap-h h2 small { display: block; font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; color: var(--dim); margin-top: 8px; }
.cap-d { font-size: 18px; font-weight: 600; }
.cap-p { margin: 18px 0; }
.cap-p li { position: relative; padding: 6px 0 6px 18px; color: var(--mut); }
.cap-p li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.cap-t { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-w { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.cap-w a { display: block; }
.cap-w img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #15161a; transition: transform 0.4s; }
.cap-w a:hover img { transform: translateY(-4px); }
.cap-w span { display: block; font-family: var(--pj); font-weight: 600; font-size: 17px; margin-top: 10px; }
.cap-w span small { display: block; font-family: var(--kr); font-weight: 400; font-size: 13px; color: var(--mut); }
.cap-w a:hover span { color: var(--red2); }
@media (max-width: 860px) { .cap { grid-template-columns: 1fr; gap: 18px; } }

/* 버튼 (외곽선) */
.btn-line { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #3a3b42; color: var(--fg); border-radius: 999px; padding: 17px 26px;
  font-family: var(--ui); font-weight: 700; font-size: 15px; transition: border-color 0.2s, color 0.2s; }
.btn-line:hover { border-color: var(--red); color: var(--red2); }
.ft-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ABOUT: 프로필 */
.me { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: 72px; }
.me-ph { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #ddd; }
.me-ph img { width: 100%; height: 100%; object-fit: cover; }
.me-tx h3 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.25; letter-spacing: -0.03em; margin: 18px 0 26px; }
.me-tx h3 em { font-style: normal; color: var(--red); }
.me-tx > p:not(.eyebrow) { color: var(--mut); max-width: 640px; margin-bottom: 12px; }
.me-info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 30px 0; }
.me-info dt { font-family: var(--ui); font-size: 12px; letter-spacing: 0.16em; color: var(--dim); padding-top: 3px; }
.me-info a:hover { color: var(--red2); }
.me-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.me-btns .btn-red, .me-btns .btn-line { padding: 14px 22px; font-size: 14px; }
@media (max-width: 760px) { .me { grid-template-columns: 1fr; } .me-ph { max-width: 300px; } }

/* ABOUT */
.ab { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); }
.ab h2 { font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.ab ul li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.ab ul li > span:first-child { color: var(--dim); font-family: var(--ui); font-size: 13px; }
.ab p { color: var(--mut); max-width: 760px; margin-bottom: 10px; }
.ab p b { color: var(--fg); }
.ab a { border-bottom: 1px solid var(--red); }
@media (max-width: 860px) { .ab { grid-template-columns: 1fr; gap: 14px; } .ab ul li { grid-template-columns: 112px 1fr; } }

/* ═════════════ 한 페이지 버전 (single.html) — 전체 · 이력 섹션 + 상세 모달 ═════════════ */
.one { position: relative; background: #0b0c10; padding: 120px 0; }
.one + .one { border-top: 1px solid var(--line); }
.one-head { margin-bottom: 48px; }
.one-head h2 { font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -0.03em; margin-top: 14px; line-height: 1.1; }
.one-head p:not(.eyebrow) { color: var(--mut); margin-top: 14px; }
.page-single .wall { padding-bottom: 120px; }
.page-single .ab ul li small { display: block; color: var(--dim); font-size: 13px; }
.page-single .dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.page-single .dl-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--card); }
.page-single .dl-card h3 { font-size: 20px; margin-bottom: 6px; }
.page-single .dl-card p { font-size: 14px; margin-bottom: 18px; }
.page-single .dl-card .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.page-single .ab .btn-red, .page-single .ab .btn-line { padding: 12px 20px; font-size: 14px; }
.page-single .ab .btn-red { border: 0; }
.page-single .ab .btn-line { border-bottom-color: #3a3b42; }
.page-single .ab .btn-line:hover { border-color: var(--red); }
.me-row { display: flex; gap: 32px; align-items: stretch; }
.me-row ul { flex: 1; min-width: 0; }
.me-ph { position: relative; flex: none; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; } /* 높이 = 정보 목록 높이, 너비는 비율로 */
.me-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
@media (max-width: 760px) { .me-row { flex-direction: column-reverse; } .me-ph { width: 160px; } }
/* 이력 접기 — Education 아래는 그라디언트로 덮고 SHOW MORE */
.fold { position: relative; }
.fold-in { position: relative; max-height: 260px; overflow: hidden; transition: max-height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fold-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 3; background: linear-gradient(to bottom, rgba(11, 12, 16, 0), rgba(11, 12, 16, 0.9) 30%, #0b0c10 46%); pointer-events: none; transition: opacity 0.4s; }
.fold.open .fold-in::after { opacity: 0; }
.fold-cta { position: relative; z-index: 4; display: flex; justify-content: center; margin-top: -150px; transition: margin-top 0.5s; }
.fold.open .fold-cta { margin-top: 32px; }
.fold-cta .btn-red { border: 0; cursor: pointer; font-family: var(--ui); letter-spacing: 0.08em; }
.page-single .cv-l .slogan { color: var(--fg); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 14px; }
.cv-caps { margin: 26px 0 30px; }
.cv-caps li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv-caps em { font-style: normal; font-family: ui-monospace, monospace; font-size: 14px; color: var(--red2); }
.cv-caps b { font-size: 17px; }
.cv-caps .ev { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.page-single .cv-caps .ev a { font-size: 13px; border: 1px solid #34353b; border-radius: 999px; padding: 3px 12px; }
.page-single .cv-caps .ev a:hover { border-color: var(--red); color: var(--red2); }
@media (max-width: 760px) { .cv-caps li { grid-template-columns: 36px 1fr; } .cv-caps .ev { grid-column: 2; justify-content: flex-start; } }
.page-single .cv-l .more a { border-bottom-color: #3a3b42; }


/* ═════════════ 문서 페이지 (이력서 · 자기소개서) — A4 용지, 인쇄하면 용지만 출력 ═════════════ */
.page-doc main { padding: 130px 0 120px; background: radial-gradient(ellipse at 50% 0, #15161b, var(--bg) 60%); }
.doc-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: calc(210mm + 2 * var(--gut)); margin-bottom: 28px; }
.doc-bar h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; margin-top: 8px; }
.doc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-btns .btn-red, .doc-btns .btn-line { padding: 13px 22px; font-size: 14px; }
.paper { --ink: #141416; --sub: #5d5e66; --rule: #d9d9de; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 13mm 16mm; background: #fff; color: var(--ink);
  font-family: var(--kr); font-size: 9.6pt; line-height: 1.55; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.paper a { color: inherit; }
/* 좁은 화면에서는 A4 비율 그대로 축소 (main.js fitPapers) */

/* 이력서 */
.rs-top { display: grid; grid-template-columns: 40mm 1fr; gap: 9mm; align-items: center; padding-bottom: 6mm; border-bottom: 2px solid var(--ink); }
.rs-ph { width: 40mm; aspect-ratio: 4 / 5; object-fit: cover; }
.rs-en { font-family: var(--ui); font-weight: 700; font-size: 8pt; letter-spacing: 0.22em; color: var(--red); }
.rs-id h1 { font-size: 19pt; font-weight: 500; line-height: 1.35; letter-spacing: -0.03em; margin: 2.5mm 0 5mm; }
.rs-id h1 b { font-weight: 800; }
.rs-ct { display: grid; grid-template-columns: 22mm 1fr; gap: 1.6mm 4mm; align-items: center; font-size: 9.5pt; }
.rs-ct dt { font-family: var(--ui); font-size: 8pt; color: var(--sub); text-align: center; border: 1px solid #b9bac1; border-radius: 999px; padding: 0.4mm 0; }
.rs-sec { display: grid; grid-template-columns: 30mm 1fr; gap: 0 5mm; padding: 3.4mm 0; border-bottom: 1px solid var(--rule); }
.rs-sec > h2 { font-size: 12.5pt; font-weight: 700; letter-spacing: -0.02em; grid-column: 1; }
.rs-sec > h2 small { font-size: 8pt; font-weight: 500; color: var(--sub); margin-left: 1.5mm; }
.rs-sec > ul, .rs-sec > p { grid-column: 2; }
.rs-sec li { display: flex; justify-content: space-between; gap: 4mm; padding: 0.8mm 0; }
.rs-sec time { font-family: var(--ui); font-size: 8.6pt; color: var(--sub); white-space: nowrap; }
.rs-pj li { display: grid; grid-template-columns: 30mm 1fr auto 11mm; gap: 3mm; align-items: baseline; }
.rs-pj b { font-family: var(--pj); font-weight: 600; font-size: 9.6pt; }
.rs-pj em { font-style: normal; font-family: var(--ui); font-size: 8.2pt; color: var(--sub); }
.rs-pj time { text-align: right; }
.rs-sk ul + h2, .rs-sk ul + h2 + ul { margin-top: 2.5mm; padding-top: 2.5mm; border-top: 1px solid var(--rule); }
.rs-sk li { align-items: center; }
.rs-sk li > span:last-child { font-size: 9pt; color: #33343a; text-align: right; }
.pills { display: flex; flex-wrap: wrap; gap: 1.2mm; }
.pills i { font-style: normal; font-family: var(--ui); font-size: 8.2pt; border: 1px solid #9fa0a8; border-radius: 999px; padding: 0.2mm 3mm; white-space: nowrap; }
.rs-lc { font-size: 9.6pt; }

/* 자기소개서 */
.cl-name { display: flex; justify-content: space-between; font-family: var(--ui); font-weight: 700; font-size: 10.5pt; color: var(--red); padding-bottom: 4mm; border-bottom: 1.5px solid var(--ink); }
.cl-name span { align-self: center; font-size: 7.5pt; letter-spacing: 0.22em; color: var(--sub); }
.cl-lb { font-family: var(--ui); font-weight: 700; font-size: 7.5pt; letter-spacing: 0.28em; color: var(--red); margin-top: 5.5mm; }
.cl h1 { font-size: 19pt; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin: 1.5mm 0 3mm; }
.cl-lead { color: #33343a; }
.cl-top { display: grid; grid-template-columns: 62mm 1fr; gap: 8mm; align-items: end; padding: 6mm 0 5mm; border-bottom: 1px solid var(--rule); }
.cl-top h1 { font-size: 20pt; line-height: 1.22; margin: 0; }
.cl-top .cl-lead { font-size: 9.4pt; }
.cl-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin-top: 2mm; counter-reset: f; }
.cl-flow li { position: relative; border-top: 2px solid var(--ink); padding: 2.2mm 0 0; }
.cl-flow li + li::before { content: "→"; position: absolute; left: -2.6mm; top: -3.4mm; font-size: 9pt; color: var(--red); background: #fff; }
.cl-flow b { display: block; font-family: var(--ui); font-size: 10.5pt; letter-spacing: 0.08em; }
.cl-flow span { display: block; margin-top: 1mm; font-size: 8.8pt; color: #33343a; line-height: 1.5; }
.cl-tb { width: 100%; border-collapse: collapse; margin-top: 1.5mm; font-size: 9pt; }
.cl-tb th, .cl-tb td { text-align: left; vertical-align: top; padding: 1.9mm 3mm 1.9mm 0; border-bottom: 1px solid var(--rule); }
.cl-tb th { width: 27mm; font-weight: 700; color: var(--sub); font-size: 8.6pt; }
.cl-tb td:nth-child(2) { width: 30mm; }
.cl-tb td:nth-child(2) a { font-family: var(--pj); font-weight: 600; text-decoration: none; }
.cl-tb td:nth-child(2) a::after { content: " ↗"; color: var(--red); font-size: 8pt; }
.cl-tb td:last-child { color: #33343a; }
.cl-case { margin-top: 1.8mm; background: #f6f3f3; padding: 3.6mm 5mm; }
.cl-case-q { font-weight: 700; font-size: 11pt; letter-spacing: -0.02em; }
.cl-case ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin-top: 2.4mm; }
.cl-case li { font-size: 8.5pt; line-height: 1.5; color: #33343a; border-left: 2px solid var(--red); padding-left: 2.4mm; }
.cl-case li b { display: block; font-size: 8.4pt; color: var(--red); margin-bottom: 0.6mm; }
.cl-act { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin-top: 1.8mm; }
.cl-act li { border: 1px solid var(--rule); padding: 2.4mm 3mm; }
.cl-act b { display: block; font-size: 9pt; line-height: 1.4; }
.cl-act span { display: block; margin-top: 0.8mm; font-size: 8pt; color: var(--sub); }
.cl-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; margin-top: 6mm; }
.cl-sign p { font-weight: 700; font-size: 11.5pt; letter-spacing: -0.02em; }
.cl-sign span { font-size: 13pt; font-weight: 800; white-space: nowrap; border-bottom: 2px solid var(--red); padding-bottom: 0.6mm; }
.cl-foot { display: flex; justify-content: space-between; margin-top: 5mm; padding-top: 3mm; border-top: 1px solid var(--rule); font-family: var(--ui); font-size: 7.5pt; letter-spacing: 0.16em; color: var(--sub); }

@page { size: A4; margin: 0; }
@media print {
  html, body, .page-doc main { background: #fff; }
  .hd, .ft, .doc-bar, .skip { display: none; }
  .page-doc main { padding: 0; }
  .paper { box-shadow: none; margin: 0; width: 210mm; height: 297mm; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .wcard { opacity: 1; transform: none; }
}
