.intro {
  position: relative;
  max-width: 940px;
  padding-bottom: 80px;

  svg {
    position: absolute;
    left: -20px;
    width: 100%;
    height: auto;

    @media (max-width: 640px) {
      left: -12px;
      width: auto;
      height: 100%;
    }

    @media (min-width: 1320px) {
      left: -40px;
    }

    path {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      animation: draw 2s ease-in-out forwards;

      @media (prefers-reduced-motion: reduce) {
        animation: none; stroke-dashoffset: 0;
      }
    }
  }

  p {
    position: relative;
    z-index: 1;
    font-size: var(--font-size--lg);
    font-weight: 500;
    line-height: 1.4em;

    & + p {
      margin-top: 2.5rem;
    }
  }
}

.work {
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
}

.project {
  display: flex;

  > div {
    display: flex;

    @media (max-width: 799px) {
      display: block;
    }
  }

  @media (max-width: 1023px) {
    display: block;
  }

  &:not(:last-child) {
    margin-bottom: 72px;
  }

  h3 {
    margin-bottom: 12px;
    font-size: var(--font-size--lg);
    font-weight: 600;
    line-height: 1em;
    width: 240px;
    flex-shrink: 0;
  }

  p {
    flex: 1;
    padding-right: 80px;
    padding-bottom: 16px;

    @media (max-width: 799px) {
      padding-right: 0;
    }
  }

  ul {
    width: 200px;
    flex-shrink: 0;
    opacity: 0.6;
    font-size: var(--font-size--base);
    font-weight: 400;
    line-height: 1.5em;

    @media (max-width: 799px) {
      width: 100%;
      margin-top: 16px;

      li {
        display: inline;

        &:not(:last-child):after {
          margin-right: 4px;
          content: ",";
        }

        &:last-child:after {
          content: "."
        }
      }
    }
  }

  .links {
    display: flex;
    gap: 16px;
    align-items: last baseline;
  }

  span {
    opacity: 0.4;
  }

  a {
    font-size: var(--font-size--base);
    font-weight: 500;
    line-height: 1.4em;
    color: var(--color--link);
  }
}

.experience {
  position: relative;
  z-index: 1;
  max-width: 640px;

  .job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;

    @media (max-width: 640px) {
      flex-direction: column-reverse;
      align-items: flex-start;
    }
  }

  p {
    max-width: 480px;
    margin-bottom: 24px;
    opacity: 0.6;
    font-size: var(--font-size--sm);
  }
}
