/* Team page only: portraits and contact details, without the old tree. */
.team-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.team-page {
  background:
    radial-gradient(ellipse 70% 480px at 80% 0, rgba(75, 109, 252, .10), transparent 75%),
    var(--bg-deep);
  padding-bottom: 64px;
}

.team-page > .wrap { width: min(1120px, 92vw); }

.team-intro { padding: 66px 0 40px; }
.team-intro h1 {
  font-family: "Montserrat", var(--font);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.team-intro h1 span { color: var(--brand-accent); }
.team-intro p {
  margin-top: 18px;
  color: #b9bdca;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  max-width: 40ch;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 145, 207, .20);
  border-radius: 20px;
  background: linear-gradient(155deg, #151922, #101218 75%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.team-card:focus-within {
  border-color: rgba(75, 109, 252, .65);
  box-shadow: 0 0 32px rgba(75, 109, 252, .10);
}
.team-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid rgba(128, 145, 207, .15);
  background: #11141b;
}
.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.team-portrait--hjalti img { object-position: center 54%; }
.team-info { padding: 25px 26px 23px; }
.team-info h2 {
  font-family: "Montserrat", var(--font);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.team-role {
  color: #a8b8ff;
  margin-top: 6px;
  font-size: .92rem;
  font-weight: 500;
}
.team-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 20px;
}
.team-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(136, 155, 230, .26);
  border-radius: 12px;
  color: #e6ebff;
  background: rgba(75, 109, 252, .08);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.team-social svg { width: 21px; height: 21px; fill: currentColor; }
.team-social:focus-visible,
.team-email:focus-visible,
.team-contact .btn:focus-visible {
  outline: 2px solid #a8b8ff;
  outline-offset: 4px;
}
.team-linkedin-pending { display: flex; align-items: center; gap: 8px; }
.team-social--pending {
  color: #9098ae;
  background: transparent;
  border-color: rgba(136, 155, 230, .12);
}
.team-pending-label { color: #9098ae; font-size: .7rem; }
.team-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding-top: 13px;
  border-top: 1px solid rgba(136, 155, 230, .15);
  color: #c4cadc;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.team-email span { color: #8ba1ff; font-size: 1.1rem; }

.team-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 32px;
  border-top: 1px solid rgba(136, 155, 230, .17);
}
.team-contact h2 {
  font-family: "Montserrat", var(--font);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -.035em;
  font-weight: 650;
}
.team-contact .btn {
  flex-shrink: 0;
  min-height: 48px;
  background: var(--brand-accent);
  color: #fff;
}

@media (hover: hover) {
  .team-card:hover {
    border-color: rgba(75, 109, 252, .50);
    box-shadow: 0 0 32px rgba(75, 109, 252, .08);
  }
  a.team-social:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
  .team-email:hover { color: #fff; }
}

@media (max-width: 980px) {
  .team-grid { gap: 16px; }
  .team-info { padding: 22px 18px 20px; }
}
@media (max-width: 760px) {
  .team-intro { padding: 42px 0 28px; }
  .team-intro p { max-width: 31ch; margin-top: 14px; }
  .team-page > .wrap { width: min(480px, 90vw); }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-info { padding: 24px; }
  .team-info h2 { font-size: 1.7rem; }
  .team-contact { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; padding-top: 26px; }
  .team-page { padding-bottom: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card, .team-social { transition: none; }
}
