.about-page .company-history-section {
  min-height: 580px;
  padding: var(--section-space) 0;
  overflow: hidden;
  background-color: var(--brand-blue-secondary);
  background-image:
    linear-gradient(rgba(var(--brand-blue-secondary-rgb), 0.58), rgba(var(--brand-blue-secondary-rgb), 0.64)),
    url("history-industrial-blue-bg.png");
  background-position: center;
  background-size: cover;
}

.about-page .company-history-heading {
  position: relative;
  z-index: 2;
  width: min(100% - 80px, 1440px);
  max-width: 1440px;
  padding-left: var(--about-content-inset);
  text-align: left;
}

.about-page .company-history-heading h2 {
  color: var(--brand-white);
  font-size: var(--section-title-size);
  font-weight: var(--section-subtitle-weight);
  line-height: var(--section-subtitle-line-height);
}

.about-page .company-history-heading h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 14px;
  background: var(--brand-copper);
  content: "";
}

.about-page .company-history-timeline {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  width: min(100% - 80px, 1440px);
  max-width: 1440px;
  height: 342px;
  margin: var(--title-content-gap) auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.about-page .company-history-timeline::-webkit-scrollbar {
  display: none;
}

.about-page .company-history-timeline::before {
  position: absolute;
  top: 168px;
  right: 0;
  left: 0;
  width: 200%;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  content: "";
}

.about-page .company-history-timeline > div,
.about-page .company-history-timeline > div:nth-child(even),
.about-page .company-history-timeline > div:nth-child(odd) {
  position: relative;
  display: block;
  flex: 0 0 20%;
  width: 20%;
  min-height: 342px;
  margin: 0;
  padding: 0;
  color: var(--brand-white);
  text-align: center;
  scroll-snap-align: start;
}

.about-page .company-history-timeline > div::before,
.about-page .company-history-timeline > div:nth-child(even)::before,
.about-page .company-history-timeline > div:nth-child(odd)::before {
  top: 158px;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--surface-soft);
  border: 3px solid var(--brand-copper);
  box-shadow: 0 0 0 7px rgba(var(--brand-gray-rgb), 0.12);
  transform: translateX(-50%);
}

.about-page .company-history-timeline > div::after,
.about-page .company-history-timeline > div:nth-child(even)::after {
  top: 179px;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.7);
  transform: none;
}

.about-page .company-history-timeline > div:nth-child(odd)::after {
  top: 112px;
  height: 46px;
}

.about-page .company-history-timeline time {
  position: absolute;
  top: 106px;
  right: 16px;
  left: 16px;
  margin: 0;
  color: var(--brand-copper);
  font-size: 24px;
  font-weight: 700;
}

.about-page .company-history-timeline > div:nth-child(odd) time {
  top: 204px;
}

.about-page .company-history-timeline p {
  position: absolute;
  top: 232px;
  right: 18px;
  left: 18px;
  max-width: 230px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.65;
}

.about-page .company-history-timeline > div:nth-child(odd) p {
  top: 18px;
}

.about-page .company-history-controls {
  position: absolute;
  top: 310px;
  right: max(40px, calc((100% - 1440px) / 2));
  left: auto;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  width: auto;
  margin: 0;
}

.about-page .company-history-controls [data-history-prev] {
  display: none;
}

.about-page .company-history-controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--brand-white);
  font-size: 24px;
  line-height: 1;
  background: rgba(var(--brand-blue-secondary-rgb), 0.28);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.about-page .company-history-controls button:hover,
.about-page .company-history-controls button:focus-visible {
  background: rgba(var(--brand-copper-rgb), 0.9);
  border-color: var(--brand-copper);
}

@media (max-width: 900px) {
  .about-page .company-history-section {
    min-height: 0;
    padding: var(--section-space-mobile) 0;
    background-position: 58% center;
  }

  .about-page .company-history-timeline {
    display: block;
    width: min(100% - 56px, 620px);
    height: auto;
    margin: var(--title-content-gap) auto 0;
    overflow: visible;
  }

  .about-page .company-history-timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    height: auto;
  }

  .about-page .company-history-timeline > div,
  .about-page .company-history-timeline > div:nth-child(even),
  .about-page .company-history-timeline > div:nth-child(odd) {
    width: 100%;
    min-height: 0;
    padding: 0 0 32px 46px;
    text-align: left;
  }

  .about-page .company-history-timeline time,
  .about-page .company-history-timeline > div:nth-child(odd) time,
  .about-page .company-history-timeline p,
  .about-page .company-history-timeline > div:nth-child(odd) p {
    position: static;
    margin: 0;
  }

  .about-page .company-history-timeline > div::before,
  .about-page .company-history-timeline > div:nth-child(even)::before,
  .about-page .company-history-timeline > div:nth-child(odd)::before {
    top: 5px;
    left: 8px;
  }

  .about-page .company-history-timeline > div::after,
  .about-page .company-history-timeline > div:nth-child(even)::after,
  .about-page .company-history-timeline > div:nth-child(odd)::after {
    top: 15px;
    left: 18px;
    width: 20px;
    height: 1px;
  }

  .about-page .company-history-timeline p {
    max-width: none;
    margin: 0;
  }

  .about-page .company-history-controls {
    display: none;
  }
}

@media (max-width: 760px) {
  .about-page .company-history-heading {
    width: min(100% - 28px, 1440px);
  }

  .about-page .company-history-heading h2 {
    font-size: var(--section-title-size-mobile);
  }
}
