/* ─── About page ─────────────────────────────────────────── */

.about-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Hero ───────────────────────────────────────────────── */
.about-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.about-hero-text {
  flex: 1;
}

.about-name {
  font-size: var(--size-xxl);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-role-label {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
}

.about-tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 640px;
}

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

/* ─── Stats band ─────────────────────────────────────────── */
.about-stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-stat-num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

.about-stat-lbl {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ─── Section wrapper ────────────────────────────────────── */
.about-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-section:last-child {
  border-bottom: none;
}

.about-section-heading {
  font-size: var(--size-large);
  font-weight: 700;
  line-height: var(--lh-large);
  color: var(--text-primary);
}

/* ─── Profile ────────────────────────────────────────────── */
.about-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 840px;
}

.about-profile p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Experience timeline ────────────────────────────────── */
.about-timeline {
  display: flex;
  flex-direction: column;
  max-width: 840px;
}

.about-role-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.about-role-item:first-child {
  padding-top: 0;
}

.about-role-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-role-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.about-role-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.about-role-company {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 3px;
}

.about-role-dates {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.about-role-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-role-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
}

.about-role-item--minor .about-role-title {
  font-size: 16px;
}

/* ─── Two-column layout ──────────────────────────────────── */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

/* ─── Skills ─────────────────────────────────────────────── */
.about-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-skill-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
}

/* ─── Software ───────────────────────────────────────────── */
.about-software-list {
  display: flex;
  flex-direction: column;
}

.about-software-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.about-software-item:last-child {
  border-bottom: none;
}

.about-software-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.about-software-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ─── Education ──────────────────────────────────────────── */
.about-edu-table {
  width: 100%;
  border-collapse: collapse;
}

.about-edu-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: left;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-edu-table td {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  vertical-align: top;
}

.about-edu-table tr.about-edu-highlight td {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

/* ─── Contact ────────────────────────────────────────────── */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-contact-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 100px;
}

.about-contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.about-contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

a.about-contact-value:hover {
  text-decoration: underline;
}

/* ─── Clients strip ──────────────────────────────────────── */
.about-clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-client-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-name {
    font-size: clamp(48px, 12vw, 80px);
  }

  .about-hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
    padding-top: 32px;
  }

  .about-avatar-hero {
    width: 80px;
    height: 80px;
  }

  .about-tagline {
    font-size: 16px;
    margin-top: 16px;
  }

  .about-stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 24px 0;
  }

  .about-stat-num {
    font-size: 36px;
  }

  .about-role-meta {
    flex-direction: column;
    gap: 4px;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}
