* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #151515;
  background: #f4f4f1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(244, 244, 241, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(14px);
}

.logo {
  flex: 0 0 auto;
  color: #151515;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #4f4f4a;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover {
  color: #151515;
  background: #ffffff;
  border-color: rgba(21, 21, 21, 0.2);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #77776f;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px;
  color: #151515;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(21, 21, 21, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(21, 21, 21, 0.04), transparent 58%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 21, 21, 0.18);
  box-shadow: 0 20px 55px rgba(21, 21, 21, 0.1);
}

.project-index {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #9a9a91;
  font-size: 13px;
  font-weight: 700;
}

.project-card h2,
.project-card p,
.open-link {
  position: relative;
  z-index: 1;
}

.project-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.project-card p {
  min-height: 48px;
  margin: 0;
  color: #5e5e58;
  font-size: 15px;
  line-height: 1.45;
}

.open-link {
  width: fit-content;
  margin-top: 4px;
  padding: 11px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #151515;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px;
  }

  main {
    width: calc(100% - 28px);
    padding: 34px 0 44px;
  }

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

  .project-card {
    min-height: 220px;
    padding: 22px;
    border-radius: 24px;
  }

  .project-card p {
    min-height: auto;
  }
}
