.test1-directory {
  background: #ffffff;
}

.test1-directory__section {
  --test1-directory-switch-top: clamp(100px, 11vh, 118px);
  --test1-directory-switch-height: 48px;
  --test1-directory-content-gap: clamp(44px, calc(6vh - 10px), 62px);
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  background: #ffffff;
  color: #000000;
}

.test1-directory__switch {
  position: absolute;
  top: var(--test1-directory-switch-top);
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(292px, calc(100% - 40px));
  height: var(--test1-directory-switch-height);
  padding: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 999px;
  background: #f1f1f1;
  transform: translateX(-50%);
}

.test1-directory__switch button {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  place-items: center;
  background: transparent;
  color: #111111;
  font: 400 15px/1 "Inter", sans-serif;
  cursor: pointer;
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

.test1-directory__switch button.is-active {
  background: #ffffff;
}

.test1-directory__switch button:focus-visible {
  outline: 2px solid #d5d5d5;
  outline-offset: 2px;
}

.test1-directory__panel {
  width: 100%;
}

.test1-directory__panel[hidden] {
  display: none;
}

.test1-team__inner {
  display: flex;
  width: calc(100% - (2 * var(--header-side-padding-desktop)));
  margin-inline: auto;
  padding-block:
    calc(
      var(--test1-directory-switch-top) + var(--test1-directory-switch-height) +
        var(--test1-directory-content-gap)
    )
    clamp(88px, 10vh, 124px);
  flex-direction: column;
  gap: var(--test1-directory-content-gap);
}

.test1-team__intro {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(32px, 3.4vw, 60px);
  align-items: start;
}

.test1-team__title {
  grid-column: 1 / 3;
  margin: 0;
  font: 400 clamp(21px, 1.55vw, 25px) / 1.34 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.test1-team__title span {
  display: block;
}

.test1-directory__reveal-line,
.test1-directory__summary-copy {
  background-image: linear-gradient(
    90deg,
    #000000 0%,
    #000000 46%,
    #e1ac41 50%,
    rgb(0 0 0 / 0) 54%,
    rgb(0 0 0 / 0) 100%
  );
  background-position: 100% 0;
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-clip: text;
  color: transparent;
  transition: background-position 1250ms cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.test1-directory__reveal-line {
  display: block;
}

.test1-directory__reveal-line--muted {
  background-image: linear-gradient(
    90deg,
    #9c9c9c 0%,
    #9c9c9c 46%,
    #e1ac41 50%,
    rgb(0 0 0 / 0) 54%,
    rgb(0 0 0 / 0) 100%
  );
}

.test1-directory__panel.is-copy-reveal-visible .test1-directory__reveal-line,
.test1-directory__panel.is-copy-reveal-visible .test1-directory__summary-copy {
  background-position: 0% 0;
}

.test1-directory__panel.is-copy-reveal-resetting .test1-directory__reveal-line,
.test1-directory__panel.is-copy-reveal-resetting .test1-directory__summary-copy {
  background-position: 100% 0;
  transition: none;
}

.test1-team__summary {
  grid-column: 4 / 6;
  display: flex;
  width: 100%;
  margin: 0;
  justify-content: flex-end;
  justify-self: end;
  font: 400 15px/1.3 "Inter", sans-serif;
  letter-spacing: normal;
  text-align: left;
}

.test1-team__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(28px, 2.6vw, 52px);
  row-gap: clamp(54px, 6vw, 86px);
}

.test1-team__card {
  width: 100%;
  min-width: 0;
}

.test1-team__card:nth-child(n + 6) {
  transform: translateY(-23px);
}

.test1-team__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1354 / 1812;
  object-fit: cover;
}

.test1-team__name {
  margin: 11px 0 1px;
  font: 400 clamp(16px, 1.08vw, 19px) / 1.08 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.test1-team__role {
  margin: 0;
  color: #777777;
  font: 400 clamp(13px, 0.86vw, 15px) / 1.12 "Inter", sans-serif;
  letter-spacing: -0.015em;
}

.test1-partners {
  min-height: 100svh;
}

.test1-partners__inner {
  display: flex;
  width: min(1210px, calc(100% - (2 * var(--header-side-padding-desktop))));
  margin-inline: auto;
  padding-block:
    calc(
      var(--test1-directory-switch-top) + var(--test1-directory-switch-height) +
        var(--test1-directory-content-gap)
    )
    clamp(90px, 10vh, 128px);
  flex-direction: column;
  gap: clamp(112px, 11vw, 156px);
}

.test1-partners__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  column-gap: clamp(64px, 10vw, 168px);
  align-items: start;
}

.test1-partners__title {
  margin: 0;
  font: 400 clamp(22px, 1.65vw, 26px) / 1.18 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.test1-partners__summary {
  margin: 0;
  font: 400 15px/1.42 "Inter", sans-serif;
  letter-spacing: normal;
  text-align: left;
}

.test1-directory__summary-line {
  display: block;
}

.test1-directory__summary-copy {
  display: flex;
  width: max-content;
  max-width: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
}

.test1-partners__summary {
  width: min(100%, 450px);
  justify-self: end;
}

.test1-partners__summary .test1-directory__summary-copy {
  display: block;
  width: auto;
  white-space: normal;
}

.test1-partners__bank-grid {
  display: grid;
  margin-top: clamp(38px, 4.2vw, 54px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(18px, 1.75vw, 26px);
  row-gap: clamp(38px, 3.8vw, 50px);
}

.test1-partners__bank-card {
  min-width: 0;
}

.test1-partners__bank-image {
  display: block;
  width: 100%;
  aspect-ratio: 2394 / 1495;
  border-radius: 7px;
  object-fit: cover;
}

.test1-partners__bank-image--airwallex {
  position: relative;
  overflow: hidden;
  background: #202020;
}

.test1-partners__bank-image--airwallex img {
  position: absolute;
  top: 10%;
  right: 6%;
  width: 44%;
  height: auto;
  filter: invert(1);
  opacity: 0.72;
}

.test1-partners__bank-image--airwallex::before {
  position: absolute;
  top: 34%;
  left: 8%;
  width: 12%;
  aspect-ratio: 1.3;
  border: 1px solid rgb(80 80 80 / 0.55);
  border-radius: 3px;
  background: linear-gradient(135deg, #a8a8a8, #d5d5d5 48%, #8d8d8d);
  content: "";
}

.test1-partners__bank-image--airwallex::after {
  position: absolute;
  right: 7%;
  bottom: 7%;
  color: #ffffff;
  font: 700 clamp(13px, 1.3vw, 22px) / 1 "Inter", sans-serif;
  font-style: italic;
  content: "VISA";
}

.test1-partners__bank-name {
  margin: 14px 0 3px;
  font: 400 15px/1.15 "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.test1-partners__bank-detail {
  margin: 0;
  color: #7b7b7b;
  font: 400 12px/1.25 "Inter", sans-serif;
}

.test1-partners__catalog {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(580px, 1.65fr);
  column-gap: clamp(72px, 10vw, 160px);
  align-items: center;
}

.test1-partners__catalog-title {
  margin: 0;
  font: 400 clamp(22px, 1.65vw, 26px) / 1.18 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.test1-partners__catalog-copy p {
  max-width: 350px;
  margin: 18px 0 0;
  font: 400 15px/1.45 "Inter", sans-serif;
}

.test1-partners__logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}

.test1-partners__logo-tile {
  display: grid;
  height: 84px;
  padding: 16px 22px;
  border-radius: 7px;
  place-items: center;
  overflow: hidden;
  background: #f1f1f1;
}

.test1-partners__logo-tile img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 100%;
  max-height: 44px;
  object-fit: contain;
}

@media (min-width: 1181px) {
  .home-proof-transition > .test1-directory,
  .home-proof-transition .test1-directory__section {
    background: transparent;
  }
}

@media (max-width: 1180px) {
  .test1-directory__section {
    --test1-directory-switch-top: 88px;
    --test1-directory-switch-height: 46px;
    --test1-directory-content-gap: 24px;
    min-height: 100svh;
    height: auto;
  }

  .test1-directory__switch {
    width: min(270px, calc(100% - 40px));
    padding: 4px;
  }

  .test1-directory__switch button {
    font-size: 15px;
  }

  .test1-team__inner {
    width: 100%;
    height: auto;
    padding:
      calc(
        var(--test1-directory-switch-top) + var(--test1-directory-switch-height) +
          var(--test1-directory-content-gap)
      )
      20px 56px;
    gap: var(--test1-directory-content-gap);
  }

  .test1-team__intro {
    display: block;
  }

  .test1-team__title {
    font-size: 26px;
  }

  .test1-team__summary {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.3;
    justify-self: stretch;
    text-align: left;
  }

  .test1-team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    column-gap: 14px;
    row-gap: 32px;
  }

  .test1-team__card {
    width: 100%;
  }

  .test1-team__card:nth-child(n + 6) {
    transform: none;
  }

  .test1-team__name {
    margin-top: 9px;
    font-size: 16px;
  }

  .test1-team__role {
    font-size: 13px;
    line-height: 1.18;
  }

  .test1-partners {
    height: auto;
    min-height: 100svh;
  }

  .test1-partners__inner {
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding:
      calc(
        var(--test1-directory-switch-top) + var(--test1-directory-switch-height) +
          var(--test1-directory-content-gap)
      )
      20px 56px;
    gap: 82px;
  }

  .test1-partners__intro {
    display: block;
  }

  .test1-partners__title {
    width: auto;
    font-size: 26px;
  }

  .test1-partners__summary {
    margin-top: 24px;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.3;
  }

  .test1-directory__summary-line {
    display: inline;
  }

  .test1-directory__summary-copy {
    display: inline;
  }

  .test1-team__summary .test1-directory__summary-copy {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .test1-partners__bank-grid {
    margin-top: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 16px;
  }

  .test1-partners__catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

  .test1-partners__catalog-title {
    font-size: 26px;
  }

  .test1-partners__catalog-copy p {
    max-width: 620px;
    font-size: 17px;
  }

  .test1-partners__logo-grid {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .test1-partners__inner {
    gap: 74px;
  }

  .test1-partners__title,
  .test1-partners__catalog-title {
    font-size: 23px;
  }

  .test1-partners__summary,
  .test1-partners__catalog-copy p {
    font-size: 15px;
    line-height: 1.4;
  }

  .test1-partners__bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }

  .test1-partners__bank-name {
    margin-top: 10px;
    font-size: 14px;
  }

  .test1-partners__bank-detail {
    font-size: 11px;
  }

  .test1-partners__logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .test1-partners__logo-tile {
    height: 74px;
    padding: 14px 18px;
  }

  .test1-partners__logo-tile img {
    max-width: 132px;
    max-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .test1-directory__reveal-line,
  .test1-directory__summary-copy {
    background-position: 0% 0;
    transition: none;
  }
}
