/* Progress bar */
.hibu_stories_page_progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 76px;
  height: 3px;
  background-color: #FCB711;
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes hibu_stories_page_progress_grow {
      to { transform: scaleX(1); }
    }

    .hibu_stories_page_progress {
      animation: hibu_stories_page_progress_grow linear both;
      animation-timeline: scroll(root);
    }
  }
}

.fsdm_story_hero_section {
  position: relative;
  overflow: hidden;
  background-color: #150B3E;
  color: #D3CFE3;
  padding-left: 24px;
  padding-right: 24px;
}

.fsdm_story_hero_wrap {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  padding-top: clamp(40px, 6vw, 80px);
}

.fsdm_story_hero_top_grid {
  display: grid;
  align-items: center;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---------- Left column ---------- */

.fsdm_story_hero_back_link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14.4px;
  color: #D3CFE3;
  text-decoration: none;
}

.fsdm_story_hero_back_link:hover {
  color: #ffffff;
}

.fsdm_story_hero_eyebrow {
  margin: 0 0 16px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6FBA00;
}

.fsdm_story_hero_heading {
  margin: 0;
  max-width: 22ch;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.1vw, 3.3rem);
  line-height: 1.1;
  color: #ffffff;
}

.fsdm_story_hero_intro {
  margin-top: 24px;
  max-width: 42rem;
  font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  line-height: 1.625;
}

.fsdm_story_hero_intro p {
  margin: 0;
}

.fsdm_story_hero_tags {
  margin: 28px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.fsdm_story_hero_tag {
  border-radius: 4px;
  background-color: #241847;
  padding: 6px 12px;
  font-size: 12.8px;
  font-weight: 600;
  color: #D3CFE3;
}

.fsdm_story_hero_tag_highlight {
  color: #6FBA00;
}

/* ---------- Right column ---------- */

.fsdm_story_hero_right {
  position: relative;
  padding-left: 24px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.fsdm_story_hero_media {
  position: relative;
}

.fsdm_story_hero_figure {
  position: relative;
  z-index: 10;
  margin: 32px 0 0 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #3D3360;
  background-color: #241847;
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.6);
}

.fsdm_story_hero_figure_bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #3D3360;
  padding: 8px 12px;
}

.fsdm_story_hero_figure_dot {
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  background-color: #3D3360;
}

.fsdm_story_hero_figure_img {
  display: block;
  width: 100%;
  height: auto;
}

.fsdm_story_hero_stat_card {
  position: absolute;
  z-index: 20;
  bottom: -34px;
  left: -16px;
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  background-color: #ffffff;
  color: #150B3E;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.fsdm_story_hero_stat_card:hover {
  box-shadow: 0 34px 70px -20px rgba(0, 0, 0, 0.85);
  transform: translateY(-6px);
}

.fsdm_story_hero_stat_block {
  padding: 16px 20px;
}

.fsdm_story_hero_stat_label {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10.9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0072AE;
}

.fsdm_story_hero_stat_value {
  margin: 6px 0 0 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 25.6px;
  font-weight: 400;
  line-height: 1;
  color: #150B3E;
}

.fsdm_story_hero_stat_sublabel {
  margin: 4px 0 0 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 12.8px;
  font-weight: 400;
  color: #5A5478;
}

.fsdm_story_hero_stat_divider {
  width: 1px;
  margin: 16px 0;
  background-color: rgba(21, 11, 62, 0.08);
}

.fsdm_story_hero_source {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  font-size: 12.5px;
  color: #A7A1C2;
}

/* ---------- Ledger (stat strip) ---------- */

.fsdm_story_hero_ledger_heading {
  margin: clamp(44px, 5vw, 68px) 0 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #A7A1C2;
}

.fsdm_story_hero_ledger_list {
  margin: 16px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #3D3360;
  list-style: none;
}

.fsdm_story_hero_ledger_item {
  position: relative;
  border-color: #3D3360;
}

.fsdm_story_hero_ledger_item:nth-child(even) {
  border-left: 1px solid #3D3360;
}

.fsdm_story_hero_ledger_item:nth-child(n+3) {
  border-top: 1px solid #3D3360;
}

.fsdm_story_hero_ledger_trigger_wrap {
  position: relative;
  display: block;
}

.fsdm_story_hero_ledger_trigger {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  margin: 0;
  padding: 28px 16px 28px 20px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.fsdm_story_hero_ledger_num {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 1.5rem + 2.7vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #FCB711;
  font-variant-numeric: tabular-nums;
}

.fsdm_story_hero_ledger_unit {
  margin-left: 4px;
  font-size: 0.45em;
  font-weight: 600;
}

.fsdm_story_hero_ledger_label {
  display: block;
  margin-top: 12px;
  max-width: 16rem;
  font-size: 15.2px;
  line-height: 1.375;
  color: #D3CFE3;
}

.fsdm_story_hero_ledger_context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10.9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A7A1C2;
  transition: color 0.15s ease;
}

.fsdm_story_hero_ledger_trigger:hover .fsdm_story_hero_ledger_context,
.fsdm_story_hero_ledger_trigger:focus-visible .fsdm_story_hero_ledger_context {
  color: #FCB711;
}

.fsdm_story_hero_ledger_tip {
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  z-index: 40;
  bottom: 100%;
  left: 0;
  margin-bottom: 12px;
  width: 18rem;
  max-width: calc(100vw - 40px);
  border-radius: 8px;
  border: 1px solid #E1E5EC;
  background-color: #ffffff;
  padding: 16px;
  font-size: 14.4px;
  line-height: 1.625;
  color: #2B2F36;
  opacity: 0;
  box-shadow: 0 18px 40px -12px rgba(21, 11, 62, 0.35);
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(-4px);
}

.fsdm_story_hero_ledger_trigger_wrap:hover .fsdm_story_hero_ledger_tip,
.fsdm_story_hero_ledger_trigger_wrap:focus-within .fsdm_story_hero_ledger_tip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- On-page nav ---------- */

.fsdm_story_hero_nav_list {
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
  border-top: 1px solid #3D3360;
  list-style: none;
}

.fsdm_story_hero_nav_item {
  list-style: none;
}

.fsdm_story_hero_nav_link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D3CFE3;
  text-decoration: none;
}

.fsdm_story_hero_nav_link:hover {
  color: #FCB711;
}

@media (min-width: 1024px) {
  .fsdm_story_hero_section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .fsdm_story_hero_ledger_list {
    grid-template-columns: repeat(4, 1fr);
  }

  .fsdm_story_hero_ledger_item:nth-child(3) {
    border-left: 1px solid #3D3360;
    border-top: none;
  }

  .fsdm_story_hero_ledger_item:nth-child(n+3) {
    border-top: none;
  }
}