/* Team page (team.html): the GS stage hero, reach map, directors, specialists grid, join panel and the
   profile dialog. Behaviour in js/pages/team.js. The only page with photographs. */

/* ==========================================================================================
   Hero: copy above, the whole team standing on the GS stage below
   ========================================================================================== */
.team-hero .page-hero__frame { min-height: 0; justify-content: flex-start;
  background: radial-gradient(64% 52% at 50% 82%, rgba(163, 193, 173, .12), rgba(163, 193, 173, 0) 70%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 62%, #121226 100%); }
.team-hero__content { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 80px); align-items: end; max-width: none; padding-bottom: 0;
  margin-inline: max(0px, calc((100% + 2 * var(--frame) - 1600px) / 2 - var(--gutter))); }
.team-hero .page-hero__title { margin-bottom: 0; }
.team-hero__side .lead { max-width: 30rem; }
.team-hero__side .btn-row { margin-top: 28px; }

/* the stage: canvas art behind (wall of dots, the GS sign, the floor), the cut-out on top */
.stage { --head: clamp(118px, 12.5vw, 196px); --floor: clamp(64px, 6vw, 96px); position: relative; z-index: 1; margin-top: clamp(-36px, -1.6vw, -12px); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.stage__view { position: relative; z-index: 1; padding-top: var(--head); }
.stage__track { position: relative; padding-bottom: var(--floor); }
.stage__team { position: relative; margin: 0 auto; width: min(100% - 2 * var(--gutter), 1500px); aspect-ratio: 2400 / 860; translate: var(--tx, 0px) var(--ty, 0px); }
.stage__img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
/* a faint reflection on the floor, and a contact shadow under everyone's feet */
.stage__reflect { position: absolute; z-index: 0; left: 0; top: 97.4%; width: 100%; height: 100%; transform: scaleY(-1); opacity: .16; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 9%, transparent 19%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 9%, transparent 19%); filter: blur(1px) saturate(.6); }
.stage__shadow { position: absolute; z-index: 1; left: 0; right: 0; top: 93.5%; height: 8%; pointer-events: none;
  background: radial-gradient(48% 50% at 50% 50%, rgba(4, 4, 14, .72) 0%, rgba(4, 4, 14, .38) 46%, rgba(4, 4, 14, 0) 100%); }
html.js .stage__team .stage__img, html.js .stage__team .stage__reflect, html.js .stage__team .stage__shadow { opacity: 0; transition: opacity 1.5s var(--ease) .25s, transform 1.9s var(--ease) .25s; }
html.js .stage__team .stage__img { transform: translate3d(0, 22px, 0) scale(.985); transform-origin: 50% 100%; }
html.js .stage__team .stage__reflect { transform: scaleY(-1); }
html.js .stage.is-in .stage__team .stage__img { opacity: 1; transform: none; }
html.js .stage.is-in .stage__team .stage__reflect { opacity: .16; transition-delay: .7s; }
html.js .stage.is-in .stage__team .stage__shadow { opacity: 1; transition-delay: .5s; }

/* HUD on the floor: where, the local time, and a way down */
.stage__hud { position: absolute; z-index: 3; left: calc(var(--gutter) + max(0px, calc((100% + 2 * var(--frame) - 1600px) / 2 - var(--gutter)))); right: calc(var(--gutter) + max(0px, calc((100% + 2 * var(--frame) - 1600px) / 2 - var(--gutter)))); bottom: clamp(16px, 1.8vw, 26px); display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.stage__hud > * { pointer-events: auto; }
.stage__tag { display: inline-flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(15, 15, 32, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); white-space: nowrap; }
.stage__clock { color: var(--sage); letter-spacing: .08em; }
.stage__more { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 14px; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); transition: color .3s; }
.stage__more .icon { width: 22px; height: 22px; padding: 5px; border-radius: 50%; border: 1px solid var(--line-dark-2); transform: rotate(90deg); transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s; }
.stage__more:hover { color: var(--on-dark); }
.stage__more:hover .icon { background: var(--sage); border-color: var(--sage); color: var(--ink); transform: rotate(90deg) translateX(2px); }
.stage__hint { display: none; }
.stage__pan { display: none; }
html.js .stage__hud { opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
html.js .stage.is-in .stage__hud { opacity: 1; }

/* phones: the team is wider than the screen, so the stage pans sideways (drag, swipe or keys) */
.stage.is-pan .stage__view { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.stage.is-pan .stage__view::-webkit-scrollbar { display: none; }
.stage.is-pan .stage__view.is-dragging { cursor: grabbing; }
.stage.is-pan .stage__view:focus-visible { outline: 2px solid var(--sage); outline-offset: -4px; border-radius: 14px; }
.stage.is-pan .stage__track { width: max-content; padding-inline: 32px; }
.stage.is-pan .stage__team { width: auto; height: var(--pan-h, 286px); margin: 0; }
.stage.is-pan .stage__img { width: auto; }
.stage.is-pan .stage__more { display: none; }
.stage.is-pan .stage__hint { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; height: 34px; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); transition: opacity .6s var(--ease); }
.stage.is-pan.is-panned .stage__hint { opacity: 0; }
.stage__hint-arrows { position: relative; display: inline-flex; gap: 3px; }
.stage__hint-arrows i { width: 10px; height: 5px; background: var(--sage); transform: skewX(var(--slash)); animation: stage-nudge 1.8s var(--ease-in-out) infinite; }
.stage__hint-arrows i + i { opacity: .5; animation-delay: .12s; }
@keyframes stage-nudge { 0%, 100% { translate: -3px 0; } 50% { translate: 4px 0; } }
.stage.is-pan .stage__pan { display: block; position: absolute; z-index: 3; left: 50%; bottom: 10px; width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.stage__pan-thumb { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--pw, .4) * 120px); border-radius: 2px; background: var(--sage); transform: translateX(calc(var(--pp, .5) * (1 - var(--pw, .4)) * 120px)); }
@media (max-width: 860px) {
  .team-hero__content { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .stage { --head: 132px; --floor: 92px; margin-top: 4px; }
  .stage__county { display: none; }
  .stage__hud { bottom: 26px; left: 16px; right: 16px; }
  .stage__tag { height: 30px; padding: 0 12px 0 11px; gap: 9px; font-size: .64rem; }
}
@media (max-width: 340px) { .stage__place { display: none; } }

/* ==========================================================================================
   Intro: numbers, then the countries list beside a live reach map
   ========================================================================================== */
.reach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 4vw, 64px); margin-top: clamp(52px, 6vw, 88px); align-items: stretch; }
.reach__list { display: flex; flex-direction: column; justify-content: center; }
.reach__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 18px; }
.countries__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.countries__list li { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--fg-2); white-space: nowrap; outline: none;
  transition: border-color .35s var(--ease), color .35s var(--ease), background-color .35s var(--ease), box-shadow .3s; }
