/* ============================================================================
   Who we are page
   ---------------------------------------------------------------------------
   Five sections built on the shared tokens and the product pages' hero shape.

   SCOPING. A page stylesheet is global once bundled, so every rule that touches
   a shared `.sc-` class is scoped by this page's own id or by a `who-` class.
   A bare `.sc-hero__title { ... }` here would reach seven other pages.
   ========================================================================= */

.who-why, .who-team, .who-work, .who-close {
  position: relative;
  overflow: hidden;
  background: var(--blue-50);
}
/* The closing panel is itself blue-50, so its section has to be white or the
   panel disappears into the band behind it. */
.who-team, .who-close { background: var(--white); }

/* `.section--flow + .section--flow` zeroes the top padding so consecutive
   bands read as one field. These are distinct bands, so each keeps its own —
   three classes to clear that rule's specificity. */
.who-why.section.section--flow,
.who-team.section.section--flow,
.who-work.section.section--flow,
.who-close.section.section--flow { padding-top: var(--section-y); }

/* --- 1. Hero ---------------------------------------------------------------- */

#top.who-hero .sc-hero__title { max-width: 20ch; }
#top.who-hero .sc-hero__lead { margin-top: 1rem; font-size: var(--fs-md); }
#top.who-hero .sc-hero__lead:first-of-type { margin-top: 1.35rem; }
/* The guide sets both halves of the headline in one tone, so the second line
   is a line break rather than a colour change. */
.who-hero__accent { display: block; color: inherit; }

.who-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--e-3);
}
.who-hero__line {
  margin: clamp(1.1rem, 0.9rem + 0.7vw, 1.6rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-900);
}
.who-hero__marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 0.9rem + 2vw, 2.75rem);
  margin: clamp(0.9rem, 0.75rem + 0.6vw, 1.35rem) 0 0;
  padding: 0;
  list-style: none;
}
.who-hero__marks li {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.who-hero__marks img { width: 3.5rem; height: 3.5rem; }

/* --- 2. Why SmartRoots ------------------------------------------------------ */

.who-why__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  align-items: start;
}
.who-why__grid > * { min-width: 0; }
@media (min-width: 980px) {
  .who-why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.who-why__title { margin: 1.1rem 0 0; max-width: 21ch; }
.who-why__p {
  margin: 1.1rem 0 0;
  max-width: 54ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

.who-why__list {
  display: grid;
  gap: clamp(0.85rem, 0.7rem + 0.7vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.who-why__card {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.9rem, 0.75rem + 0.6vw, 1.35rem);
  min-width: 0;
  padding: clamp(1.15rem, 0.95rem + 0.8vw, 1.7rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border), var(--e-1);
  transition: box-shadow var(--d-base) var(--ease-out-soft),
              transform var(--d-base) var(--ease-out-soft);
}
.who-why__card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--blue-300), var(--e-2);
}
.who-why__icon { flex: none; width: 4rem; height: 4rem; }
.who-why__text { min-width: 0; }
.who-why__k {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
}
.who-why__d {
  margin: 0.55rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Shared section head ----------------------------------------------------- */

.who-head {
  max-width: 52rem;
  margin: 0 auto clamp(2.25rem, 1.7rem + 2.5vw, 3.5rem);
  text-align: center;
}
.who-head__title { margin: 0; }
/* The yellow rule the guide sets under each centred headline. */
.who-head__title::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: var(--r-pill);
  background: var(--yellow-400);
}
.who-head__intro {
  margin: 1.1rem 0 0;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- 3. The people ----------------------------------------------------------- */

.who-leaders {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  /* Held in from the full width: with no portraits or biographies yet, three
     name plates stretched across 1440px read as cards that failed to load. */
  max-width: 62rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .who-leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.who-leader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border), var(--e-1);
}

/* The portrait sits in a 4:3 frame whether it is a photograph or the frame
   held for one, so a card does not change height when the real image lands. */
.who-leader__portrait,
.who-leader__frame {
  width: 100%;
  margin: 0 0 1.05rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}
.who-leader__portrait { height: auto; object-fit: cover; }
.who-leader__frame {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  background: linear-gradient(165deg, var(--blue-100) 0%, var(--blue-200) 100%);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  color: color-mix(in srgb, var(--text-secondary) 88%, transparent);
}
.who-leader__frame svg { color: var(--blue-500); opacity: .72; }
.who-leader__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  font-weight: 700;
  color: var(--ink-900);
}
.who-leader__role {
  margin: 0.3rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-600);
}
.who-leader__bio {
  margin: 0.6rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
/* The line standing in for a biography reads a shade lighter than a real one,
   so the card tells you at a glance which cards are still waiting. */
.who-leader__bio.is-pending { color: color-mix(in srgb, var(--text-secondary) 82%, transparent); }

.who-leader__in {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.38rem 0.8rem 0.38rem 0.4rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
}
.who-leader__inMark {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--r-sm);
  background: var(--blue-500);
  color: var(--white);
}
a.who-leader__in:hover { box-shadow: inset 0 0 0 1px var(--blue-400); }
/* Not a link yet, so it must not look clickable. */
.who-leader__in.is-pending { cursor: default; }

