/* Our team page: a normal top-to-bottom page in the same look as the home page */
.page-team { background: #FFFFFF; }
.team { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)); }
.team__intro h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .92;
  font-size: clamp(2.8rem, 2rem + 5vw, 5.6rem); margin: .2em 0 .35em; color: var(--text); }
.team__lead { max-width: 38rem; color: var(--muted); font-size: 1.1rem; text-align: justify; hyphens: auto; }

.team__principal { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 820px) { .team__principal { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.team__principal h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: .95; margin: .15em 0 .5em; }
.team__message { color: var(--muted); font-size: 1.04rem; max-width: 40rem; }
.team__message p { text-align: justify; hyphens: auto; margin: 0 0 1em; }
.team__signoff { text-align: left !important; color: var(--text); margin-top: 1.6em !important; }
.team__signoff strong { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .02em; }
.team__role { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.team__group { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.team__group-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin: 0 0 1.4rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line); }
.team__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; margin: .8rem 0 .2rem; }

/* photos: 4:5, like the School Life tiles; the coloured block shows until a real photo replaces it */
.person__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--large { max-width: 420px; width: 100%; }
.person__photo.is-placeholder { background: linear-gradient(160deg, #B48AB1, #936190 55%, #6A406C); color: rgba(255, 255, 255, .85);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.team__grid .person:nth-child(3n+2) .person__photo.is-placeholder { background: linear-gradient(160deg, #C9605E, #AB2B29 55%, #7E1F1D); }
.team__grid .person:nth-child(3n+3) .person__photo.is-placeholder { background: linear-gradient(160deg, #4F98BD, #106B94 55%, #0B4C6A); }
.is-placeholder-text { opacity: .55; font-style: italic; }   /* faded and italic so placeholders can't be mistaken for real content */

.team__back { margin-top: clamp(3rem, 7vw, 5rem); }
.team__back .rv-btn { max-width: 26rem; }
.team__base { margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 2rem; }

/* the principal's photo stays in view while the longer message is read (wide screens) */
@media (min-width: 820px) { .team__principal .person__photo--large { position: sticky; top: calc(var(--header-h) + 2rem); } }
.person__photo img { transition: transform .9s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.team__greeting { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.35rem; color: var(--text); text-align: left !important; }
