/* ============ About page ============ */
.about-page {
  color: var(--body);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 68px;
  background:
    linear-gradient(135deg, rgba(16, 13, 10, 0.94), rgba(124, 45, 18, 0.74)),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .about-hero {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 237, 213, 0.9)),
    var(--bg);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
}

.about-hero-copy {
  min-width: 0;
  max-width: 780px;
}

.about-page .eyebrow {
  margin-bottom: 16px;
}

.about-page .section-tag {
  margin-bottom: 8px;
}

.about-hero h1 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-intro {
  margin: 0;
  color: var(--heading);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  font-weight: 700;
}

.about-bio {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.8;
}

.about-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-meta-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(224, 111, 42, 0.14);
  border-radius: 999px;
  color: var(--blue-light);
  background: rgba(224, 111, 42, 0.11);
  font-size: 13px;
  font-weight: 600;
}

.about-profile-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.about-profile-panel:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.about-avatar {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  background: var(--card-2);
}

.about-profile-name {
  margin-top: 18px;
}

.about-profile-name strong {
  display: block;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.2;
}

.about-profile-name span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.about-link-row {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.about-link-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  background: rgba(20, 18, 15, 0.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.about-link-row a::after {
  content: "↗";
  color: var(--blue-light);
  font-family: var(--mono);
}

.about-link-row a:hover {
  border-color: rgba(224, 111, 42, 0.72);
  background: rgba(196, 90, 27, 0.18);
  transform: translateY(-1px);
}

html[data-theme="light"] .about-link-row a {
  background: var(--card-2);
}

.about-section {
  margin-top: 56px;
}

.about-section-last {
  padding-bottom: 72px;
}

.about-section-head {
  display: block;
  margin-bottom: 18px;
}

.about-section-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

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

.about-stack-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.about-stack-panel:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.about-stack-panel h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.3;
}

.about-stack-list {
  display: grid;
  gap: 14px;
}

.about-stack-item {
  min-width: 0;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
}

.about-stack-panel--quiet .about-stack-item {
  border-left-color: var(--yellow);
}

.about-stack-item strong {
  display: block;
  color: var(--heading);
  font-size: 16px;
  line-height: 1.35;
}

.about-stack-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.about-project-card {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.about-project-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

html[data-theme="light"] .about-profile-panel,
html[data-theme="light"] .about-stack-panel,
html[data-theme="light"] .about-project-card {
  box-shadow: var(--shadow);
}

.about-project-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.about-project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .about-hero {
    padding: 86px 0 52px;
  }

  .about-hero-inner,
  .about-split-grid {
    grid-template-columns: 1fr;
  }

  .about-profile-panel {
    max-width: 520px;
  }

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

@media (max-width: 680px) {
  .about-hero {
    padding: 74px 0 42px;
  }

  .about-hero-inner {
    gap: 28px;
  }

  .about-intro {
    font-size: 20px;
  }

  .about-section {
    margin-top: 38px;
  }

  .about-section-head {
    display: block;
  }

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

  .about-project-card {
    min-height: 0;
  }
}