.who-team__sub {
  max-width: 54rem;
  margin: clamp(2.75rem, 2rem + 3vw, 4.5rem) auto clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  text-align: center;
}
.who-team__subTitle { margin: 0; }
.who-team__subTitle::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 4px;
  margin: 0.8rem auto 0;
  border-radius: var(--r-pill);
  background: var(--yellow-400);
}
.who-team__subP {
  margin: 1rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

.who-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: clamp(0.7rem, 0.6rem + 0.5vw, 1rem);
  max-width: 62rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.who-cap {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: clamp(0.95rem, 0.8rem + 0.6vw, 1.35rem) 0.75rem;
  border-radius: var(--r-xl);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--ink-900);
}
.who-cap img { width: 3.5rem; height: 3.5rem; }

/* --- 4. Relationships -------------------------------------------------------- */

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

.who-projects {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 880px) { .who-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.who-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  --who-pad: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  padding: var(--who-pad);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border), var(--e-1);
}
.who-project__shot { margin: calc(var(--who-pad) * -1) calc(var(--who-pad) * -1) var(--who-pad); }
.who-project__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.who-project__head { display: flex; align-items: center; gap: 0.75rem; }
.who-project__mark { flex: none; width: 3.25rem; height: 3.25rem; }
.who-project__id { min-width: 0; }
.who-project__k {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
}
/* The guide sets a figure over two of the three cards. It describes the
   relationship, so it is stated beside the words that qualify it — never
   alone, and never as a company-wide statistic. */
.who-project__stat {
  margin: 0.2rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-600);
}
.who-project__stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.who-project__badge {
  width: max-content;
  margin: 0.4rem 0 0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--yellow-300);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #5A4A05;
}
.who-project__d {
  margin: 0.85rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
.who-project__link,
.who-work__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 3px;
}
.who-project__link { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; }
.who-project__link:hover,
.who-work__link:hover { text-decoration-color: currentColor; }

.who-work__band {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) 0 0;
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem) clamp(1rem, 0.8rem + 1vw, 2rem);
  border-radius: var(--r-2xl);
  background: var(--blue-100);
  text-align: center;
}
.who-work__line {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
}
.who-work__ref {
  display: grid;
  gap: 0.15rem;
  margin: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
}

/* --- 5. Closing --------------------------------------------------------------- */

.who-close__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.25rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  border-radius: var(--r-2xl);
  background: var(--blue-50);
  text-align: center;
}
.who-close__mark { width: clamp(4.5rem, 4rem + 2vw, 6.5rem); height: auto; }
.who-close__title {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  max-width: 18ch;
}
.who-close__body {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  max-width: 54ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-secondary);
}
.who-close__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
@media (prefers-reduced-motion: reduce) {
  .who-why__card, .who-why__card:hover { transition: none; transform: none; }
}
