/* Client logos on the homepage (task client-logos, 2026-11-15).
   1. .logo-marquee  the "Selected clients" strip: two rows of logos drifting in opposite directions.
   2. .client-card   the four featured clients under "Who we've done it for": photo, logo, label.
   Logos are single-colour files; brightness(0) plus opacity keeps every one in the same ink. */

/* 1. Logo strip */
.logo-marquee{display:grid;gap:30px;overflow:hidden;overflow:clip;padding-block:4px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.logo-track{display:flex;width:max-content;margin:0;padding:0;list-style:none;animation:logo-drift var(--t,84s) linear infinite}
.logo-track.reverse{animation-direction:reverse}
.logo-marquee:hover .logo-track,.logo-marquee:focus-within .logo-track{animation-play-state:paused}
.logo-track li{flex:none;display:flex;align-items:center;height:48px;padding-right:clamp(38px,5vw,78px)}
.logo-track img{display:block;height:var(--h);width:auto;max-width:none;filter:brightness(0);opacity:.7;transition:opacity .2s}
.logo-track button{display:block;border:0;background:none;padding:0;border-radius:3px}
.logo-track button:hover img,.logo-track button:focus-visible img{opacity:1}
@keyframes logo-drift{to{transform:translateX(-50%)}}

/* 2. Featured client cards */
.client-card{position:relative;display:flex;flex-direction:column;padding:0;border:0;border-radius:9px;background:#f5f3ef;color:#35312d;overflow:hidden;text-align:left}
.client-card:nth-child(even){background:#f1efed}
.client-card:hover{background:#eae5dd}
.client-card .shot{display:block;aspect-ratio:3/2;overflow:hidden;background:#e3dfd8}
.client-card .shot img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.client-card:hover .shot img{transform:scale(1.045)}
.client-card .name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.client-card .mark{display:block;box-sizing:content-box;height:calc(var(--h) * .96);width:auto;max-width:62%;padding-block:calc((38px - var(--h)) * .48);margin:20px 18px 0;align-self:flex-start;object-fit:contain;object-position:left center;filter:brightness(0);opacity:.8}
.client-card small{margin:9px 18px 20px;font:11px/1.4 var(--mono);color:#6d675e}
.client-card i{position:absolute;bottom:16px;right:14px;display:grid;place-items:center;background:#e3dfd8;border-radius:50%;height:24px;width:24px;font:17px/1 Inter,sans-serif;font-style:normal}

@media(max-width:760px){
  .logo-marquee{gap:20px}
  .logo-track li{height:40px;padding-right:34px}
  .logo-track img{height:calc(var(--h) * .82)}
  .client-card .mark{height:calc(var(--h) * .8);padding-block:calc((38px - var(--h)) * .4);max-width:70%;margin:14px 12px 0}
  .client-card small{margin:7px 12px 16px;padding-right:26px}
  .client-card i{bottom:12px;right:10px}
}
/* Without motion: the first row only, still, as a short centred list. */
@media(prefers-reduced-motion:reduce){
  .logo-marquee{-webkit-mask-image:none;mask-image:none}
  .logo-track{animation:none;width:auto;flex-wrap:wrap;justify-content:center;row-gap:10px}
  .logo-track.reverse,.logo-track li[aria-hidden],.logo-track li:nth-child(n+9){display:none}
  .logo-track li{padding-inline:clamp(14px,2vw,30px)}
  .client-card .shot img{transition:none}
}

/* 3. Client panel: the dialog a logo or a card opens (task client-panel, 2026-11-16).
   A wide photo with no bars at its sides, then the client's logo in place of a typed heading. */
#case{width:min(620px,calc(100% - 32px));border:0;border-radius:14px;box-shadow:0 30px 110px #271c1740}
#case[open]{animation:case-in .3s cubic-bezier(.2,.7,.2,1)}
#case[open]::backdrop{animation:case-fade .3s ease}
@keyframes case-in{from{opacity:0;transform:translateY(14px) scale(.985)}}
@keyframes case-fade{from{opacity:0}}
#case #case-img{aspect-ratio:16/9;height:auto;object-fit:cover;background:#e9e5de}
#case .close{right:14px;top:14px;width:34px;height:34px;padding:0 0 2px;border:0;display:grid;place-items:center;font:300 23px/1 Inter,sans-serif;box-shadow:0 2px 10px #1d15102e}
#case .close:hover{background:#f1efed}
#case .case-copy{padding:28px 32px 32px}
#case #case-mark{display:block;width:auto;height:calc(var(--h,30px) * 1.15);max-width:60%;object-fit:contain;object-position:left center;background:none;filter:brightness(0);opacity:.85;margin-bottom:20px}
#case .micro{margin-bottom:12px}
#case h2{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}
#case #case-body{max-width:none;font-size:18px;line-height:27px;color:#3d3934}
#case .case-copy .button{margin-top:26px}
@media(max-width:760px){
  #case .case-copy{padding:22px 20px 24px}
  #case #case-mark{height:var(--h,30px);margin-bottom:16px}
  #case #case-body{font-size:16px;line-height:24px}
}
@media(prefers-reduced-motion:reduce){#case[open],#case[open]::backdrop{animation:none}}
