/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.milestone-timeline,
.milestone-timeline *,
.milestone-timeline *::before,
.milestone-timeline *::after,
.milestone-entry,
.milestone-entry *,
.milestone-entry *::before,
.milestone-entry *::after {
  box-sizing: border-box;
}

.milestone-timeline {
  --milestone-marker-width: 14px;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fcfcfc;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.milestone-timeline__inner {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  margin-inline: auto;
  padding: 30px;
}

.milestone-timeline__frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--milestone-timeline-background-color, #476554);
}

.milestone-timeline__background-media,
.milestone-timeline__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.milestone-timeline__background-media {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.milestone-timeline__overlay {
  z-index: 1;
  background: rgba(37, 60, 51, 0.3);
  pointer-events: none;
}

/* Vertical padding lives on the entries track, not here, so the spine's
   background paints through it and reaches the top and bottom frame edges. */
.milestone-timeline__body {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 0 32px;
}

/* 14 marker + 42 + 196 year + 70 + 750 card = the 1072 design track, centred. */
.milestone-timeline__entries,
.milestone-timeline__entries > slot[name="children"] {
  display: flex !important;
  width: 100%;
  max-width: 1072px;
  min-width: 0;
  flex-direction: column !important;
  gap: 28px;
  margin-inline: auto;
}

/* The spine: a 2px line under the marker column, continuous across row gaps
   and running the full frame height. */
.milestone-timeline__entries {
  padding-block: 32px;
  background-image: linear-gradient(
    to right,
    transparent calc(var(--milestone-marker-width, 14px) / 2 - 1px),
    color-mix(in srgb, var(--milestone-timeline-accent-color, #3dbf7b) 45%, transparent)
      calc(var(--milestone-marker-width, 14px) / 2 - 1px)
      calc(var(--milestone-marker-width, 14px) / 2 + 1px),
    transparent calc(var(--milestone-marker-width, 14px) / 2 + 1px)
  );
  background-repeat: no-repeat;
}

/* Webflow assigns ONE wrapper div to the slot with every entry island inside
   it. display: contents collapses the wrapper so the slot's flex column and
   28px gap reach the entry rows directly (verified against the published
   runtime). */
.milestone-timeline__entries > slot[name="children"]::slotted(*) {
  display: contents !important;
}

:host {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto !important;
  order: var(--milestone-entry-priority, 1);
}

.milestone-entry {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  order: var(--milestone-entry-priority, 1);
}

.milestone-entry__marker {
  display: block;
  width: var(--milestone-marker-width, 14px);
  height: 89px;
  flex: 0 0 var(--milestone-marker-width, 14px);
  border-radius: calc(var(--milestone-marker-width, 14px) / 2);
  background: var(--milestone-timeline-accent-color, #3dbf7b);
}

.milestone-entry__year {
  width: 196px;
  flex: 0 0 auto;
  margin: 0 0 0 42px;
  color: rgba(252, 252, 252, 0.8);
  font-family: inherit;
  font-size: 80px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.milestone-entry__card {
  display: flex;
  min-width: 0;
  min-height: 219px;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 19px;
  margin-left: 70px;
  padding: 40px 65px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(150.39deg, rgba(169, 201, 165, 0.2) -34.53%, rgba(24, 20, 30, 0.2) 92.32%);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.milestone-entry__title,
.milestone-entry__description {
  margin: 0;
  color: #fcfcfc;
  font-family: inherit;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.milestone-entry__title {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.milestone-entry__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  white-space: pre-line;
}

@keyframes milestone-timeline-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.milestone-timeline-reveal .milestone-timeline__entries {
  opacity: 0;
}

.milestone-timeline-reveal.is-revealed .milestone-timeline__entries {
  animation: milestone-timeline-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (max-width: 991px) {
  .milestone-entry__year {
    width: 132px;
    margin-left: 28px;
    font-size: 54px;
  }

  .milestone-entry__card {
    margin-left: 40px;
    padding: 32px 40px;
  }
}

/* No mobile design was supplied: keep the spine and marker, stack the year
   above its card so the year stays large enough to scan. */
@media (max-width: 767px) {
  .milestone-timeline {
    --milestone-marker-width: 6px;
  }

  .milestone-timeline__inner {
    padding: 20px;
  }

  .milestone-timeline__frame {
    border-radius: 16px;
  }

  .milestone-timeline__body {
    padding: 0 20px;
  }

  .milestone-timeline__entries {
    padding-block: 24px;
  }

  .milestone-timeline__entries,
  .milestone-timeline__entries > slot[name="children"] {
    gap: 24px;
  }

  .milestone-entry {
    display: grid;
    grid-template-columns: var(--milestone-marker-width, 14px) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 8px;
  }

  .milestone-entry__marker {
    height: auto;
    align-self: stretch;
    grid-row: 1 / span 2;
  }

  .milestone-entry__year {
    width: auto;
    margin: 0;
    font-size: 44px;
  }

  .milestone-entry__card {
    min-height: 0;
    gap: 12px;
    margin-left: 0;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .milestone-entry__title {
    font-size: 22px;
  }

  .milestone-entry__description {
    font-size: 15px;
    line-height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .milestone-timeline-reveal .milestone-timeline__entries {
    opacity: 1;
    animation: none;
  }
}


@keyframes milestone-entry-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.milestone-entry--reveal {
  opacity: 0;
}

.milestone-entry--reveal.is-revealed {
  animation: milestone-entry-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .milestone-entry--reveal {
    opacity: 1;
    animation: none;
  }
}

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-milestone-entry */
:host(:nth-child(2)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-milestone-entry: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .milestone-entry--reveal.is-revealed,
.milestone-entry--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

