.history-timeline {
  padding: 6rem 2rem 7rem;
}

.history-timeline__heading {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 5rem;
}

.history-timeline__image-wrap {
  margin: 0 auto 6rem;
}

.history-timeline__image-wrap--contained {
  max-width: 46rem;
}

.history-timeline__image-wrap--full {
  max-width: 90rem;
}

.history-timeline__image {
  width: 100%;
  height: auto;
  display: block;
}

.history-timeline__caption {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.history-timeline__milestone {
  max-width: 60rem;
  margin: 0 auto 6rem;
  text-align: center;
}

.history-timeline__year {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin: 0 0 1.5rem;
}

.history-timeline__text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.7;
  font-size: 1.3rem;
}

.history-timeline__text p {
  margin: 0;
}

@media screen and (max-width: 749px) {
  .history-timeline {
    padding: 4rem 1.5rem 5rem;
  }

  .history-timeline__heading {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  .history-timeline__image-wrap {
    margin-bottom: 4rem;
  }

  .history-timeline__milestone {
    margin-bottom: 4rem;
  }

  .history-timeline__year {
    font-size: 1.15rem;
  }

  .history-timeline__text {
    font-size: 1.1rem;
  }
}

.history-timeline__scrubber {
  --timeline-inset: clamp(1.4rem, 3vw, 3.2rem);
  --timeline-thumb-width: 2.4rem;
  --timeline-ease: cubic-bezier(0.42, 0, 0, 1);
  max-width: 120rem;
  margin-inline: auto;
  padding: clamp(0.8rem, 1.6vw, 1.8rem);
  border: 1px solid rgba(var(--color-foreground), 0.14);
  border-radius: 1.2rem;
  color: rgb(var(--color-foreground));
}

.history-timeline__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 0.8rem;
  background: #24282e;
  color: #fff;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.history-timeline__stage:active {
  cursor: grabbing;
}

.history-timeline__stage .history-timeline__heading {
  position: absolute;
  z-index: 3;
  top: var(--timeline-inset);
  left: var(--timeline-inset);
  margin: 0;
  color: inherit;
}

.history-timeline__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  background: #24282e;
  overflow: hidden;
}

.history-timeline__slide.is-active,
.history-timeline__slide.is-previous {
  visibility: visible;
}

.history-timeline__slide.is-active {
  z-index: 1;
}

.history-timeline__slide::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 30%, transparent 56%, rgba(0, 0, 0, 0.69));
  pointer-events: none;
}

.history-timeline__slide .history-timeline__image-wrap {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
}

.history-timeline__slide .history-timeline__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.history-timeline__slide .history-timeline__image[src*='/STAAR_1f3ca2fc-ff84-4d99-b1e8-8f3c0ad3f8e3.jpg'] {
  position: relative;
  bottom: 12%;
  height: 112%;
}

.history-timeline__slide .history-timeline__image[src*='/about-spring-2025.jpg'] {
  position: relative;
  bottom: 50%;
  height: 150%;
}

.history-timeline__slide .history-timeline__image[src*='/about-now.jpg'] {
  position: relative;
  bottom: 24%;
  height: 124%;
}

.history-timeline__title,
.history-timeline__reels {
  position: absolute;
  bottom: var(--timeline-inset);
  margin: 0;
  color: inherit;
  font-size: clamp(2.6rem, 5vw, 6.2rem);
  line-height: 1;
}