.countries__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; transition: opacity .35s, background-color .35s, box-shadow .35s; }
.countries__list li.countries__more::before { display: none; }
.countries__list li.is-seen { color: var(--fg); }
.countries__list li.is-seen::before { background: var(--sage); opacity: .9; }
.countries__list li.is-on { border-color: var(--sage); color: var(--ink); background: var(--sage); }
.countries__list li.is-on::before { background: var(--ink); opacity: 1; box-shadow: 0 0 0 3px rgba(26, 26, 46, .14); }
.countries__list li:focus-visible { box-shadow: 0 0 0 2px var(--ink-3), 0 0 0 4px var(--sage); }
.countries__list .countries__more { border-style: dashed; color: var(--sage); }
.reach__fig { display: flex; flex-direction: column; padding: 0; min-height: 0; }
.reach__head { padding: 16px clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.reach__now { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); }
[data-reach-count] { color: var(--sage); font-variant-numeric: tabular-nums; }
.reach__map { position: relative; flex: 1; display: grid; align-items: center; padding: clamp(10px, 2vw, 28px) clamp(6px, 1.4vw, 20px); min-height: 200px; }
.reach__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.rm-land { fill: none; stroke: rgba(238, 240, 242, .13); stroke-width: 3.1; stroke-linecap: round; }
.rm-on { fill: none; stroke: rgba(163, 193, 173, .34); stroke-width: 3.3; stroke-linecap: round; }
.rm-arc { fill: none; stroke: var(--sage); stroke-width: 1.1; stroke-linecap: round; opacity: .38; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-in-out), opacity .45s var(--ease), stroke-width .45s var(--ease); }
.reach.is-drawn .rm-arc { stroke-dashoffset: 0; }
.rm-arc.is-on { opacity: 1; stroke-width: 2; }
.rm-dot { fill: var(--sage); }
.rm-ring { fill: none; stroke: var(--sage); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-pt.is-on .rm-dot { fill: #f1f7f2; }
.rm-pt.is-on .rm-ring { animation: rm-ping 1.8s var(--ease) infinite; }
@keyframes rm-ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.rm-hq-ring { fill: none; stroke: #f1f7f2; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: rm-hq 2.6s var(--ease) infinite; }
@keyframes rm-hq { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.6); } }
.rm-hq { fill: #f1f7f2; }
.rm-pulse { fill: #f1f7f2; }
.rm-label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; fill: var(--on-dark); paint-order: stroke; stroke: var(--ink-3); stroke-width: 5px; stroke-linejoin: round; transition: opacity .3s; }
.rm-label.is-swap { opacity: 0; transition: none; }
.rm-pulse-glow { fill: rgba(163, 193, 173, .45); }
@media (max-width: 960px) {
  .reach { grid-template-columns: minmax(0, 1fr); }
}
/* the map is drawn by script: without it, the list stands alone */
html:not(.js) .reach { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .reach__fig { display: none; }

/* ==========================================================================================
   Photo treatment: tinted monochrome; a slash-angled wipe reveals full colour on hover/focus
   ========================================================================================== */
.tone { position: relative; display: block; overflow: hidden; isolation: isolate; background: var(--ink-raise); }
.tone img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), translate .25s linear; }
.tone::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(165deg, var(--sage) 10%, var(--ink) 105%); mix-blend-mode: color; opacity: .9;
  clip-path: polygon(0% 0%, 200% 0%, 200% 100%, -94% 100%); transition: clip-path .85s var(--ease); }
