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

.our-story,
.our-story *,
.our-story *::before,
.our-story *::after,
.our-story-block,
.our-story-block *,
.our-story-block *::before,
.our-story-block *::after {
  box-sizing: border-box;
}

.our-story {
  width: 100%;
  overflow: hidden;
  background: #fcfcfc;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.our-story__inner {
  display: grid;
  grid-template-columns: minmax(0, 499px) minmax(40px, 1fr) minmax(0, 499px);
  width: 100%;
  max-width: 1440px;
  min-height: 802px;
  margin-inline: auto;
  padding: 56px 30px 52px;
}

.our-story__intro {
  grid-column: 1;
  min-width: 0;
}

.our-story__badge {
  display: inline-flex;
  min-width: 124px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e6ece9;
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.our-story__title {
  width: 499px;
  max-width: 100%;
  min-height: 210px;
  margin: 38px 0 0;
  color: #18141e;
  font: inherit;
  font-size: 60px;
  font-style: normal;
  line-height: 70px;
  letter-spacing: 0;
}

.our-story__introduction {
  width: 492px;
  max-width: 100%;
  margin: 42px 0 0;
  color: #18141e;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  white-space: pre-line;
}

/* Figma variant: the introduction sits at the top of the right column,
   first line aligned with the title */
.our-story__introduction--right {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin-top: 75px;
}

/* In the same variant the blocks panel turns into a full-width strip below
   the header — the surface comes off so slotted content (e.g. a Statistics
   row) paints its own */
.our-story--intro-right .our-story__panel {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  align-self: end;
  margin-top: 90px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: none;
}

.our-story__panel {
  grid-column: 3;
  align-self: center;
  width: 499px;
  max-width: 100%;
  margin-top: 75px;
  padding: 25px 26px 28px 25px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5f8f6 0%, #e9efec 100%);
}

.our-story__panel > slot {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
}

.our-story__panel > slot::slotted(*) {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-direction: column !important;
}

:host {
  display: var(--our-story-block-display, grid);
  min-width: 0;
}

.our-story-block {
  --our-story-block-bottom-space: 34px;
  display: var(--our-story-block-display, grid);
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 20px 0 var(--our-story-block-bottom-space);
  border-top: 1px solid rgba(24, 20, 30, 0.18);
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

:host(:first-child) .our-story-block,
.our-story__panel > .our-story-block:first-child {
  padding-top: 14px;
  border-top: 0;
}

:host(:not(:first-child):not(:last-child)) .our-story-block,
.our-story__panel > .our-story-block:not(:first-child):not(:last-child) {
  --our-story-block-bottom-space: 17px;
}

:host(:last-child) .our-story-block,
.our-story__panel > .our-story-block:last-child {
  padding-bottom: 14px;
}

.our-story-block__title {
  margin: 0;
  color: #18141e;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
}

.our-story-block__description {
  margin: 0;
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0;
}

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

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

.our-story-reveal .our-story__badge,
.our-story-reveal .our-story__title,
.our-story-reveal .our-story__introduction,
.our-story-reveal .our-story__panel {
  opacity: 0;
}

.our-story-reveal.is-revealed .our-story__badge,
.our-story-reveal.is-revealed .our-story__title,
.our-story-reveal.is-revealed .our-story__introduction,
.our-story-reveal.is-revealed .our-story__panel {
  animation: our-story-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.our-story-reveal.is-revealed .our-story__title {
  animation-delay: 100ms;
}

.our-story-reveal.is-revealed .our-story__introduction {
  animation-delay: 220ms;
}

.our-story-reveal.is-revealed .our-story__panel {
  animation-delay: 300ms;
}

@media (max-width: 1100px) {
  .our-story__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .our-story__panel {
    grid-column: 2;
    width: 100%;
    margin-top: 70px;
  }

  .our-story__introduction--right {
    grid-column: 2;
    margin-top: 70px;
  }

  .our-story--intro-right .our-story__panel {
    grid-column: 1 / -1;
    margin-top: 56px;
    padding: 0;
  }

  .our-story__title {
    min-height: 0;
    font-size: 48px;
    line-height: 56px;
  }
}

@media (max-width: 767px) {
  .our-story__inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 36px 20px 48px;
  }

  .our-story__intro,
  .our-story__panel {
    grid-column: 1;
  }

  .our-story__badge {
    min-width: 0;
  }

  .our-story__title {
    margin-top: 28px;
    font-size: 38px;
    line-height: 44px;
  }

  .our-story__introduction {
    width: 100%;
    margin-top: 30px;
  }

  .our-story__introduction--right {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }

  .our-story--intro-right .our-story__panel {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    padding: 0;
  }

  .our-story__panel {
    margin-top: 0;
    padding: 18px 20px 22px;
    border-radius: 16px;
  }

  .our-story-block {
    --our-story-block-bottom-space: 26px;
    padding: 18px 0 var(--our-story-block-bottom-space);
  }

  :host(:not(:first-child):not(:last-child)) .our-story-block,
  .our-story__panel > .our-story-block:not(:first-child):not(:last-child) {
    --our-story-block-bottom-space: 20px;
  }

  .our-story-block__title {
    font-size: 24px;
    line-height: 29px;
  }

  .our-story-block__description {
    font-size: 14px;
    line-height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .our-story-reveal .our-story__badge,
  .our-story-reveal .our-story__title,
  .our-story-reveal .our-story__introduction,
  .our-story-reveal .our-story__panel {
    opacity: 1;
    animation: none;
  }
}


@keyframes our-story-block-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

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

.our-story-block--reveal {
  opacity: 0;
}

.our-story-block--reveal.is-revealed {
  animation: our-story-block-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both;
}

@media (prefers-reduced-motion: reduce) {
  .our-story-block--reveal {
    opacity: 1;
    animation: none;
  }
}

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

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

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

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

.our-story-reveal.is-revealed .our-story__badge,
.our-story-reveal.is-revealed .our-story__introduction,
.our-story-reveal.is-revealed .our-story__title {
  animation-name: our-story-reveal-from-left;
}

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

