/* History timeline #historia */
.ax-timeline {
  background: var(--ax-ink);
  color: var(--ax-paper);
  padding: var(--ax-sec-pad-s) 0 var(--ax-sec-pad-m);
  overflow: hidden;
}

.ax-timeline__head-inner {
  max-width: var(--ax-maxw);
  margin: 0 auto clamp(30px, 4vw, 56px);
  padding: 0 var(--ax-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.ax-timeline__title {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 80px);
  line-height: 0.94;
  letter-spacing: -0.032em;
}

.ax-timeline__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ax-timeline__range {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.45);
  font-variant-numeric: tabular-nums;
}

.ax-timeline__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(244, 241, 235, 0.34);
  color: var(--ax-paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 320ms ease, border-color 320ms ease, color 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-timeline__btn:hover {
  background: var(--ax-paper);
  border-color: var(--ax-paper);
  color: var(--ax-ink);
}
}


.ax-timeline__rail {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--ax-gutter);
  padding: 0 var(--ax-gutter) 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ax-timeline__rail::-webkit-scrollbar {
  display: none;
}

.ax-timeline__mile {
  flex: 0 0 clamp(250px, 24vw, 340px);
  scroll-snap-align: start;
  overflow: hidden;
  background: rgba(244, 241, 235, 0.09);
  border: 1px solid rgba(244, 241, 235, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.ax-timeline__mile--accent {
  background: rgba(134, 160, 198, 0.16);
  border-color: rgba(134, 160, 198, 0.5);
}

.ax-timeline__photo {
  position: relative;
  margin: calc(-1 * clamp(18px, 2vw, 26px)) calc(-1 * clamp(18px, 2vw, 26px)) clamp(4px, 1vw, 10px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ax-ink-raised);
}

.ax-timeline__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1), filter 800ms ease;
}

.ax-timeline__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 24, 51, 0.34), rgba(20, 24, 51, 0) 46%, rgba(20, 24, 51, 0.5));
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
.ax-timeline__mile:hover .ax-timeline__photo img {
  transform: scale(1.05);
  filter: saturate(0.92) contrast(1.02);
}
}


.ax-timeline__year {
  font-weight: 300;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.86;
  letter-spacing: -0.042em;
  color: var(--ax-steel);
  font-variant-numeric: tabular-nums;
}

.ax-timeline__mile-title {
  margin: auto 0 0;
  font-weight: 500;
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.024em;
}

.ax-timeline__mile-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 241, 235, 0.66);
  text-wrap: pretty;
}

.ax-timeline__progress-wrap {
  max-width: var(--ax-maxw);
  margin: clamp(14px, 2vw, 22px) auto 0;
  padding: 0 var(--ax-gutter);
}

.ax-timeline__progress-track {
  height: 1px;
  background: rgba(244, 241, 235, 0.18);
  position: relative;
}

.ax-timeline__progress-bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--ax-steel);
  display: block;
  transition: width 260ms linear;
}

@media (max-width: 900px) {
  [data-tl-scroll] {
    display: none !important;
  }

  /* W23-D4 I — 86vw tiles + mandatory snap (desktop clamp unchanged) */
  .ax-timeline__rail {
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .ax-timeline__mile {
    flex: 0 0 86vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}
