/* Team page (team-page.html). Uses contact.css for the header's back link. */
.team-page { padding: clamp(24px, 6vw, 80px) 0 clamp(56px, 8vw, 120px); }
.team-intro { max-width: 720px; }
.team-title { font: 700 clamp(40px, 5.4vw, 72px)/1.02 var(--font-display); letter-spacing: -.035em; margin: 12px 0 18px; text-wrap: balance; }
.team-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 0; font-weight: 200; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: clamp(36px, 6vw, 72px); }
.person {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 28px); align-content: start;
  padding: clamp(20px, 3vw, 34px); border: 1px solid var(--rule); border-radius: 24px;
  background: #0f1a24d9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px #00000055;
  transition: transform .5s cubic-bezier(.16, .84, .24, 1), border-color .4s ease;
}
.person:hover { transform: translateY(-4px); border-color: #3ba9e055; }

/* the portrait sits inside a slowly turning ring of light, like the one round the house on the homepage */
.portrait { position: relative; width: clamp(140px, 15vw, 196px); aspect-ratio: 1; flex: none; }
.portrait img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; object-fit: cover; }
.portrait-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), #3ba9e0 0deg, #3ba9e033 90deg, #3ba9e010 180deg, #3ba9e033 270deg, #3ba9e0 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 10px #3ba9e088);
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.person-role { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sano); font-weight: 500; }
.person h2 { font: 700 clamp(26px, 2.4vw, 34px)/1.08 var(--font-display); letter-spacing: -.025em; margin: 6px 0 10px; }
.person h2 span { color: var(--ink-3); font-weight: 400; }
.person-line { margin: 0 0 16px; max-width: 46ch; font-size: 17px; color: var(--ink-2); line-height: 1.5; font-weight: 200; }
.person-cv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.person-cv li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.person-cv li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--sano); }

.team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(36px, 6vw, 72px) 0 0; border-top: 1px solid var(--rule); }
.team-stats > div { padding: 22px 20px 4px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.team-stats dt { color: var(--ink-3); font-size: 14px; }
.team-stats dd { margin: 0; font: 700 clamp(36px, 4vw, 56px)/1 var(--font-display); letter-spacing: -.03em; }
.team-stats dd.word { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; padding-top: .35em; }

.team-cta { margin-top: clamp(44px, 7vw, 88px); padding: clamp(24px, 4vw, 44px); border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, #3ba9e02e, transparent 60%), #0f1a24cc; border: 1px solid var(--rule); }
.team-cta h2 { font: 700 clamp(28px, 3.2vw, 42px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 0 0 10px; }
.team-cta p { margin: 0 0 22px; color: var(--ink-2); font-weight: 200; }
.team-cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.team-ask { color: var(--ink-2); font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.team-ask:hover { color: var(--ink); }

@media (max-width: 980px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .team-stats { grid-template-columns: minmax(0, 1fr); }
  .team-stats > div { border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-ring { animation: team-turn 9s linear infinite; }
  .team-intro, .person, .team-stats, .team-cta { animation: m-rise .95s cubic-bezier(.16, .84, .24, 1) backwards; }
  .person:nth-child(1) { animation-delay: .12s; } .person:nth-child(2) { animation-delay: .24s; }
  .team-stats { animation-delay: .36s; } .team-cta { animation-delay: .46s; }
}
@keyframes team-turn { to { --a: -360deg; } }