.tone::before { content: ""; position: absolute; z-index: 2; top: -10%; bottom: -10%; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, rgba(163, 193, 173, 0), rgba(214, 233, 220, .5) 50%, rgba(163, 193, 173, 0)); transform: translateX(-190%) skewX(var(--slash)); opacity: 0; transition: transform .9s var(--ease), opacity .4s; }
:is(.leader__btn, .person__btn):focus-visible .tone::after { clip-path: polygon(194% 0%, 200% 0%, 200% 100%, 100% 100%); }
:is(.leader__btn, .person__btn):focus-visible .tone::before { transform: translateX(420%) skewX(var(--slash)); opacity: 1; }
@media (hover: hover) {
  :is(.leader__btn, .person__btn):hover .tone::after { clip-path: polygon(194% 0%, 200% 0%, 200% 100%, 100% 100%); }
  :is(.leader__btn, .person__btn):hover .tone::before { transform: translateX(420%) skewX(var(--slash)); opacity: 1; }
}

/* ==========================================================================================
   Directors
   ========================================================================================== */
.leaders { list-style: none; border-top: 1px solid var(--line); }
.leader { position: relative; border-bottom: 1px solid var(--line); }
.leader::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--sage-3), var(--sage) 60%, rgba(163, 193, 173, 0)); transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease); pointer-events: none; }
.leader:hover::after, .leader:focus-within::after { transform: scaleX(1); }
.leader__btn { width: 100%; display: grid; grid-template-columns: 40px 136px minmax(0, 4fr) minmax(0, 5fr) 112px; grid-template-areas: "num photo id bio go"; gap: clamp(16px, 2.4vw, 40px); align-items: center; padding: clamp(18px, 2vw, 26px) 0; text-align: left; transition: padding .55s var(--ease); }
.leader__num { grid-area: num; font-family: var(--mono); font-size: .8rem; color: var(--fg-3); transition: color .3s; }
.leader__photo { grid-area: photo; width: 136px; aspect-ratio: 1; border-radius: 12px; transition: border-radius .6s var(--ease); }
.leader__photo img { position: absolute; inset: 0; }
.leader__id { grid-area: id; display: grid; gap: 10px; }
.leader__name { font-size: clamp(1.55rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.02; color: var(--fg); transition: color .3s; }
.leader__role { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.leader__bio { grid-area: bio; color: var(--fg-2); font-size: 1rem; line-height: 1.55; max-width: 30rem; }
.leader__go { grid-area: go; justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease); }
.leader__go .icon { width: 18px; height: 18px; }
.leader__in { position: absolute; z-index: 1; right: 60px; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg-2); transition: background-color .35s, border-color .35s, color .35s; }
.leader__in .icon { width: 18px; height: 18px; }
.leader__in:hover, .leader__in:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }
.leader__btn:hover, .leader__btn:focus-visible { padding-left: 14px; }
.leader__btn:hover .leader__photo, .leader__btn:focus-visible .leader__photo { border-radius: 28px 12px 12px 12px; }
.leader__btn:hover .leader__name, .leader__btn:focus-visible .leader__name { color: var(--sage-3); }
.leader__btn:hover .leader__num, .leader__btn:focus-visible .leader__num { color: var(--sage-3); }
.leader__btn:hover .leader__go, .leader__btn:focus-visible .leader__go { background: var(--ink); border-color: var(--ink); color: var(--sage); transform: rotate(90deg); }
.leader__btn:hover .tone img, .leader__btn:focus-visible .tone img { transform: scale(1.05); }
.leader__btn:focus-visible, .leader__in:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.leader__in:focus-visible { border-radius: 50%; }
/* the photos come in through a slash-angled mask as each row reveals */
html.js .leader[data-reveal] .leader__photo { clip-path: polygon(0 0, 0 0, -94% 100%, -94% 100%); transition: clip-path 1.2s var(--ease) calc(var(--d, 0) * 90ms + .15s), border-radius .6s var(--ease); }
html.js .leader.is-in .leader__photo { clip-path: polygon(0 0, 194% 0, 100% 100%, -94% 100%); }
html.js .leader.is-done .leader__photo { clip-path: none; }
@media (max-width: 1100px) {
  .leader__btn { grid-template-columns: 32px 120px minmax(0, 1fr) 112px; grid-template-areas: "num photo id go" "num photo bio go"; row-gap: 12px; align-items: start; }
  .leader__num { padding-top: 6px; }
  .leader__photo { width: 120px; }
  .leader__go { align-self: center; grid-row: 1 / 3; }
}
@media (max-width: 640px) {
  .leader__btn { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "photo id" "bio bio"; gap: 14px 16px; align-items: center; padding: 20px 0; }
  .leader__btn:hover, .leader__btn:focus-visible { padding-left: 0; }
  .leader__num, .leader__go { display: none; }
  .leader__photo { width: 84px; border-radius: 10px; }
  .leader__id { padding-right: 52px; gap: 8px; }
  .leader__name { font-size: 1.45rem; }
  .leader__bio { font-size: .95rem; }
  .leader__bio:empty { display: none; }
  .leader__in { right: 0; top: 20px; margin-top: 0; width: 42px; height: 42px; }
}

