/* ============================================================
   SELF-INTRODUCTION — DARK FOREST THEME
   style.css
   ============================================================ */

/* ============================================================
   1. FONT IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:           #0a0a0f;
  --bg-alt:       #0f0f18;
  --surface:      #16162a;
  --border:       #1e1e3a;
  --text:         #e0e0f0;
  --text-muted:   #8888aa;
  --accent:       #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow:  rgba(108, 92, 231, 0.3);
  --gradient:     linear-gradient(135deg, #6c5ce7, #00b4d8);
  --font:         'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', monospace;

  /* spacing */
  --container-w:  1100px;
  --section-py:   96px;

  /* easing */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  /* glass */
  --glass-bg:     rgba(22, 22, 42, 0.72);
  --glass-blur:   blur(18px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ====== 라이트모드 ====== */
[data-theme="light"] {
  --bg:           #2c3a20;
  --bg-alt:       #334428;
  --surface:      rgba(60, 80, 40, 0.5);
  --border:       rgba(120, 160, 80, 0.2);
  --text:         #e0ecd0;
  --text-muted:   #a0b888;
  --accent:       #7cc04a;
  --accent-light: #9de060;
  --accent-glow:  rgba(124, 192, 74, 0.3);
  --glass-bg:     rgba(60, 80, 40, 0.4);
  --glass-border: 1px solid rgba(120, 160, 80, 0.15);
  --gradient:     linear-gradient(135deg, #5a9a30, #7cc04a);
}

[data-theme="light"] body {
  -webkit-font-smoothing: auto;
}

/* 낮의 숲 — 어두운 초록 배경 + 밝은 유리 카드 */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(to bottom,
    rgba(44, 58, 32, 0.4) 0%,
    rgba(50, 70, 35, 0.3) 50%,
    rgba(44, 58, 32, 0.75) 100%
  );
}

[data-theme="light"] .nav { background: rgba(50, 70, 35, 0.7); backdrop-filter: blur(14px); }
[data-theme="light"] .nav.scrolled { background: rgba(40, 55, 28, 0.85); }

[data-theme="light"] #bg-canvas { opacity: 0.1; }
[data-theme="light"] .section::before { opacity: 0.04; }
[data-theme="light"] .page-divider img { filter: brightness(1.2) saturate(1.3); }

/* 카드 = 밝은 초록 유리 (배경과 대비) */
[data-theme="light"] .hero-card,
[data-theme="light"] .hero-side-card {
  background: rgba(80, 110, 50, 0.55);
  backdrop-filter: blur(20px);
  border-color: rgba(140, 200, 90, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

[data-theme="light"] .skill-category,
[data-theme="light"] .project-card,
[data-theme="light"] .about-card,
[data-theme="light"] .partner-card,
[data-theme="light"] .phil-card {
  background: rgba(80, 110, 50, 0.45);
  backdrop-filter: blur(12px);
  border-color: rgba(140, 200, 90, 0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

[data-theme="light"] .skill-tag {
  background: rgba(120, 180, 70, 0.2);
  border-color: rgba(120, 180, 70, 0.25);
}

[data-theme="light"] .timeline-marker { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
[data-theme="light"] .timeline-badge { background: rgba(120, 180, 70, 0.15); }

[data-theme="light"] .contact-tag {
  border-color: rgba(120, 180, 70, 0.25);
  background: rgba(80, 110, 50, 0.2);
}

[data-theme="light"] .guestbook { background: transparent; }
[data-theme="light"] .guestbook-name,
[data-theme="light"] .guestbook-msg {
  background: rgba(80, 110, 50, 0.3);
  border-color: rgba(120, 180, 70, 0.15);
}
[data-theme="light"] .guestbook-name:focus,
[data-theme="light"] .guestbook-msg:focus {
  border-color: var(--accent);
  background: rgba(80, 110, 50, 0.45);
}
[data-theme="light"] .gb-entry {
  background: rgba(80, 110, 50, 0.2);
  border-color: rgba(120, 180, 70, 0.1);
}

[data-theme="light"] .hero-photo-border { background: var(--gradient); }

[data-theme="light"] .subpage-pill,
[data-theme="light"] .phil-session {
  background: rgba(80, 110, 50, 0.35);
  border-color: rgba(120, 180, 70, 0.15);
}

[data-theme="light"] .hero-headline-badge {
  background: rgba(120, 180, 70, 0.2);
  border-color: rgba(120, 180, 70, 0.3);
}

[data-theme="light"] .footer-admin { color: rgba(160, 200, 120, 0.3); }

/* 낮 테마: 디바이더 fade 색 매칭 */
[data-theme="light"] .page-divider::before {
  background: linear-gradient(to bottom, var(--bg), transparent);
}
[data-theme="light"] .page-divider::after {
  background: linear-gradient(to top, var(--bg), transparent);
}

/* 낮 테마: hsc interests/roles */
[data-theme="light"] .hsc-interests span {
  background: rgba(120, 180, 70, 0.15);
  border-color: rgba(120, 180, 70, 0.2);
}
[data-theme="light"] .hsc-roles span {
  background: var(--gradient);
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

/* Canvas particle background — 숲 뒤에 은은하게 */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Dot accent — period coloured with accent */
.dot {
  color: var(--accent);
}

/* ============================================================
   4. UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Gradient text helper */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 18px;
  transition:
    background 0.4s var(--ease-out-expo),
    backdrop-filter 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    padding 0.3s var(--ease-out-expo);
}

.nav--scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  margin-right: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease-out-expo);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger toggle — hidden on desktop */
/* 테마 토글 버튼 */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-icon {
  position: absolute;
  font-size: 1rem;
  transition: opacity 0.3s, transform 0.3s;
}

/* 다크모드(기본): 달 보이고 해 숨김 */
.theme-icon--dark  { opacity: 1; transform: scale(1); }
.theme-icon--light { opacity: 0; transform: scale(0.5); }

/* 사운드 토글 */
.sound-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}
.sound-toggle:hover { border-color: var(--accent); }
.sound-toggle.sound--active { border-color: var(--accent); background: rgba(108, 92, 231, 0.15); }
[data-theme="light"] .sound-toggle.sound--active { background: rgba(120, 180, 70, 0.2); }

.sound-icon {
  position: absolute;
  font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.3s;
}
.sound-icon--off { opacity: 1; transform: scale(1); }
.sound-icon--on  { opacity: 0; transform: scale(0.5); }
.sound--active .sound-icon--off { opacity: 0; transform: scale(0.5); }
.sound--active .sound-icon--on  { opacity: 1; transform: scale(1); }

/* 라이트모드: 해 보이고 달 숨김 */
[data-theme="light"] .theme-icon--dark  { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-icon--light { opacity: 1; transform: scale(1); }

/* 네비 방문자 카운터 */
.nav-visitor {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  margin-left: auto;
  margin-right: 8px;
}

.nav-visitor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease-out-expo),
    opacity   0.35s var(--ease-out-expo);
}

/* open state toggled by JS via .nav--open on .nav */
.nav--open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav--open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Forest background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&auto=format&fit=crop&q=70');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

/* Gradient overlay: 숲이 은은하게 보이도록 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 15, 0.55) 0%,
      rgba(40, 30, 80, 0.40) 50%,
      rgba(10, 10, 15, 0.85) 100%
    );
  z-index: 1;
}

/* Bottom fade into page background */
.hero::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  padding-block: 80px 60px;
  max-width: 1060px;
  width: 100%;
  padding-inline: 24px;
}

/* 히어로 스크롤 힌트는 전체 너비 차지 */
.hero-scroll { width: 100%; text-align: center; }

/* ===== 히어로 사이드카드 (이력+연락) ===== */
.hero-side-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 28px 24px;
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
}

.hsc-section { }

.hsc-heading {
  font-size: 0.65rem;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.hsc-lead {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
}

/* Timeline */
.hsc-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.hsc-tl-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  position: relative;
}
.hsc-tl-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.hsc-tl-item--now::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hsc-tl-date {
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 52px;
}
.hsc-tl-text {
  font-size: 0.78rem;
  color: var(--text);
}

/* Skills */
.hsc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hsc-skills span {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Roles */
.hsc-roles {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.hsc-roles span {
  font-size: 0.67rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* Quick links */
.hsc-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hsc-quick-links a {
  font-size: 0.72rem;
  color: var(--accent-light);
  text-decoration: none;
  font-family: var(--mono);
  transition: color 0.2s;
}
.hsc-quick-links a:hover {
  color: var(--text);
}

/* Interests */
.hsc-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hsc-interests span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  color: var(--text);
}
[data-theme="light"] .hsc-interests span {
  background: rgba(45, 122, 58, 0.08);
  border-color: rgba(45, 122, 58, 0.15);
}

/* Hobby grid */
.hsc-hobby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hsc-hobby-grid span {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.12);
  color: var(--text);
}
[data-theme="light"] .hsc-hobby-grid span {
  background: rgba(120, 180, 70, 0.12);
  border-color: rgba(120, 180, 70, 0.18);
}

/* Services */
.hsc-services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hsc-service {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hsc-service-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.hsc-service strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}
.hsc-service p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Contact */
.hsc-contact-link {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-light);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.hsc-contact-link:hover { color: var(--accent); }

.hsc-contact-row {
  display: flex;
  gap: 8px;
}
.hsc-btn {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--mono);
  transition: all 0.2s;
}
.hsc-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* 히어로 즉시 등장 애니메이션 (스크롤 트리거 X, 페이지 로드 시 바로) */
.hero-card--instant {
  animation: hero-entrance 1s var(--ease-out-expo) 0.15s both;
}
.hero-scroll--instant {
  animation: hero-scroll-in 0.8s var(--ease-out-expo) 0.9s both;
}
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-scroll-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 0.7; transform: translateY(0); }
}

