/* Office pages and the Offices index in the Signature design (docs/SIGNATURE-PAGES.md) */
html[data-look="signature"]{
  /* Shared measures, so the About and Other offices text lines up */
  .of-about,.of-others{--of-rail:clamp(11rem,28vw,24rem);--of-gap:clamp(2rem,5vw,5rem)}

  /* Hero. Phones and tablets: the office's own photo across the top, under the see-through header, with the name,
     button and address beneath it, so nobody in the photo is covered or cut off. Computers: the photo fills the first
     screen with the words over it, on the homepage opening's scrim (.s-intro in look-signature.css) */
  .of-hero{background:var(--stone)}
  .of-hero-ph{position:relative;overflow:hidden;aspect-ratio:16/10;background:var(--ink)}
  .of-hero-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
  /* A scrim down from the top, so the header's logo, number and menu read on a pale sky or wall */
  .of-hero-ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.28) 22%,rgba(0,0,0,0) 46%)}
  .of-hero-in{padding-block:1.5rem clamp(2.5rem,5vw,4.5rem)}
  .of-hero-h,.of-hero-t{min-width:0}
  .of-crumb{margin:0;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase}
  .of-crumb a{color:var(--forest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:0.25em}
  .of-crumb a:hover{text-decoration-color:currentColor}
  .of-h1{margin:1rem 0 0;font:300 clamp(min(2.5rem,12vw),5.6vw,5rem)/1.04 var(--serif);letter-spacing:-.022em;text-wrap:balance;overflow-wrap:break-word}
  .of-hero-l{margin:1rem 0 0;max-width:34em;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5;color:var(--mid)}
  .of-acts{margin-top:1.5rem}

  /* Address and number under a rule */
  .of-facts{display:flex;flex-wrap:wrap;gap:0.75rem 3rem;margin:1.5rem 0 0;padding-top:1.5rem;border-top:1px solid var(--rule)}
  .of-facts dt{font:500 0.8125rem/1.3 var(--sans);color:var(--mid)}
  .of-facts dd{margin:0.25rem 0 0;font-size:1.0625rem}
  .of-facts address{font-style:normal;line-height:1.45}
  .of-facts a{color:var(--forest);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:0.2em;hyphens:none}
  .of-facts a[href^="tel:"]{white-space:nowrap}
  .of-facts .of-note{font-size:0.9375rem;color:var(--mid)}

  @media (min-width:56.26em){
    .of-hero{position:relative;display:flex;align-items:flex-end;min-height:min(100svh,67.5rem);overflow:hidden;isolation:isolate;background:var(--ink);color:#fff}
    .of-hero-ph{position:absolute;inset:0;z-index:-1;aspect-ratio:auto}
    .of-hero-ph::after{background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 34%,rgba(0,0,0,.72) 100%),linear-gradient(90deg,rgba(0,0,0,.35),rgba(0,0,0,0) 60%)}
    .of-hero-in{width:100%;padding-block:calc(var(--mast) + 2rem) clamp(2.5rem,7vh,4.5rem)}
    /* Everything in one column on the left, on every office, so no words sit over the people in a photo */
    .of-hero-h,.of-hero-t,.of-facts{max-width:26rem}
    .of-hero-h{max-width:none}
    .of-hero-t{margin-top:1.25rem}
    .of-hero-in{text-shadow:0 0 1.5rem rgba(0,0,0,.5)}  /* keeps the words readable where the photo is pale (Byron Bay's and Melbourne's sky) without darkening the people */
    .of-hero .book{text-shadow:none}
    .of-crumb a{color:#fff}
    .of-h1{margin-top:0.75rem;max-width:6.5em;font:300 clamp(3.25rem,7.2vw,7.25rem)/1 var(--serif);letter-spacing:-.03em}  /* the office's name always starts the second line */
    .of-hero-l{margin:0;font-size:clamp(1.0625rem,1.35vw,1.25rem);line-height:1.45;color:#fff}
    .of-hero .book{background:#fff;color:var(--forest);border-color:#fff}
    .of-hero .book:hover{background:var(--sand);color:var(--forest);border-color:var(--sand)}
    .of-facts{border-top-color:rgba(255,255,255,.35)}
    .of-facts dt{color:rgba(255,255,255,.8)}
    .of-facts a{color:#fff}
    .of-facts .of-note{color:rgba(255,255,255,.85)}
  }
  @media (max-width:36em){
    .of-hero-ph{aspect-ratio:5/4}
  }

  /* Headings: no single word left alone on the last line */
  .of-team .s-head{align-items:baseline}
  .of-team .ar-more-h,.of-about .ar-more-h,.of-others .ar-more-h,.of-come .ar-more-h,.of-intro .ar-more-h{text-wrap:balance}

  /* Team cards: every card ends with one action on the same line */
  .of-team .s-person-t>:last-child{margin-top:auto}
  .of-team .s-person-t>p:last-of-type{margin-bottom:1rem}
  .of-more{align-self:flex-start;height:2.5rem;color:var(--forest)}
  .s-person-ph.of-noph{display:grid;place-items:center;background:var(--forest);color:#fff;font:300 clamp(2.5rem,6vw,4.5rem)/1 var(--serif);letter-spacing:-.02em}
  .of-count{margin:0 0 1rem;font:500 0.875rem/1.3 var(--sans);color:var(--mid)}
  .of-count:empty{display:none}
  .of-filters .s-chips button small{margin-left:0.375rem;font:inherit;font-size:0.75rem;opacity:.65}

  /* Five, nine or thirteen people: five a row, so no one is left alone on the last row */
  @media (min-width:56.26em){
    .of-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
  }

  /* Two or three people: the heading takes the first column, the cards the rest */
  @media (min-width:56.26em){
    .of-team-few{display:grid;column-gap:clamp(0.75rem,1.4vw,1.25rem)}
    .of-team-3{grid-template-columns:repeat(4,minmax(0,1fr))}
    .of-team-2{grid-template-columns:repeat(3,minmax(0,1fr))}
    .of-team-solo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:clamp(0.75rem,1.4vw,1.25rem)}
    .of-team-solo .of-team-head{display:block;grid-column:1;margin-bottom:0}
    .of-team-solo .of-team-body{grid-column:2/-1;min-width:0}
    .of-team.of-team-solo .s-person{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
    .of-team-few .of-team-head{display:block;grid-column:1;margin-bottom:0}
    .of-team-few .of-team-body{grid-column:2/-1;min-width:0}
  }
  @media (min-width:35.01em){
    .of-team-3 .s-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .of-team-2 .s-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  }

  /* One person: a wide card, portrait left, name and actions right */
  .of-team-solo .s-grid{grid-template-columns:minmax(0,1fr)}
  .of-team-solo .s-person-t>:last-child{margin-top:0}
  .of-team-solo .s-person-t>.of-solo-acts{margin-top:1.5rem}
  .of-solo-acts .s-book{margin-top:0}
  @media (min-width:36.01em){
    .of-team-solo .s-person{display:grid;grid-template-columns:clamp(11rem,28vw,24rem) minmax(0,1fr);column-gap:clamp(2rem,5vw,5rem);align-items:center}
    .of-team-solo .s-person-t{padding:0;flex:none}
    .of-team-solo .s-person h3{font-size:clamp(1.875rem,3vw,2.5rem)}
  }

  /* About: heading in the rail, words and areas beside it */
  .of-about,.of-others{display:grid;grid-template-columns:var(--of-rail) minmax(0,1fr);column-gap:var(--of-gap);align-items:start}
  .of-about-t{max-width:41rem}
  .of-lede{margin:0;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5}
  .of-body{margin:1rem 0 0;line-height:1.6;color:var(--mid)}
  .of-label{margin:1.5rem 0 0;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--mid)}
  .of-label+.of-body{margin-top:0.75rem;color:var(--ink)}
  .of-areas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:1.5rem;list-style:none;margin:0.75rem 0 0;padding:0;border-bottom:1px solid var(--rule)}
  .of-areas li{padding:0.625rem 0;border-top:1px solid var(--rule);font-size:1rem;line-height:1.4}
  /* The hero photo's credit closes the stone "Other offices" section it follows */
  .of-credit{background:var(--stone)}
  /* The closing lines under the suburbs: the wider area, then everywhere else */
  .of-wider{margin:1rem 0 0;font-size:1rem;line-height:1.5}
  .of-wider span{display:block}
  .of-wider span+span{color:var(--mid)}

  /* Other offices: one row each, name left, street right */
  .of-list{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--rule)}
  .of-list li{border-top:1px solid var(--rule)}
  .of-list a,.of-list .of-soon{display:grid;grid-template-columns:minmax(0,1fr) auto 0.875rem;gap:1rem 1.5rem;align-items:center;min-height:3.5rem;padding:0.875rem 0}
  .of-list a{color:var(--ink)}
  .of-list b{font:300 clamp(1.25rem,1.7vw,1.5rem)/1.15 var(--serif);letter-spacing:-.01em}
  .of-list a span,.of-list .of-soon span{font-size:0.9375rem;color:var(--mid);text-align:right}
  .of-list svg{width:0.8125rem;height:0.8125rem;color:var(--forest)}
  @media (prefers-reduced-motion:no-preference){
    .of-list svg{transition:transform .3s var(--ease)}
    .of-list a:hover svg{transform:translateX(0.25rem)}
  }

  /* The office's own words: photo and text side by side */
  .of-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem clamp(1.5rem,4vw,4rem);align-items:stretch}
  .of-intro-ph{position:relative;overflow:hidden;border-radius:var(--r-lg);min-height:22rem;background:var(--grey)}
  .of-intro-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
  .of-intro-t{align-self:center;min-width:0}
  .of-prose{margin-top:1.5rem}
  .of-prose>:first-child{margin-top:0}
  .of-prose>:last-child{margin-bottom:0}
  .of-intro-acts{margin-top:1.5rem}
  .of-intro-solo{grid-template-columns:minmax(0,1fr)}
  .of-intro-solo .of-intro-t{max-width:41rem}

  /* Services: white cards on Stone */
  .of-svcs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(0.75rem,1.4vw,1.25rem);list-style:none;margin:0;padding:0}
  .of-svcs-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .of-svcs-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .of-svc{padding:clamp(1.5rem,2.4vw,2.25rem);border-radius:var(--r-lg);background:#fff}
  .of-svc h3{margin:0 0 0.625rem;font:500 1.25rem/1.3 var(--sans)}
  .of-svc-t{color:var(--mid);line-height:1.55}
  .of-svc-t p{margin:0}
  .of-svc-t p+p{margin-top:0.75rem}

  /* Questions: a Stone panel, heading left, white question cards right */
  .of-faq-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1.5rem clamp(2rem,5vw,5rem);align-items:start;padding:clamp(1.5rem,3vw,2.25rem);border-radius:var(--r-lg);background:var(--stone)}
  .of-faq-in .ar-more-h{margin:0}

  /* Offices index: one card per office */
  .of-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.75rem,3vw,2.75rem) clamp(0.75rem,1.4vw,1.25rem);list-style:none;margin:0;padding-block:0}
  .of-card{display:flex;flex-direction:column;min-width:0}
  .of-card-ph{display:block;overflow:hidden;border-radius:var(--r-lg);aspect-ratio:16/10;background:var(--grey)}
  .of-card-ph img{display:block;width:100%;height:100%;object-fit:cover}
  @media (prefers-reduced-motion:no-preference){
    .of-card-ph img{transition:transform 1s cubic-bezier(.16,1,.3,1)}
    .of-card:hover .of-card-ph img{transform:scale(1.04)}
  }
  .of-card-t{display:flex;flex:1;flex-direction:column;padding:1rem 0.25rem 0}
  .of-card .s-eyebrow{margin-bottom:0.5rem}
  .of-card-h{margin:0;font:300 clamp(1.5rem,2.3vw,2.125rem)/1.18 var(--serif);letter-spacing:-.015em}
  .of-card-h a{color:inherit}
  .of-card address{margin:0.5rem 0 1rem;font-style:normal;font-size:0.9375rem;line-height:1.5;color:var(--mid)}
  .of-card address a{color:inherit;white-space:nowrap;hyphens:none}
  .of-card .of-more{margin-top:auto}

  /* Come to you: photo and steps side by side */
  .of-come{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem clamp(1.5rem,4vw,4rem);align-items:stretch}
  .of-come-ph{position:relative;overflow:hidden;border-radius:var(--r-lg);min-height:26rem;background:var(--grey)}
  .of-come-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
  .of-come-t{align-self:center;min-width:0}
  .of-steps{list-style:none;margin:1.5rem 0 0;padding:0;border-bottom:1px solid var(--rule)}
  .of-steps li{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:1rem;align-items:baseline;padding:1.125rem 0;border-top:1px solid var(--rule)}
  .of-step-n{font:300 2.5rem/1 var(--serif);color:var(--forest)}
  .of-steps h3{margin:0;font:500 1.25rem/1.3 var(--sans)}
  .of-steps p{margin:0.25rem 0 0;color:var(--mid);line-height:1.55}
  .of-come-acts{margin-top:1.5rem}

  /* Large tablet: four services become two a row */
  @media (max-width:75em){
    .of-svcs-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  }

  /* Tablet: the hero, intro and come-to-you stack with the photo first */
  @media (max-width:56.25em){
    .of-about{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    .of-intro,.of-come{grid-template-columns:minmax(0,1fr)}
    .of-intro-ph,.of-come-ph{aspect-ratio:3/2;min-height:0}
    .of-svcs-3{grid-template-columns:minmax(0,1fr)}
    .of-faq-in{grid-template-columns:minmax(0,1fr)}
    .of-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  }

  /* Areas two a row once four get tight */
  @media (max-width:48em){
    .of-areas{grid-template-columns:repeat(2,minmax(0,1fr))}
  }

  /* Phone: the few and solo team cards stack, each portrait a 3:2 band edge to edge, cropped from the top */
  @media (max-width:35em){
    .of-team-few .s-grid{grid-template-columns:minmax(0,1fr);row-gap:2.5rem}
    .of-team-few .s-person-ph{margin-inline:calc(var(--gut) * -1);border-radius:0;aspect-ratio:3/2}
    .of-team-few .s-person-ph img{object-position:50% 0}
    .of-team-few .s-person-ph.of-noph{display:none}
    .of-team-few .s-person-ph.of-noph+.s-person-t{padding-top:1.5rem;border-top:1px solid var(--rule)}
    .of-faq-in{padding:1.25rem}
  }

  /* Phone: everything stacks; photos run edge to edge */
  @media (max-width:36em){
    .of-team-solo .s-grid{row-gap:2.5rem}
    .of-team-solo .s-person-ph{margin-inline:calc(var(--gut) * -1);border-radius:0;aspect-ratio:3/2}
    .of-team-solo .s-person-ph img{object-position:50% 0}
    .of-about,.of-others{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    .of-list a,.of-list .of-soon{grid-template-columns:minmax(0,1fr) 0.875rem;row-gap:0.25rem}
    .of-list b{grid-column:1;grid-row:1}
    .of-list a span,.of-list .of-soon span{grid-column:1;grid-row:2;text-align:left}
    .of-list svg{grid-column:2;grid-row:1/span 2}
    .of-intro,.of-come{padding-top:0}
    .of-intro-ph,.of-come-ph{margin-inline:calc(var(--gut) * -1);border-radius:0}
    .of-svcs,.of-svcs-4{grid-template-columns:minmax(0,1fr)}
    .of-cards{grid-template-columns:minmax(0,1fr);row-gap:2.5rem}
    .of-card-ph{margin-inline:calc(var(--gut) * -1);border-radius:0}
    .of-more{height:2.25rem}
  }

  /* Small phone: the main buttons run the full width */
  @media (max-width:30em){
    .of-acts .book,.of-come-acts .book{flex:1 1 100%;justify-content:center}
  }
  /* The narrowest phones: a card's Book button has less padding, and grows if a long name still takes two lines */
  @media (max-width:22.5em){
    .of-team .s-book{gap:0.375rem;height:auto;min-height:2.25rem;padding:0.375rem 0.75rem;line-height:1.15}
  }

  /* Very large text on a phone (200%): the questions panel runs edge to edge with tighter cards, service cards and
     the areas list give their words more room, so no word is broken letter by letter */
  @media (max-width:20em){
    .of-faq-in{margin-inline:calc(var(--gut) * -1);padding:1.25rem var(--gut);border-radius:0}
    .of-faq .s-faq .faq summary{grid-template-columns:minmax(0,1fr) 1.5rem;gap:0.5rem;padding:0.75rem;font-size:1rem}
    .of-faq .s-faq .faq summary i{width:1.5rem;height:1.5rem}
    .of-faq .s-faq .faq summary i::before,.of-faq .s-faq .faq summary i::after{left:0.4375rem;right:0.4375rem}
    .of-faq .s-faq .faq .a{padding:0 0.75rem 0.75rem}
    .of-svc{padding:1rem}
    .of-svc h3{font-size:1.0625rem}
    .of-areas{grid-template-columns:minmax(0,1fr)}
  }

  /* The office's own photo (its team or building) beside the local text: never cropped, so nobody is cut off */
  .of-about-ph{overflow:hidden;border-radius:var(--r-lg);aspect-ratio:3/2;background:var(--grey)}
  .of-about-ph img{display:block;width:100%;height:100%;object-fit:cover}
  @media (min-width:56.26em){
    .of-about.of-about-pic{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:clamp(1.5rem,4vw,4rem);row-gap:1.5rem;align-items:start}
    .of-about-pic .of-rail{grid-column:1;grid-row:1}
    .of-about-pic .of-about-t{grid-column:1;grid-row:2}
    .of-about-pic .of-about-ph{grid-column:2;grid-row:1/3;align-self:center}
  }
  @media (max-width:56.25em){
    .of-about-pic .of-about-ph{order:-1}
  }
  @media (max-width:36em){
    .of-about.of-about-pic{padding-top:0}
    .of-about-pic .of-about-ph{margin-inline:calc(var(--gut) * -1);border-radius:0}
  }

  /* A small photo beside the office's words (600 pixels wide): a narrower column, so it is never stretched soft */
  .of-intro.of-intro-small .of-intro-ph{align-self:center;aspect-ratio:1/1;min-height:0}
  @media (min-width:36.01em){
    .of-intro.of-intro-small{grid-template-columns:min(37.5rem,40%) minmax(0,1fr)}
    .of-intro.of-intro-small .of-intro-ph{order:0}
  }

  /* Tablet and desktop: a short last row is centred, so no row ends with an empty slot (Dieter, 23 Nov 2026, option A). The grid
     itself is unchanged: only the cards of a short last row move along by half a card for each empty slot (translate, so the
     reveal animation's transform is untouched; nothing else gets one, so full rows render exactly as before). Counts only the cards the role filter is showing, so the short row re-centres.
     3 a row on a tablet (2 when there are exactly four, as for every people grid), 4 or 5 on a desktop. Phones are unchanged. */
  @media (min-width:35.01em) and (max-width:56.25em){
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:not(:has(> li:nth-child(4):last-child)):has(> li:nth-last-child(1 of :not([hidden])):nth-child(3n+1 of :not([hidden])))>li:nth-last-child(-n+1 of :not([hidden])){--of-k:1;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:not(:has(> li:nth-child(4):last-child)):has(> li:nth-last-child(1 of :not([hidden])):nth-child(3n+2 of :not([hidden])))>li:nth-last-child(-n+2 of :not([hidden])){--of-k:0.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:has(> li:nth-child(4):last-child):has(> li:nth-last-child(1 of :not([hidden])):nth-child(2n+1 of :not([hidden])))>li:nth-last-child(-n+1 of :not([hidden])){--of-k:0.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
  }
  @media (min-width:56.26em){
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:not(.of-grid-5):has(> li:nth-last-child(1 of :not([hidden])):nth-child(4n+1 of :not([hidden])))>li:nth-last-child(-n+1 of :not([hidden])){--of-k:1.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:not(.of-grid-5):has(> li:nth-last-child(1 of :not([hidden])):nth-child(4n+2 of :not([hidden])))>li:nth-last-child(-n+2 of :not([hidden])){--of-k:1;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid:not(.of-grid-5):has(> li:nth-last-child(1 of :not([hidden])):nth-child(4n+3 of :not([hidden])))>li:nth-last-child(-n+3 of :not([hidden])){--of-k:0.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid.of-grid-5:has(> li:nth-last-child(1 of :not([hidden])):nth-child(5n+1 of :not([hidden])))>li:nth-last-child(-n+1 of :not([hidden])){--of-k:2;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid.of-grid-5:has(> li:nth-last-child(1 of :not([hidden])):nth-child(5n+2 of :not([hidden])))>li:nth-last-child(-n+2 of :not([hidden])){--of-k:1.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid.of-grid-5:has(> li:nth-last-child(1 of :not([hidden])):nth-child(5n+3 of :not([hidden])))>li:nth-last-child(-n+3 of :not([hidden])){--of-k:1;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid.of-grid-5:has(> li:nth-last-child(1 of :not([hidden])):nth-child(5n+4 of :not([hidden])))>li:nth-last-child(-n+4 of :not([hidden])){--of-k:0.5;translate:calc(var(--of-k) * (100% + clamp(0.75rem,1.4vw,1.25rem))) 0}
  }

  /* Phones, an odd number of people showing: the first person takes the full width, so the rest pair up and
     nobody is left alone on the last row. Counts only the cards the role filter is showing. */
  @media (max-width:35em){
    .of-team:not(.of-team-few,.of-team-solo) .of-grid>li:nth-child(1 of :not([hidden])):nth-last-child(odd of :not([hidden])){grid-column:1/-1}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid>li:nth-child(1 of :not([hidden])):nth-last-child(odd of :not([hidden])) .s-person-ph{aspect-ratio:3/2}
    .of-team:not(.of-team-few,.of-team-solo) .of-grid>li:nth-child(1 of :not([hidden])):nth-last-child(odd of :not([hidden])) .s-person-ph img{object-position:50% 0}
  }
}
