#pageContainerLegacy .bg-year,
#bgYear.bg-year {
  display: block;
  font-size: var(--text-big, clamp(8rem, 1.7625rem + 8.95vw, 12.5rem));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.10) 6.31%, rgba(255, 255, 255, 0.10) 89.81%); */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(102, 102, 102, 0.10) 53.5%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#pageContainerLegacy #connectorLine {
  height: 0;
}

#pageContainerLegacy #connectorDot {
  transform: translate(-50%, -50%);
}

#pageContainerLegacy #tickRef {
  left: 24px;
  top: 8px;
}

#pageContainerLegacy #ticksTrack {
  width: 1668px;
  height: 56px;
  transform: translateX(0);
}

#pageContainerLegacy #labelsLayer {
  top: 38px;
  width: 1668px;
}

/* ruler tick */
.tick {
  width: 1px;
  background: #d4d4d4;
}
.tick.major { height: 14px; }
.tick.minor { height: 8px; }

.year-label {
  transition: color .7s ease, font-weight .7s ease, font-size .7s ease, transform .7s ease;
  font-size: var(--text-small);
}
.year-label.active {
  color: #111111;
  font-weight: 800;
  transform: translateY(-1px) scale(1.08);
  font-size: var(--text-p);
}
.year-label.inactive {
  color: #b3b3b3;
  font-weight: 500;
}

.marker-line {
  transition: height .7s cubic-bezier(.22,.61,.36,1);
  width: 2px;
}

.ticks-track {
  transition: transform .7s cubic-bezier(.65,0,.35,1);
}

.fade-slide-enter {
  animation: fadeSlideIn .7s cubic-bezier(.22,.61,.36,1) both;
}
.slidesData-contant h3 {font-size: var(--text-h4);margin-bottom: 8px;}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bgyear-enter {
  animation: bgYearIn .7s cubic-bezier(.22,.61,.36,1) both;
}
/* Ghost look comes from text fill — do not end at opacity .08 */
@keyframes bgYearIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.img-fade {
  transition: opacity .6s ease, transform 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

/* Real slide track — current slide + next slide peeking (no separate peek clone) */
#pageContainerLegacy {
  overflow-x: clip;
}

#pageContainerLegacy .legacy-top {
  --legacy-gutter: 1.5rem;
  --legacy-peek: 0px;
  --legacy-slide-gap: 0px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: var(--legacy-gutter);
  padding-right: var(--legacy-gutter);
}

#pageContainerLegacy .legacy-copy {
  width: 100%;
  max-width: 28rem;
  position: relative;
  z-index: 2;
}

/* Mobile: keep line off the edge; space arrows clear of the image */
#pageContainerLegacy .slidesData-contant {
  padding-left: 1.75rem;
}

#pageContainerLegacy .legacy-nav {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

#pageContainerLegacy .legacy-media {
  width: 100%;
  min-width: 0;
  will-change: transform;
  margin-top: 0.5rem;
}

#pageContainerLegacy .legacy-media-viewport {
  width: 100%;
  aspect-ratio: 1097 / 640;
  overflow: hidden;
}

#pageContainerLegacy .legacy-media-viewport.legacy-media-draggable {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#pageContainerLegacy .legacy-media-viewport.legacy-media-draggable.is-dragging {
  cursor: grabbing;
}

#pageContainerLegacy .legacy-media-viewport.legacy-media-draggable .legacy-media-slide img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

#pageContainerLegacy .legacy-media-track {
  display: flex;
  align-items: stretch;
  gap: var(--legacy-slide-gap);
  height: 100%;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#pageContainerLegacy .legacy-media-slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s ease;
}

#pageContainerLegacy .legacy-media-slide.is-active {
  z-index: 2;
  opacity: 1;
}

#pageContainerLegacy .legacy-media-slide.is-peek {
  z-index: 1;
  opacity: 1;
}

#pageContainerLegacy .legacy-media-slide.is-away {
  opacity: 1;
}

