@charset "utf-8";
/* ==========================================================================
   Beomsu Shin — Developer Profile
   단일 스타일시트. 토큰 → 공통 → 섹션 → 반응형 순서.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 디자인 토큰
   -------------------------------------------------------------------------- */
:root {
  /* 표면 */
  --ink:        #050d18;
  --ink-2:      #07121f;
  --panel:      #0c1829;
  --panel-2:    #102237;
  --line:       rgba(110, 160, 212, .16);
  --line-strong:rgba(110, 160, 212, .34);

  /* 텍스트 */
  --text:       #eef4ff;
  --muted:      #9aabc4;
  --subtle:     #6d7f99;

  /* 강조 */
  --blue:       #2f8cff;
  --cyan:       #4fd6ff;
  --amber:      #ffb04d;   /* R&D 계열 */
  --violet:     #a98bff;   /* Side 계열 */
  --mint:       #4fe0b4;

  /* 레이아웃 */
  --max:        1240px;
  --gutter:     clamp(20px, 4vw, 48px);
  --header-h:   64px;

  /* 모양 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .38);
}

/* --------------------------------------------------------------------------
   2. 리셋 & 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "DM Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.38; letter-spacing: -.035em; font-weight: 700; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. 공통 레이아웃
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

.kicker {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  max-width: 100ch;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1b86ff, #2a63e8);
  box-shadow: 0 10px 30px rgba(28, 118, 255, .26);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(28, 118, 255, .42); }
.btn-ghost {
  background: rgba(10, 22, 38, .6);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); }

.text-link {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link .arr { transition: transform .2s ease; }
.text-link:hover .arr { transform: translateX(4px); }

/* 태그 */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #b9cbe4;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 46, 74, .5);
  white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------------------------
   4. 헤더
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 12, 23, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--blue), #1a4fd0);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(47, 140, 255, .45);
}

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a {
  position: relative;
  font-size: 13px;
  color: #c3d0e4;
  padding: 4px 0;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--cyan); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  place-items: center;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: #d6e3f5;
  position: relative;
  transition: background .18s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 1.5px;
  background: #d6e3f5;
  transition: transform .22s ease;
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after  { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. 히어로
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);

  /* ======================================================================
     HERO 배경 이미지 알파 조정값 — 이 네 줄만 바꾸면 됩니다.
     0 = 완전 투명, 1 = 완전 불투명
     ---------------------------------------------------------------------- */
  --hero-bg-alpha-left:  .45;   /* 좌측 알파 */
  --hero-bg-alpha-right: .14;   /* 우측 알파 (텍스트 가독성 위해 낮게) */
  --hero-bg-blend-start: 28%;   /* 중앙 전환 시작 지점 */
  --hero-bg-blend-end:   72%;   /* 중앙 전환 종료 지점 */
  /* ====================================================================== */

  background:
    radial-gradient(900px 520px at 78% 18%, rgba(28, 92, 190, .36), transparent 62%),
    radial-gradient(640px 420px at 12% 92%, rgba(79, 214, 255, .11), transparent 60%),
    linear-gradient(180deg, #061120, #050d18);
}

/* 배경 이미지 레이어.
   좌우 알파를 다르게 주되, mask 그라데이션으로 중앙에서 부드럽게 이어지게 처리.
   색이 섞이는 게 아니라 '투명도'가 가로로 서서히 변하므로 경계선이 생기지 않습니다. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../image/backgroundImage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--hero-bg-alpha-left))  0%,
    rgba(0, 0, 0, var(--hero-bg-alpha-left))  var(--hero-bg-blend-start),
    rgba(0, 0, 0, var(--hero-bg-alpha-right)) var(--hero-bg-blend-end),
    rgba(0, 0, 0, var(--hero-bg-alpha-right)) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--hero-bg-alpha-left))  0%,
    rgba(0, 0, 0, var(--hero-bg-alpha-left))  var(--hero-bg-blend-start),
    rgba(0, 0, 0, var(--hero-bg-alpha-right)) var(--hero-bg-blend-end),
    rgba(0, 0, 0, var(--hero-bg-alpha-right)) 100%
  );

  pointer-events: none;
}

/* 배경 그리드 — 외부 이미지 없이 '엔지니어링 도면' 질감 */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(94, 160, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 160, 230, .07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 60% at 60% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 35%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(79, 214, 255, .3);
  border-radius: 999px;
  background: rgba(16, 48, 80, .5);
  margin-bottom: 20px;
}
.hero-role .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.3;
  letter-spacing: -.045em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(79, 214, 255, .28);
}

