:root {
  --bg: #fafafa;
  --text: #111;
  --muted: #686868;
  --line: #dedede;
  --soft: #f0f0f0;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

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

.nav-link {
  font-size: 13px;
  color: var(--muted);
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 132px 0 120px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 600;
}

.hero h1 span, .contact h2 span { color: var(--muted); }

.intro {
  max-width: 610px;
  margin: 34px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid var(--text);
  font-size: 13px;
  transition: .2s ease;
}

.button.primary { background: var(--text); color: white; }
.button.secondary { border-color: var(--line); }
.button:hover { transform: translateY(-2px); }

.signal {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal > div {
  padding: 30px 30px 32px 0;
  border-right: 1px solid var(--line);
}

.signal > div:not(:first-child) { padding-left: 30px; }
.signal > div:last-child { border-right: 0; }

.signal-number {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}

.signal strong {
  font-size: 14px;
  display: block;
}

.signal p {
  color: var(--muted);
  font-size: 13px;
  max-width: 270px;
  margin-bottom: 0;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 130px 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 600;
}

.projects {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.project:hover { background: var(--soft); }
.project.featured { grid-column: span 2; min-height: 360px; }

.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project h3 {
  margin: 65px 0 12px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.project p {
  max-width: 570px;
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.tags span, .skills span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  border-top: 1px solid var(--line);
}

.about-copy { padding-top: 6px; }

.about-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 32px;
}

.experience {
  border-top: 1px solid var(--line);
}

.experience-row {
  margin-top: 65px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.experience-row h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.experience-row p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}

.experience-row > p { margin: 0; }

.contact {
  border-top: 1px solid var(--line);
  padding-bottom: 110px;
}

.contact h2 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 0 0 48px;
}

.email {
  display: inline-block;
  font-size: 18px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 5px;
}

.socials {
  display: flex;
  gap: 24px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 24px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav nav { display: none; }
  .hero { padding: 90px 0 80px; }
  .hero h1 { font-size: 54px; }
  .intro { font-size: 15px; }
  .signal, .about, .experience-row { grid-template-columns: 1fr; }
  .signal > div, .signal > div:not(:first-child) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .signal > div:last-child { border-bottom: 0; }
  .section { padding: 90px 0; }
  .projects { grid-template-columns: 1fr; }
  .project.featured { grid-column: span 1; }
  .project { min-height: 300px; }
  .project h3 { margin-top: 50px; }
  .about { gap: 50px; }
  .experience-row { gap: 20px; }
  footer { flex-direction: column; gap: 8px; }
}
