.section--historyStory{
  background:
    radial-gradient(circle at top right, rgba(118,193,74,.10), transparent 28%),
    linear-gradient(180deg, var(--surface-2), #fff);
  overflow: hidden;
}

.historyStory{
  max-width: 1040px;
  margin: 44px auto 0;
}

.historyStory__nav{
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.historyStory__nav::before{
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22px;
  height: 2px;
  background: rgba(15,47,31,.14);
  z-index: 0;
}

.historyStory__tab{
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
}

.historyStory__number{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(15,47,31,.16);
  box-shadow: 0 10px 24px rgba(15,47,31,.08);
  color: var(--brand-900);
  font-size: .78rem;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.historyStory__tabText{
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kicker-muted);
  transition: color .18s ease;
  white-space: nowrap;
}

.historyStory__tab:hover .historyStory__number,
.historyStory__tab.is-active .historyStory__number{
  background: var(--brand-900);
  border-color: var(--brand-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px rgba(118,193,74,.10),
    0 14px 30px rgba(15,47,31,.18);
}

.historyStory__tab:hover .historyStory__tabText,
.historyStory__tab.is-active .historyStory__tabText{
  color: var(--brand-900);
}
.historyStory__panel{
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--brand-900);
  border: 1px solid rgba(15,47,31,.10);
  box-shadow: 0 20px 54px rgba(15,47,31,.10);
  overflow: hidden;
  min-height: 340px;
  isolation: isolate;
}

.historyStory__panel::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 18%, rgba(118,193,74,.16), transparent 28%),
    radial-gradient(circle at 15% 100%, rgba(15,47,31,.06), transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.historyStory__panel::after{
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: rgba(118,193,74,.10);
  pointer-events: none;
  z-index: 0;
}

.historyStory__item{
  display: none;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(28px, 4vw, 46px);
}

.historyStory__item.is-active{
  display: grid;
}

.historyStory__content{
  align-self: center;
  max-width: 650px;
}

.historyStory__eyebrow{
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: .38rem .76rem;
  border-radius: 999px;
  background: rgba(118,193,74,.12);
  border: 1px solid rgba(118,193,74,.22);
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.historyStory__title{
  margin: 0 0 14px;
  max-width: 16ch;
  color: var(--on-dark);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.historyStory__text{
  margin: 0;
  max-width: 64ch;
  color: var(--on-dark-muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.historyStory__visual{
  position: relative;
  min-height: 250px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15,47,31,.96), rgba(12,42,28,.96));
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 28px;
  color: var(--on-dark);
}


.historyStory__visual::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%),
    radial-gradient(circle at 28% 24%, rgba(118,193,74,.18), transparent 30%);
  pointer-events: none;
}

.historyStory__visualNumber{
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,.92);
}

.historyStory__visualText{
  position: relative;
  z-index: 1;
  display: block;
  max-width: 14ch;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.historyStory__visual--image{
  background:
    linear-gradient(180deg, rgba(15,47,31,.12), rgba(15,47,31,.82)),
    var(--hs-img);
  background-size: cover;
  background-position: center;
}

.historyStory__visual--image::before{
  background: rgba(118,193,74,.10);
}

.historyStory__visual--image .historyStory__visualNumber,
.historyStory__visual--image .historyStory__visualText{
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
@media (max-width: 980px){
  .historyStory{
    margin-top: 38px;
  }

  .historyStory__nav{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-left: -2px;
    margin-right: -2px;
    scroll-snap-type: x mandatory;
  }

  .historyStory__nav::before{
    display: none;
  }

  .historyStory__tab{
    min-width: 92px;
    scroll-snap-align: start;
  }

  .historyStory__panel{
    min-height: 0;
  }

  .historyStory__item.is-active{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .historyStory__title{
    max-width: none;
  }

  .historyStory__visual{
    min-height: 190px;
  }
}

@media (max-width: 640px){
  .historyStory__item{
    padding: 24px 20px;
  }

  .historyStory__tab{
    min-width: 84px;
  }

  .historyStory__number{
    width: 42px;
    height: 42px;
  }

  .historyStory__tabText{
    font-size: .68rem;
  }

  .historyStory__visual{
    padding: 22px;
  }
}