/* Client logo wall, review wall and metrics band (trust.py). Uses the site's theme tokens only. */

/* Logo wall: one-colour logos tinted by the theme, Supabase-style grid with sector filters */
.trustwall .trust-filters { margin-top: 22px; }
.logo-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.logo-grid > li {
  min-height: 118px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); transition: color .25s ease;
}
.logo-grid > li[hidden] { display: none; }
.logo-grid > li:hover { color: var(--fg); }
.logo-mark {
  /* square seals get more height than wide wordmarks so they read at the same visual weight */
  --h: clamp(44px, calc(92px / var(--ar, 2)), 68px);
  display: block; height: var(--h); width: min(150px, calc(var(--h) * var(--ar, 2))); max-width: 100%;
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.logo-name { font-size: 12px; line-height: 1.3; max-width: 16ch; }
.logo-type { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; max-width: 14ch; }
.trust-more { margin: 18px 0 0; }

/* Metrics band */
.metrics-band { padding-block: clamp(28px, 4vw, 52px); }
.metric-grid {
  margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric-grid > div { padding: 22px 16px 20px 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-width: 0; }
.metrics-inside { padding-block: clamp(28px, 4vw, 48px) 0; }
.metric-grid > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.metric-grid dd { order: -1; margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.metric-grid dt { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* Review wall: three slowly drifting columns, edges faded, paused on hover or keyboard focus */
.rv-wall {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.rv-col { min-width: 0; }
.rv-track, .rv-copy { display: grid; gap: 14px; }
.rv-track { animation: rv-drift var(--rv-speed, 70s) linear infinite; }
.rv-copy { padding-top: 0; }
.rv-wall:is(:hover, :focus-within) .rv-track { animation-play-state: paused; }
@keyframes rv-drift { to { transform: translateY(calc(-50% - 7px)); } }
.rv-card {
  margin: 0; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--fg) 3%, var(--bg));
  display: grid; gap: 12px;
}
.rv-card blockquote { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg); }
.rv-card figcaption { display: grid; gap: 2px; font-size: 13px; }
.rv-card figcaption b { font-weight: 600; color: var(--fg); }
.rv-client { color: var(--accent); }
.rv-meta { color: var(--muted); }
.rv-meta a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.rv-card a:focus-visible, .trust-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .rv-track { animation: none; }
  .rv-wall { overflow-y: auto; }
  .rv-copy { display: none; }
}

@media (max-width: 1040px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .metric-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .rv-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-col:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .metrics-inside { display: none; }
  .trust-filters { flex-wrap: wrap; overflow-x: visible; }
  .trust-filters button { flex: 0 1 auto; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid > li { min-height: 92px; padding: 14px 8px; }
  .logo-mark { --h: clamp(32px, calc(70px / var(--ar, 2)), 52px); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid > div:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 10px; }
  .metric-grid > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .metric-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* phones: every review in one swipeable row, no drift */
  .rv-wall {
    height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-mask-image: none; mask-image: none; padding-bottom: 8px;
  }
  .rv-col, .rv-col:nth-child(3), .rv-track { display: contents; }
  .rv-copy { display: none; }
  .rv-card { flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
}

/* Clientele page (trust.clientele_main): cards, partners, earlier brands, own brands */
.clientele-page .lead-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 15px; }
.clientele-page .lead-facts b { color: var(--fg); font-size: 22px; font-weight: 600; margin-right: 4px; }
.cc-section { padding-block: clamp(34px, 5vw, 64px) 0; }
.cc-h { font-size: clamp(26px, 3vw, 38px); margin: 6px 0 0; }
.cc-note { color: var(--muted); margin: 10px 0 0; }
.cc-grid { align-items: start; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cc-card[hidden] { display: none; }
.cc-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  background: color-mix(in srgb, var(--fg) 2%, var(--bg)); transition: border-color .25s ease;
}
.cc-card:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.cc-logo { height: 120px; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); color: var(--fg); }
.cc-logo .logo-mark { --h: clamp(40px, calc(96px / var(--ar, 2)), 72px); }
.cc-body { padding: 16px 18px 18px; display: grid; align-content: start; gap: 6px; }
.cc-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.cc-sector, .cc-via { margin: 0; font-size: 13px; color: var(--muted); }
.cc-via { color: var(--accent); }
.cc-work { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-work li { font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); }
.cc-quote { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.cc-quote p { margin: 0; font-size: 14px; line-height: 1.5; }
.cc-quote footer { display: block; padding: 0; border: 0; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.cc-quote a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.collab-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collab { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 16px; }
.collab-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.collab-head .cc-logo { height: 96px; border: 1px solid var(--line); border-radius: 10px; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.cc-logo .logo-mark { max-width: 100%; }
.collab-head h3 { margin: 0 0 6px; font-size: 20px; }
.collab-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.collab-projects, .mini-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mini-wall { margin-top: 18px; }
.collab-projects li, .mini-wall li {
  min-height: 104px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--muted);
  display: grid; place-items: center; gap: 6px; text-align: center;
}
.collab-projects li span, .mini-wall li span { font-size: 12px; line-height: 1.3; }
.collab-projects .logo-mark, .mini-wall .logo-mark { --h: clamp(30px, calc(70px / var(--ar, 2)), 52px); }
.collab-projects .logo-type, .mini-wall .logo-type { font-size: 15px; }
@media (max-width: 900px) { .collab-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
  .cc-logo { height: auto; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line); padding: 10px; }
  .cc-logo .logo-mark { --h: clamp(28px, calc(70px / var(--ar, 2)), 56px); }
  .collab-head { grid-template-columns: minmax(0, 1fr); }
  .collab-head .cc-logo { border-right: 1px solid var(--line); }
  .collab-projects, .mini-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Copper dot-matrix band, Supabase-style (owner decision 42, 29 Nov 2026): full width, no panel, hairline rule,
   copper dot field filling the right half to the screen edge and fading out at its edges */
.dotband {
  --dm-on: #eaa77a; --dm-off: rgba(217, 143, 96, .22); --dm-mid: rgba(226, 150, 102, .5);
  position: relative; overflow: hidden; border-block: 1px solid var(--line);
  min-height: 380px; display: flex; align-items: center; margin-block: clamp(40px, 6vw, 88px) 0;
}
/* inside a padded .wrap main (Clientele): cancel the page gutter exactly so the band runs edge to edge */
main.wrap > .dotband { margin-inline: calc(-1 * var(--site-gutter)); }
[data-theme="light"] .dotband { --dm-on: #97471f; --dm-off: rgba(151, 71, 31, .18); --dm-mid: rgba(151, 71, 31, .42); }
.dotband .dotmatrix {
  position: absolute; top: 0; bottom: 0; left: 48%; right: 0; width: 52%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 55% 50%, #000 45%, transparent 100%);
}
.dotband-inner { position: relative; width: 100%; padding-block: 64px; }
.dotband-copy { max-width: min(520px, 46%); }
.dotband-copy h2 { margin: 0; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.dotband-copy p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.dotband-cta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--fg); text-decoration: none;
  background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--line);
}
.dotband-cta:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.dotband-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dotband-figure-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
@media (max-width: 760px) {
  .dotband { flex-direction: column; align-items: stretch; min-height: 0; }
  .dotband .dotmatrix { position: relative; order: 2; left: 0; width: 100%; height: 170px; display: block;
    -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 40%, transparent 100%); }
  .dotband-inner { padding-block: 40px 8px; }
  .dotband-copy { max-width: none; }
}

/* International clients (owner decision 42) */
.cc-intl { margin: 0; font-size: 13.5px; color: var(--fg); }
.cc-intl em { font-style: italic; }

/* Under the dot figure: what the number counts (owner, 29 Nov 2026). Sits below the glyph row at the field's centre */
.dotband-caption {
  position: absolute; left: 48%; width: 52%; top: calc(50% + 52px); margin: 0; text-align: center;
  max-width: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dm-on); pointer-events: none;
}

