.about-intro,
.about-process {
  padding-block: 72px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 6fr);
  grid-template-areas:
    "heading portrait"
    "details portrait";
  column-gap: 32px;
}

.about-intro-heading {
  grid-area: heading;
}

.about-intro-details {
  grid-area: details;
}

.about-portrait {
  grid-area: portrait;
  position: relative;
}

.about-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.about-label {
  margin: 0 0 16px;
}

.about-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: #07bfb8;
}

.about-intro h1,
.about-process h2,
.about-experience h2,
.about-strengths h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.about-intro h1 {
  font-size: 3.5rem;
  text-wrap: balance;
}

.about-description {
  display: grid;
  gap: 16px;
  max-width: 39rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.25rem;
}

.about-description p,
.about-step p {
  margin: 0;
}

.about-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: max-content;
  max-width: 100%;
  gap: 16px;
  margin-top: 32px;
}

.about-actions .button {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 32px;
}

.about-actions .secondary {
  color: var(--ink);
  background: transparent;
}

.about-actions .secondary:hover {
  background: #fff;
}

.about-process {
  --timeline-accent: #07bfb8;
  background: #121212;
  color: var(--paper);
}

.about-process .about-label {
  color: inherit;
}

.about-process h2,
.about-experience h2,
.about-strengths h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.about-timeline {
  --marker-size: 32px;
  --marker-center: calc(var(--marker-size) / 2);
  --timeline-duration: 4s;
  --segment-duration: calc(var(--timeline-duration) / 3);
  --column-gap: .02;
  --column-share: calc((1 - 3 * var(--column-gap)) / 4);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: calc(var(--column-gap) * 100%);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.about-step {
  position: relative;
}

.about-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--marker-size);
  height: var(--marker-size);
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid var(--timeline-accent);
  border-radius: 50%;
  background: var(--timeline-accent);
  color: #121212;
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.about-illustration {
  position: relative;
  width: min(100%, 230px);
  aspect-ratio: 23 / 14;
  margin: 0 auto 16px;
}

.about-illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-step h3 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  line-height: 1.2;
}

.about-step p {
  color: #d1cfc7;
  font-size: .875rem;
  line-height: 1.5;
}

.about-step .about-step-label {
  margin-bottom: 8px;
  color: var(--timeline-accent);
  font-weight: 600;
}

.about-experience,
.about-strengths {
  background: #fff;
}

.about-experience .experience-list,
.about-strengths .strength-grid {
  margin-top: 40px;
}

.about-experience .experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: 24px;
}

.about-experience .experience-item:first-child {
  border-block-start: 0;
}

.about-experience .experience-item p:not(.card-category) {
  max-width: 52rem;
  margin: 0;
}

.about-experience .about-role {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #07bfb8;
  font-weight: 600;
}

.about-strengths .strength-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 64rem) {
  .about-strengths .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-strengths .strength-grid article {
  padding: 24px;
  border-color: #d9d5c9;
}

.about-strengths .strength-grid h3 + p {
  margin-top: 12px;
}

.about-strength-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: #d7efeb;
  color: #086d68;
}

.about-strength-icon svg {
  width: 20px;
  height: 20px;
}

@media (width > 60rem) {
  .about-step {
    text-align: center;
  }

  .about-step-description {
    white-space: pre-line;
  }

  .about-timeline::before,
  .about-timeline::after {
    position: absolute;
    inset: calc(var(--marker-center) - 1px) 0 auto;
    height: 2px;
    content: "";
  }

  .about-timeline::before {
    background: #565652;
  }

  .about-timeline::after {
    background: var(--timeline-accent);
    transform-origin: left center;
  }
}

@media (max-width: 48rem) {
  .about-intro,
  .about-process {
    padding-block: 48px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "portrait" "details";
    row-gap: 24px;
  }

  .about-intro h1 {
    font-size: 2.25rem;
  }

  .about-process h2,
  .about-experience h2,
  .about-strengths h2 {
    font-size: 2rem;
  }

  .about-portrait img {
    position: static;
    width: min(100%, 360px);
    height: auto;
    margin-inline: auto;
  }

  .about-description {
    margin-top: 0;
    font-size: 1rem;
  }

  .about-experience .experience-list,
  .about-strengths .strength-grid {
    margin-top: 24px;
  }

  .about-experience .experience-item,
  .about-strengths .strength-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 60rem) {
  .about-timeline {
    --timeline-gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--timeline-gap);
    margin-top: 32px;
  }

  .about-step {
    --marker-delay: calc(var(--step-index) * var(--segment-duration));
    padding-inline-start: 48px;
    min-height: var(--marker-size);
  }

  .about-illustration {
    margin-inline: 0;
  }

  .about-step p {
    font-size: 1rem;
  }

  .about-marker {
    position: absolute;
    inset: 0 auto auto 0;
  }

  .about-step:not(:last-child)::before,
  .about-step:not(:last-child)::after {
    top: var(--marker-center);
    left: calc(var(--marker-center) - 1px);
    width: 2px;
    height: calc(100% + var(--timeline-gap));
    position: absolute;
    content: "";
  }

  .about-step:not(:last-child)::before {
    background: #565652;
  }

  .about-step:not(:last-child)::after {
    background: var(--timeline-accent);
    transform-origin: center top;
  }
}

@media (max-width: 30rem) {
  .about-actions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .about-timeline {
    --unfilled-scale: 0 1;
  }

  .timeline-pending .about-marker {
    background: #121212;
    border-color: #85857f;
    color: var(--paper);
  }

  .timeline-running .about-marker {
    animation: about-reach-marker 0s linear var(--marker-delay) both;
  }

  @keyframes about-fill {
    from { scale: var(--unfilled-scale); }
    to { scale: 1; }
  }

  @keyframes about-reach-marker {
    from {
      background: #121212;
      border-color: #85857f;
      color: var(--paper);
    }
    to {
      background: var(--timeline-accent);
      border-color: var(--timeline-accent);
      color: #121212;
    }
  }

  @media (width > 60rem) {
    .about-step {
      /* The fill reaches each marker at the centre of its grid column. */
      --marker-position: calc(var(--column-share) / 2 + var(--step-index) * (var(--column-share) + var(--column-gap)));
      --marker-delay: calc(var(--timeline-duration) * var(--marker-position));
    }

    .about-timeline.timeline-pending::after {
      scale: var(--unfilled-scale);
    }

    .about-timeline.timeline-running::after {
      animation: about-fill var(--timeline-duration) linear both;
    }
  }

  @media (max-width: 60rem) {
    .about-timeline {
      --unfilled-scale: 1 0;
    }

    .timeline-pending .about-step::after {
      scale: var(--unfilled-scale);
    }

    .timeline-running .about-step::after {
      animation: about-fill var(--segment-duration) linear var(--marker-delay) both;
    }
  }
}