/* ==========================================================================================
   Specialists: filter, then the grid of cards (tilt with depth on a fine pointer)
   ========================================================================================== */
.team-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.team-filter[hidden] { display: none !important; }
.team-filter__list { position: relative; display: flex; flex-wrap: nowrap; gap: 4px; max-width: 100%; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.team-filter__list::-webkit-scrollbar { display: none; }
.team-filter__ink { position: absolute; z-index: 0; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 999px; background: var(--sage); transition: transform .6s var(--ease), width .6s var(--ease), height .6s var(--ease); pointer-events: none; }
.team-filter__btn { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; white-space: nowrap; font-size: .94rem; font-weight: 500; color: var(--fg-2); transition: color .3s; }
.team-filter__btn:hover { color: var(--fg); }
.team-filter__btn[aria-pressed="true"] { color: var(--ink); }
.team-filter__btn:focus-visible { outline-offset: -2px; border-radius: 999px; }
.team-filter__n { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; opacity: .62; }
.team-filter__status { color: var(--fg-3); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.team-filter__status [data-team-shown] { color: var(--sage); font-variant-numeric: tabular-nums; }

.people { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.person { position: relative; }
.person.is-hidden { display: none; }
.person__btn { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 8px 8px 20px; border-radius: var(--r); border: 1px solid var(--line); text-align: left;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, -40%), rgba(163, 193, 173, .1), transparent 70%), rgba(255, 255, 255, .025);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease); }
.person__btn.is-tilting { transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .5s var(--ease); }
.person__photo { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.person__photo img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; translate: var(--ix, 0px) var(--iy, 0px); }
.person__meta { position: absolute; z-index: 3; top: 16px; left: 16px; display: flex; gap: 6px; pointer-events: none; }
.person__num { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px 0 8px; border-radius: 999px; background: rgba(15, 15, 32, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--on-dark-2); opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.person__num::before { content: ""; width: 8px; height: 4px; background: var(--sage); transform: skewX(var(--slash)); }
.person__name { position: relative; margin-top: 16px; padding-inline: 8px; font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--fg); transition: color .3s; }
.person__role { margin-top: 6px; padding-inline: 8px; font-size: .86rem; line-height: 1.4; color: var(--fg-2); }
.person__in { position: absolute; z-index: 4; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 15, 32, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white); opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .45s var(--ease), background-color .3s, color .3s; }
.person__in .icon { width: 16px; height: 16px; }
.person:hover .person__in, .person__in:focus-visible, .person:focus-within .person__in, .person:hover .person__num, .person:focus-within .person__num { opacity: 1; transform: none; }
.person__in:hover { background: var(--sage); color: var(--ink); }
.person__btn:hover, .person__btn:focus-visible { border-color: rgba(163, 193, 173, .5); background-color: rgba(163, 193, 173, .06); box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .8); }
.person__btn:hover .person__name, .person__btn:focus-visible .person__name { color: var(--sage); }
.person__btn:focus-visible { outline-offset: 2px; border-radius: var(--r); }
@media (hover: none) { .person__in, .person__num { opacity: 1; transform: none; } }
@media (max-width: 1200px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .person__btn { padding: 6px 6px 16px; }
  .person__name { margin-top: 12px; padding-inline: 6px; font-size: 1rem; }
  .person__role { padding-inline: 6px; font-size: .8rem; }
  .person__in { top: 12px; right: 12px; width: 34px; height: 34px; }
  .person__meta { top: 12px; left: 12px; }
  .team-filter__list { margin-right: calc(var(--gutter) * -1); border-radius: 999px 0 0 999px; border-right: 0; }
}

