.initials-card {
  width: 100%;
  min-width: 0;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.initials-card .profile-code {
  max-width: 100%;
  overflow-x: auto;
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  height: 400px;
  aspect-ratio: 4 / 5;
  display: block;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.profile-bento {
  align-items: stretch;
}

.experience-grid {
  margin-top: 2rem;
}

.role-date {
  margin-top: auto !important;
  padding-top: 1.25rem;
  color: var(--muted, #aab0be);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
}

.education-degree {
  display: grid;
  flex: 0 0 64px;
  place-items: center;
  height: 64px;
  border: 1px solid rgba(119, 255, 209, 0.22);
  border-radius: 18px;
  background: rgba(91, 255, 199, 0.08);
  color: #85fbd3;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.education-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Syne", "Vazirmatn", sans-serif;
  font-size: 1.15rem;
}

.education-card p {
  margin: 0 0 0.35rem;
}

.education-card small {
  color: var(--muted, #aab0be);
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero-grid,
  .hero-content,
  .hero-visual {
    min-width: 0;
  }

  .hero-visual {
    order: 0;
  }

  .hero-name {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .hero-role {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-metrics {
    gap: 8px;
    padding: 16px 10px;
  }

  .metric {
    flex: 1 1 72px;
    min-width: 72px;
  }

  .metric span {
    font-size: 0.7rem;
  }

  .initials-card {
    min-height: 0;
    padding: 20px;
  }

  .profile-photo {
    max-width: 260px;
    height: 325px;
  }

  .initials-card .profile-code pre {
    font-size: 0.7rem;
  }

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