/* 명함 카드 */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 3rem 2.5rem 2.5rem;
  background: rgba(22, 22, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 520px;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 연락처 영역 */
.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.hero-admin-icon {
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.25;
  transition: opacity 0.3s;
  cursor: pointer;
}
.hero-admin-icon:hover { opacity: 0.7; }

.hero-email {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.hero-email:hover { color: var(--accent-light); }

.hero-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
}
.hero-link:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
  color: #fff;
}

.hero-link-divider {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.7rem;
}

/* 스크롤 안내 */
.hero-scroll {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  animation: float-down 2s ease-in-out infinite;
}
.hero-scroll:hover { opacity: 1; color: var(--text-muted); }

@keyframes float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Gradient border ring via padding + gradient bg */
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  background: var(--gradient);
  /* inner image sits on bg-color to reveal border */
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 40px var(--accent-glow),
    0 8px 32px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo:hover {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 60px rgba(108, 92, 231, 0.5),
    0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Fallback: initials circle when no image */
.profile-photo--fallback {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 40px var(--accent-glow),
    0 8px 32px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.hero-label {
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.85;
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.hero-bio {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-partner-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.hpm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  flex-shrink: 0;
}
.hpm-avatar--rhythm {
  background: linear-gradient(135deg, #00b894, #00cec9);
}
.hpm-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ===== PR 헤드라인 ===== */
.hero-headline {
  width: 100%;
  text-align: left;
  max-width: 960px;
  padding-bottom: 16px;
}

.hero-headline-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  margin-bottom: 16px;
}
[data-theme="light"] .hero-headline-badge {
  background: rgba(74, 122, 46, 0.2);
  border-color: rgba(74, 122, 46, 0.3);
  color: #e8efe5;
}

.hero-headline-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-headline-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 20px;
}

[data-theme="light"] .hero-headline-title {
  color: #e8efe5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
[data-theme="light"] .hero-headline-sub {
  color: rgba(232, 239, 229, 0.75);
}

.hero-headline-cta {
  display: flex;
  gap: 12px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.hero-cta-btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  background: var(--gradient);
  color: #fff;
  border: none;
}
.hero-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.hero-cta-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.hero-cta-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: none;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-block: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-plus {
  display: inline;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 8px;
  padding: 14px 34px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(108, 92, 231, 0.5);
}

.hero-cta:active {
  transform: translateY(-1px);
}

/* ============================================================
   7. SECTION BASE
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-py);
  background-color: var(--bg);
  overflow: hidden;
}

/* Subtle forest texture on all sections */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&auto=format&fit=crop&q=70');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .section::before {
  opacity: 0.06;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section--alt {
  background-color: var(--bg-alt);
}

/* Section header */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-block-end: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* ============================================================
   8. PAGE DIVIDER
   ============================================================ */
/* Divider: tall panoramic forest blending between sections */
.page-divider {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.page-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.65) saturate(1.15);
  transition: filter 0.6s ease;
}

[data-theme="light"] .page-divider img {
  filter: brightness(1.15) saturate(1.3);
}

/* Very long fade: blends section into forest seamlessly */
.page-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.page-divider::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* alt sections use bg-alt color in fade */
.page-divider.divider--to-alt::after {
  background: linear-gradient(to top, var(--bg-alt) 0%, transparent 100%);
}
.page-divider.divider--from-alt::before {
  background: linear-gradient(to bottom, var(--bg-alt) 0%, transparent 100%);
}

.divider-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.divider-caption em {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 4px;
}

.divider-caption p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Fallback for when no image is supplied */
.divider--fallback {
  background: linear-gradient(to right, var(--bg), rgba(108, 92, 231, 0.12), var(--bg));
}

.divider--fallback .divider-caption {
  color: var(--text-muted);
}

/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-block-start: 56px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Right column: stat cards */
.about-card-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition:
    border-color 0.3s var(--ease-out-expo),
    box-shadow   0.3s var(--ease-out-expo),
    transform    0.3s var(--ease-out-expo);
}

.about-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 4px 32px var(--accent-glow);
  transform: translateX(4px);
}

