/* Team page: original colour photography and the site's rosewater/damson palette. */
.team-page #main { padding-top: var(--top-offset); }
.team-titlebar {
  width: min(100% - 2 * var(--frame), 1400px); margin-inline: auto;
  padding: 2.6rem 1.2rem; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.team-titlebar h1 { font-size: clamp(2.7rem, 4.3vw, 4.4rem); margin: 0; }
.team-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; font-size: .73rem; color: var(--ink-soft); }
.team-breadcrumb a:hover { text-decoration: underline; text-underline-offset: .25em; }
.team-contact { justify-self: end; display: inline-flex; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--ink); font-size: .85rem; text-decoration: none; }
.team-group-photo { width: min(100% - 2 * var(--frame), 1400px); margin: 0 auto; overflow: hidden; border-radius: 12px; background: var(--parchment-deep); }
.team-group-photo img { display: block; width: 100%; height: auto; }
.team-intro { padding: clamp(3.2rem, 6vw, 6rem) 1.5rem clamp(3rem, 5vw, 5rem); text-align: center; }
.team-eyebrow { display: block; color: var(--brass-ink); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.team-intro h2 { max-width: 22ch; margin: 0 auto 1.5rem; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.16; }
.team-intro p { max-width: 64ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; }
.team-profiles { padding: 0 0 clamp(4rem, 7vw, 7rem); width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.team-grid-heading { border-top: 1px solid var(--brass-soft); padding-top: 1.8rem; margin-bottom: 2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.team-grid-heading h2 { font-size: 1.8rem; margin: 0; }
.team-grid-heading p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.team-grid { --team-desktop-columns: 3; display: grid; grid-template-columns: repeat(var(--team-desktop-columns), minmax(0, 1fr)); gap: 2.7rem 1.5rem; align-items: start; }
.team-card { min-width: 0; }
.team-card__summary { display: block; list-style: none; cursor: pointer; border-radius: 8px; }
.team-card__summary::-webkit-details-marker { display: none; }
.team-card__summary::marker { content: ''; }
.team-portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--parchment-deep); }
.team-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .4s ease; }
.team-card__caption { padding-top: 1rem; }
.team-name { font-size: clamp(1.65rem, 2.35vw, 2.25rem); line-height: 1.2; margin: 0 0 .5rem; }
.team-read { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .74rem; color: var(--brass-ink); }
.team-plus { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid #c9949e; border-radius: 50%; font-size: 1.2rem; line-height: 1; transition: color .2s, background .2s; }
@media (hover: hover) {
  .team-card__summary:hover .team-portrait img { transform: scale(1.025); }
  .team-card__summary:hover .team-plus { color: white; background: var(--brass-ink); border-color: var(--brass-ink); }
}
.team-card__summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.team-portrait--awaiting { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--ink-soft); background: #f3e6e7; }
.team-initial { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border: 1px solid #c9949e; border-radius: 50%; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5rem); font-style: italic; }
.team-awaiting { font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.team-biography { padding-top: 1.2rem; font-size: .95rem; }
.team-biography p, .team-dialog__biography p { margin: 0 0 1.2rem; line-height: 1.8; }
.team-biography p:last-child, .team-dialog__biography p:last-child { margin-bottom: 0; }
.team-details[open] .team-plus { transform: rotate(45deg); }
.team-careers { background: var(--blush); border-top: 1px solid var(--brass-soft); text-align: center; padding: clamp(3.5rem, 6vw, 6rem) 1.5rem; }
.team-careers h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin: 0 0 1.2rem; }
.team-careers p { max-width: 55ch; margin: 0 auto 1.8rem; color: var(--ink-soft); }
.team-careers .btn { gap: 1.6rem; }
.team-page.team-dialog-open { overflow: hidden; }
.team-dialog {
  position: fixed; inset: 0; width: min(960px, calc(100% - 3rem)); max-width: none;
  max-height: calc(100svh - 3rem); margin: auto; padding: 0; border: 0; border-radius: 12px;
  color: var(--ink); background: var(--parchment); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 20px 90px #23101e30;
}
.team-dialog::backdrop { background: rgb(42 27 37 / .65); backdrop-filter: blur(4px); }
.team-dialog__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--parchment); border-bottom: 1px solid var(--brass-soft); padding: .65rem 1.3rem; }
.team-dialog__bar > span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.team-dialog__close { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; padding: .2rem .5rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.team-dialog__close span { font-size: 1.8rem; line-height: 1; }
.team-dialog__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 2rem; padding: 2rem; }
.team-dialog__copy h2 { font-size: 2.9rem; line-height: 1.1; margin: 0 0 1.2rem; }
.team-dialog__biography { font-size: .96rem; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .team-titlebar { grid-template-columns: 1fr auto; gap: 1.2rem; padding-block: 2rem; }
  .team-titlebar h1 { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .team-name { font-size: 2rem; }
}
@media (max-width: 600px) {
  .team-titlebar { padding: 1.25rem .25rem 1.8rem; gap: 1rem; }
  .team-breadcrumb { font-size: .63rem; gap: .35rem; }
  .team-contact { font-size: .73rem; gap: .45rem; }
  .team-titlebar h1 { font-size: 2.7rem; }
  .team-group-photo { border-radius: 7px; }
  .team-intro { padding: 3rem 1.5rem; }
  .team-intro p { font-size: .95rem; line-height: 1.75; }
  .team-profiles { width: calc(100% - 2 * var(--frame)); }
  .team-grid-heading { display: block; margin-bottom: 1.5rem; }
  .team-grid-heading h2 { margin-bottom: .5rem; font-size: 1.6rem; }
  .team-grid-heading p { font-size: .8rem; }
  .team-grid { gap: 2rem .9rem; }
  .team-card__caption { padding-top: .8rem; }
  .team-name { font-size: 1.65rem; }
  .team-read { font-size: .68rem; }
  .team-plus { width: 1.6rem; height: 1.6rem; }
  .team-dialog { width: calc(100% - 1.25rem); max-height: calc(100svh - 1.25rem); border-radius: 9px; }
  .team-dialog__bar { padding: .5rem 1rem; }
  .team-dialog__body { display: block; padding: 1.4rem; }
  .team-dialog__portrait { width: min(100%, 230px); margin: 0 auto 1.5rem; }
  .team-dialog__copy h2 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-page .team-portrait img, .team-page .team-plus { transition: none; }
}
@media (max-width: 360px) {
  .team-page .site-header .bar { gap: .6rem; }
  .team-page .site-header .wordmark .name { font-size: 1.08rem; }
  .team-page .menu-toggle { flex: 0 0 44px; }
}
