/* Team showcase on the home page (built 2026-11-17, live 2026-12-02). Not loaded by --no-team-showcase builds. */
.showcase { --slim: 11.5rem; --archw: 21rem; --gap: 1.5rem; --h: 34rem; --pad: 3.5rem; }
.showcase[style*="--n: 3"] { --slim: 10.5rem; --archw: 19rem; --pad: 3rem; }
.showcase .sechead { margin-bottom: 2.75rem; }
.show { display: flex; gap: var(--gap); height: var(--h); container-type: inline-size; }
.show__p { position: relative; display: flex; flex: 0 1 var(--slim); min-width: 0; cursor: pointer; transition: flex-grow .8s var(--ease-out); }
.show__p.is-on { flex-grow: 1; cursor: default; }

/* the arch: a doorway-shaped frame the cut-out portrait stands in */
.show__arch { position: relative; flex: 0 0 auto; display: block; width: var(--slim); height: calc(100% - 4.25rem); border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--frame); border-bottom: 2px solid var(--brass-lt); transition: width .8s var(--ease-out), height .8s var(--ease-out); }
.show__p.is-on .show__arch { width: var(--archw); height: 100%; }
.show__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; transform: scale(1.02); transition: transform 1.1s var(--ease-out), filter .6s; }
.show__p:not(.is-on) .show__arch img { filter: saturate(.75); }
.show__p:not(.is-on):hover .show__arch img { transform: scale(1.07); filter: none; }
.show__p.is-on .show__arch img { object-position: 50% 22%; }

/* name under a waiting arch */
.show__label { position: absolute; left: 0; bottom: 0; width: var(--slim); margin: 0; display: grid; gap: .3rem; transition: opacity .3s; }
.show__label-n { font: 400 1.2rem/1.15 var(--serif); }
.show__label-r { font: 500 .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.show__p.is-on .show__label { opacity: 0; pointer-events: none; }

/* the open panel's text: fixed width inside a clipping box, so it never re-wraps while the panel opens */
.show__body { flex: 1 1 0; min-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.show__p.is-on .show__body { opacity: 1; visibility: visible; transition: opacity .5s .3s, visibility 0s; }
/* width left for the text once the open arch and the waiting arches are placed (cqw = 1% of the row) */
.show__inner { width: calc(100cqw - (var(--n) - 1) * (var(--slim) + var(--gap)) - var(--archw) - var(--pad)); height: 100%; margin-left: var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.show__count { margin: 0 0 1.25rem; font: 400 1rem/1 var(--mono); letter-spacing: .12em; color: var(--brass); }
.show__count span { color: var(--dim); }
.show__name { margin: 0; font: 400 clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem)/.98 var(--serif); letter-spacing: -.025em; }
.showcase[style*="--n: 3"] .show__name { font-size: clamp(2.4rem, 1.2rem + 2.6vw, 3.6rem); }
.show__name a { color: inherit; text-decoration: none; }
.show__name i { color: var(--brass); }
.show__role { margin: 1rem 0 0; font: 500 .72rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.show__bio { margin: 1.5rem 0 0; color: var(--mid); max-width: 46ch; }
.show__bio p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.show__focus { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.show__focus li { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 2px; font-size: .84rem; color: var(--ink); background: rgba(var(--paper-rgb), .5); }
.show__p:focus-visible, .show__arch:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }

/* legal block: the showcase sits under the business-law intro */
.alsolaw .showcase { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }

/* fly-in: arches rise as the section scrolls into view; the open portrait and its text arrive each time a panel opens */
@media (prefers-reduced-motion: no-preference) {
  .motion .showcase:not(.is-seen) .show__p { opacity: 0; transform: translateY(3.5rem); }
  .motion .showcase.is-seen .show__p { animation: show-rise 1s var(--ease-out) backwards; animation-delay: calc(var(--i) * 140ms); }
  .motion .showcase.is-seen .show__arch img { animation: show-fly 1.4s var(--ease-out) backwards; animation-delay: calc(var(--i) * 140ms + 150ms); }
  .show__p.is-on.is-fresh .show__arch img { animation: show-fly 1.1s var(--ease-out) backwards; }
  .show__p.is-on.is-fresh .show__inner > * { animation: show-line .7s var(--ease-out) backwards; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(1) { animation-delay: .30s; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(2) { animation-delay: .38s; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(3) { animation-delay: .46s; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(4) { animation-delay: .54s; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(5) { animation-delay: .62s; }
  .show__p.is-on.is-fresh .show__inner > :nth-child(6) { animation-delay: .70s; }
}
@keyframes show-rise { from { opacity: 0; transform: translateY(3.5rem); } }
@keyframes show-fly { from { opacity: 0; transform: translateY(16%) scale(1.16); } }
@keyframes show-line { from { opacity: 0; transform: translateY(1.1rem); } }

/* narrower screens: everyone open, stacked; nothing to hover */
@media (max-width: 1040px) {
  .show { flex-direction: column; height: auto; gap: 3rem; }
  .show__p, .show__p.is-on { flex: none; cursor: default; align-items: center; gap: 2rem; }
  .show__arch, .show__p.is-on .show__arch { width: min(15rem, 38vw); height: auto; aspect-ratio: 4 / 5.6; }
  .show__p:not(.is-on) .show__arch img { filter: none; }
  .show__label { display: none; }
  .show__body, .show__p.is-on .show__body { opacity: 1; visibility: visible; overflow: visible; }
  .show__inner { width: auto; margin-left: 0; }
  .show__count { display: none; }
}
@media (max-width: 640px) {
  .show__p, .show__p.is-on { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .show__arch, .show__p.is-on .show__arch { width: min(16rem, 70vw); }
}
