/* ---------------------------------------------------------- MBH Academy
   Flagship initiative band: a full-bleed dark feature with its own badge,
   imagery, benefits, headline figures, a five-step journey and a closing
   CTA strip, so it reads as a programme in its own right rather than
   another careers block.                                                 */
.academy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(89, 141, 41, 0.16), transparent 70%),
    var(--green-900);
  border-top: 4px solid var(--accent);
  padding-block: var(--section);
  scroll-margin-top: var(--header-h-sm);
}

.academy__watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  color: rgba(254, 254, 254, 0.035);
  font-size: clamp(6rem, 19vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.academy .container { position: relative; z-index: 1; }

/* Feature: intro + imagery */
.academy__feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

@media (min-width: 980px) {
  .academy__feature { grid-template-columns: 1.05fr 0.95fr; }
}

.academy__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(89, 141, 41, 0.55);
  background: rgba(89, 141, 41, 0.14);
  color: var(--paper);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

/* Double slash from the logo, in miniature */
.academy__badge-mark {
  display: inline-flex;
  gap: 3px;
}

.academy__badge-mark::before,
.academy__badge-mark::after {
  content: "";
  width: 4px;
  height: 12px;
  background: var(--accent-hi);
  transform: skewX(-19deg);
}

.academy__badge-mark::after { opacity: 0.55; }

.academy__heading {
  max-width: 12ch;
  margin-top: 26px;
  color: var(--paper);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.academy__lead {
  max-width: 48ch;
  margin-top: 26px;
  color: rgba(254, 254, 254, 0.88);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

/* Strapline with a short brand rule ahead of it */
.academy__motto {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  color: var(--paper);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.academy__motto::before {
  content: "";
  flex: none;
  width: 44px;
  height: 2px;
  background: var(--accent-hi);
}

.academy__copy {
  display: grid;
  gap: 16px;
  max-width: 56ch;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dk);
}

.academy__copy p {
  color: var(--muted-dk);
  line-height: 1.75;
}

/* Imagery: main photo, overlapping inset, floating figure */
.academy__visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding-bottom: clamp(48px, 8vw, 96px);
}

@media (min-width: 980px) {
  .academy__visual { max-width: none; }
}

.academy__visual::before {
  content: "";
  position: absolute;
  top: -24px;
  right: clamp(24px, 6vw, 72px);
  width: clamp(44px, 6vw, 84px);
  height: 70%;
  background: rgba(89, 141, 41, 0.35);
  transform: skewX(-19deg);
}

.academy__img {
  position: relative;
  overflow: hidden;
  background: var(--green-800);
}

.academy__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy__img--main {
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}

.academy__img--inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1 / 1;
  border: clamp(4px, 0.6vw, 8px) solid var(--green-900);
}

.academy__float {
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: 0;
  max-width: 210px;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px);
  background: var(--accent);
  color: var(--paper);
}

.academy__float b {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.academy__float > span {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

/* Benefits: four icon cells */
.academy__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(64px, 7.5vw, 112px);
}

@media (min-width: 640px) {
  .academy__benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .academy__benefits { grid-template-columns: repeat(4, 1fr); }
}

.academy__benefit {
  position: relative;
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line-dk);
  background: var(--green-800);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.academy__benefit::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(22px, 2.2vw, 30px);
  width: 34px;
  height: 3px;
  background: var(--accent);
  transform: skewX(-19deg);
  transform-origin: left;
  transition: width var(--dur) var(--ease);
}

.academy__benefit:hover { border-color: rgba(89, 141, 41, 0.6); transform: translateY(-4px); }
.academy__benefit:hover::before { width: 64px; }

.academy__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(89, 141, 41, 0.55);
  background: rgba(89, 141, 41, 0.12);
  color: var(--accent-hi);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.academy__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.academy__benefit:hover .academy__icon { background: var(--accent); color: var(--paper); }

.academy__title {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.academy__text {
  color: var(--muted-dk);
  font-size: var(--fs-body);
  line-height: 1.62;
}

/* A long-term investment */
.academy__invest {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(72px, 8vw, 124px);
}

@media (min-width: 980px) {
  .academy__invest { grid-template-columns: 1.05fr 0.95fr; align-items: end; }
}

.academy .academy__eyebrow { color: var(--accent-hi); }

.academy__subheading {
  max-width: 20ch;
  color: var(--paper);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

/* Each sentence is its own split line, matching the client's break */
.academy__subheading > span { display: block; }

.academy__invest .academy__copy { margin-top: 0; }

/* Headline figures */
.academy__figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(48px, 5.5vw, 80px);
  border: 1px solid rgba(89, 141, 41, 0.45);
  background: rgba(89, 141, 41, 0.1);
}

@media (min-width: 900px) {
  .academy__figures { grid-template-columns: repeat(4, 1fr); }
}

.academy__figure {
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 30px);
  text-align: center;
}

.academy__figure + .academy__figure { border-left: 1px solid var(--line-dk); }

@media (max-width: 899px) {
  .academy__figure:nth-child(3) { border-left: 0; }
  .academy__figure:nth-child(n + 3) { border-top: 1px solid var(--line-dk); }
}

