/* One continuous chronology, alternating around a restrained centre axis. */
.company-history {
  --history-progress: 0;
  --history-entry-height: clamp(182px, 11.4vw, 198px);
  --history-entry-height-media: clamp(270px, 16.2vw, 308px);
  --history-content-top: clamp(27px, 2.7vw, 42px);
  --history-year-size: clamp(48px, 4.8vw, 78px);
  --history-year-line: clamp(42.24px, 4.224vw, 68.64px);
  --history-year-half-line: clamp(21.12px, 2.112vw, 34.32px);
  --history-year-axis: calc(var(--history-content-top) + var(--history-year-half-line));
  --history-copy-inset: clamp(42px, 5vw, 84px);
  --history-reading-width: clamp(430px, 25.5vw, 500px);
  --history-media-width: min(calc(100% - var(--history-copy-inset)), var(--history-reading-width));
  --history-media-height: clamp(236px, 14.625vw, 281px);
  padding: clamp(72px, 6vw, 112px) var(--site-edge) clamp(88px, 7vw, 136px);
  overflow: hidden;
  color: #f4f7fb;
  background: #0e2b4d;
}
.company-history__head {
  padding-bottom: clamp(30px, 3vw, 48px);
  border-bottom: 1px solid rgba(190, 208, 225, .28);
}
.company-history .section-heading-group > span { color: #ff6973; }
.company-history h2 { margin: 12px 0 0; color: #fff; }

.history-stream {
  position: relative;
  max-width: 1420px;
  margin: clamp(46px, 4.8vw, 78px) auto 0;
  padding: 0;
  list-style: none;
}
.history-stream::before,
.history-stream::after {
  position: absolute;
  top: var(--history-year-axis);
  bottom: clamp(22px, 2vw, 34px);
  left: 50%;
  width: 1px;
  content: "";
  pointer-events: none;
}
.history-stream::before { background: rgba(164, 188, 210, .34); }
.history-stream::after {
  background: #f04c60;
  box-shadow: 0 0 14px rgba(240, 76, 96, .22);
  transform: scaleY(var(--history-progress));
  transform-origin: top;
  transition: transform 680ms cubic-bezier(.16, 1, .3, 1);
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  /* Keep the chronology compact without letting the two same-side copy blocks
     read as one continuous paragraph. */
  height: var(--history-entry-height);
  min-height: 0;
  margin: 0;
}
.history-entry--has-media,
.history-entry--leads-to-media { height: var(--history-entry-height-media); }
.history-entry__node {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: grid;
  align-self: start;
  width: 86px;
  height: 1px;
  min-height: 0;
  margin-top: var(--history-year-axis);
  place-items: center;
}
.history-entry__node i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 3px solid #0e2b4d;
  border-radius: 50%;
  background: #7890a7;
  box-shadow: 0 0 0 1px #7890a7;
  transition: background 240ms cubic-bezier(.16, 1, .3, 1), box-shadow 240ms cubic-bezier(.16, 1, .3, 1), transform 240ms cubic-bezier(.16, 1, .3, 1);
}
.history-entry__content {
  position: relative;
  align-self: start;
  padding-top: var(--history-content-top);
}
.history-entry__content::before {
  position: absolute;
  top: var(--history-year-axis);
  width: clamp(72px, 6vw, 92px);
  height: 1px;
  content: "";
  background: rgba(173, 197, 219, .34);
  transition: background 320ms cubic-bezier(.16, 1, .3, 1), opacity 360ms ease, transform 720ms cubic-bezier(.16, 1, .3, 1);
}
.history-entry:nth-child(odd) .history-entry__content {
  grid-column: 1;
  grid-row: 1;
  padding-right: var(--history-copy-inset);
  text-align: right;
}
.history-entry:nth-child(odd) .history-entry__content::before {
  right: -35px;
  transform-origin: right center;
}
.history-entry:nth-child(even) .history-entry__content {
  grid-column: 3;
  grid-row: 1;
  padding-left: var(--history-copy-inset);
  text-align: left;
}
.history-entry:nth-child(even) .history-entry__content::before {
  left: -35px;
  transform-origin: left center;
}
.history-entry__media {
  grid-row: 1;
  align-self: start;
  width: var(--history-media-width);
  height: var(--history-media-height);
  margin: clamp(-14px, -.7vw, -8px) 0 0;
  position: relative;
  overflow: hidden;
  background: #173756;
}
.history-entry:nth-child(odd) .history-entry__media {
  grid-column: 3;
  justify-self: start;
  margin-left: var(--history-copy-inset);
}
.history-entry:nth-child(even) .history-entry__media {
  grid-column: 1;
  justify-self: end;
  margin-right: var(--history-copy-inset);
}
.history-entry__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(210, 225, 238, .18);
}
.history-entry__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.04) brightness(.86);
  transition: filter 480ms ease, transform 760ms cubic-bezier(.16, 1, .3, 1);
}
.history-entry--2007 .history-entry__media img { object-position: 50% 66%; }
.history-entry--2020 .history-entry__media img { object-position: 50% 68%; }
.history-entry--2025 .history-entry__media img { object-position: center; }
.history-entry__media:hover img {
  filter: saturate(.92) contrast(1.03) brightness(.94);
  transform: scale(1.018);
}
.history-entry__year {
  display: block;
  margin: 0 0 clamp(18px, 1.7vw, 28px);
  color: #e8eef5;
  font: 560 var(--history-year-size)/var(--history-year-line) var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
}
.company-history .history-entry h3 {
  margin: 0 0 15px;
  color: #fff;
  font: 650 clamp(26px, 2.2vw, 37px)/1.1 var(--display);
  letter-spacing: -.04em;
}
.history-entry p {
  width: min(100%, var(--history-reading-width));
  max-width: none;
  margin: 0;
  color: #c6d4e2;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.84;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.history-entry:nth-child(odd) p { margin-left: auto; }

.company-history.is-enhanced .history-entry {
  opacity: 0;
  /* Opacity uses a deliberately even curve: the former expo-out curve became
     almost fully visible in its first quarter and read as a hard cut. */
  transition: opacity 980ms cubic-bezier(.37, 0, .63, 1);
  transition-delay: var(--history-reveal-delay, 0ms);
}
.company-history.is-enhanced .history-entry__node,
.company-history.is-enhanced .history-entry__content,
.company-history.is-enhanced .history-entry__media {
  transition: transform 820ms cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--history-reveal-delay, 0ms);
}
.company-history.is-enhanced .history-entry__node { transform: translate3d(0, 14px, 0); }
.company-history.is-enhanced .history-entry:nth-child(odd) .history-entry__content { transform: translate3d(-22px, 14px, 0); }
.company-history.is-enhanced .history-entry:nth-child(even) .history-entry__content { transform: translate3d(22px, 14px, 0); }
.company-history.is-enhanced .history-entry:nth-child(odd) .history-entry__media { transform: translate3d(22px, 14px, 0); }
.company-history.is-enhanced .history-entry:nth-child(even) .history-entry__media { transform: translate3d(-22px, 14px, 0); }
.company-history.is-enhanced .history-entry__content::before {
  opacity: 0;
  transform: scaleX(0);
  transition-delay: calc(var(--history-reveal-delay, 0ms) + 160ms);
}
.company-history.is-enhanced .history-entry.is-visible { opacity: 1; }
.company-history.is-enhanced .history-entry.is-visible > * { transform: none; }
.company-history.is-enhanced .history-entry.is-visible .history-entry__content,
.company-history.is-enhanced .history-entry.is-visible .history-entry__media { transform: none; }
.history-entry.is-visible .history-entry__node i {
  background: #f04c60;
  box-shadow: 0 0 0 1px #f04c60, 0 0 0 7px rgba(240, 76, 96, .12);
  transform: scale(1.05);
}
.history-entry.is-visible .history-entry__content::before {
  background: rgba(240, 76, 96, .76);
  opacity: 1;
  transform: scaleX(1);
}
.history-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .company-history { padding-block: 62px 82px; }
  .history-stream { margin-top: 38px; }
  .history-stream::before,
  .history-stream::after { left: 17px; top: 42px; bottom: 46px; }
  .history-entry {
    grid-template-columns: 35px minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }
  .history-entry__node {
    grid-column: 1;
    grid-row: 1;
    width: 35px;
    height: 88px;
    margin-top: 0;
  }
  .history-entry:nth-child(odd) .history-entry__content,
  .history-entry:nth-child(even) .history-entry__content {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 0 52px 24px;
    text-align: left;
  }
  .history-entry__content::before {
    position: static;
    display: block;
    width: 38px;
    height: 1px;
    margin-bottom: 24px;
    content: "";
    background: rgba(173, 197, 219, .32);
  }
  .history-entry.is-visible .history-entry__content::before { background: #f04c60; }
  .history-entry__year {
    margin-bottom: 17px;
    font-size: clamp(42px, 12vw, 60px);
    line-height: .92;
  }
  .company-history .history-entry h3 { margin-bottom: 13px; font-size: 28px; }
  .history-entry p,
  .history-entry:nth-child(odd) p { max-width: 660px; margin: 0; font-size: 15px; line-height: 1.78; }
  .history-entry--has-media:nth-child(odd) .history-entry__content,
  .history-entry--has-media:nth-child(even) .history-entry__content { padding-bottom: 22px; }
  .history-entry:nth-child(odd) .history-entry__media,
  .history-entry:nth-child(even) .history-entry__media {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    width: auto;
    height: clamp(178px, 50vw, 260px);
    margin: 0 0 52px 24px;
  }
  .company-history.is-enhanced .history-entry:nth-child(odd) .history-entry__content,
  .company-history.is-enhanced .history-entry:nth-child(even) .history-entry__content,
  .company-history.is-enhanced .history-entry:nth-child(odd) .history-entry__media,
  .company-history.is-enhanced .history-entry:nth-child(even) .history-entry__media {
    transform: translate3d(0, 16px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-stream::after,
  .history-entry,
  .history-entry__node,
  .history-entry__content,
  .history-entry__media,
  .history-entry__content::before,
  .history-entry__node i { transition: none !important; }
  .company-history.is-enhanced .history-entry { opacity: 1; }
  .company-history.is-enhanced .history-entry > * { transform: none; }
}
