@font-face {
  font-family: "Team Mango";
  src: url("/assets/netbuur/fonts/team-mango-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.nt-section {
  padding: clamp(40px, 5vw, 80px) var(--padding-x, 20px) clamp(70px, 7vw, 120px);
  overflow: clip;
  background: var(--fps-paper);
  color: var(--fps-ink);
  scroll-margin-top: 96px;
}

.nt-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.nt-kicker > p {
  margin: 0;
  font: inherit;
}
.nt-kicker-icon {
  width: 1em;
  height: 1em;
}

.nt-board {
  position: relative;
  width: min(100%, 1440px);
  aspect-ratio: 1338 / 748;
  margin: clamp(36px, 5vw, 80px) auto 32px;
  isolation: isolate;
}

.nt-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--fps-ink);
  opacity: 1;
  pointer-events: none;
}

/* Threads generated by team.js: one fine ink line, as in the original. */
.nt-thread {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.nt-headline {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  width: max-content;
  max-width: 62%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: "Team Mango", "Bebas Neue", sans-serif;
  font-size: clamp(70px, 9.375vw, 150px);
  font-weight: 700;
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.nt-people {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nt-person {
  /* Demi-largeur maximale d'une capsule : sert à la garder entière dans le
     plateau, même quand son ancrage (--x) est proche d'un bord. */
  --pill-half: 112px;
  position: absolute;
  left: clamp(var(--pill-half), var(--x), calc(100% - var(--pill-half)));
  width: max-content;
  top: var(--y);
  transform: translate(-50%, -50%);
  translate: var(--dx, 0px) var(--dy, 0px);
  transition: translate var(--motion-duration, 1200ms)
    cubic-bezier(0.333333, 1, 0.666667, 1);
}

.nt-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  /* Jamais plus étroite que son texte : un nom ne doit pas déborder. */
  width: max-content;
  min-height: clamp(48px, 4vw, 60px);
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--fps-ink);
  border-radius: 100px;
  background: var(--fps-paper);
  color: var(--fps-ink);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.nt-avatar {
  flex: none;
  width: clamp(36px, 3.1vw, 46px);
  height: clamp(36px, 3.1vw, 46px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  background: var(--fps-ink);
}

.nt-avatar--initials {
  display: grid;
  place-items: center;
  background: #e8dab1;
  color: var(--fps-ink);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.nt-person-copy {
  display: grid;
  gap: 2px;
}

.nt-name {
  font-family: "Team Mango", "Bebas Neue", sans-serif;
  font-size: clamp(22px, 1.85vw, 30px);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.nt-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.nt-role {
  color: var(--fps-forest);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}
.nt-role::before {
  content: "·";
  margin-right: 5px;
  color: var(--fps-muted);
}

@media (min-width: 1920px) {
  .nt-headline {
    font-size: 150px;
  }
}

@media (max-width: 1023px) {
  .nt-person {
    --pill-half: 92px;
  }
  .nt-pill {
    padding-right: 10px;
    gap: 6px;
  }
  .nt-name {
    font-size: 22px;
  }
  .nt-role {
    font-size: 8px;
  }
  .nt-avatar {
    width: 34px;
    height: 34px;
  }
  .nt-headline {
    font-size: 8.2vw;
  }
}

@media (max-width: 767px) {
  .nt-section {
    padding-block: 48px 64px;
  }
  .nt-board {
    aspect-ratio: auto;
    height: 650px;
    margin-top: 24px;
  }
  .nt-headline {
    top: 46%;
    max-width: 100%;
    font-size: clamp(48px, 15.5vw, 92px);
  }
  .nt-person {
    --pill-half: 88px;
    left: clamp(
      var(--pill-half),
      var(--mobile-x),
      calc(100% - var(--pill-half))
    );
    top: var(--mobile-y);
  }
  .nt-person:nth-child(1) {
    --mobile-x: 66%;
    --mobile-y: 5%;
  }
  .nt-person:nth-child(2) {
    --mobile-x: 30%;
    --mobile-y: 13.5%;
  }
  .nt-person:nth-child(3) {
    --mobile-x: 70%;
    --mobile-y: 22%;
  }
  .nt-person:nth-child(4) {
    --mobile-x: 32%;
    --mobile-y: 30.5%;
  }
  .nt-person:nth-child(5) {
    --mobile-x: 68%;
    --mobile-y: 63%;
  }
  .nt-person:nth-child(6) {
    --mobile-x: 32%;
    --mobile-y: 72%;
  }
  .nt-person:nth-child(7) {
    --mobile-x: 66%;
    --mobile-y: 81%;
  }
  .nt-person:nth-child(8) {
    --mobile-x: 34%;
    --mobile-y: 90%;
  }
  .nt-pill {
    min-height: 46px;
  }
  .nt-name {
    font-size: 23px;
  }
  .nt-role {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nt-person,
  .nt-pill {
    transition: none;
  }
}

.nt-reveal-pending {
  opacity: 0;
}
.nt-lines-pending path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nt-reveal-pending {
    opacity: 1;
  }
  .nt-lines-pending path {
    stroke-dashoffset: 0;
  }
}

/* Hold the whole team composition briefly as the visitor keeps scrolling. */
.nt-section[data-team-pinned] {
  min-height: 200svh;
  padding-block: 0;
}

.nt-section[data-team-pinned] .nt-stage {
  position: sticky;
  top: 80px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: 20px;
  height: calc(100svh - 80px);
  padding-block: 20px 24px;
}

.nt-section[data-team-pinned] .nt-board {
  align-self: center;
  width: min(100%, 1440px, calc((100svh - 190px) * 1338 / 748));
  margin: 0 auto;
  container-type: inline-size;
}

.nt-section[data-team-pinned] .nt-headline {
  font-size: min(9.375vw, 10.42cqw, 150px);
}

/* The standalone About page opens directly on the team below the header. */
main > .nt-section:first-child {
  padding-top: 128px;
}

.nt-position {
  font-family: "Mulish", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .nt-position {
    font-size: 8px;
  }
  .nt-name {
    font-size: 21px;
  }
}
