@font-face {
  font-family: "BookkGothic";
  src: url("../fonts/BookkGothic_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BookkGothic";
  src: url("../fonts/BookkGothic_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf9f5;
  --ink: #1a1a1a;
  --ink-soft: #6b6b64;
  --line: #ddd9d0;
  --card-radius: 2px;
  --nav-height: 76px;
  --text-color: #000;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "BookkGothic", "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Custom cursor ---------- */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

@media (max-width: 720px) {
  html, body {
    cursor: auto;
  }
  #cursor-dot {
    display: none;
  }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-nav .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.site-nav .menu {
  display: flex;
  gap: 36px;
}

.site-nav .menu a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-nav .menu a:hover,
.site-nav .menu a.active {
  color: var(--text-color);
  border-bottom-color: var(--text-color);
}

/* ---------- Home / Project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.project-card .thumb-fallback {
  position: absolute;
  inset: 0;
}

.project-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.project-card .thumb-fallback {
  transition: none;
}

.project-card .card-title {
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card .card-category {
  color: rgba(255,255,255,0.8) !important;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.coming-soon {
  text-align: center;
  padding: 48px 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    padding: 0 20px;
  }
}

/* ---------- Project detail ---------- */
.detail-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 120px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  margin-bottom: 32px;
  border: 1px solid var(--text-color);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.detail-back:hover {
  background: var(--text-color);
  color: var(--bg) !important;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.detail-header h1 {
  font-size: 36px;
  margin: 0;
  letter-spacing: -0.02em;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.detail-meta .meta-item .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.detail-meta .meta-item .value {
  font-size: 15px;
  font-weight: 500;
}

.detail-image-full {
  display: block;
  width: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.detail-image-full.in-view {
  opacity: 1;
}

.detail-image-placeholder {
  aspect-ratio: 1920 / 1080;
  background-size: cover;
  background-position: center;
}

@media (max-width: 720px) {
  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-wrap {
    padding: 40px 20px 80px;
  }
  .detail-header h1 {
    font-size: 28px;
  }
}

/* ---------- About ---------- */
.about-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}

.about-intro h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.about-intro p.statement {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 12px;
}

.about-contact {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.about-contact a:hover {
  color: var(--ink);
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 64px;
}

.reveal-img {
  position: absolute;
  top: 44px;
  left: 46%;
  transform: translate(-50%, 0) scale(0.96);
  width: 104px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.reveal-img.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 780px) {
  .reveal-img {
    display: none;
  }
}

.about-section {
  margin-bottom: 44px;
}

.about-section h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.work-item {
  margin-bottom: 24px;
}

.work-item .period {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.work-item .role {
  font-size: 16px;
  font-weight: 600;
}

.work-item .role .company {
  font-weight: 700;
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group .skill-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.skill-group .skill-list {
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-wrap {
    padding: 48px 20px 80px;
  }
}

/* ---------- 전체 폰트 크기/색상 통일 (최소 사이즈 11px) ---------- */
body, body * {
  font-size: 11px !important;
  color: var(--text-color) !important;
}

/* ---------- 상세페이지: 첫 이미지 캡션 색상을 배경/폰트에 반전 적용 ---------- */
.site-nav {
  transition: background 0.4s ease;
}

.site-nav.nav-color-active,
.site-nav.nav-color-active * {
  color: var(--nav-text) !important;
}

.site-nav.nav-color-active .menu a.active,
.site-nav.nav-color-active .menu a:hover {
  border-bottom-color: var(--nav-text);
}

