.vs-ahist {
  background: #ffffff;
  padding: 5rem 1.5rem;
}

@media (min-width: 640px) {
  .vs-ahist {
    padding-block: 6rem;
  }
}

.vs-ahist__radio {
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 1px;
  opacity: 0;
  pointer-events: none;
}

.vs-ahist__head {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
}

.vs-ahist__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #2d187e;
}

.vs-ahist__heading {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2d187e;
}

@media (min-width: 640px) {
  .vs-ahist__title { font-size: 1.875rem; }
  .vs-ahist__heading { font-size: 2.275rem; }
}

.vs-ahist__intro {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #777780;
}

.vs-ahist__timeline {
  position: relative;
  margin: 2.5rem auto 0;
  max-width: 1600px;
}

.vs-ahist__line {
  position: absolute;
  bottom: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: #d9d9dd;
}

@media (min-width: 1024px) {
  .vs-ahist__line {
    left: 112px;
    right: 73px;
  }
}

.vs-ahist__years {
  position: relative;
  display: flex;
  overflow: visible;
}

.vs-ahist__year {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  flex: 1 1 0%;
  height: 210px;
  cursor: pointer;
  align-items: flex-end;
  justify-content: center;
}

.vs-ahist__year-label {
  position: absolute;
  bottom: 76px;
  left: calc(50% - 54px);
  width: 108px;
  rotate: -90deg;
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: #c5c5c9;
  transition: color 500ms ease;
}

.vs-ahist__year:hover .vs-ahist__year-label {
  color: #8176b3;
}

@media (min-width: 640px) {
  .vs-ahist__year-label {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .vs-ahist__year-label {
    font-size: 46px;
  }
}

.vs-ahist__dot {
  position: absolute;
  left: 50%;
  bottom: 5px;
  display: inline-flex;
  height: 18px;
  width: 18px;
  translate: -50% 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #d4d4d8;
  transition: all 500ms ease;
}

.vs-ahist__year:hover .vs-ahist__dot {
  background: #a5a0bf;
}

.vs-ahist__radio:nth-of-type(1):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(1) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(2):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(2) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(3):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(3) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(4):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(4) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(5):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(5) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(6):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(6) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(7):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(7) .vs-ahist__year-label,
.vs-ahist__radio:nth-of-type(8):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(8) .vs-ahist__year-label {
  color: #2d187e;
}

.vs-ahist__radio:nth-of-type(1):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(1) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(2):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(2) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(3):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(3) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(4):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(4) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(5):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(5) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(6):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(6) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(7):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(7) .vs-ahist__dot,
.vs-ahist__radio:nth-of-type(8):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(8) .vs-ahist__dot {
  bottom: -8px;
  height: 44px;
  width: 44px;
  background: #2d187e;
}

.vs-ahist__radio:nth-of-type(1):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(1) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(2):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(2) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(3):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(3) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(4):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(4) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(5):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(5) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(6):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(6) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(7):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(7) .vs-ahist__dot span,
.vs-ahist__radio:nth-of-type(8):checked ~ .vs-ahist__timeline .vs-ahist__year:nth-child(8) .vs-ahist__dot span {
  height: 18px;
  width: 18px;
  border-radius: 9999px;
  background: #ffffff;
}

.vs-ahist__article {
  display: none;
  margin-top: 2.5rem;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .vs-ahist__article {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.vs-ahist__radio:nth-of-type(1):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(1),
.vs-ahist__radio:nth-of-type(2):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(2),
.vs-ahist__radio:nth-of-type(3):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(3),
.vs-ahist__radio:nth-of-type(4):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(4),
.vs-ahist__radio:nth-of-type(5):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(5),
.vs-ahist__radio:nth-of-type(6):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(6),
.vs-ahist__radio:nth-of-type(7):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(7),
.vs-ahist__radio:nth-of-type(8):checked ~ .vs-ahist__articles .vs-ahist__article:nth-child(8) {
  display: grid;
  animation: vs-ahist-enter 500ms ease-out both;
}

@keyframes vs-ahist-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vs-ahist__figure {
  aspect-ratio: 1.2 / 0.78;
  overflow: hidden;
  border-radius: 22px;
  background: #eeedf2;
}

.vs-ahist__figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.vs-ahist__body {
  border-bottom: 1px solid #dedee2;
  padding-bottom: 1.5rem;
}

.vs-ahist__article-year {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #777780;
}

.vs-ahist__article-title {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2d187e;
}

@media (min-width: 640px) {
  .vs-ahist__article-title {
    font-size: 1.875rem;
  }
}

.vs-ahist__description {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #66656e;
}

@media (min-width: 640px) {
  .vs-ahist__description {
    font-size: 1rem;
  }
}

.vs-ahist__project {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #777780;
  text-decoration: none;
  transition: color 200ms ease;
}

.vs-ahist__project:hover {
  color: #2d187e;
}

.vs-ahist__project-icon {
  display: inline-flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #6d74d8;
  color: #ffffff;
}

.vs-ahist__project-icon svg {
  height: 0.75rem;
  width: 0.75rem;
}
