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

:root {
  --bg: #0a0a0a;
  --fg: #f0f0f0;
  --muted: #666;
  --accent: #f0f0f0;
  --gap: 2rem;
  --font: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gap);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  mix-blend-mode: difference;
}

nav .logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

nav ul a:hover {
  color: var(--fg);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem var(--gap);
}

#hero h1 {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

#hero p {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
}

/* WORK */
#work {
  padding: 6rem var(--gap);
}

#work h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 3rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.work-item:hover img {
  transform: scale(1.03);
  opacity: 0.7;
}

.work-item .caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.875rem;
}

.work-item:hover .caption {
  opacity: 1;
}

/* ABOUT */
#about {
  padding: 6rem var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

#about h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

#about p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

#about p + p {
  margin-top: 1rem;
}

/* CONTACT */
#contact {
  padding: 6rem var(--gap);
  border-top: 1px solid #1a1a1a;
}

#contact h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 2rem;
}

#contact .cta {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

#contact .cta a {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

#contact .cta a:hover {
  border-color: transparent;
}

.social-links {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.social-links a:hover {
  color: var(--fg);
}

/* FOOTER */
footer {
  padding: 2rem var(--gap);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid #1a1a1a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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