/* Scoped team presentation for the homepage and about page. */
.jj-team-section {
  padding: 76px 0;
  background: #211d23;
  color: #fff9f6;
}
.jj-team-section[id] { scroll-margin-top: 152px; }
.jj-team-heading { max-width: 880px; margin-bottom: 36px; }
.jj-team-eyebrow {
  margin: 0 0 14px;
  color: #f3a6b2;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.jj-team-heading h2 {
  margin: 0 0 18px;
  color: #fff9f6;
  font-size: clamp(2.1rem, 4.1vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.jj-team-heading h2 .serif { color: #f3a6b2; }
.jj-team-heading > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #e6dce1;
  font-size: 1.05rem;
  line-height: 1.65;
}
.jj-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.jj-team-person { min-width: 0; }
.jj-team-photo {
  aspect-ratio: 1 / 1;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 20px;
  background: #443940;
}
.jj-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jj-team-jessica { object-position: 50% 40%; }
.jj-team-nikola { object-position: 50% 50%; }
.jj-team-annika { object-position: 50% 0%; }
/* Show Annika's complete original portrait. Only the outer background is extended. */
.jj-team-photo--annika {
  background: #354136 url('assets/team/annika-walter-background-wide-v1.webp') center / cover no-repeat;
}
.jj-team-photo img.jj-team-annika {
  width: auto;
  max-width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.jj-team-person h3 {
  margin: 0 0 8px;
  color: #fff9f6;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.jj-team-role {
  margin: 0 0 12px;
  color: #f3a6b2;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
}
.jj-team-bio {
  margin: 0;
  color: #e6dce1;
  font-size: .98rem;
  line-height: 1.65;
}
.jj-team-teaser { padding: 0 0 64px; }
.jj-team-teaser-inner {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-block: 32px;
  border-top: 1px solid rgba(17, 16, 20, .18);
  border-bottom: 1px solid rgba(17, 16, 20, .18);
}
.jj-team-avatars { display: flex; align-items: center; padding-left: 0; }
.jj-team-avatars img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 3px solid #f7f2ed;
  border-radius: 50%;
  object-fit: cover;
}
.jj-team-avatars img + img { margin-left: -18px; }
.jj-team-teaser-copy { min-width: 0; }
.jj-team-teaser-copy h2 {
  margin: 0 0 10px;
  color: #211d23;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.jj-team-teaser-copy p {
  max-width: 620px;
  margin: 0;
  color: #59515b;
  font-size: 1rem;
  line-height: 1.6;
}
.jj-team-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #211d23;
  color: #211d23;
  font-weight: 700;
  line-height: 1.3;
}
.jj-team-link:hover { color: #a72c43; border-color: #a72c43; }
.jj-team-link:focus-visible { outline: 2px solid #a72c43; outline-offset: 5px; }
@media (max-width: 900px) {
  .jj-team-grid { gap: 22px; }
  .jj-team-teaser-inner { grid-template-columns: 144px minmax(0, 1fr); gap: 14px 24px; }
  .jj-team-avatars { grid-row: span 2; align-self: start; }
  .jj-team-link { grid-column: 2; }
}
@media (max-width: 700px) {
  .jj-team-section { padding: 54px 0; }
  .jj-team-section[id] { scroll-margin-top: 140px; }
  .jj-team-heading { margin-bottom: 30px; }
  .jj-team-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .jj-team-person {
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .jj-team-photo { aspect-ratio: 4 / 5; margin: 0; border-radius: 14px; }
  .jj-team-person h3 { font-size: 1.25rem; }
  .jj-team-role { font-size: .79rem; margin-bottom: 8px; }
  .jj-team-bio { font-size: .94rem; line-height: 1.55; }
  .jj-team-teaser { padding-bottom: 42px; }
}
@media (max-width: 480px) {
  .jj-team-teaser-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .jj-team-avatars { grid-row: auto; }
  .jj-team-link { grid-column: auto; }
}
