/*
 * The About page (card 27): hero, our values, by the numbers, the team, founding story,
 * careers, where we operate, latest news (the contact block: contact.css; the shared
 * patterns: sections.css). Figma V12, desktop 3596:13983 (1512) and mobile 3596:33631 (390).
 * Widths: mobile under 768 px, tablet 768 to 1279 px (PM layout), desktop from 1280 px, as
 * drawn. Every value comes from tokens.css. Nothing moves on this page.
 */

.page--about {
  padding-top: 0;
}

/* --- 01 Hero ------------------------------------------------------------------------------ */

.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  padding: 104px 0 96px;
  background: var(--color-white);
}

.about-hero__photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

/* Mobile: the photo drawn 1473 x 982, 618 cut on the left (Figma 3596:33634). */
.about-hero__photo img {
  width: 1473px;
  max-width: none;
  height: 982px;
  transform: translateX(-618px);
}

.about-hero__photo::before,
.about-hero__photo::after {
  content: "";
  position: absolute;
  z-index: 1; /* above the photo, moved with a transform on mobile */
  inset: 0;
}

.about-hero__photo::before {
  background: var(--gradient-solution-hero-mobile), var(--gradient-solution-hero-soft-mobile);
}

.about-hero__photo::after {
  inset: auto 0 0;
  height: 41px;
  background: var(--gradient-white-fade);
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.about-hero__eyebrow {
  color: var(--color-navy-900);
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--text-eyebrow-tracking);
  text-transform: uppercase;
}

.about-hero__title {
  color: var(--color-navy-900);
  font-size: var(--text-hero-size);
  line-height: var(--text-hero-line);
  font-weight: var(--weight-bold);
}

.about-hero__accent {
  color: var(--color-teal-400);
}

.about-hero__subtitle {
  color: var(--color-hero-subtitle);
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-line);
}

.about-hero__button {
  width: 100%;
  margin-top: var(--space-8);
}

/* --- 02 Our values ------------------------------------------------------------------------ */

.values {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.values__columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  margin-top: var(--space-40);
}

.values__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 350 / 262;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.values__list {
  display: grid;
  gap: var(--space-40);
}

.value {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  border-top: 2px solid var(--color-teal-400);
  padding-top: var(--space-16);
}

.value__number {
  color: var(--color-teal-700);
  font-size: var(--text-metric-size);
  line-height: var(--text-metric-line);
  font-weight: var(--weight-bold);
}

.value__title {
  color: var(--color-petrol-900);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-bold);
}

.value__text {
  color: var(--color-slate-500);
  font-size: 16px;
  line-height: var(--text-body-line);
}

/* --- 03 By the numbers -------------------------------------------------------------------- */

.numbers {
  padding: var(--space-64) 0;
}

.numbers__contour {
  top: 12px;
  left: -331.5px;
}

.numbers__cards {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-40);
}

.number-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-24);
  padding: var(--space-40);
  border-radius: var(--radius-card);
  background: var(--color-teal-400);
  color: var(--color-navy-900);
}

.number-card--2 {
  background: var(--color-white);
}

.number-card--3 {
  background: var(--color-navy-800);
  color: var(--color-white);
}

.number-card__figure {
  display: flex;
  flex-direction: column;
  font-weight: var(--weight-bold);
}

.number-card__value {
  font-size: var(--text-metric-hero-size);
  line-height: var(--text-metric-hero-line);
  white-space: nowrap;
}

.number-card__unit {
  font-size: var(--text-display-size);
  line-height: 38px;
}

.number-card__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.number-card--2 .number-card__text {
  color: var(--color-slate-500);
}

/* --- 04 Team ------------------------------------------------------------------------------ */

.team {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.team__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  text-align: center;
}

.team__heading .eyebrow {
  color: var(--color-teal-400);
}

.team__heading .t-h2 {
  color: var(--color-petrol-900);
}

.team__lead {
  max-width: 720px;
  color: var(--color-slate-500);
}

.team__button {
  width: 100%;
  margin-top: var(--space-8);
}

/* Columns: 2 on mobile, 3 from 768 px, 4 from 1024 px (the Figma desktop grid). */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-40) var(--space-16);
  margin-top: var(--space-40);
}

.member__tile {
  aspect-ratio: 282 / 300;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gradient-team-tile);
}

.member__tile img {
  width: 100%;
  height: 100%;
}

.member__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: var(--space-16) 0 var(--space-8);
}

.member__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member__name {
  color: var(--color-navy-900);
  font-size: var(--text-body-lg-size);
  line-height: 21px;
  font-weight: var(--weight-semibold);
}

.member__role {
  color: var(--color-navy-65);
  font-size: 14px;
  line-height: 18px;
}

/* The icon is 24 px; the link around it a 44 px target under 1280 px. */
.member__linkedin {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  margin: -10px -10px 0 0;
  border-radius: var(--space-8);
  color: var(--color-teal-400);
}