.about-num {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 64px;
  line-height: 1;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-block-end: 3px;
}

/* --- 공명 맛보기 --- */
.resonance-preview {
  margin-top: 48px;
  padding: 32px;
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
}
.resonance-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.resonance-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.resonance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.resonance-item {
  padding: 16px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.1);
}
[data-theme="light"] .resonance-item {
  background: rgba(120, 180, 70, 0.1);
  border-color: rgba(120, 180, 70, 0.15);
}
.resonance-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}
.resonance-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.resonance-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.resonance-try {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px dashed rgba(108, 92, 231, 0.2);
}
[data-theme="light"] .resonance-try {
  background: rgba(120, 180, 70, 0.08);
  border-color: rgba(120, 180, 70, 0.2);
}
.resonance-try-label {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-family: var(--mono);
  margin-bottom: 8px;
}
.resonance-prompt {
  display: block;
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.6;
  word-break: break-all;
  user-select: all;
  cursor: text;
}
.resonance-try-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 768px) {
  .resonance-grid { grid-template-columns: 1fr; }
}

/* --- 진폭 파트너 카드 --- */
.partner-card {
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 180, 216, 0.06));
  border: 1px solid rgba(108, 92, 231, 0.2);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '振';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 10rem;
  font-weight: 900;
  opacity: 0.03;
  color: var(--accent);
  pointer-events: none;
  line-height: 1;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.partner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.partner-meta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-badge {
  font-size: 0.65rem;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.partner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.partner-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--accent-light);
  font-family: var(--mono);
}

