/* The team wall on the About page (V04, Kevin, 20 Nov 2026: moved from Team). Its rules from
   src/team.css, with the site pages' tokens mapped onto the Next pages' ones. */
.ab-team {
  /* always light, black words, inside the dark page (Kevin, 20 Nov 2026: "version négative") */
  color-scheme: light;
  --color-theme-fg: #181818;
  --color-theme-bg: #f4f4f4;
  --mh-caps: 11px;
  --mh-h2: clamp(28px, 3.05vw, 44px);
  --mh-body: 16px;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}
.ab-team .tm-caps {
  margin: 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.ab-team .tm-h2 {
  margin: 16px 0 0;
  font-size: var(--mh-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}


/* the wall (rules from src/team.css that name .tm-wall) */
.tm-wall-section {
  --tm-pad: max(16px, 4.6vw);
  padding: max(96px, 12svh) var(--tm-pad);
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}
.tm-wall-section .tm-h2 { max-width: 18ch; }
.tm-wall-row {
  display: grid;
  gap: 24px;
  margin-top: max(72px, 9svh);
}
@media (min-width: 48rem) {
  .tm-wall-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
    align-items: start;
  }
  .tm-wall-row > .tm-wall-side { grid-column: 1 / 7; grid-row: 1; }
  .tm-wall { grid-column: 7 / 13; grid-row: 1 / 3; min-height: calc(clamp(180px, 20vw, 290px) * 1.25 + 56px); }
}
.tm-wall-side { margin: 0; color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent); }
.tm-wall { position: relative; }
.tm-wall-names {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--mh-body, 16px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.tm-wall-names li { display: inline; }
.tm-wall-names li:not(:last-child)::after {
  content: " / ";
  color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent);
}
.tm-wall-name {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent);
  font: inherit;
  letter-spacing: inherit;
  cursor: default;
  transition: color 0.3s ease;
}
.tm-wall-name:hover,
.tm-wall-name:focus-visible,
.tm-wall-name.is-on { color: var(--color-theme-fg); outline: none; }
.tm-wall-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(180px, 20vw, 290px);
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.5s var(--ease-reveal);
}
.tm-wall.is-showing .tm-wall-photo {
  opacity: 1;
  transform: translate(-50%, -50%);
}
@media (min-width: 48rem) {
  .tm-wall-photo {
    left: auto;
    right: calc(100% + 20px);
    top: 0;
    transform: scale(0.96);
    transform-origin: right top;
  }
  .tm-wall.is-showing .tm-wall-photo { transform: none; }
  .tm-wall-photo figcaption { align-items: flex-start; }
}
.tm-wall-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
  background: #1c1c1c;
}
.tm-wall-photo figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  color: var(--color-theme-fg);
}
.tm-wall-city { color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent); }
@media (max-width:-1px) {
  .tm-wall-photo { transition: opacity 0.2s ease; }
}
@media (max-width: 63.99rem) {
  .tm-wall-section { padding-bottom: 48px; }
}