/* ==========================================================================================
   Join
   ========================================================================================== */
.join { overflow: hidden; }
.join__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.join__art i { position: absolute; top: -12%; bottom: -12%; right: 4%; width: 20%; background: linear-gradient(180deg, rgba(26, 26, 46, .02), rgba(26, 26, 46, .08)); transform: skewX(var(--slash)); }
.join__art i:nth-child(2) { right: 25%; width: 5%; background: rgba(255, 255, 255, .24); }
.join__art i:nth-child(3) { right: 31.5%; width: 1.4%; background: rgba(26, 26, 46, .14); }
html.js .join__art i { transform: translateX(16%) skewX(var(--slash)); opacity: 0; transition: transform 1.8s var(--ease), opacity 1.2s var(--ease); }
html.js .join__art i:nth-child(2) { transition-delay: .12s; }
html.js .join__art i:nth-child(3) { transition-delay: .24s; }
html.js .join.is-in .join__art i { transform: skewX(var(--slash)); opacity: 1; }
.join .wrap { position: relative; z-index: 1; }
.join__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.join .h-xl { color: var(--ink); }
.join__text { color: rgba(26, 26, 46, .8); max-width: 32rem; }
.join__perks { list-style: none; display: grid; gap: 12px; }
.join__perks li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 22px 18px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .38); border: 1px solid rgba(26, 26, 46, .1); transition: background-color .4s var(--ease), translate .5s var(--ease); }
.join__perks li:hover { background: rgba(255, 255, 255, .62); translate: -6px 0; }
.join__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--sage); transition: transform .6s var(--ease); }
.join__perks li:hover .join__icon { transform: rotate(-8deg) scale(1.04); }
.join__icon .icon { width: 22px; height: 22px; }
.join__perks strong { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; }
.join__perks li > span:last-child > span { display: block; margin-top: 2px; font-size: .92rem; line-height: 1.45; color: rgba(26, 26, 46, .7); }
.section--sage .btn--ghost { border-color: rgba(26, 26, 46, .35); }
.section--sage .btn--ghost:hover { color: var(--white); }
@media (max-width: 960px) { .join__grid { grid-template-columns: minmax(0, 1fr); } .join__art i { right: -10%; } }

