/* Client projects and the local community from the What's in Cabo partner wall. */
.brands-section {
  --brand-ink:#211833; --brand-rule:#d8d3ce; --brand-muted:#534d60;
  position:relative; background:#f8f6f2; color:var(--brand-ink);
  border-block:1px solid #e2ddd8; padding-block:clamp(3.4rem,6.1vw,6.4rem);
}
.brand-anchor {position:absolute;inset:0 auto auto 0;pointer-events:none}
html:has(.brands-section:target) {scroll-padding-top:0}
.brand-heading {text-align:center;margin-bottom:clamp(2.2rem,3.9vw,4.2rem)}
.brands-section .brand-heading h2 {
  margin:0;font:550 clamp(3.15rem,5.7vw,6.1rem)/1 Hanken,"Segoe UI",sans-serif;
  letter-spacing:-.07em;text-wrap:balance;
}
.brands-section .brand-heading h2 em {font-family:Instrument,Georgia,serif;font-weight:400;color:#4d2983;letter-spacing:-.04em}
.brand-group {padding:0;margin:0}
.brand-group + .brand-group {margin-top:clamp(1.7rem,3vw,3rem)}
.brand-group>header {display:flex;align-items:baseline;justify-content:space-between;gap:.4rem 1.4rem;
  padding:.87rem 0 0;border-top:1px solid var(--brand-rule)}
.brands-section .brand-group h3 {margin:0;font:610 clamp(1.1rem,1.55vw,1.55rem)/1.22 Hanken,"Segoe UI",sans-serif;
  color:var(--brand-ink);letter-spacing:-.025em}
.brand-link {color:#492477;font-size:.94rem;line-height:1.3;text-decoration:underline;text-underline-offset:.23em;
  text-decoration-thickness:1px;display:inline-flex;gap:.36em;align-items:center;min-height:34px}
.brand-link:hover {text-decoration-thickness:2px}
.brand-grid {--columns:6;list-style:none;padding:0;margin:clamp(.9rem,1.35vw,1.4rem) 0 0;display:flex;
  flex-wrap:wrap;justify-content:center;row-gap:clamp(1.15rem,2vw,2rem)}
.brand-grid li {margin:0;padding:0 clamp(.55rem,1.25vw,1.45rem);flex:0 0 calc(100% / var(--columns));min-width:0;
  display:flex;align-items:center;justify-content:flex-start;flex-direction:column;text-align:center}
.brand-mark {display:flex;align-items:center;justify-content:center;width:100%;height:clamp(3.65rem,4.8vw,5.15rem)}
.brand-grid .brand-mark img {display:block;height:auto;width:auto;max-width:min(100%,10.5rem);max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.brand-community .brand-mark img {filter:grayscale(1)}
.brand-projects .brand-mark {height:clamp(3.3rem,4.2vw,4.6rem)}
.brand-projects .brand-mark img {max-width:min(100%,10rem)}
.brand-name {font:550 clamp(1.12rem,1.55vw,1.52rem)/1.12 Hanken,"Segoe UI",sans-serif;color:#342d3b;letter-spacing:-.025em}
.brand-credit {display:block;margin:.55rem auto 0;max-width:24ch;font:450 .82rem/1.35 Hanken,"Segoe UI",sans-serif;color:var(--brand-muted);text-wrap:balance}
.brand-credit>strong {display:block;color:#34283e;font-weight:620}
.brand-case {display:flex;width:100%;height:100%;align-items:center;flex-direction:column;text-decoration:none;color:inherit;border-radius:4px}
.brand-case:hover .brand-credit,.brand-case:focus-visible .brand-credit {text-decoration:underline;text-underline-offset:.2em;color:#442079}
.brand-case:hover img,.brand-case:focus-visible img {filter:none}
.brand-quote {margin:clamp(2.3rem,4.2vw,4.6rem) 0 0;border-top:1px solid var(--brand-rule);
  padding-top:clamp(1.3rem,2.1vw,2.4rem);display:flex;justify-content:space-between;align-items:center;gap:.8rem 2rem}
.brand-quote blockquote {color:#38254f;font:italic 400 clamp(1.6rem,2.65vw,2.85rem)/1.12 Instrument,Georgia,serif;
  letter-spacing:-.027em;margin:0;max-width:46ch}
.brand-quote figcaption {display:grid;gap:.16rem;font-size:.9rem;color:var(--brand-muted);line-height:1.3}
.brand-quote figcaption strong {color:#30223e;font-size:1.03rem}
@media(max-width:1100px) {.brand-grid {--columns:5}}
@media(max-width:850px) {.brand-grid {--columns:4}}
@media(max-width:690px) {
  .brand-grid {--columns:3;row-gap:1.5rem}
  .brand-group>header {align-items:flex-start;flex-direction:column;gap:.05rem}
  .brand-link {min-height:36px;font-size:.88rem}
  .brand-mark {height:3.8rem}.brand-projects .brand-mark {height:3.3rem}
  .brand-quote {align-items:flex-start;flex-direction:column}
}
@media(max-width:480px) {
  .brand-grid {--columns:2}
  .brands-section .brand-heading h2 {font-size:clamp(2.68rem,10.7vw,3.7rem)}
  .brand-mark {height:3.7rem}.brand-credit {font-size:.8rem}
}