/* 서브페이지 안내 pill */
.about-subpages {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.subpage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}

.subpage-pill:hover {
  background: rgba(108, 92, 231, 0.18);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.2);
}

.subpage-pill-icon { font-size: 1.1rem; }
.subpage-pill-arrow {
  color: var(--accent-light);
  transition: transform 0.3s;
}
.subpage-pill:hover .subpage-pill-arrow { transform: translateX(4px); }

/* ============================================================
   10. SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-block-start: 56px;
}

.skill-category {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 28px 32px;
  transition:
    border-color 0.3s var(--ease-out-expo),
    box-shadow   0.3s var(--ease-out-expo);
}

.skill-category:hover {
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.12);
}

.skill-cat-title {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-block-end: 6px;
  opacity: 0.85;
}

.skill-cat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-block-end: 14px;
  line-height: 1.5;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Base skill tag */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  letter-spacing: 0.01em;
  transition:
    background     0.25s var(--ease-out-expo),
    border-color   0.25s var(--ease-out-expo),
    color          0.25s var(--ease-out-expo),
    transform      0.25s var(--ease-out-expo);
}

.skill-tag:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* AI variant — cyan-tinted */
.skill-tag--ai {
  background: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 180, 216, 0.3);
  color: #48cae4;
}

.skill-tag--ai:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: rgba(0, 180, 216, 0.55);
  color: #90e0ef;
}

/* Special variant — purple/gradient accent */
.skill-tag--special {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.45);
  color: var(--accent-light);
  font-weight: 600;
}

.skill-tag--special:hover {
  background: rgba(108, 92, 231, 0.28);
  border-color: var(--accent-light);
  color: #fff;
}

/* ============================================================
   11. JOURNEY / TIMELINE SECTION
   ============================================================ */
.timeline {
  position: relative;
  margin-block-start: 56px;
  padding-inline-start: 32px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 15%,
    var(--accent-light) 50%,
    var(--accent) 85%,
    transparent
  );
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 24px;
  margin-block-end: 48px;
}

.timeline-item:last-child {
  margin-block-end: 0;
}

/* Dot marker */
.timeline-marker {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
  margin-block-start: 4px;
  align-self: start;
}

.timeline-body {
  padding-block-end: 8px;
}

/* Badge (year / category label) */
.timeline-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.35);
  color: var(--accent-light);
  margin-block-end: 8px;
}

/* "현재" 마커 — 맥박 애니메이션 */
.timeline-marker--now {
  background: var(--accent-light);
  animation: pulse-marker 2s ease-in-out infinite;
}
@keyframes pulse-marker {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50% { box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(108, 92, 231, 0.15); }
}
.timeline-badge--now {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.timeline-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-block-end: 6px;
}