.icon-linkedin {
  display: block;
  width: 24px;
  height: 24px;
}

.team__join {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-24);
  grid-column: 1 / -1;
  min-height: 240px;
  padding: var(--space-40);
  overflow: hidden;
  border-radius: 20px;
}

.team__join::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--gradient-team-join);
}

.team__join-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__join-title {
  color: var(--color-white);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
}

/* --- 05 Founding story -------------------------------------------------------------------- */

.story {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.story__columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: var(--space-32);
  color: var(--color-slate-500);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line);
}

.story__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 588 / 380;
  border-radius: var(--radius-card);
  object-fit: cover;
  object-position: 65% center;
}

/* --- 06 Careers --------------------------------------------------------------------------- */

.careers {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.careers__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.careers__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.careers__filters[hidden] {
  display: none;
}

/* A chip 36 high in a 44 px target under 1280 px (Figma "tap area 44"). */
.careers__filter {
  position: relative;
  isolation: isolate;
  min-height: var(--touch-target);
  padding: 0 var(--space-16);
  color: var(--color-petrol-900);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--weight-medium);
}

.careers__filter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border-radius: var(--radius-round);
  background: var(--color-grey-100);
}

.careers__filter[aria-pressed="true"] {
  color: var(--color-white);
}

.careers__filter[aria-pressed="true"]::before {
  background: var(--color-petrol-900);
}

/* Card 46, Chip (482:95): on hover the fill --color-action-secondary-hover and a
   --color-border-strong stroke; chosen, the fill --color-action-selected-hover. The stroke is there from the start, transparent, so nothing moves. Hover only where
   the device hovers; 150 ms, ease, nothing moves with reduced motion. */
.careers__filter::before {
  border: 1px solid transparent;
}

@media (prefers-reduced-motion: no-preference) {
  :root[data-states-ready] .careers__filter::before {
    transition:
      background-color var(--state-duration) var(--state-easing),
      border-color var(--state-duration) var(--state-easing);
  }
}

@media (hover: hover) {
  .careers__filter:hover::before {
    border-color: var(--color-border-strong);
    background: var(--color-action-secondary-hover);
  }

  .careers__filter[aria-pressed="true"]:hover::before {
    background: var(--color-action-selected-hover);
  }
}

.careers__roles {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.role[hidden] {
  display: none;
}

.role__link {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-24);
  border: 1px solid var(--color-grey-150);
  border-radius: var(--space-16);
  background: var(--color-white);
  color: var(--color-petrol-900);
}

@media (hover: hover) {
  .role__link:hover {
    border-color: var(--color-teal-400);
  }
}

.role__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
}

.role__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
}

.role__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.role__chip {
  padding: 6px var(--space-12);
  border-radius: var(--radius-round);
  background: var(--color-grey-100);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--weight-medium);
}

.icon-open {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

/* "See all roles": the secondary button as drawn (white, navy stroke). */
.careers__all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--button-height);
  margin-top: var(--space-24);
  padding: 0 var(--space-24);
  border: 1px solid var(--color-navy-900);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-petrol-900);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* --- 07 Where we operate: a still picture with its markers -------------------------------- */

.where {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-64);
  background: var(--color-navy-900);
  color: var(--color-white);
}

.where__map {
  position: relative;
  height: 420px;
  margin-top: var(--space-32);
  overflow: hidden;
}

/* Mobile: the picture at 0.7, its markers' part in the frame (Figma 3596:33980). */
.where__map img {
  position: absolute;
  top: -105px;
  left: calc(50% - 692.7px);
  width: 1058.4px;
  max-width: none;
  height: auto;
}

/* --- 08 Latest news ----------------------------------------------------------------------- */

.news {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.news__cards {
  display: grid;
  gap: var(--space-40);
  margin-top: var(--space-40);
}

/* --- Tablet: 768 to 1279 px (PM layout) ------------------------------------------------- */

@media (min-width: 768px) {
  .about-hero {
    padding: 120px 0 var(--space-80);
  }

  .about-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    transform: none;
  }

  .about-hero__photo::before {
    background: var(--gradient-solution-hero-desktop), var(--gradient-solution-hero-soft-desktop);
  }

  /* The copy stays on the white part of the desktop gradient (white to 56 %). */
  .about-hero__copy {
    max-width: 56%;
  }

  .about-hero__button {
    width: 200px;
  }

  .values,
  .numbers,
  .team,
  .story,
  .careers,
  .news {
    padding: var(--space-80) 0;
  }

  .values__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-40) var(--space-24);
  }

  .numbers__contour {
    top: -150px;
    left: calc(50% - 756px);
  }

  .numbers__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-16);
  }

  .number-card {
    padding: var(--space-32) var(--space-24);
  }

  /* Three cards side by side: the figure at the metric size until 1280 px. */
  .number-card__value {
    font-size: var(--text-metric-xl-size);
    line-height: var(--text-metric-xl-line);
  }

  .number-card__unit {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line);
  }

  .team__button {
    width: auto;
  }

  .team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-40) var(--space-24);
  }

  .careers__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .careers__filters {
    flex-wrap: nowrap;
  }

  .role__link {
    padding: var(--space-24) var(--space-32);
  }

  .careers__all {
    width: max-content;
    margin: var(--space-40) auto 0;
  }

  .where__map {
    height: 520px;
  }

  .where__map img {
    top: -76px;
    left: calc(50% - 837px);
    width: 1285px;
  }

  .news__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
  }
}