.hero-copy {
  color: #c6d4e8;
  font-size: 15px;
  line-height: 2;
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero-stats > div {
  background: rgba(8, 18, 32, .86);
  padding: 16px 14px;
}
.hero-stats b {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -.04em;
  color: #fff;
}
.hero-stats b .unit { font-size: .56em; color: var(--cyan); margin-left: 2px; }
.hero-stats span {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-top: 4px;
}

/* 프로필 카드 */
.hero-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(20, 42, 70, .9), rgba(8, 18, 32, .95));
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(79, 214, 255, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-photo {
  width: 70%;
  display: block;
  margin: 0 auto;
  aspect-ratio: 340 / 380;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
  filter: saturate(.94) contrast(1.04);
}
.hero-card-meta { margin-top: 18px; display: grid; gap: 10px; }
.hero-card-meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.hero-card-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card-meta dt, .hero-card-meta .k { color: var(--subtle); white-space: nowrap; }
.hero-card-meta .v { color: #dce7f7; text-align: right; font-weight: 600; }
.hero-card-meta a.v:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   6. 개발 전 주기 (Lifecycle)
   -------------------------------------------------------------------------- */
.lifecycle { background: linear-gradient(180deg, #061222, #071424); }

.lc-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.lc-step {
  position: relative;
  text-align: left;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 20, 35, .72);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.lc-step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lc-step[aria-selected="true"] {
  border-color: rgba(79, 214, 255, .62);
  background: linear-gradient(165deg, rgba(23, 60, 98, .9), rgba(10, 24, 40, .95));
  box-shadow: 0 0 0 1px rgba(79, 214, 255, .12), 0 14px 34px rgba(0, 0, 0, .34);
}

/* 단계를 잇는 진행선 — 순서가 있는 내용이므로 선과 번호를 함께 씀 */
.lc-step::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -10px;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
}
.lc-step:last-child::after { display: none; }

.lc-num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--subtle);
  background: rgba(30, 56, 88, .7);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  transition: color .2s, background .2s;
}
.lc-step[aria-selected="true"] .lc-num {
  color: #04121f;
  background: var(--cyan);
  border-color: var(--cyan);
}
.lc-step h3 { font-size: 15px; margin-bottom: 4px; }
.lc-step p { font-size: 11.5px; color: var(--subtle); line-height: 1.6; }

.lc-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(16, 34, 56, .72), rgba(8, 18, 31, .9));
  padding: clamp(22px, 3.4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 44px);
}
.lc-panel[hidden] { display: none; }

.lc-panel-head h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 12px;
}
.lc-panel-head p { color: var(--muted); font-size: 13.5px; line-height: 1.95; }
.lc-role {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  background: rgba(79, 214, 255, .06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
  color: #cfe0f4;
}
.lc-role b { color: var(--cyan); }

.lc-list { display: grid; gap: 12px; align-content: start; }
.lc-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #cbd8ea;
}
.lc-list .mark {
  margin-top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}
.lc-list b { color: #fff; font-weight: 600; }
.lc-tags { margin-top: 6px; }

/* --------------------------------------------------------------------------
   7. 스킬 (대분류 → 중분류 카드 → 소분류 태그)
   -------------------------------------------------------------------------- */
.stack-cats { display: grid; gap: clamp(26px, 3.4vw, 40px); }

/* 대분류 머리말 */
.stack-cat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.stack-cat-head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.stack-cat-head h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--cyan);
  vertical-align: -1px;
}
.stack-cat-head p { font-size: 11.5px; color: var(--subtle); }

/* 대분류별 강조색 */
.stack-cat:nth-of-type(2) .stack-cat-head h3::before { background: var(--amber); }
.stack-cat:nth-of-type(3) .stack-cat-head h3::before { background: var(--violet); }
.stack-cat:nth-of-type(4) .stack-cat-head h3::before { background: var(--mint); }

/* 중분류 카드 */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .66);
  transition: border-color .2s;
}
.stack-item:hover { border-color: var(--line-strong); }

