header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--side);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  color: inherit;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 4px;
}

.hero {
  padding: 32px var(--side) 40px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  line-height: clamp(36px, 6.5vw, 76px);
  letter-spacing: -0.5px;
}

.cases {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 var(--side) 60px;
}

/* ── PUBLICATIONS ── */
.publications {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 40px var(--side) 0;
}

.publications-title {
  grid-column: 1 / -1;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  line-height: clamp(36px, 6.5vw, 76px);
  letter-spacing: -0.5px;
  margin: 0 0 32px;
}

.publications-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #EEEEF2;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.pub-card:hover {
  background: #E3E3E8;
}

.pub-card--fill {
  flex: 1;
}

.pub-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text);
  margin: 0;
}

.pub-card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #717681;
  margin: 0;
}

.pub-more {
  display: none;
}

@media (max-width: 640px) {
  .publications {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .publications-col {
    display: contents;
  }

  .pub-card {
    display: none;
  }

  .pub-card.pub-visible {
    display: flex;
  }

  .pub-card--fill {
    flex: none;
  }

  .pub-more {
    display: block;
    margin: 4px 0 0;
    width: 100%;
    text-align: center;
  }

  .pub-more.pub-more--hidden {
    display: none;
  }
}

/* ── FOOTER ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side) 32px;
  margin-top: 124px;
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EEEEF2;
  border-radius: 16px;
  padding: 16px 24px 16px 12px;
  text-decoration: none;
  color: inherit;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #D8D8DC;
}

.footer-link-name {
  font-size: 16px;
  font-weight: 500;
  color: #23262D;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
  font-weight: 400;
  color: #717681;
}

@media (max-width: 640px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 80px;
    padding-bottom: 0;
  }
  .footer-links { flex-direction: column; }
  .footer-copy { align-items: flex-start; }
}
