@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #090909;
  --surface: #111;
  --line: #242424;
  --text: #f5f5f5;
  --muted: #969696;
  --dim: #666;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1280px, calc(100% - 96px));
  margin: auto;
}
.header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: #090909dd;
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
}
.header nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}
.header nav a:hover,
a:hover {
  color: #fff;
}
.profile {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 90px;
  align-items: center;
  padding: 80px 0 100px;
}
.stack {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile h1 {
  font-size: clamp(54px, 7vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 24px 0;
  font-weight: 800;
}
.profile h1 span {
  display: block;
  color: #777;
}
.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 19px;
}
.links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 14px;
}
.portrait {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #191919, #101010);
  display: grid;
  place-items: center;
}
.portrait img {
  max-width: 400px;
  width: 100%;
  border-radius: 28px;
}
.section {
  border-top: 1px solid var(--line);
  padding: 120px 0;
}
.grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 42px;
}
.num {
  font-size: 13px;
  color: var(--dim);
  padding-top: 10px;
}
.section h2 {
  font-size: 38px;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
}
.aboutText {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}
.aboutText p {
  margin: 0 0 24px;
}
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stack span {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #ccc;
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
small {
  color: var(--dim);
}
.project h3 {
  font-size: 34px;
  margin: 18px 0 12px;
}
.project p {
  color: var(--muted);
  max-width: 500px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tags i {
  font-style: normal;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 12px;
  color: #aaa;
  font-size: 12px;
}
.project .links {
  margin-top: 0;
}
.preview {
  min-height: 300px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #555;
  background: #161616;
}
.map {
  background-image:
    linear-gradient(#fff1 1px, transparent 1px),
    linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 32px 32px;
}
.watch {
  background: radial-gradient(circle, #222, #111);
}
.blog {
  background: linear-gradient(135deg, #191919, #101010);
}
.timeline {
  border-top: 1px solid var(--line);
}
.timeline > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline b {
  color: #777;
}
.timeline span {
  color: #bbb;
}
footer {
  border-top: 1px solid var(--line);
  padding: 110px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}
.footer h2 {
  font-size: 52px;
  letter-spacing: -0.04em;
  max-width: 700px;
  margin: 18px 0;
}
.muted {
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #aaa;
  min-width: 130px;
}
@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, 700px);
  }
  .profile {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .portrait {
    width: min(100%, 390px);
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stack {
    grid-template-columns: repeat(2, 1fr);
  }
  .project {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
  }
  .footer h2 {
    font-size: 40px;
  }
}
@media (max-width: 560px) {
  .header nav {
    display: none;
  }
  .profile {
    padding: 70px 0;
  }
  .profile h1 {
    font-size: 54px;
  }
  .section {
    padding: 80px 0;
  }
  .stack {
    grid-template-columns: 1fr;
  }
  .project {
    padding: 24px;
  }
  .preview {
    min-height: 220px;
  }
  .timeline > div {
    grid-template-columns: 80px 1fr;
  }
}