.stack-icon {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(16, 34, 55, .8);
  font-size: 12.5px;
  font-weight: 800;
}
.stack-icon.is-unity  { color: #e8f3ff; }
.stack-icon.is-csharp { color: #c9a4ff; }
.stack-icon.is-python { color: #ffd45c; }
.stack-icon.is-cpp    { color: #8fb8ff; font-size: 11px; }
.stack-icon.is-ai     { color: var(--cyan); }
.stack-icon.is-3d     { color: #ff9f4d; }
.stack-icon.is-server { color: #58d7ff; }
.stack-icon.is-db     { color: #78b8ff; }
.stack-icon.is-tool   { color: #95caff; }

.stack-body { min-width: 0; }
.stack-body h4 { font-size: 13.5px; margin-bottom: 3px; }
.stack-body p  { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* 소분류 태그 */
.stack-body .tag-row { margin-top: 9px; }

/* --------------------------------------------------------------------------
   8. 프로젝트
   -------------------------------------------------------------------------- */
.proj-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(10, 22, 37, .6);
  transition: color .2s, border-color .2s, background .2s;
}
.proj-tab:hover { color: #dce8f8; }
.proj-tab[aria-selected="true"] {
  color: #04121f;
  background: var(--cyan);
  border-color: var(--cyan);
}
.proj-tab .count { opacity: .68; margin-left: 6px; font-size: 11px; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.proj-grid[hidden] { display: none; }

.proj-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(15, 31, 51, .95), rgba(8, 18, 31, .98));
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 214, 255, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
}

.proj-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, #16304f, #0a1829);
  background-size: cover;
  background-position: top center;
  border-bottom: 1px solid var(--line);
}
.proj-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 9, 17, .12), rgba(3, 9, 17, .55));
}
/* 이미지가 없는 카드: 도식 패턴으로 채움 */
.proj-media.is-blank {
  background-image:
    linear-gradient(rgba(94, 160, 230, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 160, 230, .12) 1px, transparent 1px),
    linear-gradient(140deg, #142c49, #0a1829);
  background-size: 26px 26px, 26px 26px, 100% 100%;
}
.proj-glyph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: rgba(142, 196, 245, .5);
}
.proj-kind {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #06131f;
}
.proj-kind.rnd  { background: var(--amber); }
.proj-kind.side { background: var(--violet); }

.proj-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-size: 15px; }
.proj-points { display: grid; gap: 7px; }
.proj-points li {
  position: relative;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #a9bace;
}
.proj-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 34, 56, .7);
  transition: background .18s, border-color .18s, color .18s;
}
.proj-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   9. 관심 분야 노드 그래프
   -------------------------------------------------------------------------- */
.interests { background: linear-gradient(180deg, #061222, #050e1b); }

.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: stretch;
}

.graph-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(22, 54, 92, .46), transparent 70%),
    rgba(6, 15, 27, .78);
  overflow: hidden;
  height: clamp(400px, 56vh, 560px);
  touch-action: none;
}
/* 높이는 위에서 고정하고 SVG는 그 안을 채웁니다 (viewBox 비율로 높이가 되먹임되는 것을 막음) */
.graph-stage svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.graph-stage svg:active { cursor: grabbing; }

.gl-link { stroke: rgba(109, 161, 213, .26); stroke-width: 1; transition: stroke .2s, stroke-width .2s; }
.gl-link.is-lit { stroke: rgba(79, 214, 255, .75); stroke-width: 1.6; }
.gl-link.is-dim { stroke: rgba(109, 161, 213, .07); }