.timeline-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   12. PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-block-start: 56px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    border-color  0.35s var(--ease-out-expo),
    box-shadow    0.35s var(--ease-out-expo),
    transform     0.35s var(--ease-out-expo);
}

.project-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 12px 48px rgba(108, 92, 231, 0.15);
  transform: translateY(-4px);
}

/* Status / type badge */
.project-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.35);
  color: var(--accent-light);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex-grow: 1;
}

/* Tech stack tags (same pill style, smaller) */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.project-card:hover .project-tech span {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Feature list: 2-column grid */
.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feature::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Links row */
.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-block-start: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition:
    background    0.25s var(--ease-out-expo),
    border-color  0.25s var(--ease-out-expo),
    color         0.25s var(--ease-out-expo),
    transform     0.25s var(--ease-out-expo);
}

.project-link:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* Primary link variant */
.project-link--primary {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.project-link--primary:hover {
  opacity: 0.85;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============================================================
   13. PHILOSOPHY SECTION
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-block-start: 56px;
}

.phil-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition:
    border-color  0.35s var(--ease-out-expo),
    box-shadow    0.35s var(--ease-out-expo),
    transform     0.35s var(--ease-out-expo);
}

/* Subtle gradient accent in corner */
.phil-card::after {
  content: '';
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.06;
  transition: opacity 0.35s var(--ease-out-expo);
}

.phil-card:hover {
  border-color: rgba(108, 92, 231, 0.28);
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.12);
  transform: translateY(-4px);
}

.phil-card:hover::after {
  opacity: 0.13;
}

.phil-card .icon {
  font-size: 2rem;
  margin-block-end: 16px;
  display: block;
}

.phil-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-block-end: 10px;
}

.phil-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- 철학 세션 (대화의장 / 어록 링크) --- */
.phil-sessions {
  margin-top: 56px;
  text-align: center;
}

.phil-sessions-label {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.phil-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 680px;
  margin-inline: auto;
}

.phil-session {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.phil-session:hover {
  border-color: rgba(108, 92, 231, 0.45);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-3px);
}

.phil-session-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.phil-session-info {
  flex: 1;
  min-width: 0;
}

.phil-session-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.phil-session-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.phil-session-arrow {
  font-size: 1.2rem;
  color: var(--accent-light);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.phil-session:hover .phil-session-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ============================================================
   14. CONTACT SECTION
   ============================================================ */
.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  margin-block-start: 56px;
}

.contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  width: 100%;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-sub {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.75;
}

/* 취미/성격 태그 */
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.contact-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  letter-spacing: 0.01em;
  transition: background 0.3s, border-color 0.3s;
}

.contact-tag:hover {
  background: rgba(108, 92, 231, 0.22);
  border-color: rgba(108, 92, 231, 0.45);
}

/* Large email display */
.contact-email {
  display: inline-block;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  position: relative;
  transition: filter 0.3s var(--ease-out-expo);
}

.contact-email::after {
  content: '';
  position: absolute;
  inset-block-end: -4px;
  inset-inline: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
}

.contact-email:hover {
  filter: drop-shadow(0 0 18px rgba(108, 92, 231, 0.6));
}

.contact-email:hover::after {
  opacity: 1;
}

/* Social/platform links row */
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  color: var(--text-muted);
  transition:
    background    0.3s var(--ease-out-expo),
    border-color  0.3s var(--ease-out-expo),
    color         0.3s var(--ease-out-expo),
    transform     0.3s var(--ease-out-expo),
    box-shadow    0.3s var(--ease-out-expo);
}

