/* 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;
  }
}

.historical-events,
.historical-events *,
.historical-events *::before,
.historical-events *::after,
.historical-event-entry,
.historical-event-entry *,
.historical-event-entry *::before,
.historical-event-entry *::after {
  box-sizing: border-box;
}

.historical-events {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  margin-bottom: -40px;
  overflow: hidden;
  background: #fcfcfc;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.historical-events__frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 901px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--historical-events-background-color, #476554);
}

.historical-events__background-media,
.historical-events__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.historical-events__overlay {
  z-index: 1;
  background: rgba(18, 49, 34, 0.43);
  pointer-events: none;
}

.historical-events__inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 1440px;
  min-height: 901px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  padding: 57px 30px 97px;
}

.historical-events__copy {
  width: 100%;
  max-width: 615px;
  min-width: 0;
}

.historical-events__title {
  width: min(560px, 100%);
  margin: 0;
  color: #fcfcfc;
  font: inherit;
  font-size: 60px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.historical-events__description {
  width: min(443px, 100%);
  margin: 41px 0 0;
  color: #fcfcfc;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.historical-events__panel {
  grid-column: 2;
  align-self: start;
  width: 100%;
  max-width: 675px;
  min-width: 0;
  min-height: 747px;
  justify-self: end;
  padding: 29px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(155.46deg, rgba(252, 252, 252, 0.2) -50.09%, rgba(230, 236, 233, 0.2) 106.94%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.historical-events__entries,
.historical-events__entries > slot[name="children"] {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-direction: column !important;
}

.historical-events__entries > slot[name="children"]::slotted(*) {
  --historical-event-padding-top: 24px;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

/* Webflow puts every entry island inside ONE wrapper div, so
   ::slotted(:first-child) matched the wrapper and zeroed the padding for
   EVERY entry. Each entry checks its own host position instead; the second
   selector covers the plain React preview. */
:host(:first-child) .historical-event-entry,
.historical-events__entries > .historical-event-entry:first-child {
  --historical-event-padding-top: 0px;
}

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

:host(:first-child) .historical-event-entry {
  --historical-event-padding-top: 0px;
}

.historical-event-entry {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 106px minmax(0, 1fr);
  column-gap: 42px;
  padding: var(--historical-event-padding-top, 24px) 0 24px;
  border-bottom: 1px solid rgba(24, 20, 30, 0.2);
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  order: var(--historical-event-priority, 1);
}

.historical-events__entries > .historical-event-entry:first-child {
  --historical-event-padding-top: 0px;
}

.historical-event-entry__year,
.historical-event-entry__title,
.historical-event-entry__description {
  margin: 0;
  color: #fcfcfc;
  font-family: inherit;
  overflow-wrap: anywhere;
}

.historical-event-entry__year {
  font-size: 42px;
  font-weight: 400;
  line-height: 50px;
}

.historical-event-entry__content {
  min-width: 0;
  padding-top: 7px;
}

.historical-event-entry__title {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  padding: 4px 18px;
  border-radius: 999px;
  background: #e6ece9;
  color: #18141e;
  font-size: 13px;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.historical-event-entry__description {
  width: min(372px, 100%);
  margin-top: 11px;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0;
}

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

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

.historical-events-reveal .historical-events__title,
.historical-events-reveal .historical-events__description,
.historical-events-reveal .historical-events__panel {
  opacity: 0;
}

.historical-events-reveal.is-revealed .historical-events__title,
.historical-events-reveal.is-revealed .historical-events__description,
.historical-events-reveal.is-revealed .historical-events__panel {
  animation: historical-events-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1)
    both;
}

.historical-events-reveal.is-revealed .historical-events__description {
  animation-delay: 100ms;
}

.historical-events-reveal.is-revealed .historical-events__panel {
  animation-delay: 180ms;
}

@media (max-width: 1100px) {
  .historical-events__frame,
  .historical-events__inner {
    min-height: 0;
  }

  .historical-events__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .historical-events__title {
    font-size: 52px;
    line-height: 60px;
  }

  .historical-events__panel {
    grid-column: 1;
    width: 100%;
    max-width: none;
    min-height: 0;
    justify-self: stretch;
  }

  /* Stacked copy spans the section; the desktop-column caps come off */
  .historical-events__copy,
  .historical-events__title,
  .historical-events__description {
    width: 100%;
    max-width: none;
  }

  .historical-event-entry__description {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .historical-events__inner {
    row-gap: 40px;
    padding: 32px 20px 88px;
  }

  .historical-events__title {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1.12;
  }

  .historical-events__description {
    margin-top: 32px;
    font-size: 15px;
    line-height: 19px;
  }

  .historical-events__panel {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .historical-event-entry {
    --historical-event-padding-top: 20px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    padding-bottom: 20px;
  }

  .historical-event-entry__year {
    font-size: 36px;
    line-height: 42px;
  }

  .historical-event-entry__content {
    padding-top: 0;
  }

  .historical-event-entry__description {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .historical-events-reveal .historical-events__title,
  .historical-events-reveal .historical-events__description,
  .historical-events-reveal .historical-events__panel {
    opacity: 1;
    animation: none;
  }
}


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

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

.historical-event-entry--reveal {
  opacity: 0;
}

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

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

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

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

/* Direction variety: headings/copy arrive from the left */
@keyframes historical-events-reveal-from-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

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

.historical-events-reveal.is-revealed .historical-events__title {
  animation-name: historical-events-reveal-from-left;
}

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

