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

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-muted: #6b6b6b;
  --text-faint: #999;
  --border: #e5e5e5;
  --accent: #0a0a0a;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* HERO */
header {
  max-width: 780px;
  margin: 0 auto;
  padding: 10rem 2.5rem 6rem;
}

header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
}

/* MAIN LAYOUT */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* SECTIONS */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

/* PROJECTS */
.project {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-year {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.project-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.project h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-stack span {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  background: #f4f4f4;
  border-radius: 4px;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.project-img {
  display: block;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.project-gallery .project-img {
  max-width: 100%;
  margin: 0;
}

.project-gallery .gallery-wide {
  grid-column: 1 / -1;
  max-width: 50%;
}

@media (max-width: 500px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery .gallery-wide {
    grid-column: 1;
  }
}

.project-dim {
  opacity: 0.4;
}

/* SKILLS */
.skills-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 400;
}

.skill-list {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 420px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav {
    padding: 1rem 1.25rem;
  }

  header {
    padding: 8rem 1.25rem 4rem;
  }

  main {
    padding: 0 1.25rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-inner {
    padding: 3rem 1.25rem 2rem;
  }
}
