/* IOM Consulting — Our Story page */
.story-page {
  background: #f9f7f3;
  color: var(--navy);
}

.story-hero {
  border-bottom: 1px solid var(--line);
  background: #f9f7f3;
}

.story-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: clamp(34px, 4.6vw, 76px);
  min-height: 500px;
}

.story-hero__copy {
  align-self: center;
  padding-block: clamp(58px, 7vw, 96px);
}

.story-hero__copy .eyebrow {
  margin-bottom: 18px;
}

.story-hero__copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: .99;
  letter-spacing: -.045em;
}

.story-hero__intro {
  max-width: 500px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
}

.story-hero__intro p {
  margin: 0;
}

.story-hero__media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.story-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-timeline-section {
  padding: 22px 0 34px;
  background: #fbfaf7;
}

.story-timeline {
  max-width: 1080px;
}

.story-timeline__item {
  display: grid;
  grid-template-columns: 170px 52px minmax(0, 1fr);
  align-items: stretch;
  min-height: 168px;
}

.story-timeline__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 18px 0;
}

.story-timeline__image {
  width: 122px;
  height: 122px;
  overflow: hidden;
  border-radius: 50%;
  background: #f3efe9;
}

.story-timeline__image img {
  width: 100%;
  height: 100%;
  display: block;
}

.story-timeline__image--cover img {
  object-fit: cover;
}

.story-timeline__image--contain img {
  object-fit: contain;
}

.story-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.story-timeline__rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #d8d4ce;
  transform: translateX(-50%);
}

.story-timeline__item:first-child .story-timeline__rail::before {
  top: 50%;
}

.story-timeline__item:last-of-type .story-timeline__rail::before {
  bottom: 50%;
}

.story-timeline__rail span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 74px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px #fbfaf7;
}

.story-timeline__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  padding: 24px 0 24px 28px;
  border-bottom: 1px solid var(--line);
}

.story-timeline__period {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.story-timeline__content h2 {
  margin: 0 0 5px;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.story-timeline__text {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.52;
}

.story-timeline__text p {
  margin: 0;
}

.story-closing {
  display: grid;
  grid-template-columns: 74px 1px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 12px;
  padding: 24px 34px 10px 44px;
}

.story-closing__icon {
  color: var(--orange);
}

.story-closing__icon svg {
  width: 52px;
  height: 52px;
}

.story-closing__divider {
  width: 1px;
  height: 48px;
  background: var(--line);
}

.story-closing__text {
  max-width: 840px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.story-closing__text p {
  margin: 0;
}

@media (max-width: 900px) {
  .story-hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-hero__copy {
    padding-block: 52px 40px;
  }

  .story-hero__copy h1,
  .story-hero__intro {
    max-width: 720px;
  }

  .story-hero__media {
    min-height: 390px;
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  }

  .story-timeline__item {
    grid-template-columns: 132px 42px minmax(0, 1fr);
  }

  .story-timeline__image {
    width: 104px;
    height: 104px;
  }

  .story-timeline__rail span {
    margin-top: 74px;
  }
}

@media (max-width: 620px) {
  .story-hero__copy h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .story-hero__media {
    min-height: 300px;
  }

  .story-timeline-section {
    padding-top: 12px;
  }

  .story-timeline__item {
    grid-template-columns: 82px 28px minmax(0, 1fr);
    min-height: 0;
  }

  .story-timeline__visual {
    align-items: flex-start;
    padding-top: 26px;
  }

  .story-timeline__image {
    width: 72px;
    height: 72px;
  }

  .story-timeline__rail span {
    width: 14px;
    height: 14px;
    margin-top: 55px;
    box-shadow: 0 0 0 4px #fbfaf7;
  }

  .story-timeline__content {
    min-height: 142px;
    padding: 24px 0 24px 16px;
  }

  .story-timeline__period {
    font-size: 14px;
  }

  .story-timeline__content h2 {
    font-size: 22px;
  }

  .story-timeline__text {
    font-size: 15px;
  }

  .story-closing {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0 10px;
  }

  .story-closing__divider {
    display: none;
  }

  .story-closing__icon svg {
    width: 42px;
    height: 42px;
  }

  .story-closing__text {
    font-size: 15px;
  }
}