#pageContainerLegacy .legacy-media-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* no scale — parallax is frame + scroll only */
}

@media (prefers-reduced-motion: reduce) {
  #pageContainerLegacy .legacy-media-track,
  #pageContainerLegacy .legacy-media-slide,
  #pageContainerLegacy .legacy-media {
    transition: none !important;
    transform: none !important;
  }
}

/* ── Tablet (768–1023): stacked legacy — full media, no cramped side-by-side ── */
@media (min-width: 768px) and (max-width: 1023px) {
  #pageContainerLegacy .legacy-top {
    --legacy-gutter: 1.5rem;
    --legacy-peek: 0px;
    --legacy-slide-gap: 0px;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    padding-left: var(--legacy-gutter);
    padding-right: var(--legacy-gutter);
  }

  #pageContainerLegacy .legacy-copy {
    width: 100%;
    max-width: 40rem;
    flex: none;
  }

  #pageContainerLegacy .slidesData-contant {
    padding-left: 1.75rem;
  }

  #pageContainerLegacy .legacy-nav {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  #pageContainerLegacy .legacy-media {
    width: 100%;
    flex: none;
    margin-top: 0;
    padding-left: 0;
  }

  #pageContainerLegacy .legacy-media-slide {
    width: 100%;
  }

  #pageContainerLegacy .bg-year,
  #bgYear.bg-year {
    font-size: clamp(5.5rem, 12vw, 7.5rem);
  }
}

/* Tablet with .container (90% / 1680) — match both sides while stacked */
@media (min-width: 993px) and (max-width: 1023px) {
  #pageContainerLegacy .legacy-top {
    padding-left: calc((100vw - min(90vw, 1680px)) / 2);
    padding-right: calc((100vw - min(90vw, 1680px)) / 2);
  }
}

/* ── Desktop (1024+): copy + media row, peek, bleed right ── */
@media (min-width: 1024px) {
  #pageContainerLegacy .legacy-top {
    --legacy-gutter: 1.25rem;
    --legacy-peek: 55px;
    --legacy-slide-gap: 16px;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding-right: 0;
  }

  #pageContainerLegacy .slidesData-contant {
    padding-left: 1.5rem;
  }

  #pageContainerLegacy .legacy-nav {
    margin-top: 2rem;
    margin-bottom: 0;
  }

  #pageContainerLegacy .legacy-copy {
    flex: 0 0 clamp(16rem, 26vw, 30rem);
    max-width: clamp(16rem, 26vw, 30rem);
  }

  #pageContainerLegacy .legacy-media {
    flex: 1 1 auto;
    margin-top: 0;
    padding-left: 0;
  }

  #pageContainerLegacy .legacy-media-slide {
    width: calc(100% - var(--legacy-peek) - var(--legacy-slide-gap));
  }

  #pageContainerLegacy.is-legacy-last .legacy-media-slide:last-child {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  /* Match .container left; media still bleeds right */
  #pageContainerLegacy .legacy-top {
    padding-left: calc((100vw - min(90vw, 1680px)) / 2);
  }
}

.nav-btn {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nav-btn:hover:not(:disabled) {
  background-color: #e11d2e;
  border-color: #e11d2e;
  color: #fff;
}
.nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.ruler-track { position: relative; }
.tick-btn { cursor: pointer; }
@media (max-width: 767px) {
#pageContainerLegacy .legacy-media {margin-left: 8px;}
.slidesData-contant h3 {margin-bottom: 5px;}
}

@media (min-width: 1200px) and (max-width: 1366px) {

  #pageContainerLegacy .legacy-copy {
    flex: 0 0 clamp(16rem, 30vw, 30rem);
    max-width: clamp(16rem, 30vw, 30rem);
  }
#aboutus-values .aboutus-values-title {max-width: min(26rem, 70vw);left: clamp(1rem, 7vw, 20rem); top: clamp(1.25rem, 8vh, 8.5rem)}

}