.history-page {
  overflow-x: hidden;
}

.history-main {
  overflow: hidden;
}

.history-hero {
  min-height: 350px;
  padding: 160px 32px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.history-title {
  margin: 0;
  padding-block: .15em;
  display: block;
  font-family: var(--accent);
  font-size: clamp(4.4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.title-flourish {
  width: 76px;
  margin-top: 25px;
  overflow: visible;
}

.title-flourish path,
.story-arrow path,
.story-arrow polyline {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.timeline-section {
  position: relative;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0 110px;
}

.story-arrow {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 72px;
  left: 50%;
  width: 124px;
  height: calc(100% - 72px);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.story-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-moment {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: center;
}

.moment-card {
  width: min(410px, 100%);
  display: grid;
  grid-template-rows: 320px auto;
  row-gap: 70px;
  justify-self: center;
  text-align: center;
}

.moment-left .moment-card { grid-column: 1; }
.moment-right .moment-card { grid-column: 3; }

.illustration-frame {
  width: 100%;
  height: 320px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.illustration-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.moment-copy {
  position: relative;
  z-index: 2;
  min-height: 88px;
  padding: 3px 12px 8px;
  background: var(--ivory);
}

.story-date {
  margin: 0 0 14px;
  font-family: var(--title);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.moment-copy h2 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(2.2rem, 3.3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.timeline-point {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  background: var(--lemon);
}

.minimal-footer {
  min-height: 120px;
  padding: 35px 24px 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimal-footer a {
  position: relative;
  padding: 7px 0;
  font: 500 .68rem/1 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.minimal-footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--cobalt);
}

@media (max-width: 880px) {
  .history-hero {
    min-height: 300px;
    padding-top: 115px;
  }

  .timeline-section {
    width: min(720px, calc(100% - 32px));
  }

  .story-moment {
    min-height: 470px;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  }

  .moment-card {
    grid-template-rows: 280px auto;
    row-gap: 58px;
  }

  .illustration-frame { height: 280px; }
}

@media (max-width: 620px) {
  .history-title { font-size: 4.25rem; }
  .timeline-section { width: calc(100% - 24px); }
  .story-arrow { left: 30px; }

  .story-moment {
    min-height: 450px;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .moment-left .moment-card,
  .moment-right .moment-card {
    grid-column: 2;
  }

  .moment-card {
    width: 100%;
    grid-template-rows: 265px auto;
    row-gap: 48px;
  }

  .illustration-frame { height: 265px; padding: 12px; }
  .timeline-point { grid-column: 1; }
  .moment-copy h2 { font-size: clamp(2rem, 10vw, 2.7rem); }
}
