/* Preserve the portfolio design while giving CV content room to breathe. */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../images/professional-cover.png") center right / cover no-repeat;
  opacity: .24;
  mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
}

.hero-specialism {
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 18px 0 22px;
}

.project-group-title {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0 0 20px;
}

.project-group-title.personal-group {
  margin-top: 64px;
}

.project-group-intro {
  color: var(--muted);
  line-height: 1.75;
  max-width: 780px;
  margin: 0 0 26px;
}

.project-links {
  margin-top: 24px;
}

section[id] {
  scroll-margin-top: 92px;
}

.timeline-item > div,
.work-body > div,
.skills-grid article {
  min-width: 0;
}

.timeline-item .time {
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.experience-points,
.project-points {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
  margin: 18px 0 0;
  padding-left: 1.25rem;
}

.project-points {
  margin-top: 0;
}

.experience-points li,
.project-points li {
  padding-left: .2rem;
  margin: 0 0 .9rem;
}

.exp-grid h4 {
  color: var(--accent);
  font-size: .98rem;
  margin: 0 0 6px;
}

.exp-grid .project-context {
  font-size: .8rem;
  margin-bottom: 14px;
}

.exp-grid ul,
.evidence-box ul {
  font-size: .92rem;
  line-height: 1.75;
}

.exp-grid li,
.evidence-box li {
  margin: 0 0 .8rem;
}

.skills-grid {
  gap: 32px;
}

.skills-grid h3 {
  line-height: 1.45;
  min-height: 2.9em;
}

.skills-grid p {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-body {
    padding-left: 0;
  }

  .skills-grid h3 {
    min-height: 0;
  }
}

.research-results .result strong {
  font-size: 1.05rem;
  line-height: 1.45;
}
