/* ==========================================================================
   MBH — why-mbh.css
   Idea: a sticky section heading beside a long numbered value list, then a
   dark band where the three headline figures carry the delivery model.
   ========================================================================== */

.valuelist-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
}

@media (min-width: 1000px) {
  .valuelist-wrap { grid-template-columns: 0.75fr 1.25fr; align-items: start; }
  .valuelist-head { position: sticky; top: calc(var(--header-h-sm) + 60px); }
}

.valuelist-head .h2 { max-width: 13ch; }
.valuelist-head .lead { margin-top: 20px; max-width: 38ch; }

.valuelist { border-top: 1px solid var(--line); }

.valuelist__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0 22px;
  padding: clamp(24px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.55s var(--ease);
}

.valuelist__item:hover { padding-left: 14px; }

.valuelist__num {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.valuelist__title {
  margin-bottom: 8px;
  color: var(--green-900);
  font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.valuelist__text { max-width: 52ch; font-size: var(--fs-body); }
/* --------------------------------------------------------------- history
   Told as six chapters. On wide screens a sticky year beside the story
   rolls like an odometer to the chapter being read, with a year index
   beneath it whose rail fills as you progress. why-mbh.js sets --i (the
   active chapter) and --progress on [data-chapters] and adds .is-live;
   without it the story reads as a plain, fully visible list.            */
.history { scroll-margin-top: var(--header-h-sm); }

.history__head .h2 { max-width: 13ch; }

.chapters {
  --i: 0;
  --progress: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
}

.chapters__side { display: none; }

@media (min-width: 1000px) {
  .chapters { grid-template-columns: 0.8fr 1.2fr; align-items: start; }

  .chapters__side {
    display: block;
    position: sticky;
    top: calc(var(--header-h-sm) + 56px);
  }
}

/* Odometer: a one-line window onto a column of years */
.chapters__odo {
  height: 1em;
  overflow: hidden;
  color: var(--green-900);
  font-size: clamp(5rem, 9.5vw, 8.75rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.chapters__track {
  transform: translateY(calc(var(--i) * -1em));
  transition: transform 0.9s var(--ease);
}

.chapters__track span { display: block; height: 1em; }

.chapters__count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.chapters__count::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.chapters__count b { color: var(--green-900); font-weight: 600; }

/* Year index with a rail that fills to the active year */
.chapters__nav {
  position: relative;
  margin-top: clamp(36px, 4vw, 52px);
  padding-left: 26px;
}

.chapters__nav::before,
.chapters__nav::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 4px;
  width: 2px;
}

.chapters__nav::before { background: var(--line); }

.chapters__nav::after {
  background: var(--accent);
  transform: scaleY(var(--progress));
  transform-origin: top;
  transition: transform 0.9s var(--ease);
}

.chapters__nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.4;
  transition: color 0.35s var(--ease), padding-left 0.45s var(--ease);
}

.chapters__nav a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: -26px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 0 2px rgba(6, 39, 28, 0.2);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.chapters__nav b {
  min-width: 3.2em;
  color: var(--green-900);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chapters__nav a:hover { color: var(--green-900); padding-left: 6px; }

.chapters__nav a.is-passed::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.chapters__nav a.is-active { color: var(--green-900); padding-left: 6px; }
.chapters__nav a.is-active b { color: var(--accent); }

.chapters__nav a.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px rgba(89, 141, 41, 0.18);
}

/* Chapters */
.chapters__list { border-top: 1px solid var(--line); }

.chapter {
  position: relative;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h-sm) + 40px);
}

.chapter__year {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

@media (min-width: 1000px) {
  .chapter { min-height: clamp(170px, 24vh, 240px); display: flex; flex-direction: column; justify-content: center; }

  .chapter__year {
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.2em;
  }
}

.chapter__title {
  max-width: 30ch;
  margin-bottom: 16px;
  color: var(--green-900);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.chapter__text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}

/* The chapter being read holds focus; the rest soften (desktop, JS on) */
@media (min-width: 1000px) {
  .chapters.is-live .chapter > * { transition: opacity 0.6s var(--ease); }
  .chapters.is-live .chapter:not(.is-active):not(.chapter--now) > * { opacity: 0.32; }
}

/* Today: the ambition closes the story on a dark panel */
.chapter--now {
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.4vw, 48px);
  border-bottom: 0;
  background: var(--green-900);
  overflow: hidden;
}

.chapter--now::after {
  content: "";
  position: absolute;
  top: -20%;
  right: clamp(28px, 6vw, 80px);
  width: clamp(36px, 4vw, 60px);
  height: 140%;
  background: rgba(89, 141, 41, 0.22);
  transform: skewX(-19deg);
  pointer-events: none;
}

.chapter--now > * { position: relative; z-index: 1; }
.chapter--now .chapter__year { color: var(--accent-hi); }
.chapter--now .chapter__title { color: var(--paper); }
.chapter--now .chapter__text { color: rgba(254, 254, 254, 0.82); font-size: var(--fs-lead); }
.chapter--now .chapter__text + .chapter__text { margin-top: 1em; }
.chapter__vision { display: block; margin-bottom: 0.35em; color: var(--paper); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .chapters__track,
  .chapters__nav::after,
  .chapters.is-live .chapter > * { transition: none; }
}

/* ---------------------------------------------------------- delivery model */
.model {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  padding-block: var(--section);
}

.model__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 4.4vw, 68px);
  align-items: center;
}

@media (min-width: 940px) { .model__grid { grid-template-columns: 1fr 1fr; } }

/* Framed to the team photo's own shape so nobody is cropped out */
.model__media { position: relative; overflow: hidden; aspect-ratio: 1250 / 834; }

.model__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model .h2 { max-width: 14ch; color: var(--paper); }
.model p { margin-top: 20px; max-width: 46ch; color: rgba(254, 254, 254, 0.72); }
.model__cta { margin-top: 32px; }
