.portfolio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 3rem auto 4rem;
  text-align: center;
}

.portfolio-avatar {
  width: 168px;
  height: 168px;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.portfolio-name {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.portfolio-title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
  opacity: 0.9;
}

.portfolio-subtitle,
.portfolio-intro {
  max-width: 650px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.82;
}

.portfolio-intro {
  margin-top: 0.75rem;
}

.portfolio-socials,
.portfolio-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.portfolio-socials {
  margin: 1.7rem 0 0;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.portfolio-socials li {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  list-style: none !important;
  list-style-image: none !important;
  list-style-position: outside !important;
  list-style-type: none !important;
  text-indent: 0 !important;
}

.portfolio-socials li::marker {
  content: none !important;
  font-size: 0 !important;
}

.portfolio-socials li::before,
.portfolio-socials li::after,
.portfolio-socials a::before,
.portfolio-socials a::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  content: none !important;
}

.portfolio-socials a {
  box-sizing: border-box;
  display: inline-flex;
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 5.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font-size: 0;
  line-height: 1;
  opacity: 0.84;
  text-align: center;
  text-decoration: none;
  text-indent: 0 !important;
  vertical-align: middle;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.portfolio-socials a:hover,
.portfolio-socials a:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
}

.portfolio-social-icon {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.portfolio-social-icon::before,
.portfolio-social-icon::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
}

.portfolio-social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-cta {
  margin: 2rem 0 0;
}

.portfolio-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.05rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.portfolio-cta a.primary {
  background: currentColor;
}

.portfolio-cta a.primary span {
  color: var(--bg, #fff);
}

.portfolio-section {
  margin: 0 auto 4rem;
}

.portfolio-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.portfolio-section-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-card {
  height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(128, 128, 128, 0.28);
  border-radius: 14px;
}

.portfolio-card a {
  color: inherit;
  text-decoration: none;
}

.portfolio-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.portfolio-card p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.82;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.portfolio-tag {
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  opacity: 0.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
