:root {
  color-scheme: light;
  --bg:#ffffff;
  --ink:#000000;
  --u:var(--cu);
}
html,
body {
  background: var(--bg);
}
body {
  color: var(--ink);
}
.top {
  position: relative;
  padding: calc(var(--sec) + 76 * var(--u)) var(--gutter) var(--sec);
  display: grid;
  grid-template-columns: calc(370 * var(--u)) calc(960 * var(--u));
  column-gap: calc(350 * var(--u));
  row-gap: var(--sec-head);
  grid-template-areas: "tag title" "intro list";
  align-items: end;
}
.tagline {
  grid-area: tag;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1;
}
.title {
  grid-area: title;
  margin: 0;
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -.01em;
}
.intro {
  grid-area: intro;
  align-self: start;
  margin: 0;
  font-size: var(--fs-text);
  line-height: 1.5;
}
.list {
  grid-area: list;
  align-self: start;
  min-width: 0;
}
.list .tf-tabs {
  margin-bottom: var(--sec-head);
}
.list .tf-tabs ~ .clients:not(.is-on) {
  display: none;
}
.list .tf-tabs ~ .clients.is-on {
  animation: clients-in .6s var(--out) both;
}
@keyframes clients-in {
  from {
    opacity: 0;
    translate: 0 calc(24 * var(--u));
  }
}
.clients {
  --cg:calc(30 * var(--u));
  --card-h:max(calc(140 * var(--u)), 110px);
  --cl:var(--row);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--cg);
  row-gap: var(--sec-head);
}
.client {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.client .card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--card-h);
  background: #f2f2f0;
  transition: background .35s ease;
}
.client img {
  display: block;
  max-width: 58%;
  max-height: 46%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15) brightness(.8);
  opacity: .85;
  transition:
    filter .45s ease,
    opacity .45s ease,
    scale .6s var(--out);
}
.client.is-white img {
  filter: brightness(0);
  opacity: .8;
}
.client::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * var(--cg));
  top: calc(var(--card-h) + var(--cl));
  height: 1px;
  background: rgba(0, 0, 0, .2);
}
.client:nth-child(3n)::before {
  right: 0;
}
.client .name {
  margin-top: calc(2 * var(--cl) + 1px);
  text-align: center;
  font-size: var(--fs-caption);
  line-height: 1.5;
}
.client:hover .card {
  background: #e9e9e7;
}
.client:hover img {
  filter: none;
  opacity: 1;
  scale: 1.04;
}
.client.is-white:hover img {
  filter: brightness(0);
  opacity: 1;
}
@media (min-width:1024px) and (max-width:1439px) {
  .top {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 120px);
  }
  .clients {
    --cg:20px;
  }
}
@media (max-width:1023px) {
  .top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--head-h) var(--gutter) var(--sec);
  }
  .top > .bar {
    margin-bottom: var(--sp-5);
  }
  .tagline {
    margin-bottom: var(--sp-3);
  }
  .title {
    margin-bottom: var(--sec-head);
  }
  .intro {
    max-width: 40ch;
    margin-bottom: var(--sp-5);
  }
  .list .tf-tabs {
    margin-bottom: var(--sp-5);
  }
  .clients {
    --cg:20px;
    --card-h:120px;
    --cl:var(--sp-3);
    row-gap: var(--sp-5);
  }
  .client .name {
    font-size: var(--fs-small);
  }
}
@media (max-width:767px) {
  .clients {
    --cg:12px;
    --card-h:100px;
    --cl:var(--sp-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--sp-4);
  }
  .client:nth-child(3n)::before {
    right: calc(-1 * var(--cg));
  }
  .client:nth-child(2n)::before {
    right: 0;
  }
}
.side {
  grid-area: intro;
  align-self: start;
  position: sticky;
  top: max(calc(150 * var(--u)), 110px);
  display: flex;
  flex-direction: column;
  gap: var(--sec-head);
}
.side .intro {
  grid-area: auto;
}
.ind-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, .15);
}
.ind-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: max(calc(14 * var(--u)), 11px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  color: rgba(0, 0, 0, .5);
  text-decoration: none;
  font-size: var(--fs-small);
  line-height: 1.3;
  transition: color .25s ease;
}
.ind-nav .n {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-caption);
  opacity: .7;
}
.ind-nav a:hover,
.ind-nav a[aria-current] {
  color: #000;
}
.ind-nav a[aria-current] {
  font-weight: 500;
}
.ind-nav a[aria-current] .n {
  color: var(--gold);
  opacity: 1;
}
.groups {
  display: flex;
  flex-direction: column;
  gap: max(calc(120 * var(--u)), 64px);
}
.group {
  scroll-margin-top: max(calc(150 * var(--u)), 110px);
}
.group-title {
  margin: 0 0 max(calc(48 * var(--u)), 28px);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.group-title a {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}
.group-title svg {
  flex: none;
  width: 1em;
  height: 1em;
  transition: translate .4s var(--out);
}
.group-title a:hover {
  color: var(--gold);
}
.group-title a:hover svg {
  translate: .15em 0;
}
@media (max-width:1023px) {
  .side {
    position: static;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
  }
  .side .intro {
    margin-bottom: 0;
  }
  .groups {
    gap: var(--sp-6);
  }
  .ind-page .side {
    order: 2;
    margin: var(--sp-6) 0 0;
  }
  .group-title {
    margin-bottom: var(--sp-4);
  }
}
@media (prefers-reduced-motion:reduce) {
  .client .card,
  .client img {
    transition: none;
  }
  .list .tf-tabs ~ .clients.is-on {
    animation: none;
  }
}
