:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --border: #2f2f2f;
  --text: #ffffff;
  --muted: #ababab;
  --radius: 16px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { 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.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-name { font-weight: 600; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.profile {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 96px;
}
.profile h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.role { font-size: 18px; color: var(--muted); }
.bio { font-size: 15px; }
.location { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }

main { min-width: 0; scroll-margin-top: 96px; }

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.work-col { display: flex; flex-direction: column; gap: 40px; }
/* Stagger the columns so rows never line up */
.work-col:nth-child(2) { margin-top: 96px; }
.work-col:nth-child(3) { margin-top: 32px; }

.work-item { margin: 0; }
.work-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.work-item--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.work-item--square img { aspect-ratio: 1; object-fit: cover; }
.work-item figcaption { margin-top: 12px; font-size: 15px; }

/* Tablet */
@media (max-width: 1199px) {
  .layout { grid-template-columns: 300px 1fr; gap: 40px; }
}

/* Phone */
@media (max-width: 809px) {
  .layout { grid-template-columns: 1fr; padding: 32px 16px 72px; }
  .profile { position: static; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-col { gap: 32px; }
  .work-col:nth-child(n) { margin-top: 0; }
}
