.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 {
  height: 100%;
}

.test1-partners__inner {
  display: flex;
  width: min(1444px, calc(100% - (2 * var(--header-side-padding-desktop))));
  height: 100%;
  margin-inline: auto;
  padding-block:
    calc(
      var(--test1-directory-switch-top) + var(--test1-directory-switch-height) +
        var(--test1-directory-content-gap)
    )
    clamp(54px, 7vh, 82px);
  flex-direction: column;
  gap: var(--test1-directory-content-gap);
}

.test1-partners__intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 2.6vw, 42px);
  align-items: start;
}

.test1-partners__title {
  grid-column: 1 / 2;
  width: min(480px, calc(100% + clamp(58px, 5vw, 86px)));
  margin: 0;
  font: 400 clamp(21px, 1.55vw, 25px) / 1.34 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.test1-partners__summary {
  grid-column: 3 / 4;
  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-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__cards {
  display: grid;
  height: clamp(236px, 29.5vh, 280px);
  min-height: 0;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 42px);
}

.test1-partners__card {
  min-width: 0;
  min-height: 0;
  padding: clamp(27px, 2.1vw, 36px);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse 62% 130% at 105% 110%,
      rgb(255 255 255 / 0.98) 0%,
      rgb(249 242 149 / 0.94) 15%,
      rgb(225 172 65 / 0.78) 31%,
      rgb(225 172 65 / 0.4) 47%,
      rgb(225 172 65 / 0.14) 62%,
      rgb(0 0 0 / 0) 78%
    ),
    #000000;
  color: #ffffff;
}

.test1-partners__card-title {
  display: inline-block;
  margin: 0 0 clamp(20px, 2.8vh, 28px);
  background: linear-gradient(90deg, #e1ac41 0%, #f9f295 50%, #e1ac41 100%);
  background-clip: text;
  font: 400 clamp(13px, 0.95vw, 15px) / 1 "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.test1-partners__logos {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.test1-partners__logo {
  display: grid;
  height: 36px;
  padding: 1.5px 12px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 4px;
  place-items: center;
  background: rgb(0 0 0 / 0.12);
}

.test1-partners__logo img {
  display: block;
  width: auto;
  max-width: 152px;
  height: 31px;
  max-height: 100%;
  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: auto;
    max-width: 620px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.3;
    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: var(--test1-directory-content-gap);
  }

  .test1-partners__intro {
    display: block;
  }

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

  .test1-partners__summary {
    display: block;
    width: auto;
    max-width: 620px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
  }

  .test1-directory__summary-line,
  .test1-directory__summary-copy {
    display: inline;
    width: auto;
    max-width: none;
    white-space: normal;
  }

  .test1-partners__cards {
    display: grid;
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .test1-partners__card {
    min-height: 230px;
    padding: 26px 22px;
    border-radius: 15px;
  }

  .test1-partners__card-title {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .test1-partners__logos {
    gap: 9px;
  }

  .test1-partners__logo {
    height: 36px;
    padding: 1.5px 9px;
  }
}

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