.contact-link:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.contact-link svg,
.contact-link img {
  width: 18px;
  height: 18px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-block-start: 1px solid var(--border);
  padding-block: 40px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.footer-inner p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-inner a {
  color: var(--accent-light);
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: var(--text);
}

.footer-sub {
  font-size: 0.75rem;
  color: rgba(136, 136, 170, 0.55);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* Visitor count emphasis */
.footer-sub strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* 관리자 링크 — 거의 안 보이지만 호버 시 표시 */
/* --- 방명록 (한마디 남기기) --- */
.guestbook {
  width: 100%;
  max-width: 560px;
  margin-top: 48px;
  text-align: left;
}

.guestbook-title {
  font-size: 0.85rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-align: center;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.guestbook-name,
.guestbook-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.3s;
}

.guestbook-name:focus,
.guestbook-msg:focus {
  outline: none;
  border-color: var(--accent);
}

.guestbook-name::placeholder,
.guestbook-msg::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.guestbook-submit {
  align-self: flex-end;
  padding: 8px 24px;
  border: none;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.guestbook-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.guestbook-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.gb-entry {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(22, 22, 42, 0.4);
  border: 1px solid var(--border);
}

.gb-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gb-entry-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
}

.gb-entry-date {
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-muted);
  opacity: 0.6;
}

.gb-entry-msg {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.gb-empty {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 16px;
}

/* Guestbook password field */
.guestbook-pw {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.guestbook-pw:focus {
  outline: none;
  border-color: var(--accent);
}

/* Entry action buttons */
.gb-entry-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.gb-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}
.gb-action-btn:hover {
  opacity: 1;
  color: var(--accent);
}
.gb-action-btn--del:hover {
  color: #e74c3c;
}

/* Inline edit mode */
.gb-edit-area {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--glass-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  resize: none;
  margin-top: 6px;
}
.gb-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-end;
}
.gb-edit-save, .gb-edit-cancel {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.gb-edit-save {
  background: var(--gradient);
  color: #fff;
}
.gb-edit-cancel {
  background: var(--glass-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.footer-admin {
  color: rgba(136, 136, 170, 0.3);
  transition: color 0.3s;
}
.footer-admin:hover {
  color: var(--accent-light);
}

/* ============================================================
   THEME ARTIFACTS (day/night animated elements)
   ============================================================ */
.theme-artifacts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Stars — night */
.artifact-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}

/* Fireflies — night */
.artifact-firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(180,255,100,0.8), transparent);
  border-radius: 50%;
  animation: firefly-float 8s ease-in-out infinite;
}
@keyframes firefly-float {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.6; }
  50%  { transform: translate(30px, -40px); opacity: 0.8; }
  85%  { opacity: 0.3; }
  100% { transform: translate(-20px, 20px); opacity: 0; }
}

/* Birds — day */
.artifact-bird {
  position: absolute;
  font-size: 14px;
  opacity: 0;
  animation: bird-fly 12s linear infinite;
}
@keyframes bird-fly {
  0%   { transform: translateX(-50px); opacity: 0; }
  5%   { opacity: 0.5; }
  50%  { transform: translateX(50vw); opacity: 0.4; }
  100% { transform: translateX(calc(100vw + 50px)); opacity: 0; }
}

/* Butterflies — day */
.artifact-butterfly {
  position: absolute;
  font-size: 12px;
  animation: butterfly-flutter 10s ease-in-out infinite;
}
@keyframes butterfly-flutter {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  25%  { transform: translate(40px, -20px) rotate(10deg); }
  50%  { transform: translate(80px, 10px) rotate(-5deg); opacity: 0.6; }
  75%  { transform: translate(120px, -30px) rotate(8deg); }
  90%  { opacity: 0.3; }
  100% { transform: translate(160px, 0) rotate(0deg); opacity: 0; }
}

/* Leaves — day */
.artifact-leaf {
  position: absolute;
  font-size: 10px;
  animation: leaf-fall 15s linear infinite;
}
@keyframes leaf-fall {
  0%   { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  50%  { transform: translate(30px, 50vh) rotate(180deg); opacity: 0.3; }
  100% { transform: translate(-20px, 100vh) rotate(360deg); opacity: 0; }
}

/* Owl — slow floating */
.artifact-owl {
  position: absolute;
  animation: owl-float 15s ease-in-out infinite;
}
@keyframes owl-float {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); opacity: 0.3; }
  25% { transform: translate(15px, -10px) rotate(3deg); opacity: 0.5; }
  50% { transform: translate(-10px, 5px) rotate(-2deg); opacity: 0.4; }
  75% { transform: translate(20px, -5px) rotate(2deg); opacity: 0.5; }
}

/* Bat — erratic fast flying */
.artifact-bat {
  position: absolute;
  animation: bat-fly 5s ease-in-out infinite;
}
@keyframes bat-fly {
  0% { transform: translate(0, 0) scaleX(1); opacity: 0; }
  10% { opacity: 0.5; }
  30% { transform: translate(60px, -25px) scaleX(-1); }
  50% { transform: translate(20px, 15px) scaleX(1); opacity: 0.6; }
  70% { transform: translate(80px, -10px) scaleX(-1); }
  90% { opacity: 0.3; }
  100% { transform: translate(0, 0) scaleX(1); opacity: 0; }
}

/* Cricket — tiny hops */
.artifact-cricket {
  position: absolute;
  animation: cricket-hop 4s ease-in-out infinite;
}
@keyframes cricket-hop {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  20% { transform: translate(8px, -6px); opacity: 0.5; }
  40% { transform: translate(16px, 0); opacity: 0.4; }
  60% { transform: translate(24px, -8px); opacity: 0.5; }
  80% { transform: translate(32px, 0); opacity: 0.3; }
}

