/* Confiance Group — About (Figma: About · Desktop 1440). Builds on style.css and solution.css. */

/* ---------- hero ---------- */

/* cover keeps the photo's proportions at any width (the old 130.62% × 100% size stretched it on wide screens) */

/* ---------- our story ---------- */

.about-story {
  min-height: 1024px;
  padding: 250px 120px 200px;
}
.about-story::before {
  left: -6.02%;
  top: -3.19%;
  width: 112.09%;
  height: 130.46%;
  background-image: url("../img/shared/mission-bg.webp");
}
.about-story h2 span { display: inline-block; }
.about-story-copy {
  display: flex;
  flex-direction: column;
  gap: 22px; /* the mockup's empty line between paragraphs */
  width: 720px;
  max-width: 100%;
}

/* ---------- mission · vision · value ---------- */

/* Without JS (or before it runs) the three panels simply stack. js/about.js adds
   .is-scrolly: the stage pins and scrolling steps data-step through 0 → 1 → 2. */
.mvv { position: relative; }
.mvv-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 1024px;
  color: #000000; /* the photos are light in both themes */
  background: var(--bg-mist); /* solid floor: the section underneath never shows through */
}
.mvv-bgs { position: absolute; inset: 0; z-index: -1; }
.mvv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.06;
  z-index: 0;
  /* the outgoing photo stays fully opaque until the incoming one has faded in on
     top of it, so the crossfade never dips into a half-transparent mix */
  transition: opacity 0s linear 0.9s, scale 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* the vision photo is stored upside down; Figma rotates its fill 180° */
.mvv-bg-1 { rotate: 180deg; }
/* Value reuses the mission photo, cropped in on the skyline */
.mvv-bg-2 {
  inset: 0 auto auto -20.76%;
  width: 141.47%;
  height: 110.88%;
  object-fit: fill;
}
.mvv-stage[data-step="0"] .mvv-bg-0,
.mvv-stage[data-step="1"] .mvv-bg-1,
.mvv-stage[data-step="2"] .mvv-bg-2 {
  opacity: 1;
  scale: 1;
  z-index: 1;
  transition: opacity 0.9s ease, scale 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mvv-inner {
  width: 1142px; /* mockup: 178px in from the left, 118px from the right */
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 214px 0 200px;
}

/* titles already passed: the latest sits just above the rule, the older one above it */
.mvv-trail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  height: 94px; /* 214 → 308: trail ends 24px above the rule */
}
.mvv-past {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.54px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.6s ease;
}
.mvv-stage[data-step="1"] .mvv-past-0 { opacity: 0.3; max-height: 48px; }
.mvv-stage[data-step="2"] .mvv-past-0 { opacity: 0.15; max-height: 48px; font-size: 24px; letter-spacing: -0.36px; }
.mvv-stage[data-step="2"] .mvv-past-1 { opacity: 0.3; max-height: 48px; }

.mvv-rule { position: relative; width: 1067px; max-width: 100%; height: 1.5px; margin: 24px 0 48px; }
.mvv-rule img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 1.5px;
  opacity: 0;
  transform-origin: 0 50%;
  scale: 0 1;
  transition: opacity 0.6s ease, scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.mvv-stage[data-step="1"] .mvv-rule-1,
.mvv-stage[data-step="2"] .mvv-rule-2 { opacity: 1; scale: 1 1; }

.mvv-panels { display: grid; }
.mvv-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.mvv-title { color: #0c5648; white-space: nowrap; } /* fixed: the photos are light in both themes */
.mvv-text { width: 460px; color: #000000; font-size: 22px; line-height: 1.4; }

/* two independent columns (01–03, 04–05) like the mockup, so a two-line item in
   one column doesn't push the rows of the other apart */
.mvv-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 32px;
  row-gap: 40px;
  width: 724px;
  max-width: 100%;
}
.mvv-values li { display: flex; align-items: flex-start; gap: 10px; break-inside: avoid; }
.mvv-values li + li { margin-top: 0; }
.mvv-values li:nth-child(4) { grid-row: 1; }
.mvv-values li > div { display: flex; flex-direction: column; gap: 8px; }
.mvv-values h3 { white-space: nowrap; }
.mvv-values p { max-width: 283px; }
.mvv-num { opacity: 0.4; }
/* values sit closer to the title so column 2 clears the plant on the right of the photo */
.mvv-panel-2 { justify-content: flex-start; gap: clamp(64px, 11vw - 40px, 160px); }

/* pinned mode */
.mvv-track.is-scrolly { height: calc(100vh + 2 * 80vh); }
.mvv-track.is-scrolly .mvv-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}
.mvv-track.is-scrolly .mvv-inner {
  position: absolute;
  left: max(var(--gutter), calc(50% - 541px)); /* the mockup sits 30px right of centre */
  top: max(24px, calc(50% - 298px)); /* keeps the active title at the mockup's 380px on a 1024px screen */
  translate: none;
  padding: 0;
}
.mvv-track.is-scrolly .mvv-panel {
  grid-area: 1 / 1;
  opacity: 0;
  translate: 0 28px;
  visibility: hidden;
  transition: opacity 0.6s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.7s;
}
.mvv-stage[data-step="0"] .mvv-panel-0,
.mvv-stage[data-step="1"] .mvv-panel-1,
.mvv-stage[data-step="2"] .mvv-panel-2 {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  transition-delay: 0.15s, 0.15s, 0s;
}
/* the value list builds in one item at a time */
.mvv-track.is-scrolly .mvv-values li {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.5s ease, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mvv-stage[data-step="2"] .mvv-values li { opacity: 1; translate: 0 0; }
.mvv-stage[data-step="2"] .mvv-values li:nth-child(1) { transition-delay: 0.25s; }
.mvv-stage[data-step="2"] .mvv-values li:nth-child(2) { transition-delay: 0.33s; }
.mvv-stage[data-step="2"] .mvv-values li:nth-child(3) { transition-delay: 0.41s; }
.mvv-stage[data-step="2"] .mvv-values li:nth-child(4) { transition-delay: 0.49s; }
.mvv-stage[data-step="2"] .mvv-values li:nth-child(5) { transition-delay: 0.57s; }

/* static fallback: panels stack on the mission photo */
.mvv-track:not(.is-scrolly) .mvv-trail,
.mvv-track:not(.is-scrolly) .mvv-rule { display: none; }
.mvv-track:not(.is-scrolly) .mvv-bg-0 { opacity: 1; scale: 1; }
.mvv-track:not(.is-scrolly) .mvv-panels { gap: 80px; }

/* ---------- our people ---------- */

.people {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 96px 120px;
}
.people::before,
.people::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.people::before {
  left: -9.04%;
  top: -28.56%;
  width: 118.12%;
  height: 128.56%;
  background: url("../img/about/people-background.jpg") 0 0 / 100% 100% no-repeat;
}
.people::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg-base));
}
.people-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  color: var(--text-heading);
  text-align: center;
}
.people-head h2 { white-space: nowrap; }
.people-body { display: flex; flex-direction: column; align-items: center; gap: 60px; }

