/* Meet David and the team (home, About, Media). .sx-meet: the photo of David at his desk beside a few lines about him
   (side by side on wide screens, the photo first on phones). .sx-team: the team's round photos stacked, a little over
   one another; each is a button that opens that person's small card under the row, one at a time, and the open one
   sits on top (js/studio.js). Without the script every card shows, one under the other. */
.sx-meet-main { margin-top: clamp(36px, 4.4vw, 60px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-align: left; }
.sx-meet-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--card); aspect-ratio: 4 / 5; }
.sx-meet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* His name and town on the photo's lower edge, over a soft fade so they read on any part of the picture. */
.sx-meet-cap { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 56px 22px 18px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7)); text-align: left; }
.sx-meet-cap b { font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.sx-meet-cap span { font-size: 13px; line-height: 1.3; color: var(--soft); }
.sx-meet-words { display: grid; gap: 14px; font-size: clamp(15px, 1.15vw, 17px); color: var(--soft); max-width: 34em; }
.sx-meet-kicker, .sx-meet-label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sx-meet-hi { margin-bottom: 6px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.15; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.sx-meet-strong { color: #fff; font-weight: 500; }
/* Off the clock and the social links: two small groups under a hairline. */
.sx-meet-life { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.sx-meet-life > div { display: grid; gap: 10px; align-content: start; }
.sx-meet-follow { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-meet-follow a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); transition: background-color .25s, border-color .25s; }
.sx-meet-follow a:hover { background: #1f1f1f; border-color: rgba(255, 255, 255, .35); }
.sx-meet-follow img { display: block; width: 24px; height: 24px; }
.sx-meet-follow a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 899px) {
  .sx-meet-main { grid-template-columns: 1fr; }
  .sx-meet-photo { aspect-ratio: 1 / 1; }
  .sx-meet-photo img { object-position: 50% 0; }
  .sx-meet-words { max-width: none; }
}

.sx-team { margin-top: clamp(40px, 4.6vw, 64px); display: grid; justify-items: center; gap: 22px; }
/* The photos overlap by a sixth; the page-black edge on each keeps the overlap clean. The open one sits on top, at full
   colour; the others sit under it, a little dimmed. No ring: only keyboard focus draws one. */
.sx-team-faces { --face: clamp(80px, 7vw, 92px); list-style: none; display: flex; justify-content: center; }
.sx-team-faces li + li { margin-left: calc(var(--face) * -.17); }
.sx-team-face { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--soft); }
.sx-team-face img { width: var(--face); height: var(--face); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--bg); outline: 2px solid transparent; outline-offset: 6px; filter: grayscale(.35) brightness(.8); transition: filter .3s var(--ease), outline-color .3s var(--ease), transform .3s var(--ease); }
.sx-team-face:hover img { filter: none; transform: translateY(-2px); }
.sx-team-face[aria-expanded="true"] { z-index: 2; color: #fff; }
.sx-team-face[aria-expanded="true"] img { filter: none; }
.sx-team-face:focus-visible { outline: none; }
.sx-team-face:focus-visible img { outline-color: #fff; }

.sx-team-card { width: min(420px, 100%); padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-align: left; display: grid; gap: 16px; }
.sx-team.is-ready .sx-team-card { animation: sx-team-in .35s var(--ease); }
@keyframes sx-team-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .sx-team.is-ready .sx-team-card { animation: none; } }
.sx-team-who { display: flex; align-items: center; gap: 14px; }
.sx-team-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.sx-team-who h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.sx-team-who p { font-size: 14px; color: var(--soft); }
.sx-team-contact { display: grid; gap: 10px; }
.sx-team-contact > div { display: grid; gap: 0; }
.sx-team-contact dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.sx-team-contact dd { font-size: 15px; overflow-wrap: anywhere; }
.sx-team-contact a { color: #fff; text-underline-offset: 4px; }
.sx-team-contact a:hover { color: var(--soft); }
.sx-team-book { justify-self: start; }
