/* Open editorial copy above two overlapping product screens. */
.team-views { scroll-margin-top: 110px; }
/* Present the default view before the deferred controller loads. */
.js .team-views .team-view-content { display: grid; }
.js .team-views .team-view {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 360ms var(--ease), visibility 0s 220ms;
}
.js .team-views .team-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.team-view-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}
.team-view-copy h2 {
  max-width: 18ch;
  color: var(--navy);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}
.team-view-copy p {
  max-width: 49ch;
  color: var(--slate);
  font-size: var(--supporting-text-size);
  line-height: 1.65;
}
.team-view-surround {
  padding: clamp(1rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--markets-background);
}
.team-view-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  isolation: isolate;
}
.team-view-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 74%;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 27, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 35px -20px rgba(7, 17, 27, 0.25);
  z-index: 1;
  cursor: pointer;
  transform: translateY(0) scale(0.985);
  transform-origin: top left;
  transition: transform 480ms var(--ease), box-shadow 480ms var(--ease);
}
.team-view-screen[data-team-screen="compliance"] {
  top: 10%;
  left: 26%;
  transform-origin: top right;
}
.team-view-screen.is-active {
  transform: translateY(-10px) scale(1);
  box-shadow: 0 22px 55px -24px rgba(7, 17, 27, 0.35);
  z-index: 2;
}
.team-view-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3580 / 2080;
  overflow: hidden;
}
/* Frame the supplied screenshots without their surrounding black margins. */
.team-view-image img {
  position: absolute;
  width: 107.04%;
  max-width: none;
  height: auto;
  left: -3.52%;
  top: -4.45%;
}
.team-views-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.team-views-tabs button {
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid transparent;
  color: var(--slate);
  font-size: 0.875rem;
  white-space: normal;
  transition: color 180ms ease, border-color 180ms ease;
}
.team-views-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.team-views-tabs button:hover { color: var(--navy); }
.team-views-tabs button:disabled { cursor: default; }
.team-views :is(button, [tabindex]):focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 4px;
}
.team-view:focus-visible { border-radius: 6px; }
html:not(.js) .team-views .team-view + .team-view { margin-top: 3rem; }
@media (max-width: 760px) {
  .team-view-copy { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
  .team-view-copy h2 { font-size: clamp(2.25rem, 7.5vw, 3rem); }
  .team-view-copy p { font-size: 1rem; }
  .team-view-stage { aspect-ratio: 1.6 / 1; }
  .team-view-screen { width: 92%; border-radius: 6px; }
  .team-view-screen[data-team-screen="compliance"] { left: 8%; }
  .team-view-screen.is-active { transform: translateY(-5px) scale(1); }
  .team-views-tabs { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-views-tabs button,
  .team-view-screen,
  .js .team-views .team-view { transition: none; }
  .js .team-views .team-view,
  .team-view-screen,
  .team-view-screen.is-active { transform: none; }
}
