.hero-story-art { display: none; }
.hero-story-ready {
  scroll-margin-top: 30px;
  --story-ease: cubic-bezier(.16, 1, .3, 1);
}
.hero-story-ready .hero-story-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.hero-story-heading h2 {
  font-size: clamp(27px, 3.4vw, 47px);
  letter-spacing: -.045em;
  line-height: 1.05;
  font-weight: 650;
}
.hero-story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(10px, 2vw, 27px);
}
.hero-story-tabs button {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px 0;
  min-height: 44px;
  font: inherit;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 650;
  cursor: pointer;
}
.hero-story-tabs button::after {
  position: absolute;
  inset: auto 0 3px;
  height: 3px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--story-ease);
}
.hero-story-tabs button[aria-selected="true"] { color: var(--ink); }
.hero-story-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.hero-story-ready ul {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  column-gap: clamp(24px, 6vw, 88px);
  margin-top: 22px;
  isolation: isolate;
}
.hero-story-ready ul::before {
  content: "";
  grid-area: 1 / 2;
  background: #151a13;
  z-index: -1;
}
.hero-story-ready li {
  grid-area: 1 / 1 / 2 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 0s 180ms;
}
.hero-story-ready li[data-current] {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transition: opacity 330ms var(--story-ease);
}
.hero-story-ready li > a {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 22px 0;
  border: 0;
}
.hero-story-ready li strong {
  font-size: clamp(21px, 2.55vw, 36px);
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-story-ready li > a > span { grid-column: 1 / -1; }
.hero-story-ready li .arrow {
  grid-area: 1 / 2;
  margin-top: 6px;
  transition: transform 270ms var(--story-ease);
}
.hero-story-ready li > a:hover .arrow,
.hero-story-ready li > a:focus-visible .arrow { transform: translateX(4px); }
.hero-story-ready .hero-story-art {
  display: block;
  grid-area: 1 / 2;
  width: 100%;
  height: auto;
  max-height: 372px;
  overflow: hidden;
}
.hero-story-art text {
  fill: #d7e0cf;
  font: 700 14px Manrope, Arial, sans-serif;
  letter-spacing: .09em;
}
.hero-story-art .story-window { fill: #21291f; stroke: #596751; }
.hero-story-art .story-ghost { fill: none; stroke: #69765f; stroke-dasharray: 5 5; }
.hero-story-art .story-stroke { fill: none; stroke: #839276; stroke-width: 1.5; }
.hero-story-art .story-ink { fill: none; stroke: #27351b; stroke-width: 1.7; }
.hero-story-art .story-accent { stroke: var(--lime); }
.hero-story-art .story-point,
.hero-story-art .story-fill { fill: var(--lime); }
.story-piece {
  --story-offset: 0px;
  opacity: 0;
  transform: translate(var(--story-offset), 13px);
  transition: transform 230ms ease, opacity 180ms ease;
}
.story-from-left { --story-offset: -44px; }
.story-from-right { --story-offset: 62px; }
.hero-story-entered li[data-current] .story-piece {
  opacity: 1;
  transform: none;
  transition: transform 680ms var(--story-ease), opacity 340ms ease;
}
.hero-story-entered li[data-current] .story-from-right { transition-delay: 60ms; }
.story-flow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.story-bars { transform-origin: center bottom; transform-box: fill-box; transform: scaleY(0); }
.story-insert { opacity: 0; transform: translateX(128px); }
.hero-story-entered li[data-current] .story-flow {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 620ms var(--story-ease) 130ms;
}
.hero-story-entered li[data-current] .story-bars {
  transform: scaleY(1);
  transition: transform 600ms var(--story-ease) 300ms;
}
.hero-story-entered li[data-current] .story-insert {
  opacity: 1;
  transform: none;
  transition: transform 670ms var(--story-ease) 260ms, opacity 150ms ease 260ms;
}
@media (max-width: 760px) {
  .hero-story-ready .hero-story-heading { align-items: start; flex-direction: column; gap: 10px; padding-bottom: 10px; }
  .hero-story-ready ul { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; margin-top: 15px; }
  .hero-story-ready ul::before { grid-area: 1 / 1; }
  .hero-story-ready li { grid-area: 1 / 1 / 3 / 2; grid-template-rows: subgrid; align-items: start; }
  .hero-story-ready .hero-story-art { grid-area: 1 / 1; max-height: 280px; }
  .hero-story-ready li > a { grid-area: 2 / 1; padding: 18px 0 0; gap: 9px 14px; }
  .hero-story-art text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-story-tabs button::after,
  .hero-story-ready li,
  .hero-story-ready li[data-current],
  .hero-story-ready li .arrow,
  .hero-story-ready li[data-current] :is(.story-piece, .story-flow, .story-bars, .story-insert) {
    transition: none;
  }
  .hero-story-ready li[data-current] :is(.story-piece, .story-bars, .story-insert) { opacity: 1; transform: none; }
  .hero-story-ready li[data-current] .story-flow { stroke-dashoffset: 0; }
}
