.hero-section {
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-kicker {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero-name {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 20px 0 18px 0;
}

.hero-subtitle .accent {
  margin-right: 4px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 24px;
  align-items: flex-start;
}

.hero-meta-group {
  display: flex;
  flex-direction: column;
}

.hero-meta-group .meta-label {
  margin-bottom: 0;
}

.hero-meta-group .social-links,
.hero-meta-group .skill-tags {
  margin-top: 10px;
}

.hero-meta-group .social-links {
  display: flex;
  gap: 0.8rem;
}

.hero-meta-group .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(145deg, #181a26 0, #0c0e19 50%, #060711 100%);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.hero-meta-group .social-links a:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--color-accent-strong);
  background: radial-gradient(
    circle at top left,
    oklch(62% 0.16 264.665) 0,
    oklch(45% 0.15 264.665) 52%,
    #141627 100%
  );
  box-shadow: 0 20px 40px color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.hero-portrait-wrapper {
  display: flex;
  justify-content: flex-end;
}

/* Single background — your theme color; head of subject sits slightly above it */
.hero-portrait {
  border-radius: var(--radius-lg);
  background: #121620;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 440px;
  position: relative;
  overflow: hidden;
}

.hero-portrait-inner {
  background: #121620;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Image positioned so head sits a little above the single background baseline; keeps 3D pop */
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius-md);
}

.hero-portrait figcaption {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero-section {
    padding-top: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait-wrapper {
    order: -1;
    justify-content: flex-start;
  }

  .hero-portrait {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-portrait-inner {
    min-height: 440px;
  }

  .hero-portrait img {
    max-height: 540px;
    object-position: center 12%;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-section {
    padding-top: 16px;
  }

  .hero-portrait-inner {
    min-height: 320px;
  }

  .hero-portrait img {
    max-height: 420px;
    object-position: center 12%;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

