:root {
  --accent: #6EE7C5;
  --accent-soft: rgba(110, 231, 197, 0.12);
  --bg: #09090B;
  --surface: #111113;
  --surface-2: #18181B;
  --line: rgba(255, 255, 255, 0.06);
  --text: #A1A1AA;
  --text-strong: #FAFAFA;
  --text-bright: #E4E4E7;
  --text-muted: #8B8B94;
  --text-dim: #71717A;
  --font: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

[id] {
  scroll-margin-top: 80px;
}

.accent {
  color: var(--accent);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.logo-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 13px;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.hero {
  padding: 136px 0 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}

.hero-text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-name {
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text-strong);
}

.hero-lead {
  max-width: 620px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.hero-lead-strong {
  display: block;
  margin-top: 4px;
  color: var(--text-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-main {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}

.btn-main:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid #27272A;
  color: var(--text-strong);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  background: var(--surface-2);
}

.hero-profile {
  flex: 1 1 260px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-dim);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 12px;
}

.profile-meta dt {
  color: var(--text-muted);
}

.profile-meta dd {
  color: #D4D4D8;
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
}

.section-label {
  flex: 1 1 200px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.4s, text-shadow 0.4s;
}

.section-label .accent {
  color: var(--text-dim);
  transition: color 0.4s, text-shadow 0.4s;
}

.section.is-current .section-label {
  color: var(--text-strong);
}

.section.is-current .section-label .accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(110, 231, 197, 0.6);
}

.section-body {
  flex: 4 1 560px;
  min-width: 0;
}

.about-lead {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 28px;
}

.about-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  max-width: 760px;
}

.about-cols p {
  flex: 1 1 300px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 40px;
}

.skill-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.skill-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.skill-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

#projects {
  padding-bottom: 48px;
}

#projects .section-label {
  margin-bottom: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 88px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
}

.project-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.project-title {
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  transition: color 0.25s;
}

.project:hover .project-title {
  color: var(--accent);
}

.project-summary {
  margin-top: 10px;
  font-size: 17px;
}

.project-shot {
  aspect-ratio: 16 / 8;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.3s;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-shot:has(img) {
  padding: 0;
}

.project:hover .project-shot {
  border-color: #3F3F46;
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.detail {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.detail-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.detail-result {
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.detail-result .detail-label {
  color: var(--accent);
}

.detail-result p {
  color: var(--text-bright);
}

.project-stack {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.ulink {
  font-size: 14px;
  color: var(--text-bright);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s, color 0.2s;
}

.ulink:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.contact {
  padding: 120px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .section-label {
  flex: none;
}

.contact-title {
  max-width: 820px;
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.contact-list {
  max-width: 640px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-key {
  flex: 0 0 72px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-list .contact-value {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.site-footer {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .hero {
    padding: 72px 0 80px;
    gap: 48px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