/* ==========================================================================================
   Profile dialog: a full-screen layer; the panel rises in and the photo flies from the card
   ========================================================================================== */
.profile { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(10px, 3vw, 36px); border: 0; background: transparent; color: var(--on-light); overflow-y: auto; overscroll-behavior: contain; }
.profile[open] { display: grid; place-items: center; }
.profile::backdrop { background: rgba(15, 15, 32, .76); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s var(--ease); }
.profile.is-open::backdrop { opacity: 1; }
.profile :focus-visible { outline-color: var(--ink); }
.profile__panel { position: relative; width: min(1000px, 100%); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px clamp(24px, 3.5vw, 52px); padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .38s var(--ease), transform .65s var(--ease); }
.profile.is-open .profile__panel { opacity: 1; transform: none; }
.profile.is-measure .profile__panel { transition: none; transform: none; }
.profile__media { display: flex; flex-direction: column; gap: 14px; }
.profile__photo { position: relative; width: 240px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); isolation: isolate; }
.profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile__photo .profile__old { z-index: 2; }
.profile.is-flying .profile__photo img { visibility: hidden; }
.profile__count { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--fg-3); }
.profile__count::before { content: ""; width: .95em; height: .55em; background: var(--sage-3); transform: skewX(var(--slash)); }
.profile__count b { font-weight: 500; color: var(--ink); }
.profile__body { padding: 6px 48px 0 0; min-width: 0; }
.profile__role { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.profile__name { margin-top: 12px; font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.025em; line-height: 1; color: var(--ink); }
.profile__bio { margin-top: 20px; color: var(--fg-2); font-size: 1.04rem; line-height: 1.65; max-width: 38rem; }
.profile__actions { margin-top: 28px; }
.profile__body > * { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.profile__body > :nth-child(2) { transition-delay: .04s; }
.profile__body > :nth-child(3) { transition-delay: .08s; }
.profile__body > :nth-child(4) { transition-delay: .12s; }
.profile.is-swapping .profile__body > * { opacity: 0; transform: translateX(calc(var(--dir, 1) * 22px)); transition: none; }
.profile__close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); background: var(--paper); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.profile__close .icon { width: 18px; height: 18px; }
.profile__close:hover { background: var(--ink); color: var(--white); transform: rotate(90deg); }
.profile__nav { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile__step { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .3s; }
.profile__step span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__step .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.profile__step:hover { color: var(--sage-3); }
.profile__step:hover .icon { transform: translateX(-3px); }
.profile__step--next { justify-self: end; }
.profile__step--next:hover .icon { transform: translateX(3px); }
.profile__strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.profile__strip::-webkit-scrollbar { display: none; }
.profile__thumb { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.profile__thumb:first-child { margin-left: 22px; }
.profile__thumb:last-child { margin-right: 22px; }
.profile__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.profile__thumb:hover img, .profile__thumb:focus-visible img { filter: none; opacity: 1; }
.profile__thumb:hover { transform: translateY(-2px); }
.profile__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--sage-3); transform: scale(1.06); }
.profile__thumb[aria-current="true"] img { filter: none; opacity: 1; }
.profile__thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 50%; }
/* the flying photo (open/close), drawn in the dialog's top layer */
.profile__fly { position: fixed; z-index: 10; margin: 0; max-width: none; object-fit: cover; pointer-events: none; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
@media (max-width: 760px) {
  .profile { padding: 10px; place-items: start center; }
  .profile__panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; margin-block: auto; }
  .profile__media { flex-direction: row; align-items: flex-end; gap: 16px; }
  .profile__photo { width: 120px; border-radius: 12px; }
  .profile__body { padding: 0; }
  .profile__name { font-size: 2.1rem; }
  .profile__actions .btn { flex: 1 1 auto; }
  .profile__close { top: 12px; right: 12px; }
  .profile__nav { grid-template-columns: auto auto; justify-content: space-between; }
  .profile__strip { grid-column: 1 / -1; grid-row: 1; margin-inline: -6px; }
  .profile__step span { max-width: 12ch; }
}
@media (prefers-reduced-motion: reduce) { .profile__panel { transform: none; } }

