/* Team member profile page (/team/<slug>). Built on case-study.css: the same
   white ground, Inter set light and tight, purple only for the label, lead
   and links. The opening pairs an upright portrait with the name; below it
   the biography sits in the case-study reading column. */
.tp .cs-back { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }

/* Opening: portrait left, name and introduction right */
.tp-head { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.tp-portrait { margin: 0; }
.tp-portrait img { aspect-ratio: 4 / 5; height: auto !important; }
.tp-intro { padding-bottom: .4rem; }
.tp-intro .cs-label { margin: 0; }
.tp-intro h1 { margin: 1rem 0 0; color: var(--cs-ink); font-size: clamp(2.5rem, 4.6vw, 4.1rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.tp-lead { max-width: 34rem; margin: 1.5rem 0 0; color: var(--cs-purple); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; line-height: 1.45; letter-spacing: -.02em; text-wrap: pretty; }

.tp-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.tp-tags li { padding: .42rem .8rem; border: 1px solid var(--cs-line); border-radius: 999px; color: var(--cs-ink); font-size: .82rem; line-height: 1.2; }

.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin: 2rem 0 0; }
.tp-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--cs-purple); color: #fff; font-size: .95rem; font-weight: 500; text-decoration: none; transition: background-color .25s ease; }
.tp-button:hover { background: var(--cs-ink); }
.tp-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--cs-ink); font-size: .95rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.tp-link:hover { color: var(--cs-purple); }

/* The biography: the case-study column, without the standfirst rule */
.tp .cs-text > section:first-child { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Their talks: a plain index, one row per talk */
.tp-talks ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cs-line); }
.tp-talks li { border-bottom: 1px solid var(--cs-line); }
.tp-talks a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1.5rem; padding: 1.25rem 0; color: inherit; text-decoration: none; }
.tp-talks__format { grid-column: 1; color: var(--cs-purple); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tp-talks b { grid-column: 1; color: var(--cs-ink); font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.tp-talks__excerpt { grid-column: 1; color: var(--cs-text); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-talks__go { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--cs-muted); font-size: 1.1rem; transition: transform .25s ease, color .25s ease; }
.tp-talks a:hover b { color: var(--cs-purple); }
.tp-talks a:hover .tp-talks__go { color: var(--cs-purple); transform: translateX(4px); }

/* Work with them */
.tp-cta { margin-top: clamp(4.5rem, 9vw, 7rem) !important; text-align: center; }
.tp-cta > * { max-width: 34rem; margin-inline: auto; }
.tp-cta h2 { margin: 0; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--cs-line); max-width: none; color: var(--cs-ink); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.tp-cta p { margin-top: 1rem; margin-bottom: 1.8rem; color: var(--cs-text); font-size: 1rem; line-height: 1.6; }

/* More of the team: three portraits */
.tp-more { margin-top: clamp(4.5rem, 9vw, 7rem) !important; }
.tp-more h2 { margin: 0 0 1.6rem; color: var(--cs-ink); font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.tp-more ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin: 0 0 2rem; padding: 0; list-style: none; }
.tp-more ul a { display: block; color: inherit; text-decoration: none; }
.tp-more figure { overflow: hidden; }
.tp-more figure img { aspect-ratio: 4 / 5; height: auto !important; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tp-more ul a:hover figure img { transform: scale(1.03); }
.tp-more b { display: block; margin-top: .9rem; color: var(--cs-ink); font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.tp-more ul a:hover b { color: var(--cs-purple); }
.tp-more span { display: block; margin-top: .2rem; color: var(--cs-muted); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  .tp-more figure img, .tp-talks__go { transition: none; }
}

/* Phones and small tablets: portrait on top, full width but not too tall */
@media (max-width: 760px) {
  .tp-head { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .tp-portrait { max-width: 22rem; }
  .tp-more ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .tp-more b { font-size: .88rem; }
  .tp-more span { font-size: .78rem; }
}
@media (max-width: 480px) {
  .tp-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-more li:nth-child(3) { display: none; }
}