/* Shooting star — fast streak */
.artifact-shooting-star {
  position: absolute;
  animation: shooting-star 3s linear infinite;
}
@keyframes shooting-star {
  0% { transform: translateX(-50px) translateY(0); opacity: 0; }
  5% { opacity: 0.9; }
  40% { opacity: 0.7; }
  100% { transform: translateX(100vw) translateY(60px); opacity: 0; }
}

/* Squirrel — darting run */
.artifact-squirrel {
  position: absolute;
  animation: squirrel-run 10s ease-in-out infinite;
}
@keyframes squirrel-run {
  0% { transform: translateX(-40px) scaleX(1); opacity: 0; }
  5% { opacity: 0.5; }
  30% { transform: translateX(25vw) scaleX(1); opacity: 0.5; }
  35% { transform: translateX(25vw) scaleX(-1); opacity: 0.6; }
  50% { transform: translateX(15vw) scaleX(-1); opacity: 0.5; }
  55% { transform: translateX(15vw) scaleX(1); opacity: 0.5; }
  95% { opacity: 0.3; }
  100% { transform: translateX(calc(100vw + 40px)) scaleX(1); opacity: 0; }
}

/* Bee — buzzing random */
.artifact-bee {
  position: absolute;
  animation: bee-buzz 6s ease-in-out infinite;
}
@keyframes bee-buzz {
  0% { transform: translate(0, 0); opacity: 0.3; }
  15% { transform: translate(15px, -10px); opacity: 0.5; }
  30% { transform: translate(-8px, 5px); opacity: 0.4; }
  45% { transform: translate(20px, -15px); opacity: 0.6; }
  60% { transform: translate(-5px, 8px); opacity: 0.5; }
  75% { transform: translate(12px, -5px); opacity: 0.4; }
  100% { transform: translate(0, 0); opacity: 0.3; }
}

/* Deer — slow majestic walk */
.artifact-deer {
  position: absolute;
  animation: deer-walk 25s linear infinite;
}
@keyframes deer-walk {
  0% { transform: translateX(-60px); opacity: 0; }
  3% { opacity: 0.35; }
  50% { transform: translateX(50vw); opacity: 0.3; }
  97% { opacity: 0.2; }
  100% { transform: translateX(calc(100vw + 60px)); opacity: 0; }
}

/* Cherry blossom petal — gentle swaying fall */
.artifact-petal {
  position: absolute;
  animation: petal-fall 12s linear infinite;
}
@keyframes petal-fall {
  0% { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  25% { transform: translate(20px, 25vh) rotate(90deg); }
  50% { transform: translate(-15px, 50vh) rotate(200deg); opacity: 0.4; }
  75% { transform: translate(25px, 75vh) rotate(310deg); }
  100% { transform: translate(-10px, 100vh) rotate(400deg); opacity: 0; }
}

/* Caterpillar — slow crawl */
.artifact-caterpillar {
  position: absolute;
  animation: caterpillar-crawl 18s linear infinite;
}
@keyframes caterpillar-crawl {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: 0.4; }
  50% { transform: translateX(80px); opacity: 0.35; }
  95% { opacity: 0.2; }
  100% { transform: translateX(160px); opacity: 0; }
}

/* Toggle visibility by theme */
/* Night-only: hide day creatures */
[data-theme="dark"] .artifact-bird,
[data-theme="dark"] .artifact-butterfly,
[data-theme="dark"] .artifact-leaf,
[data-theme="dark"] .artifact-squirrel,
[data-theme="dark"] .artifact-bee,
[data-theme="dark"] .artifact-deer,
[data-theme="dark"] .artifact-petal,
[data-theme="dark"] .artifact-caterpillar { display: none; }

/* Day-only: hide night creatures */
[data-theme="light"] .artifact-star,
[data-theme="light"] .artifact-firefly,
[data-theme="light"] .artifact-owl,
[data-theme="light"] .artifact-bat,
[data-theme="light"] .artifact-cricket,
[data-theme="light"] .artifact-shooting-star { display: none; }

/* ============================================================
   16. SCROLL ANIMATIONS
   ============================================================ */

