.illustrated-step {
  position: relative;
  display: grid;
  align-items: start;
  border-top: 1px solid var(--line);
}
.illustrated-step:has(> details[open]) { border-color: var(--selected-blue); }
.project-steps .illustrated-step > details { border-top: 0; }
.project-steps .illustrated-step > details[open] > summary {
  padding-bottom: .35rem;
  min-height: 3rem;
}
.illustrated-step > details:not([open]) + * { display: none; }

#a2-understand-motion {
  position: relative;
  width: 100%;
  max-width: 47rem;
  justify-self: center;
  margin-bottom: 1.4rem;
  aspect-ratio: 1512 / 764;
  overflow: hidden;
  background: #f7f4ee;
  border-radius: 1rem;
}
#a2-understand-motion img,
#a2-understand-motion .operations-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#a2-understand-motion img { object-fit: cover; }
#a2-understand-motion .operations-map { visibility: hidden; }
#a2-understand-motion[data-ready] .operations-map { visibility: visible; }
#a2-understand-motion[data-ready] img { visibility: hidden; }

@media (min-width: 72rem) {
  .project-steps { max-width: 76rem; }
  .illustrated-step {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(1.5rem, 3vw, 3.25rem);
  }
  .illustrated-step > details:not([open]) { grid-column: 1 / -1; }
  .illustrated-step > details[open] > summary::after {
    position: absolute;
    top: 1.45rem;
    right: .25rem;
  }
  /* Trim the artwork's empty upper margin so the cards align with the step label. */
  #a2-understand-motion {
    width: calc(100% - 1.5rem);
    justify-self: start;
    margin-top: .875rem;
    aspect-ratio: 1512 / 692;
  }
  #a2-understand-motion .operations-map {
    top: auto;
    height: auto;
  }
  #a2-understand-motion img { object-position: center 68%; }
}