@media (min-width: 1024px) {
  /* Card 43: the three news cards in one row from 1024 px, as the News page's cards (cards.css);
     from 768 to 1023, two then one. */
  .news__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The picture at full size, centred on the markers: it covers the frame up to 1279 px. */
  .where__map img {
    top: -135px;
    left: max(50% - 985px, 100% - 1512px); /* never short of the right edge */
    width: 1512px;
  }

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

  .team__join {
    grid-column: span 3;
  }

  .values__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-24);
  }

  .values__photo img {
    height: 100%;
    aspect-ratio: auto;
  }

  .story__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-24);
  }
}

/* --- Desktop: from 1280 px, as drawn at 1512 ------------------------------------------- */

@media (min-width: 1280px) {
  .about-hero {
    display: flex;
    flex-direction: column;
    height: 982px;
    padding: 80px 0 0;
  }

  .about-hero__photo img {
    object-position: center;
  }

  .about-hero__photo::after {
    height: 120px;
  }

  .about-hero__body {
    display: flex;
    flex: 1;
    align-items: center;
  }

  .about-hero__copy {
    max-width: none;
    width: 677px;
    gap: var(--space-24);
  }

  .about-hero__subtitle {
    width: 540px;
  }

  .about-hero__button {
    margin-top: 0;
  }

  .values {
    padding: 48px 0 120px;
  }

  .values__columns {
    grid-template-columns: 588px 1fr;
    margin-top: var(--space-64);
  }

  .values__photo img {
    height: 440px;
  }

  .values__list {
    grid-template-columns: repeat(2, 282px);
    gap: 48px var(--space-24);
  }

  .value__number {
    font-size: 40px;
    line-height: 44px;
  }

  .value__title {
    font-size: 24px;
    line-height: var(--text-h3-line);
  }

  .numbers,
  .team,
  .story,
  .careers,
  .news {
    padding: 120px 0;
  }

  .numbers__cards {
    gap: var(--space-24);
    margin-top: 56px;
  }

  .number-card {
    height: 320px;
    padding: var(--space-40);
  }

  .number-card__value {
    font-size: var(--text-metric-hero-size);
    line-height: var(--text-metric-hero-line);
  }

  .number-card__unit {
    font-size: var(--text-metric-size);
    line-height: var(--text-metric-line);
  }

  .team__grid {
    grid-template-columns: repeat(4, 282px);
    margin-top: 56px;
  }

  .team__join {
    min-height: 300px;
  }

  .member__row {
    align-items: center;
    padding: var(--space-16) 0 var(--space-8);
  }

  .member__text {
    width: 230px;
  }

  .member__role {
    min-height: 36px;
  }

  /* From 1280 px the icon is drawn alone, 24 px (touch targets of 44 apply under 1280). */
  .member__linkedin {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .story__columns {
    grid-template-columns: 588px 588px;
  }

  .careers__top {
    align-items: flex-end;
  }

  .careers__filter {
    min-height: 36px;
  }

  .careers__filter::before {
    inset: 0;
  }

  .careers__roles {
    margin-top: 56px;
  }

  .where {
    height: 860px;
    padding-top: 80px;
  }

  .where__heading {
    position: relative;
    z-index: 1;
  }

  .where__heading .section-heading {
    width: 577px;
  }

  .where__map {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
  }

  .where__map img {
    top: 0;
    left: 50%;
    width: max(1512px, 100%); /* as drawn at 1512; wider screens: the picture grows */
    transform: translateX(-50%);
  }

  .news__cards {
    grid-template-columns: repeat(3, 384px);
    margin-top: 56px;
  }

}

/* --- Card 36: German ---------------------------------------------------------------------- */

/* "2,5 Mio." is 3.43 em wide: at the drawn size it is wider than its card at 768 px and from
   1280 px (304 px of room for 411 px). In German only, the figures take at most the card's width
   (28 % of it per em); elsewhere, and in English and French, they keep the drawn size. */
html:lang(de) .number-card {
  container-type: inline-size;
}

html:lang(de) .number-card__value {
  font-size: min(var(--text-metric-hero-size), 28cqi);
}

@media (min-width: 768px) {
  html:lang(de) .number-card__value {
    font-size: min(var(--text-metric-xl-size), 28cqi);
  }
}

@media (min-width: 1280px) {
  html:lang(de) .number-card__value {
    font-size: min(var(--text-metric-hero-size), 28cqi);
  }
}