.academy__figure b {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-hi);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.academy__figure > span {
  display: block;
  max-width: 24ch;
  margin-inline: auto;
  color: rgba(254, 254, 254, 0.8);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* Journey heading */
.academy__path-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(64px, 7.5vw, 112px);
  margin-bottom: clamp(28px, 3vw, 40px);
}

.academy__path-head .academy__path-title {
  flex: none;
  color: var(--accent-hi);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.academy__path-line {
  flex: 1;
  height: 1px;
  background: var(--line-dk);
}

/* Journey: five steps on a rule that draws itself as the band scrolls in
   (--draw is tweened by the data-draw hook in animations.js; it defaults
   to 1 so the rule is complete without JS or with reduced motion).      */
.journey {
  --draw: 1;
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 30px;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
}

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

.journey::after {
  background: var(--accent-hi);
  transform: scaleY(var(--draw));
  transform-origin: top;
}

.journey__step { position: relative; }

.journey__step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 3px;
  left: -30px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-hi);
  border-radius: 50%;
  background: var(--green-900);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.journey__step:hover::before {
  background: var(--accent-hi);
  box-shadow: 0 0 0 6px rgba(107, 167, 51, 0.2);
}

.journey__title {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.journey__num { color: var(--accent-hi); }

.journey__text {
  max-width: 28ch;
  color: var(--muted-dk);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 34px 0 0;
  }

  .journey::before,
  .journey::after {
    top: 6px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }

  .journey::after {
    transform: scaleX(var(--draw));
    transform-origin: left;
  }

  .journey__step {
    padding: 0 clamp(14px, 1.6vw, 24px);
    border-left: 1px solid var(--line-dk);
  }

  .journey__step::before { top: -34px; left: -7px; }
}

/* Closing CTA strip */
.academy__banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  justify-items: start;
  margin-top: clamp(56px, 6vw, 88px);
  padding: clamp(30px, 3.8vw, 50px) clamp(24px, 4vw, 56px);
  background: var(--accent);
}

@media (min-width: 860px) {
  .academy__banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
  }
}

.academy__banner::after {
  content: "";
  position: absolute;
  top: -20%;
  right: clamp(180px, 22vw, 320px);
  width: clamp(40px, 5vw, 72px);
  height: 140%;
  background: rgba(6, 39, 28, 0.12);
  transform: skewX(-19deg);
  pointer-events: none;
}

.academy__banner > * { position: relative; z-index: 1; }

.academy__banner-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--green-900);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.academy__banner-title {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.academy__banner-text {
  max-width: 46ch;
  color: rgba(254, 254, 254, 0.9);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.academy__banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.academy__banner .btn--dark:hover { background: var(--paper); color: var(--green-900); }

.academy__banner-link {
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease);
}

.academy__banner-link:hover { color: var(--green-900); }

#opportunities { scroll-margin-top: var(--header-h-sm); }

@media (max-width: 480px) {
  .academy__banner .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .academy__benefit,
  .academy__benefit::before { transition: none; }
  .academy__benefit:hover { transform: none; }
}

/* ==========================================================================
   MBH — careers.css
   Idea: roles are an accordion — click a row to open a short summary and
   apply action, so the list stays scannable but carries real detail.
   ========================================================================== */

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

.role { border-bottom: 1px solid var(--line); }
.role[hidden] { display: none; }

.role__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  width: 100%;
  padding: clamp(20px, 2.4vw, 28px) 0;
  text-align: left;
  transition: padding-left 0.5s var(--ease);
}

@media (min-width: 860px) {
  .role__head {
    grid-template-columns: minmax(0, 1.2fr) 160px 160px 30px;
    align-items: center;
    gap: 24px;
  }
}

.role__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
  transform: skewX(-19deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.role__head:hover { padding-left: 24px; }
.role__head:hover::before { transform: skewX(-19deg) scaleX(1); }

.role__title {
  color: var(--green-900);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.role__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.role__tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }

.role__toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  justify-self: end;
  border: 1px solid var(--line);
  color: var(--green-900);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}

.role__toggle::before { content: "+"; font-size: 1rem; line-height: 1; }
.role[data-open="true"] .role__toggle { background: var(--accent); border-color: var(--accent); color: var(--paper); transform: rotate(135deg); }

/* Roles that link straight to a PDF job spec: arrow instead of + */
.role__toggle--link::before { content: "\2197"; }
.role__head--link:hover .role__toggle { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.role__panel { overflow: hidden; height: 0; }

.role__panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: clamp(24px, 3vw, 34px);
}

@media (min-width: 860px) { .role__panel-inner { grid-template-columns: 1.4fr auto; align-items: end; } }

.role__desc { max-width: 60ch; font-size: var(--fs-body); }

.role__list { margin-top: 16px; display: grid; gap: 8px; }

.role__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: var(--fs-small);
}

.role__list li::before {
  content: "";
  width: 9px;
  height: 2px;
  margin-top: 9px;
  background: var(--accent);
  transform: skewX(-19deg);
}