/* --- Base hidden states --- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-blur,
.reveal-drop,
.reveal-rotate {
  opacity: 0;
  transition-timing-function: var(--ease-out-expo);
  transition-duration: 0.75s;
  transition-property: opacity, transform, filter;
}

.reveal {
  transform: translateY(36px);
}

.reveal-left {
  transform: translateX(-48px);
}

.reveal-right {
  transform: translateX(48px);
}

.reveal-scale {
  transform: scale(0.88);
}

.reveal-blur {
  transform: translateY(24px);
  filter: blur(8px);
}

.reveal-drop {
  transform: translateY(-36px);
}

.reveal-rotate {
  transform: rotate(-6deg) translateY(32px);
}

/* --- Visible (animated in) state --- */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-blur.visible,
.reveal-drop.visible,
.reveal-rotate.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- Highlight reveal (text underline sweep) --- */
.highlight-reveal {
  position: relative;
  display: inline;
}

.highlight-reveal::after {
  content: '';
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.8s var(--ease-out-expo);
}

.highlight-reveal.visible::after {
  width: 100%;
}

/* --- Stagger delays --- */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }

/* --- Count-up animation (JS-driven, class marks eligibility) --- */
.count-up {
  display: inline-block;
  transition: none; /* JS handles the counting */
}

/* ============================================================
   17. RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   18. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  .hero-side-card {
    width: 100%;
    max-width: 400px;
  }

  /* Nav: show hamburger */
  .nav-links {
    display: none;
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 100svh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }

  .nav-links a {
    font-size: 1.3rem;
    color: var(--text);
  }

  .nav--open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .nav-visitor {
    display: none;
  }

  /* Hero card: 모바일 */
  .hero-card {
    padding: 2rem 1.5rem 2rem;
    border-radius: 18px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Skills: single column */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Projects: single column */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Philosophy: already handled at 900px */

  /* Timeline: reduce indent */
  .timeline {
    padding-inline-start: 24px;
  }

  /* Project features: single column on very small screens */
  .project-features {
    grid-template-columns: 1fr;
  }

  /* Contact links: wrap naturally */
  .contact-links {
    gap: 8px;
  }

  /* forest texture: iOS Safari fix — fixed attachment causes glitches */
  .hero-bg {
    background-attachment: scroll;
  }

  .section::before {
    background-attachment: scroll;
  }
}

/* ============================================================
   19. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-blur,
  .reveal-drop,
  .reveal-rotate {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .highlight-reveal::after {
    transition: none;
    width: 100%;
  }

  .stagger-1,
  .stagger-2,
  .stagger-3,
  .stagger-4,
  .stagger-5,
  .stagger-6,
  .stagger-7 {
    transition-delay: 0s;
  }

  .hero-cta,
  .about-card,
  .project-card,
  .phil-card,
  .contact-link,
  .skill-tag,
  .project-link,
  .nav-links a {
    transition: none;
  }
}

/* ============================================================
   20. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.4);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 92, 231, 0.65);
}

/* ============================================================
   21. SELECTION COLOUR
   ============================================================ */
::selection {
  background: rgba(108, 92, 231, 0.35);
  color: var(--text);
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */

/* ============================================================
   RHYTHM & PARTNER DUO STYLES (추가분)
   ============================================================ */

/* --- 파트너 듀오 레이아웃 --- */
.partner-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .partner-duo { grid-template-columns: 1fr; }
}

/* --- 리듬 파트너 카드 변형 --- */
.partner-card--rhythm {
  border-color: rgba(0, 184, 148, 0.25) !important;
}
.partner-card--rhythm::before {
  content: '律';
  color: rgba(0, 184, 148, 0.06);
}

.partner-avatar--rhythm {
  background: linear-gradient(135deg, #00b894, #00cec9) !important;
}
.partner-badge--rhythm {
  background: rgba(0, 184, 148, 0.15) !important;
  color: #00b894 !important;
}

/* --- 히어로 사이드카드: AI 파트너 섹션 --- */
.hsc-partners {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hsc-partner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.hsc-partner strong {
  color: var(--text);
}
.hsc-partner-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.hsc-partner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.hsc-partner-avatar--rhythm {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

/* --- space.html: 리듬 스킬 카드 변형 --- */
.skill-card--rhythm {
  border-color: rgba(0, 184, 148, 0.2);
}
.skill-card--rhythm:hover {
  border-color: rgba(0, 184, 148, 0.5);
}
.skill-tag--rhythm {
  background: rgba(0, 184, 148, 0.15);
  color: #00b894;
}

.skill-rhythm {
  background: rgba(0, 184, 148, 0.05);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 184, 148, 0.1);
}
.skill-rhythm span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #00b894;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.skill-rhythm p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* (코워크 append 제거 — 우리 스타일 위에서 이미 정의됨) */
