/* About us — alternating content rows and the history timeline. */

.feature-stack {
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.feature-row--reverse .feature-row__media {
  order: 2;
}

.feature-row__media {
  position: relative;
}

.feature-row__media::before {
  content: '';
  position: absolute;
  inset: 12% -4% -6% 10%;
  z-index: -1;
  border-radius: var(--nw-radius-lg);
  background: var(--nw-rose-100);
}

.feature-row--reverse .feature-row__media::before {
  inset: 12% 10% -6% -4%;
}

.feature-row__media .media-rounded {
  max-height: 460px;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row--reverse .feature-row__media { order: 0; }
  .feature-row__media { max-width: 620px; }
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 26px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--nw-rose-300), var(--nw-red));
}

.timeline__item {
  position: relative;
  padding: 0 0.5rem;
  text-align: center;
}

.timeline__year {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 54px;
  margin-bottom: 1.25rem;
  padding: 0 1.2rem;
  border: 4px solid var(--nw-smoke);
  border-radius: 999px;
  background: var(--nw-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgb(155 34 44 / 25%);
}

.timeline__text {
  max-width: 320px;
  margin: 0 auto;
  color: var(--nw-ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 47px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--nw-rose-300), var(--nw-red));
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 0;
    text-align: left;
  }

  .timeline__year { margin: 0; }
  .timeline__text { margin: 0; }
}