.gl-node { cursor: pointer; }
.gl-node circle {
  stroke: rgba(6, 16, 28, .9);
  stroke-width: 1.5;
  transition: r .2s ease, filter .2s ease, opacity .2s ease;
}
.gl-node text {
  font-size: 10.5px;
  font-weight: 600;
  fill: #c3d3e8;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(5, 13, 24, .92);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill .2s ease, opacity .2s ease;
}
.gl-node.is-root text { font-size: 13px; font-weight: 800; fill: #fff; }
.gl-node.is-hub   text { font-size: 11.5px; font-weight: 700; fill: #e4eefc; }
.gl-node.is-lit circle { filter: drop-shadow(0 0 9px currentColor); }
.gl-node.is-lit text { fill: #fff; }
.gl-node.is-dim { opacity: .22; }

.graph-hint {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 11px;
  color: var(--subtle);
  pointer-events: none;
}

.graph-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.graph-info {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .8);
  padding: 18px;
  flex: 1;
}
.graph-info .gi-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.graph-info h3 { font-size: 17px; margin-bottom: 10px; }
.graph-info p { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.graph-info .gi-rel { margin-top: 14px; }
.graph-info .gi-rel strong {
  display: block;
  font-size: 11px;
  color: var(--subtle);
  margin-bottom: 7px;
}

.graph-legend {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .8);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.graph-legend button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  transition: color .18s;
}
.graph-legend button:hover,
.graph-legend button.is-on { color: #fff; }
.graph-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* --------------------------------------------------------------------------
   10. 경력 · 수상
   -------------------------------------------------------------------------- */
.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}

/* 좌우 영역 구분: 두 번째 열 앞에 세로 구분선 */
.record-layout > .record-col + .record-col {
  position: relative;
}
.record-layout > .record-col + .record-col::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(clamp(30px, 5vw, 56px) / -2);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong) 12%,
    var(--line-strong) 88%,
    transparent
  );
}

/* 소그룹(경력/학력/대외활동, 수상/논문) 간 간격 */
.record-group + .record-group { margin-top: clamp(26px, 3.4vw, 38px); }

.record-col-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.record-col-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--cyan);
  vertical-align: -1px;
}
/* 소그룹별 강조색: 1번째 cyan, 2번째 amber, 3번째 violet */
.record-group:nth-of-type(2) .record-col-title::before { background: var(--amber); }
.record-group:nth-of-type(3) .record-col-title::before { background: var(--violet); }

.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 3px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(79, 214, 255, .08));
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -20px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(79, 214, 255, .6);
}
.tl-item.is-past::before { background: var(--subtle); box-shadow: none; }
.tl-date { font-size: 11.5px; color: var(--cyan); font-weight: 700; }
.tl-item.is-past .tl-date { color: var(--subtle); }
.tl-item h3 { font-size: 14.5px; margin: 3px 0 5px; }
.tl-item p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }

.award-list { display: grid; gap: 10px; }
.award {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .66);
  transition: border-color .2s;
}
.award:hover { border-color: var(--line-strong); }
.award .medal {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 13px;
  background: rgba(255, 176, 77, .12);
  color: var(--amber);
  border: 1px solid rgba(255, 176, 77, .26);
}
.award p { font-size: 12.5px; line-height: 1.75; color: #ccd9eb; }
.award small { display: block; color: var(--subtle); font-size: 11px; margin-top: 3px; }

.edu-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.edu {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .66);
}
.edu strong { display: block; font-size: 13px; }
.edu small { color: var(--subtle); font-size: 11.5px; }

/* --------------------------------------------------------------------------
   11. 푸터
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #040b15;
  padding: clamp(44px, 6vw, 68px) 0 26px;
}
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.footer-cta p { color: var(--muted); font-size: 13.5px; }
.footer-contact { display: grid; gap: 10px; min-width: 260px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 22, 37, .7);
  transition: border-color .18s, color .18s;
}
.contact-row:hover { border-color: var(--cyan); color: var(--cyan); }
.contact-row .ci { width: 16px; text-align: center; color: var(--cyan); flex: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  color: var(--subtle);
  font-size: 11.5px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   12. 등장 모션 — 섹션 단위로 한 번만
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   13. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; }
  .record-layout,
  .lc-panel { grid-template-columns: 1fr; }
  .record-layout > .record-col + .record-col::before { display: none; }
  .graph-layout { grid-template-columns: 1fr; }
  .graph-side { flex-direction: row; }
  .graph-stage { height: clamp(400px, 60vh, 520px); }
  .graph-info, .graph-legend { flex: 1; }
}

@media (max-width: 820px) {
  .lc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-step::after { display: none; }
  .lc-step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }

  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: rgba(5, 12, 23, .98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav a.is-active::after { display: none; }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1; }

  .graph-side { flex-direction: column; }
  .graph-stage { height: 420px; }
  .gl-node text { font-size: 9.5px; }
  .gl-node.is-root text { font-size: 11.5px; }
  .gl-node.is-hub text { font-size: 10.5px; }
  .edu-row { grid-template-columns: 1fr; }
  .footer-cta { grid-template-columns: 1fr; }
  .footer-contact { min-width: 0; }
  .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .lc-track { grid-template-columns: 1fr; }
  .lc-step:last-child { grid-column: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}