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

:root {
  --bg: #141414;
  --bg-card: #1c1c1c;
  --bg-hover: #222222;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #c9a96e;
  --border: #2a2a2a;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}

.icon-link:hover {
  color: var(--text);
}

/* ── Main layout ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 60px;
}

.name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 36px;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-dim);
  transition: text-decoration-color 0.2s;
}

.inline-link:hover {
  text-decoration-color: var(--text);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

/* ── Projects section ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  border-color: #3a3a3a;
  background: var(--bg-hover);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.2s;
}

.project-card:hover .card-image img {
  filter: brightness(1);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
}

.card-year {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--text);
}

/* ── More link ── */
.more-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.more-link:hover {
  color: var(--text);
}

/* ── Projects page ── */
.page-header {
  margin-bottom: 60px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  gap: 24px;
  transition: opacity 0.15s;
}

.row-thumb {
  width: 140px;
  height: 88px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.2s;
}

.project-row:hover .row-thumb img {
  filter: brightness(1);
}

.row-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.project-row:first-child {
  border-top: 1px solid var(--border);
}

.project-row:hover {
  opacity: 0.75;
}

.row-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.row-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.55;
}

.row-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

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

.row-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Projects page grid ── */
.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.proj-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.proj-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
  transition: filter 0.2s;
}

.proj-card:hover .proj-card-image img {
  filter: brightness(1);
}

.proj-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.proj-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.proj-card-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.proj-card-year {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.proj-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.proj-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.proj-card-link:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .projects-grid-full {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.contact-section {
  max-width: 520px;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:first-child {
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  nav {
    padding: 20px 24px;
  }

  main {
    padding: 60px 24px 80px;
  }

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

  .nav-icons {
    gap: 14px;
  }
}

@media (max-width: 500px) {
  .nav-links {
    gap: 20px;
  }

  .project-row {
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
  }

  .row-thumb {
    width: 100px;
    height: 64px;
  }

  .row-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }
}