/* Client spotlight (trust.client_spotlight): one client per visit, first on the Clientele page */
.spotlight { margin-top: clamp(14px, 2.4vw, 28px); }
.spot {
  --dm-off: rgba(217, 143, 96, .2); --spot-glow: rgba(217, 143, 96, .16);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: color-mix(in srgb, var(--fg) 2%, var(--bg)); animation: spot-in .6s ease both;
}
[data-theme="light"] .spot { --dm-off: rgba(151, 71, 31, .16); --spot-glow: rgba(151, 71, 31, .1); }
.spot[hidden] { display: none; }
@keyframes spot-in { from { opacity: 0; transform: translateY(6px); } }
.spot-art {
  position: relative; display: grid; place-items: center; padding: 40px; min-height: 360px; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--spot-glow), transparent 75%);
  overflow: hidden; align-content: center; gap: 22px;
}
/* the same breathing copper dot field as the dot band (dotmatrix.js with no figures), fading at its edges */
.spot { --dm-on: #eaa77a; --dm-mid: rgba(226, 150, 102, .5); }
[data-theme="light"] .spot { --dm-on: #97471f; --dm-mid: rgba(151, 71, 31, .42); }
.spot-art .dotmatrix {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 40%, transparent 100%);
}
.spot-logo, .spot-tag { position: relative; }
.spot-tag {
  margin: 0; max-width: none; text-align: center; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500;
  letter-spacing: -.005em; color: var(--fg);
}
.spot-logo {
  width: min(78%, 300px); aspect-ratio: 1.6; display: grid; place-items: center; padding: 26px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--fg); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .5);
}
.spot-logo .logo-mark { --h: clamp(56px, calc(150px / var(--ar, 2)), 110px); width: min(220px, calc(var(--h) * var(--ar, 2))); }
.spot-logo .logo-type { font-size: 24px; font-weight: 600; text-align: center; }
.spot-body { padding: clamp(26px, 3.4vw, 48px); display: grid; align-content: center; gap: 16px; }
.spot-kicker { margin: 0; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spot-kicker span { color: var(--accent); }
.spot-body h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; }
.spot-about { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 60ch; }
.spot-stats { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.spot-stats div { display: flex; flex-direction: column; }
.spot-stats dd { order: -1; margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.spot-stats dt { font-size: 13px; color: var(--muted); }
.spot-we { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.spot-we h3 { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.spot-we p { margin: 0; font-size: 16px; line-height: 1.6; }
.spot-quote { margin: 0; padding-left: 16px; border-left: 2px solid var(--accent); }
.spot-quote p { margin: 0; font-size: 15.5px; line-height: 1.55; font-style: italic; }
.spot-quote footer { display: block; margin-top: 6px; padding: 0; border: 0; font-size: 13px; color: var(--muted); }
.spot-quote a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.spot-links { display: flex; flex-wrap: wrap; gap: 10px; }
.spot-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 14.5px;
}
.spot-link:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.spot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .spot { grid-template-columns: minmax(0, 1fr); }
  .spot-art { min-height: 0; padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .spot-logo { width: min(70%, 240px); }
  .dotband-caption { position: static; order: 3; width: 100%; padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .spot { animation: none; } }

/* redacted proof viewer (trust.js) */
.proof-dialog {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg); color: var(--fg); overflow: auto;
}
.proof-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.proof-dialog img { display: block; width: 100%; height: auto; border-radius: 8px; }
.proof-dialog p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
:root body .proof-dialog .proof-close { display: block; margin: 0 0 12px auto; min-height: 44px; padding: 8px 16px; border-radius: 10px; }

/* proof.py: "Who we have done this for" on service pages, and the /proof/ page */
.service-proof { padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); }
.service-proof h2 { margin: 10px 0 12px; }
.sp-lead, .proof-page .pf-section > p { max-width: 70ch; color: var(--muted); }
.sp-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sp-list > li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--fg) 2%, var(--bg)); }
.sp-list b { font-size: 17px; font-weight: 600; }
.sp-meta { color: var(--muted); font-size: 13.5px; }
.sp-did { font-size: 14.5px; color: var(--accent); }
.sp-quote { margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.sp-quote p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg); max-width: none; }
.sp-quote footer { display: block; margin-top: 6px; padding: 0; border: 0; font-size: 13px; color: var(--muted); }
.sp-quote a, .pf-table a, .pf-links a { text-decoration: underline; text-underline-offset: .2em; }

.proof-page .pf-section { padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.proof-page .pf-section h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 44px); }
.pf-table { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; }
.pf-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pf-table th, .pf-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pf-table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pf-table tr:last-child td { border-bottom: 0; }
.pf-table td:first-child { min-width: 150px; }
.pf-spot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pf-spot > li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.pf-spot b { font-size: 18px; }
.pf-spot p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: none; }
.pf-spot .pf-links { color: var(--fg); }
.pf-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
@media (max-width: 760px) {  /* each row becomes a card; the column name rides along as a small label */
  .pf-table { border: 0; overflow: visible; }
  .pf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pf-table table, .pf-table tbody, .pf-table tr, .pf-table td { display: block; }
  .pf-table tr { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .pf-table td { padding: 3px 0; border: 0; font-size: 15px; }
  .pf-table td:first-child { font-size: 17px; }
  .pf-table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
}