.history-timeline__title {
  left: var(--timeline-inset);
  z-index: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.history-timeline__reels {
  right: var(--timeline-inset);
  z-index: 2;
  display: flex;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.history-timeline__reels[hidden] {
  display: none;
}

.history-timeline__reel {
  display: block;
  height: 1em;
  overflow: hidden;
}

.history-timeline__reel span {
  display: block;
  height: 1em;
  text-align: center;
}

.history-timeline__reel > span {
  height: auto;
  transform: translateY(calc(var(--digit, 0) * -1em));
}

.history-timeline__stage[data-direction] .history-timeline__reel > span {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.history-timeline__stage[data-direction='forward'] {
  --timeline-slide-start: -100%;
  --timeline-slide-end: 100%;
}

.history-timeline__stage[data-direction='backward'] {
  --timeline-slide-start: 100%;
  --timeline-slide-end: -100%;
}

.history-timeline__stage[data-direction] .is-active {
  animation: history-timeline-enter 600ms var(--timeline-ease) both;
}

.history-timeline__stage[data-direction] .is-previous {
  animation: history-timeline-exit 600ms var(--timeline-ease) both;
}

@keyframes history-timeline-enter {
  from { transform: translateX(var(--timeline-slide-start)); }
  to { transform: translateX(0); }
}

@keyframes history-timeline-exit {
  from { transform: translateX(0); }
  to { transform: translateX(var(--timeline-slide-end)); }
}

.history-timeline__ruler {
  position: relative;
  padding-top: 3.1rem;
  margin: 1.4rem 0.2rem 0;
}

.history-timeline__ruler::before {
  position: absolute;
  inset: 0.8rem calc(50% / var(--timeline-stops)) auto;
  height: 0.9rem;
  border-inline-end: 1px solid rgba(var(--color-foreground), 0.27);
  background: repeating-linear-gradient(
    to right,
    rgba(var(--color-foreground), 0.25) 0 1px,
    transparent 1px calc(100% / var(--timeline-ticks))
  );
  content: '';
  pointer-events: none;
}

.history-timeline__range {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (100% / var(--timeline-stops)) + var(--timeline-thumb-width));
  height: 3.1rem;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: inherit;
  cursor: ew-resize;
}

.history-timeline__range::-webkit-slider-runnable-track {
  background: transparent;
}

.history-timeline__range::-moz-range-track {
  background: transparent;
}

.history-timeline__range::-webkit-slider-thumb {
  appearance: none;
  width: var(--timeline-thumb-width);
  height: 2.7rem;
  border: 0;
  background: linear-gradient(currentColor, currentColor) center / 0.3rem 100% no-repeat;
}

.history-timeline__range::-moz-range-thumb {
  width: var(--timeline-thumb-width);
  height: 2.7rem;
  border: 0;
  background: linear-gradient(currentColor, currentColor) center / 0.3rem 100% no-repeat;
}

.history-timeline__labels {
  display: grid;
  grid-template-columns: repeat(var(--timeline-stops), minmax(0, 1fr));
}

.history-timeline__label {
  position: relative;
  min-height: 4.4rem;
  border: 0;
  padding: 0.3rem 0.2rem;
  background: transparent;
  color: rgba(var(--color-foreground), 0.78);
  font: inherit;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.25;
  letter-spacing: 0.025em;
  text-align: center;
  cursor: pointer;
}

.history-timeline__label::before {
  position: absolute;
  bottom: calc(100% + 0.8rem);
  left: 50%;
  width: 1px;
  height: 1.5rem;
  background: rgba(var(--color-foreground), 0.44);
  content: '';
  pointer-events: none;
}

.history-timeline__label[aria-current],
.history-timeline__label:hover {
  color: inherit;
  font-weight: 700;
}

.history-timeline__range:focus-visible,
.history-timeline__label:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.history-timeline__details {
  margin: 0 auto 1.4rem;
  max-width: 60rem;
}

.history-timeline__details .history-timeline__milestone {
  margin: 0;
}

.history-timeline__details .history-timeline__year {
  display: none;
}

@media screen and (max-width: 749px) {
  .history-timeline__stage {
    aspect-ratio: 4 / 5;
    max-height: 60svh;
  }

  .history-timeline__ruler {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-timeline__stage[data-direction] .is-active,
  .history-timeline__stage[data-direction] .is-previous {
    animation: none;
  }

  .history-timeline__stage[data-direction] .history-timeline__reel > span {
    transition: none;
  }
}