.people-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 8px 16px;
  border: 1.5px solid var(--divider);
  border-radius: 999px;
  color: var(--text-link);
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--bg-deep); }
.chip[aria-selected="true"] { background: var(--bg-ink); border-color: var(--bg-deep); color: #ffffff; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  gap: 32px;
  width: 1204px;
  max-width: 100%;
  transition: opacity 0.25s ease;
}
.people-grid.is-switching { opacity: 0; }
.person {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 447px;
  padding: 24px;
  border-radius: 16px;
  background: #cdcdcd;
  color: #ffffff;
  text-align: center;
}
.person::after { /* no photo yet: the mockup's dark fade over grey */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 42.617%, rgba(0, 0, 0, 0) 100%);
}
.person.has-photo::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 8.389%, rgba(0, 0, 0, 0) 28.523%); }
.person-photo-thumb {
  position: absolute;
  z-index: -2;
  left: -17.46%;
  top: 0.02%;
  width: 130.87%;
  height: 138.11%;
  max-width: none;
  transition: scale 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
/* hover: only the photo zooms, and a "See details" button slides in under the role */
.person:hover .person-photo-thumb,
.person:focus-visible .person-photo-thumb { scale: 1.04; }
/* at rest it takes no space at all (the -8px cancels the card's flex gap), so the
   name and role sit exactly where they did before the button existed */
.person-more {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -8px;
  opacity: 0;
  translate: 0 8px;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, translate 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-more-clip { min-height: 0; overflow: hidden; }
.person-more .btn { margin-top: 20px; }
.person:hover .person-more,
.person:focus-visible .person-more { grid-template-rows: 1fr; opacity: 1; translate: 0 0; }
/* touch screens have no hover: keep the button visible */
@media (hover: none) {
  .person-more { grid-template-rows: 1fr; opacity: 1; translate: 0 0; }
}
.person .t-subheading { width: 100%; }
.person .t-caption { width: 266px; max-width: 100%; }

/* ---------- person pop-up ---------- */

.person-modal {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--bg-base);
  color: var(--text-body);
  overflow: auto;
  opacity: 0;
  translate: 0 24px;
  scale: 0.97;
  transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.22, 1, 0.36, 1), scale 0.45s cubic-bezier(0.22, 1, 0.36, 1), overlay 0.45s allow-discrete, display 0.45s allow-discrete;
}
.person-modal.is-in { opacity: 1; translate: 0 0; scale: 1; }
.person-modal::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.person-modal.is-in::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
/* the reserved scrollbar gutter sits outside the backdrop: tint it like the dimmed page */
html.has-modal { overflow: hidden; background-color: color-mix(in srgb, var(--bg-base) 30%, #000); }

.person-card { position: relative; display: flex; gap: 40px; min-height: min(630px, calc(100dvh - 48px)); }
.person-photo {
  flex: 0 0 446px;
  overflow: hidden;
  background: var(--bg-mist);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
/* no photo yet: the plain mist panel from the mockup */
.person-photo.is-empty img { display: none; }
.person-body {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 64px;
  padding: 64px 40px 40px 0;
}
.person-top { display: flex; flex-direction: column; gap: 24px; }
.person-id { display: flex; flex-direction: column; gap: 8px; }
.person-id h2 { color: var(--text-heading); }
.person-role { color: #6c6c6c; }
.person-bio p + p { margin-top: 1.3em; } /* the mockup's blank line between paragraphs */
.person-rule { width: 100%; height: 1px; }
.person-actions { display: flex; align-items: center; gap: 24px; }
.person-icon { display: block; border-radius: 6px; transition: opacity 0.2s ease; }
.person-icon img { display: block; transition: filter 0.2s ease; }
.person-icon:hover img, .person-icon:focus-visible img { filter: var(--icon-to-green); }
.person-close {
  position: absolute;
  top: 26px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -4px;
  border-radius: 999px;
  transition: background-color 0.2s ease, rotate 0.3s ease;
}
.person-close:hover { background: var(--bg-mist); rotate: 90deg; }

/* ---------- smaller screens ---------- */

@media (max-width: 1024px) {
  .about-story { min-height: 0; padding: 140px var(--gutter) 120px; }
  .mvv-panel { flex-direction: column; gap: 24px; }
  .mvv-text { width: auto; max-width: 520px; font-size: 20px; }
  .mvv-values { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; row-gap: 20px; width: auto; }
  .mvv-values li:nth-child(4) { grid-row: auto; }
  .mvv-values h3 { white-space: normal; }
  .mvv-track.is-scrolly .mvv-inner { top: 96px; }
  .people { padding: 80px var(--gutter); }
  .people-head h2 { white-space: normal; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .person { height: 400px; }
  .person-card { flex-direction: column; gap: 0; }
  .person-photo { flex: none; height: 280px; }
  .person-body { padding: 32px 24px; gap: 32px; }
}

@media (max-width: 640px) {
  .mvv-past { font-size: 28px; }
  .mvv-values { row-gap: 14px; }
  .mvv-text { font-size: 18px; }
  .mvv-values .t-subheading { font-size: 20px; }
  .people-grid { grid-template-columns: 1fr; }
  .people-chips { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mvv-bg, .mvv-past, .mvv-rule img, .mvv-panel, .mvv-values li, .person-modal, .person-modal::backdrop { transition: none !important; }
}

/* ---------- dark mode ---------- */

@media (prefers-color-scheme: dark) {
  .people::after { background: linear-gradient(180deg, rgba(15, 30, 27, 0.2), var(--bg-base)); }
  .person-role { color: var(--text-muted, #9aa8a3); }
  .person-rule { opacity: 0.25; }
  .person-icon img { opacity: 0.6; }
  .person-icon:hover img, .person-icon:focus-visible img { filter: var(--icon-to-white); opacity: 1; }
  .person-close img { filter: brightness(0) invert(1); }
}

/* dark mode: our people sits on flat deep green, no photo or gradient */
@media (prefers-color-scheme: dark) {
  .people { background: #0c5648; }
  .people::before, .people::after { display: none; }
}

/* dark mode: mission · vision · value keeps its bright-mode look (light photos, dark text) */
@media (prefers-color-scheme: dark) {
  .mvv { color: #08312a; }
  .mvv-stage { background: #f0f5f3; }
  .mvv .mvv-title { color: #0c5648 !important; }
  .mvv-past, .mvv-values li, .mvv-values h3, .mvv-num, .mvv p, .mvv .t-body, .mvv .t-subheading { color: #000000; }
}

/* dark mode: profile pop-up name in the light mint */
@media (prefers-color-scheme: dark) {
  .person-modal #person-name, .person-id h2 { color: #8fe0c6 !important; }
}

/* dark mode: pop-up job title uses the same grey as Insights dates and tags */
@media (prefers-color-scheme: dark) {
  body .person-role { color: #b0b0b0; }
}

/* people cards, readability:
   at rest a deeper, taller fade at the bottom behind the name and role;
   on hover the whole photo darkens, so the text stays legible as the
   "See details" button pushes it up into the lighter part of the photo */
.person.has-photo::after {
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.6) 18%,
    rgba(0, 0, 0, 0.3) 32%,
    rgba(0, 0, 0, 0.1) 42%,
    rgba(0, 0, 0, 0) 52%);
}
.person.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.person.has-photo:hover::before,
.person.has-photo:focus-visible::before { opacity: 1; }
@media (hover: none) { .person.has-photo::before { opacity: 1; } } /* touch: button always shown, keep it dark */

/* people cards: new portrait photos fill the card, framed from the top (faces stay in view) */
.person .person-photo-thumb { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* pop-up bio: qualification lists */
.person-bio-list { margin: 0.6em 0 0; padding-left: 1.2em; list-style: disc; }
.person-bio-list li + li { margin-top: 0.35em; }
.person-bio p + .person-bio-list { margin-top: 0.6em; }
.person-bio-list + p { margin-top: 1.3em; }

/* pop-up keeps the original size (630px tall) however long the bio is:
   the photo stays put and only the text side scrolls */
@media (min-width: 1025px) {
  .person-modal { overflow: hidden; }
  .person-card { height: min(630px, calc(100dvh - 48px)); min-height: 0; }
  .person-photo { height: 100%; }
  .person-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 127, 127, 0.4) transparent;
  }
}

/* people cards with a photo: no light-grey fill behind the image (it showed as a thin
   light edge at the rounded corners, most visible in dark mode); the photo is clipped
   to the same radius so the corner is clean */
.person.has-photo { background: transparent; }
.person.has-photo .person-photo-thumb { border-radius: inherit; }

/* pop-up: email + LinkedIn sit on the name row, pushed to the far right */
.person-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.person-head .person-id { flex: 1 1 auto; min-width: 0; }
.person-head .person-actions { flex: none; margin-top: 2px; }
/* icons sit on the baseline of the name block (bottom-aligned) and are a size smaller */
.person-head { align-items: flex-end; }
.person-head .person-actions { margin-top: 0; gap: 16px; }
.person-head .person-icon img { width: auto; height: 22px; }
/* name + role capped in width, with clear air before the icons */
.person-head { gap: 48px; }
.person-head .person-id { flex: 0 1 320px; max-width: 320px; }

/* people grid never wider than the screen (the photo's intrinsic width was stretching the 1fr column) */
.people-body { width: 100%; }
.people-grid { width: min(1204px, 100%); }
@media (max-width: 1024px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .people-grid { grid-template-columns: minmax(0, 1fr); } }
.person .person-photo-thumb { max-width: 100%; }

/* edge cases */
.people-grid.is-empty { display: flex; }
.person-bio-pending { color: var(--text-muted, #6c6c6c); font-style: italic; }
@media (prefers-color-scheme: dark) { body .person-bio-pending { color: #b0b0b0; } }
.person-icon[hidden] { display: none; }

/* ---------- our story: full narrative, four chapters that fade in as you scroll ---------- */
.about-story { min-height: 0; gap: 0; padding: 200px calc(var(--gutter) + var(--edge)) 160px; }
/* the photo fills the top; a deep-green veil keeps the long copy readable all the way down */
.about-story::before { left: 0; top: 0; width: 100%; height: 100%; background: url("../img/shared/mission-bg.webp") 50% 0 / cover no-repeat; }
.about-story::after { background: linear-gradient(180deg, rgba(6, 74, 61, 0.78) 0%, rgba(6, 74, 61, 0.9) 35%, #064a3d 70%); }
.about-story > .tag { margin-bottom: 28px; }
.about-story h2 { width: auto; }
.about-story-lead { width: 760px !important; max-width: 100%; margin: 24px 0 96px; font-size: 22px; line-height: 1.45; opacity: 0.9; }
.about-chapter {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 48px;
  width: min(1100px, 100%);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}
.about-chapter-head { display: flex; flex-direction: column; gap: 12px; }
.about-chapter-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: #8fe0c6; }
.about-chapter-head h3 { margin: 0; color: #ffffff; }
.about-chapter-body { display: flex; flex-direction: column; gap: 18px; }
.about-chapter-body p { width: auto !important; max-width: 640px; margin: 0; color: rgba(255, 255, 255, 0.88); }
.about-chapter-body strong { color: #ffffff; font-weight: 600; }
.about-story-close {
  width: min(1100px, 100%) !important;
  margin: 0;
  padding-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  color: #ffffff;
  text-wrap: balance;
}
.about-story-close strong { color: #8fe0c6; }
.about-story-close span { display: block; }
@media (max-width: 1024px) {
  .about-story { padding: 140px var(--gutter) 120px; }
  .about-story-lead { margin-bottom: 64px; font-size: 19px; }
  .about-chapter { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .about-story-close { padding-top: 48px; }
}

/* our story, homepage-promise style: one centred column, chapters linked by a
   vertical line that draws itself as you scroll (js/main.js) */
.about-story-lead { margin-bottom: 0; }
.about-chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(760px, 100%);
  padding: 0;
  border-top: 0;
  text-align: center;
}
.about-chapter-head { align-items: center; gap: 10px; }
.about-chapter-head h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; }
.about-chapter-body { align-items: center; gap: 16px; }
.about-chapter-body p { max-width: 682px; }
.story-line {
  flex: none;
  width: 2px;
  height: 140px;
  margin: 48px 0;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85) 30%, rgba(143, 224, 198, 0.9));
  transform-origin: 50% 0;
}
.about-story-close {
  width: min(900px, 100%) !important;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}
@media (max-width: 1024px) {
  .story-line { height: 96px; margin: 36px 0; }
}
/* longer connecting lines; the next item waits for its line to finish */
.story-line { height: 260px; margin: 40px 0; }
.story-step { opacity: 0; translate: 0 28px; transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.story-step.is-shown { opacity: 1; translate: 0 0; }
@media (max-width: 1024px) { .story-line { height: 180px; margin: 32px 0; } }
/* one chapter per screen: each chapter fills the viewport (minus its line), so the
   story moves at a slower, deliberate pace; text column 10% wider (682 -> 750px) */
.about-chapter { width: min(836px, 100%); min-height: calc(100vh - 340px); min-height: calc(100svh - 340px); justify-content: center; }
.about-chapter-body p { max-width: 750px; }
.about-story-lead { width: 836px !important; }
.about-story-close { min-height: calc(100svh - 340px); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1024px) {
  .about-chapter, .about-story-close { min-height: calc(100svh - 260px); }
}
/* shorter pace: each line + chapter is about two-thirds of a screen instead of a full one */
.story-line { height: 180px; margin: 28px 0; }
.about-chapter, .about-story-close { min-height: calc(66svh - 236px); }
.about-story { padding-bottom: 120px; }
@media (max-width: 1024px) {
  .story-line { height: 120px; margin: 24px 0; }
  .about-chapter, .about-story-close { min-height: 0; }
}
/* closing line: first sentence on one line at the "Togetherness" display size */
.about-story-close { width: 100% !important; max-width: none; font-size: 64px; line-height: 1.05; letter-spacing: -1.28px; font-weight: 800; }
.about-story-close .close-line { display: block; white-space: nowrap; }
.about-story-close span:not(.close-line) { margin-top: 20px; font-size: 22px; font-weight: 400; font-family: var(--font-body); letter-spacing: 0; line-height: 1.45; opacity: 0.9; }
@media (max-width: 1024px) {
  .about-story-close { font-size: 48px; letter-spacing: -0.96px; }
  .about-story-close .close-line { white-space: normal; }
}
/* one line: 64px (same as "Togetherness") wherever it fits, scaling down just enough on narrower screens */
@media (min-width: 1025px) {
  .about-story-close { width: calc(100vw - 2 * var(--gutter)) !important; font-size: min(64px, calc((100vw - 2 * var(--gutter)) / 21.6)); letter-spacing: -0.02em; }
}
/* story chapters: body copy at the same size as the "Togetherness" lead-in */
.about-chapter-body p { font-size: 22px; line-height: 1.45; }
@media (max-width: 1024px) { .about-chapter-body p { font-size: 19px; } }
/* Our People intro (moved from the story's "One Confiance, One Team") */
.people-intro { width: 682px; max-width: 100%; margin-top: -10px; color: var(--text-body); }
/* longer connecting lines */
.story-line { height: 260px; }
@media (max-width: 1024px) { .story-line { height: 160px; } }
/* room to finish reading the closing line before Mission / Vision slides over */
.about-story { padding-bottom: max(240px, 45svh); }
@media (max-width: 1024px) { .about-story { padding-bottom: max(160px, 30svh); } }
/* a short pause after the line finishes before the next item fades in (no delay when it hides) */
.story-step.is-shown { transition-delay: 0.45s; transition-duration: 0.9s; }
/* story + people intro: no single word left alone on the last line */
.about-story p, .people-intro { text-wrap: pretty; }

/* staff story in the pop-up: themes, questions, answers */
.person-story { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--content-divider, #c2d5d1); }
.person-story-title { margin: 0 0 16px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg-accent); }
.person-story-q { margin: 20px 0 6px; font-weight: 600; color: var(--text-heading); }
.person-story-title + .person-story-q { margin-top: 0; }
.person-story p:not(.person-story-q):not(.person-story-close) + p:not(.person-story-q) { margin-top: 0.7em; }
.person-story-close { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--text-heading); }
@media (prefers-color-scheme: dark) { body .person-story-title { color: #8fe0c6; } body .person-story-q { color: #ffffff; } }

/* ---------- staff stories carousel ---------- */
.staff { display: flex; flex-direction: column; gap: 40px; padding: 120px 0; overflow: hidden; }
.staff-head { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 var(--gutter); text-align: center; }
.staff-head h2 { color: var(--text-heading); }
.staff-intro { width: 682px; max-width: 100%; color: var(--text-body); }
.staff-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1204px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.staff-chips { justify-content: flex-start; }
.staff-nav { display: flex; gap: 12px; flex: none; }
.staff-nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--text-heading); background: transparent; cursor: pointer; transition: opacity 0.2s ease, background-color 0.2s ease; }
.staff-nav button img { width: 20px; height: 20px; }
.staff-prev img { rotate: 180deg; }
.staff-nav button:disabled { opacity: 0.3; cursor: default; }
.staff-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - 1204px) / 2));
  padding: 0 max(var(--gutter), calc((100% - 1204px) / 2)) 8px;
  scrollbar-width: none;
}
.staff-track::-webkit-scrollbar { display: none; }
.staff-card { flex: 0 0 380px; height: 447px; scroll-snap-align: start; }
.staff-empty { flex: 1 0 100%; }
@media (prefers-color-scheme: dark) {
  body .staff-nav button { border-color: #ffffff; }
  body .staff-nav button img { filter: brightness(0) invert(1); }
}
@media (max-width: 1024px) {
  .staff { padding: 80px 0; }
  .staff-bar { flex-direction: column; align-items: flex-start; }
  .staff-card { flex-basis: 300px; height: 380px; }
}
@media (max-width: 640px) { .staff-card { flex-basis: 78vw; } .staff-nav { display: none; } }
/* carousel arrows: the round arrow icon itself (deep green on light, white on dark) */
.staff-nav button { border: 0; width: 48px; height: 48px; padding: 0; }
.staff-nav button img { width: 48px; height: 48px; filter: var(--icon-to-green); }
@media (prefers-color-scheme: dark) { body .staff-nav button img { filter: none; } }

/* About banner: the team group photo */
.about-hero::before { background: url("../img/about/about-hero-desktop.jpg?v=3") 50% 30% / cover no-repeat; }

/* banner -> story seam: the banner fades into exactly the colour the story section
   starts with, and the story's photo only begins below that solid band */
.about-hero, .about-story { --seam: 6, 74, 61; }
@media (prefers-color-scheme: dark) { .about-hero, .about-story { --seam: 8, 49, 42; } }
.about-hero::after {
  background:
    linear-gradient(180deg, rgba(11, 85, 71, 0.4) 0%, rgba(11, 85, 71, 0) 25%),
    linear-gradient(180deg, rgba(var(--seam), 0) 40%, rgba(var(--seam), 0.85) 80%, rgb(var(--seam)) 100%);
}
.about-story { background: rgb(var(--seam)); }
.about-story::before { top: 0; opacity: 0.55; }
.about-story::after {
  background: linear-gradient(180deg, rgb(var(--seam)) 0%, rgba(var(--seam), 0.7) 18%, rgba(var(--seam), 0.85) 40%, rgb(var(--seam)) 70%);
}
/* staff stories: heading left-aligned on the same edge as the filter and the first card */
.staff-head { align-items: flex-start; text-align: left; width: min(1204px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 0; }

/* staff stories: light mint section in light mode */
.staff { background: var(--bg-mist); }
@media (prefers-color-scheme: dark) { body .staff { background: transparent; } }
/* staff-story pop-up: just the interview, full width */
/* staff pop-up: photo like Our People, but no email/LinkedIn */
.person-modal.is-staff .person-actions { display: none; }

/* Staff pop-up: divider under each category title, none under name/country */
.person-modal.is-staff .person-story { border-top: 0; padding-top: 0; }
.person-modal.is-staff .person-story-title { padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--content-divider, #c2d5d1); }

/* Steven's portrait is shot wider — zoom to match the others */
.person img[src*="steven-chin-fong-yuen"] { transform: scale(1.18); transform-origin: 50% 20%; }
.person { overflow: hidden; }
.person-modal.is-staff .person-rule { display: none; }
.person-modal.is-staff .person-bio:empty { display: none; }

/* story Q&A: answer sits tight under its question, bigger gap before the next question */
.person-story p { margin: 0; }
.person-story .person-story-q { margin: 32px 0 6px; }
.person-story .person-story-title + .person-story-q { margin-top: 0; }
.person-story p:not(.person-story-q):not(.person-story-close) + p:not(.person-story-q) { margin-top: 0.7em; }
.person-story .person-story-close { margin-top: 32px; }
.person-bio .person-story .person-story-q + p { margin-top: 0; }
.person-bio .person-story p:not(.person-story-q):not(.person-story-close) + p:not(.person-story-q):not(.person-story-close) { margin-top: 0.7em; }

/* staff pop-up: more air between categories, team/entity line, "why join us" box */
.person-modal.is-staff .person-story { margin-top: 56px; }
.person-modal.is-staff .person-role { white-space: pre-line; }
.person-modal.is-staff .person-story-why { margin-top: 56px; padding: 32px; border-radius: 16px; background: var(--bg-mist, #f0f5f3); }
.person-modal.is-staff .person-story-why .person-story-close { margin-top: 0; }
@media (prefers-color-scheme: dark) { body .person-modal.is-staff .person-story-why { background: #08312a; } }
.person-modal.is-staff .person-story:first-child { margin-top: 32px; } /* + 24px row gap = 56px, same as between categories */

/* Our story: photo anchored at the bottom, layered gradient rising from the bottom */
.about-story::before { top: auto; bottom: 0; height: 75%; background-position: 50% 100%; opacity: 0.85; }
.about-story::after {
  background:
    linear-gradient(0deg, rgba(var(--seam), 0) 0%, rgba(var(--seam), 0.35) 22%, rgba(var(--seam), 0.7) 45%, rgba(var(--seam), 0.92) 62%, rgb(var(--seam)) 78%),
    radial-gradient(120% 60% at 50% 100%, rgba(143, 224, 198, 0.18) 0%, rgba(143, 224, 198, 0) 70%);
}
/* wave sits behind the closing "Our name, Confiance…" line */
.about-story::before { height: calc(max(240px, 45svh) + 420px); background-position: 50% 0; }
@media (max-width: 1024px) { .about-story::before { height: calc(max(160px, 30svh) + 360px); } }
.about-story::after {
  background:
    linear-gradient(0deg, rgba(var(--seam), 0.15) 0%, rgba(var(--seam), 0.25) 30%, rgba(var(--seam), 0.75) calc(max(240px, 45svh) + 380px), rgb(var(--seam)) calc(max(240px, 45svh) + 460px)),
    radial-gradient(120% 60% at 50% 100%, rgba(143, 224, 198, 0.18) 0%, rgba(143, 224, 198, 0) 70%);
}
.about-story-close { text-shadow: 0 2px 24px rgba(var(--seam), 0.9), 0 1px 3px rgba(0,0,0,0.35); }
/* no hard edge: photo box is taller and its top fades out via a mask */
.about-story::before { height: calc(max(240px, 45svh) + 900px); background-position: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 85%); mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 85%); }
@media (max-width: 1024px) { .about-story::before { height: calc(max(160px, 30svh) + 700px); } }
.about-story::after {
  background:
    linear-gradient(0deg, rgba(var(--seam), 0.15) 0%, rgba(var(--seam), 0.3) 25%, rgba(var(--seam), 0.8) calc(max(240px, 45svh) + 600px), rgb(var(--seam)) calc(max(240px, 45svh) + 900px)),
    radial-gradient(120% 60% at 50% 100%, rgba(143, 224, 198, 0.18) 0%, rgba(143, 224, 198, 0) 70%);
}
/* light-to-dark wash: starts at the banner's seam colour (no edge), brightens, then deepens before the wave */
.about-story::after {
  background:
    linear-gradient(180deg, rgba(40, 150, 120, 0) 0%, rgba(40, 150, 120, 0.28) 10%, rgba(40, 150, 120, 0.16) 30%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(0deg, rgba(var(--seam), 0.15) 0%, rgba(var(--seam), 0.3) 25%, rgba(var(--seam), 0.8) calc(max(240px, 45svh) + 600px), rgb(var(--seam)) calc(max(240px, 45svh) + 900px)),
    radial-gradient(120% 60% at 50% 100%, rgba(143, 224, 198, 0.18) 0%, rgba(143, 224, 198, 0) 70%);
}

/* "Why join us" box: one consistent quote treatment */
.person-modal.is-staff .person-story-why { position: relative; padding: 56px 40px 36px; }
.person-modal.is-staff .person-story-why::before { content: "\201C"; position: absolute; top: 8px; left: 36px; font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--bg-accent); opacity: 0.5; }
.person-modal.is-staff .person-story-why .person-story-close { font-size: 19px; font-weight: 600; line-height: 1.5; text-wrap: pretty; }
.person-modal.is-staff .person-story-why .person-story-close + .person-story-close { margin-top: 14px; }
@media (prefers-color-scheme: dark) { body .person-modal.is-staff .person-story-why::before { color: #8fe0c6; } }
@media (max-width: 640px) { .person-modal.is-staff .person-story-why { padding: 48px 24px 28px; } .person-modal.is-staff .person-story-why::before { left: 22px; } }

/* mobile MVV: copy sits right under its title; tighter gap under the line */
@media (max-width: 640px) {
  body .mvv-panel { justify-content: flex-start; gap: 16px; }
  body .mvv-rule { margin: 20px 0 24px; }
}

/* ---------- About mobile per Figma 360:2 (≤640px) ---------- */
@media (max-width: 640px) {
  /* hero: text block from 446px, group photo framed on the people */
  body .about-hero { min-height: 720px; height: 720px; }
  body .about-hero::before { background-position: 48% 0; }

  /* our story: compact stack — 24px rhythm, 160px lines, 13px copy */
  body .about-story { padding: 140px var(--gutter) 46px; gap: 0; }
  body .about-story .tag { margin-bottom: 28px; }
  body .about-story h2.t-display { font-size: 32px; line-height: 1.1; margin: 0; }
  body .about-story .about-story-lead { width: 100% !important; margin-top: 24px; font-size: 13px; line-height: 1.55; opacity: 0.9; }
  body .about-story .story-line { width: 2px; height: 160px; margin: 24px auto; }
  body .about-chapter, body .about-story-close { min-height: 0; }
  body .about-chapter { gap: 20px; width: 100%; }
  body .about-chapter .t-subheading { font-size: 20px; line-height: 1.3; letter-spacing: -0.13px; }
  body .about-chapter-body { display: flex; flex-direction: column; gap: 16px; }
  body .about-chapter-body p { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); margin: 0; }
  body .about-chapter-body p strong { color: #ffffff; font-weight: 600; }
  body .about-story-close { width: 100% !important; font-size: 28px; line-height: 1.3; letter-spacing: -0.96px; }
  body .about-story-close .close-line { white-space: normal; }
  body .about-story-close span:not(.close-line) { margin-top: 16px; font-size: 16px; line-height: 2; }
  body .about-story-close strong { color: #8fe0c6; }

}

/* phones: market dropdowns replace the chips */
.chip-select-wrap { display: none; }
@media (max-width: 640px) {
  body .people-chips { display: none !important; }
  body .chip-select-wrap { display: block; position: relative; width: max-content; margin-inline: auto; }
  body .staff .chip-select-wrap { margin-inline: 0; }
  body .chip-select {
    -webkit-appearance: none; appearance: none;
    min-width: 200px; padding: 10px 44px 10px 20px; border-radius: 999px;
    border: 1.5px solid var(--text-link); background: #ffffff;
    color: var(--text-link); font: inherit; font-size: 16px; cursor: pointer;
  }
  body .chip-select-wrap::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 8px; margin-top: -4px; pointer-events: none;
    background: url("../img/shared/topic-chevron.svg") center / contain no-repeat; rotate: 180deg;
  }
  @media (prefers-color-scheme: dark) {
    body .chip-select { background: transparent; border-color: #ffffff; color: #ffffff; }
    body .chip-select option { color: #000000; }
    body .chip-select-wrap::after { filter: brightness(0) invert(1); }
  }
  /* intro copy never wider than the screen */
  body .people-intro, body .staff-intro, body .people-head p { width: auto !important; max-width: 100% !important; white-space: normal !important; }
}

/* phones: pop-up close button stays in view while the pop-up scrolls */
@media (max-width: 640px) {
  body .person-modal .person-card { display: flex; flex-direction: column; }
  body .person-modal .person-close {
    order: -1; position: sticky; top: 12px; right: auto; z-index: 5;
    align-self: flex-end; margin: 12px 12px -48px 0; width: 36px; height: 36px;
    background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }
  @media (prefers-color-scheme: dark) { body .person-modal .person-close { background: #0a1f1b; } }
}
@media (max-width: 640px) {
}
@media (max-width: 640px) { body .chip-select-wrap .chip-select { padding-top: 7px; padding-bottom: 7px; font-size: 13px; } }

/* phones: Our People heading, intro and dropdown aligned left */
@media (max-width: 640px) {
  body .people-head { align-items: flex-start; text-align: left; }
  body .people-head > * { text-align: left; margin-left: 0; }
  body .people .chip-select-wrap { margin-inline: 0; }
  body .people-body { align-items: stretch; }
}

/* ---------- phones: market dropdown (same pill + menu card as Client stories) ---------- */
.chip-dd { display: none; }
@media (max-width: 640px) {
  body .chip-select-wrap { display: none !important; }
  body .chip-dd { display: block; position: relative; width: max-content; z-index: 6; }
  body .chip-dd-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    border: 1.5px solid var(--text-link); border-radius: 999px; background: var(--bg-base);
    color: var(--text-link); font-size: 13px; line-height: 1.3; white-space: nowrap;
  }
  body .chip-dd-btn img { width: 16px; height: 16px; transition: rotate 0.2s ease; }
  body .chip-dd-btn[aria-expanded="true"] img { rotate: 180deg; }
  body .chip-dd-list {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 6;
    width: max-content; min-width: 100%; max-width: calc(100vw - 2 * var(--gutter));
    padding: 8px; background: #ffffff; border-radius: 16px;
    box-shadow: 0 0 0 1px var(--border-subtle), 0 24px 48px rgba(8, 49, 42, 0.16);
    display: flex; flex-direction: column;
  }
  body .chip-dd-list[hidden] { display: none; }
  body .chip-dd-option { padding: 8px 16px; border-radius: 10px; color: var(--bg-ink); font-size: 13px; line-height: 1.3; text-align: left; white-space: nowrap; }
  body .chip-dd-option:hover, body .chip-dd-option:focus-visible { background: var(--bg-mist); outline: none; }
  body .chip-dd-option[aria-selected="true"] { background: var(--bg-soft); }
  @media (prefers-color-scheme: dark) {
    body .chip-dd-btn { background: transparent; border-color: #ffffff; color: #ffffff; }
    body .chip-dd-btn img { filter: brightness(0) invert(1); }
  }

  /* pop-up close: just the icon, no white circle */
  body .person-modal .person-close { background: none; box-shadow: none; }

  /* staff pop-up: tighter space between categories */
  body .person-modal.is-staff .person-story { margin-top: 32px; }
  body .person-modal.is-staff .person-story:first-child { margin-top: 8px; }
  body .person-modal.is-staff .person-story-why { margin-top: 32px; }
}
@media (max-width: 640px) {
  /* MVV sits higher so Values clears the skyline/jungle */
  body .mvv-track.is-scrolly .mvv-inner { top: 76px; }
  body .mvv-rule { margin: 12px 0 16px; }
  body .mvv-values li + li { margin-top: 8px; }
}
@media (max-width: 640px) { html body .people-body { gap: 32px; } }
@media (max-width: 640px) { html body .staff-track > .staff-card { height: 400px; } }
@media (max-width: 640px) { html body .people-grid.m-carousel > *, html body .staff-track.m-carousel > .staff-card { flex: 0 0 calc((100vw - 2 * var(--gutter)) * 0.84); width: auto; height: 400px; } }
@media (max-width: 640px) { html body .staff-track.m-carousel { margin-inline: 0; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); gap: 16px; } }
@media (max-width: 640px) { html body .people-grid.m-carousel { padding-bottom: 0; } }

@media (max-width: 640px) {
  /* phones: cards always show their default state (no hover darkening or button) */
  html body .person .person-more,
  html body .person:hover .person-more,
  html body .person:focus-visible .person-more { grid-template-rows: 0fr; opacity: 0; translate: 0 0; }
  html body .person.has-photo::before,
  html body .person.has-photo:hover::before { opacity: 0; }
  html body .person:hover .person-photo-thumb { scale: 1; }

  /* Values step: skyline pushed further down so the list sits on open sky */
  html body .mvv-bg-2 { top: auto; bottom: -38%; height: 138%; object-position: 50% 100%; }
}
@media (max-width: 640px) {
  /* MVV: content moved up into the empty sky; Values photo shifted only slightly so the skyline stays visible */
  html body .mvv-track.is-scrolly .mvv-inner { top: 28px; }
  html body .mvv-bg-2 { bottom: -12%; height: 112%; }
}
@media (max-width: 640px) { html body .mvv-bg-2 { bottom: -22%; height: 122%; } }
@media (max-width: 640px) {
  /* MVV trail: hidden titles no longer reserve a gap, so past title → line is the same at every step */
  html body .mvv-trail { gap: 0; }
  html body .mvv-stage[data-step="2"] .mvv-past-1 { margin-top: 12px; }
  html body .mvv-rule { margin: 16px 0 16px; }
}
@media (max-width: 640px) { html body .mvv-stage[data-step="2"] .mvv-past-0 { font-size: 20px; letter-spacing: -0.2px; } }

/* ---------- staff stories: rotating excerpts (no photos) ---------- */
.staff-stage { width: min(1204px, calc(100% - 2 * var(--gutter))); margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.staff-quote { position: relative; margin: 0; padding: 56px 56px 40px; border-radius: 24px; background: #ffffff; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.staff-quote::before { content: "\201C"; position: absolute; top: 18px; right: 44px; font-family: var(--font-display); font-size: 220px; line-height: 1; color: var(--bg-accent); opacity: 0.14; pointer-events: none; }
.staff-quote-q { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bg-accent); filter: brightness(0.72); max-width: 720px; }
.staff-quote-text { margin: 0; max-width: 940px; min-height: 4.05em; font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.35; color: var(--text-heading); text-wrap: pretty; }
.staff-word { display: inline-block; }
.staff-quote.is-in .staff-word { animation: staff-word-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.staff-quote.is-in .staff-quote-q, .staff-quote.is-in .staff-quote-foot { animation: staff-fade-in 0.5s ease both; }
@keyframes staff-word-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes staff-fade-in { from { opacity: 0; } to { opacity: 1; } }
.staff-quote-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--content-divider, #c2d5d1); }
.staff-quote-by { display: flex; flex-direction: column; gap: 4px; }
.staff-quote-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-heading); }
.staff-quote-meta { font-size: 15px; color: var(--text-body); opacity: 0.75; }
.staff-quote-read { flex: none; }
.staff-progress { display: block; height: 2px; margin-top: -16px; border-radius: 2px; background: var(--content-divider, #c2d5d1); overflow: hidden; }
.staff-progress i { display: block; height: 100%; width: 100%; background: var(--bg-accent); transform: scaleX(0); transform-origin: left; }
.staff-progress.is-run i { animation: staff-progress 7s linear forwards; }
@keyframes staff-progress { to { transform: scaleX(1); } }
.staff-voices { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.staff-voice { position: relative; padding: 6px 0; border: 0; background: none; font-family: var(--font-body); font-size: 16px; color: var(--text-body); opacity: 0.6; cursor: pointer; transition: opacity 0.2s ease; }
.staff-voice::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.staff-voice:hover { opacity: 1; }
.staff-voice[aria-pressed="true"] { opacity: 1; font-weight: 600; color: var(--text-heading); }
.staff-voice[aria-pressed="true"]::after { transform: scaleX(1); }
.staff-stage.is-empty .staff-quote-foot, .staff-stage.is-empty .staff-progress, .staff-stage.is-empty .staff-voices, .staff-stage.is-empty .staff-quote-q { display: none; }
.staff-stage.is-empty .staff-quote-text { min-height: 0; font-size: 24px; }
@media (prefers-color-scheme: dark) {
  body .staff-quote { background: #08312a; }
  body .staff-quote-q { color: #8fe0c6; filter: none; }
  body .staff-quote::before { color: #8fe0c6; }
  body .staff-progress i, body .staff-voice::after { background: #8fe0c6; }
  body .staff-progress, body .staff-quote-foot { border-color: rgba(194, 213, 209, 0.25); }
  body .staff-progress { background: rgba(194, 213, 209, 0.25); }
}
@media (max-width: 1024px) {
  .staff-quote { padding: 40px 32px 32px; }
  .staff-quote-text { font-size: 28px; min-height: 5.4em; }
}
@media (max-width: 640px) {
  html body .staff-stage { gap: 20px; }
  html body .staff-quote { padding: 28px 20px 20px; border-radius: 16px; gap: 12px; }
  html body .staff-quote::before { font-size: 120px; top: 8px; right: 16px; }
  html body .staff-quote-q { font-size: 12px; padding-right: 48px; }
  html body .staff-quote-text { font-size: 20px; min-height: 7.5em; }
  html body .staff-quote-foot { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 16px; margin-top: 4px; }
  html body .staff-quote-name { font-size: 16px; }
  html body .staff-quote-meta { font-size: 13px; }
  html body .staff-progress { margin-top: -8px; }
  html body .staff-voices { flex-wrap: nowrap; overflow-x: auto; gap: 20px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  html body .staff-voices::-webkit-scrollbar { display: none; }
  html body .staff-voice { flex: none; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .staff-quote.is-in .staff-word, .staff-quote.is-in .staff-quote-q, .staff-quote.is-in .staff-quote-foot { animation: none; }
  .staff-progress { display: none; }
}

/* Our People on smaller desktops: the three cards shrink to fit instead of the third one running off the edge */
@media (min-width: 1025px) {
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people-grid > .person { height: auto; aspect-ratio: 380 / 447; max-height: 447px; }
}

/* staff-story pop-up: no picture panel, the interview takes the full width */
.person-modal.is-staff .person-photo { display: none; }
@media (min-width: 1025px) { .person-modal.is-staff .person-body { padding-left: 56px; padding-right: 56px; } }

/* staff stories on phones: arrows sit beside the country dropdown (nothing rotates on its own) */
@media (max-width: 640px) {
  html body .staff-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  html body .staff-nav { display: flex; gap: 8px; }
  html body .staff-nav button, html body .staff-nav button img { width: 40px; height: 40px; }
}

/* ---------- staff stories: 3 quote cards per row (2 on tablet, 1 + a peek on phones) ---------- */
.staff-stage { flex-direction: row; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; }
.staff-stage::-webkit-scrollbar { display: none; }
.staff-stage > .staff-quote { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; padding: 40px 32px 32px; gap: 24px; justify-content: space-between; min-height: 380px; }
.staff-stage > .staff-quote::before { font-size: 120px; top: 14px; right: 24px; }
.staff-stage .staff-quote-text { min-height: 0; max-width: none; font-size: 22px; line-height: 1.4; padding-top: 44px; }
.staff-stage .staff-quote-foot { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 0; }
.staff-stage .staff-quote-name { font-size: 18px; }
.staff-stage > .staff-empty { flex: 1 0 100%; }
.staff-nav button:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 1024px) {
  .staff-stage > .staff-quote { flex-basis: calc((100% - 24px) / 2); min-height: 340px; }
  .staff-stage .staff-quote-text { font-size: 20px; min-height: 0; }
}
@media (max-width: 640px) {
  html body .staff-stage { flex-direction: row; gap: 16px; width: auto; margin: 0; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
  html body .staff-stage > .staff-quote { flex: 0 0 84%; min-height: 320px; padding: 28px 20px 20px; gap: 20px; }
  html body .staff-stage > .staff-quote::before { font-size: 96px; top: 8px; right: 16px; }
  html body .staff-stage .staff-quote-text { font-size: 18px; min-height: 0; padding-top: 36px; }
  html body .staff-stage .staff-quote-foot { gap: 16px; padding-top: 16px; }
}

/* staff stories: 2 cards per row on desktop and tablet */
@media (min-width: 641px) {
  .staff-stage > .staff-quote { flex-basis: calc((100% - 24px) / 2); min-height: 340px; }
}
@media (min-width: 1025px) {
  .staff-stage > .staff-quote { padding: 48px 40px 40px; }
  .staff-stage .staff-quote-text { font-size: 26px; }
  .staff-stage .staff-quote-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .staff-stage > .staff-quote { padding: 40px 32px 32px; }
  .staff-stage .staff-quote-text { font-size: 22px; }
  .staff-stage .staff-quote-foot { flex-direction: column; align-items: flex-start; }
}

/* staff cards: the open-quote mark sits top left, on the text's left edge */
.staff-stage > .staff-quote::before { right: auto; left: 40px; }
@media (max-width: 1279px) { .staff-stage > .staff-quote::before { left: 32px; } }
@media (max-width: 640px) { html body .staff-stage > .staff-quote::before { right: auto; left: 20px; } }

/* Our People between phone and tablet width (641–767px): still a swipeable row with dots */
@media (min-width: 641px) and (max-width: 767px) {
  html body .people-grid.m-carousel {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 16px;
    width: auto; max-width: none; align-self: stretch;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  html body .people-grid.m-carousel::-webkit-scrollbar { display: none; }
  html body .people-grid.m-carousel > * { flex: 0 0 300px; width: auto; height: 400px; scroll-snap-align: start; margin: 0; }
  html body .people-body { align-items: stretch; }
  html body .people-grid.m-carousel + .m-dots { display: flex; justify-content: center; gap: 8px; }
  html body .people-grid.m-carousel + .m-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: currentColor; opacity: 0.25; transition: width 0.25s ease, opacity 0.25s ease; }
  html body .people-grid.m-carousel + .m-dots button.is-active { width: 22px; opacity: 0.9; }
}

/* staff stories on phones: narrower cards so about half of the next one shows */
@media (max-width: 640px) {
  html body .staff-stage > .staff-quote { flex: 0 0 66%; padding: 24px 16px 16px; }
  html body .staff-stage > .staff-quote::before { left: 16px; font-size: 80px; }
  html body .staff-stage .staff-quote-text { font-size: 16px; line-height: 1.45; padding-top: 32px; }
  html body .staff-stage .staff-quote-read { padding-inline: 16px; }
}

/* profile pop-up: name / designation / designatory titles on three rows */
.person-titles { color: #6c6c6c; margin-top: 2px; }
.person-titles[hidden] { display: none; }

/* profile pop-up: designation and designatory titles sit tight together */
.person-id .person-titles { margin-top: -6px; }
/* staff stories (desktop): cards hug their quote instead of a tall fixed height */
@media (min-width: 641px) {
  .staff-stage > .staff-quote { min-height: 0; gap: 20px; padding: 32px 32px 28px; }
  .staff-stage .staff-quote-text { padding-top: 32px; }
  .staff-stage > .staff-quote::before { font-size: 96px; top: 10px; }
  .staff { gap: 32px; }
}

/* pop-up: stories spaced 40px apart; no gap inside the top block */
html body .person-modal .person-story { margin-top: 40px; }
html body .person-modal .person-story:first-child { margin-top: 0; }
html body .person-top { gap: 0; }
html body .person-top .person-rule { margin: 24px 0; }

/* careers: a simple call to action that closes the staff stories section */
.staff-join {
  width: min(1204px, calc(100% - 2 * var(--gutter))); margin: 8px auto 0; padding-top: 32px;
  border-top: 1px solid var(--content-divider, #c2d5d1);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.staff-join-text { display: flex; flex-direction: column; gap: 4px; }
.staff-join-text h3 { color: var(--text-heading); }
.staff-join .btn { flex: none; }
@media (prefers-color-scheme: dark) { .staff-join { border-top-color: rgba(194, 213, 209, 0.25); } }
@media (max-width: 640px) { .staff-join { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; } }

/* careers card (Oct 2026): green wave card with a large headline, button on the right */
html body .staff-join {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 24px auto 0; padding: 72px 64px 104px; border: 0; border-radius: 24px;
  align-items: flex-start; gap: 40px;
  background: #064a3d url("../img/shared/mission-bg.webp") 50% 8% / cover no-repeat;
}
html body .staff-join-text { gap: 20px; max-width: 760px; }
html body .staff-join-text h3 {
  margin: 0; color: #ffffff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
}
html body .staff-join-text p { color: rgba(255, 255, 255, 0.9); font-size: 18px; }
html body .staff-join .btn { margin-top: 8px; }
@media (max-width: 1024px) { html body .staff-join { padding: 56px 40px 88px; } }
@media (max-width: 640px) {
  html body .staff-join { flex-direction: column; padding: 40px 24px 72px; border-radius: 16px; gap: 24px; }
  html body .staff-join-text h3 { font-size: 34px; }
  html body .staff-join-text p { font-size: 16px; }
}
/* careers card: compact — subheading-size title, slimmer padding */
html body .staff-join { padding: 40px 48px; align-items: center; }
html body .staff-join-text { gap: 6px; }
html body .staff-join-text h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
html body .staff-join-text p { font-size: 17px; }
html body .staff-join .btn { margin-top: 0; }
@media (max-width: 1024px) { html body .staff-join { padding: 36px 32px; } }
@media (max-width: 640px) {
  html body .staff-join { padding: 28px 24px; align-items: flex-start; gap: 20px; }
  html body .staff-join-text h3 { font-size: 22px; }
  html body .staff-join-text p { font-size: 15px; }
}
/* space between the careers card and the "Ready to grow" band: 20% less
   (the gap is staff bottom padding + CTA top padding; staff side trimmed) */
html body section.staff { padding-bottom: 80px; }
@media (max-width: 1024px) { html body section.staff { padding-bottom: 48px; } }
@media (max-width: 640px) { html body section.staff { padding-bottom: 38px; } }

/* phones: dedicated portrait team photo (921×1708). The team sits in the middle third of the
   photo, so it is slid up to end just above the headline (which starts 413px down, like every
   photo hero); its carpet fades into the banner colour. */
@media (max-width: 640px) {
  html body .about-hero { background: rgb(var(--seam)); }
  html body .about-hero::before {
    inset: 0 0 auto 0; top: calc(405px - 120vw); height: 185.45vw;
    background:
      linear-gradient(180deg, rgba(var(--seam), 0) 58%, rgba(var(--seam), 0.88) 78%, rgb(var(--seam)) 100%),
      url("../img/about/about-hero-mobile.jpg?v=2") center top / 100% auto no-repeat;
  }
  /* optimised photo when the page provides it (see .hero[style*="--hero-bg"] in style.css) */
  html body .hero.about-hero[style*="--hero-bg-mobile"]::before {
    background-image:
      linear-gradient(180deg, rgba(var(--seam), 0) 58%, rgba(var(--seam), 0.88) 78%, rgb(var(--seam)) 100%),
      image-set(var(--hero-bg-mobile) 1x, var(--hero-bg-mobile-2x, var(--hero-bg-mobile)) 2x);
  }
  html body .about-hero::after {
    background:
      linear-gradient(180deg, rgba(11, 85, 71, 0.4) 0%, rgba(11, 85, 71, 0) 14%),
      linear-gradient(180deg, rgba(var(--seam), 0) 55%, rgba(var(--seam), 0.6) 75%, rgb(var(--seam)) 100%);
  }
}
@media (max-width: 640px) { html body .about-hero::before { top: calc(var(--hero-h1-top, 413px) - 8px - 120vw); } }
@media (max-width: 640px) { html body .about-hero::before { top: min(0px, calc(var(--hero-h1-top, 413px) - 8px - 120vw)); } }
@media (max-width: 640px) {
  html body .about-hero { --hero-content-h: 210px; }
  html body .about-hero::before { top: min(0px, calc(100svh - 48px - var(--hero-content-h) - 120vw)); }
}

/* Value now has its own photo (about-value.jpg): fill the frame like mission/vision instead of the old zoomed crop of the mission photo */
html body .mvv-bg-2 { inset: 0; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.mvv-bgs picture { display: contents; }
@media (max-width: 640px) { html body .mvv-bg-0, html body .mvv-bg-2 { inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none; } }