/* One grid for everyone, directors first, with small photos (Anthony, 6 Oct 2026: "have all users together... all
   profile pics need to be much smaller in size, as they look blurred"). The headshots are 240px squares, so they stay
   sharp up to 120 CSS px on a 2x screen: compact rows with a 104px photo, shown at its true size (no zoom). */
.people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 12px; }
.person__btn { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 18px; align-items: start; padding: 12px 52px 12px 12px; min-height: 128px; }
.person__photo { grid-column: 1; grid-row: 1 / 5; width: 104px; border-radius: 12px; }
.person__photo img { inset: 0; width: 100%; height: 100%; translate: none; }
.person__meta { display: none; }
.person__name { grid-column: 2; grid-row: 2; margin: 0; padding: 0; font-size: 1.06rem; }
.person__role { grid-column: 2; grid-row: 3; margin: 5px 0 0; padding: 0; font-size: .84rem; }
.person__in { top: 50%; right: 12px; margin-top: -17px; width: 34px; height: 34px; }
.person--director .person__role { color: var(--sage); }
@media (max-width: 1200px) { .people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); } }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .people { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .person__btn { grid-template-columns: 80px minmax(0, 1fr); padding: 10px 50px 10px 10px; min-height: 100px; }
  .person__photo { width: 80px; }
}
.profile__photo { width: 120px; }
/* with the Directors filter the bar no longer fits one line on desktop: let it wrap (phones keep the swipe row) */
@media (min-width: 1024px) { .team-filter__list { flex-wrap: wrap; overflow: visible; border-radius: 27px; } }
