/* The film's characters and conversations, within the original card layout. */
.capabilities {
  padding-top: 88px;
  --scene-paper: #fffcfa;
  --scene-soft: #faf5f0;
  --scene-border: #ebdfd7;
  --scene-bubble: #fff;
  --scene-reply: #ffeadc;
}
.capabilities-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}
.capabilities-heading h2 {
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}
.capabilities-heading h2 em {
  color: var(--accent);
}
.distribution-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 48px;
  padding: 42px 46px;
  border-radius: 28px;
  background: linear-gradient(125deg, #fff1e8, #ffeadc);
  border: 1px solid #f0d8c9;
  overflow: hidden;
}
.distribution-copy h3 {
  font-size: clamp(32px, 3.15vw, 44px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -1.5px;
}
.distribution-copy h3 em {
  color: var(--accent);
}
.distribution-copy > p {
  max-width: 350px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.film-owner {
  position: relative;
  display: block;
  width: 64px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}
.film-agent {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.film-human {
  position: absolute;
  z-index: 1;
  right: -5%;
  bottom: -5%;
  width: 42%;
  height: 42%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}
.scene-person {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 12px;
}
.scene-speaker {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 8px;
}
/* A steady network, with incoming leads assessed at the recipient's side. */
.opportunity-network {
  width: 100%;
  max-width: 610px;
  margin-inline: auto;
  outline-offset: 9px;
  border-radius: 20px;
  --lead-line: color-mix(in srgb, var(--muted) 21%, transparent);
}
.lead-field {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 290;
}
.lead-field > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lead-mesh {
  fill: none;
  stroke: var(--lead-line);
  stroke-width: 1;
}
.lead-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.lead-request {
  position: absolute;
  left: 4%;
  top: 68%;
  max-width: 62%;
  opacity: 1;
}
.lead-request > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.lead-request > p {
  width: fit-content;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--scene-border));
  border-radius: 15px 15px 15px 4px;
  background: var(--scene-paper);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.25px;
  color: var(--ink);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--ink) 3%, transparent);
}
.lead-receiver-label {
  position: absolute;
  left: 81%;
  top: 59%;
  width: 37%;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}
.lead-receiver-label > span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.lead-insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 108px;
  margin-top: 16px;
  padding: 19px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--scene-border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--scene-paper) 90%, transparent);
}
.lead-insight-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--scene-soft);
  color: var(--muted);
}
.lead-insight-symbol svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lead-insight > div {
  min-width: 0;
}
.lead-insight > div > span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 6px;
}
.lead-insight p {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-wrap: pretty;
}
.opportunity-network[data-lead-phase="matched"] .lead-insight-symbol {
  color: var(--accent);
  background: var(--scene-reply);
}
.opportunity-network[data-lead-phase="matched"] .lead-insight > div > span {
  color: var(--accent);
}
.opportunity-network.is-narrow .lead-field {
  aspect-ratio: 340 / 275;
  min-height: 260px;
}
.opportunity-network.is-narrow .lead-request {
  left: 3%;
  top: 67%;
  max-width: 94%;
}
.opportunity-network.is-narrow .lead-request > p {
  font-size: 16px;
  padding: 10px 13px;
}
.opportunity-network.is-narrow .lead-request > span {
  margin-bottom: 6px;
  font-size: 11px;
}
.opportunity-network.is-narrow .lead-receiver-label {
  left: 78%;
  top: 43%;
  width: 41%;
  font-size: 13px;
}
.opportunity-network.is-narrow .lead-receiver-label > span {
  font-size: 11px;
  margin-top: 3px;
}
.opportunity-network.is-narrow .lead-insight {
  min-height: 122px;
  padding: 17px 16px;
  gap: 10px;
  margin-top: 12px;
}
.opportunity-network.is-narrow .lead-insight p {
  font-size: 16px;
  line-height: 1.45;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.capability-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--scene-border);
  border-radius: 25px;
  background: var(--scene-paper);
}
.capability-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 378px;
  padding: 25px 24px;
  background: linear-gradient(160deg, var(--scene-paper), var(--scene-soft));
  border-bottom: 1px solid var(--scene-border);
  overflow: hidden;
}
.capability-copy {
  flex: 1;
  padding: 27px 28px 30px;
}
.capability-copy h3 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.7px;
  color: var(--ink);
}
.capability-copy > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 13px;
}
.agency-conversation {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 330px;
}
.speaker-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.speaker-message > div {
  min-width: 0;
}
.speaker-message--human {
  justify-content: flex-end;
  margin-left: 12px;
}
.speaker-message--agent {
  margin-right: 10px;
}
.speaker-message--human .scene-speaker {
  text-align: right;
}
.scene-bubble {
  width: fit-content;
  padding: 14px 16px;
  border-radius: 17px;
  background: var(--scene-bubble);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 3%, transparent);
}
.speaker-message--human .scene-bubble {
  margin-left: auto;
  background: var(--scene-reply);
  border-top-right-radius: 5px;
}
.speaker-message--agent .scene-bubble {
  border-top-left-radius: 5px;
}
.message-human {
  flex: none;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 25px;
}
.message-agent {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 2px;
  background: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: 50%;
  margin-top: 25px;
}
.message-agent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
/* Saved connections keep their place as the chosen circle changes. */
.capability-visual.contacts-visual {
  padding-block: 18px;
}
.contacts-scene {
  width: 100%;
  max-width: 330px;
}
.contact-network {
  position: relative;
  width: 100%;
  height: 224px;
}
.contact-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 23%, var(--scene-border));
  stroke-width: 1.25;
  pointer-events: none;
}
.contact-links path {
  transition: opacity 0.28s;
}
.contact-links path.is-filtered {
  opacity: 0;
}
.saved-contact,
.contact-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  text-align: center;
  transform: translateX(-50%);
}
.saved-contact {
  left: var(--contact-x);
  top: var(--contact-y);
  transition:
    opacity 0.28s,
    visibility 0.28s;
}
.saved-contact.is-filtered {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.saved-contact .film-owner {
  width: 46px;
  padding: 3px;
  transition: transform 0.28s;
}
.saved-contact.is-filtered .film-owner {
  transform: scale(0.86);
}
.saved-contact .film-human {
  border-width: 2px;
}
.saved-contact strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.contact-center {
  left: 50%;
  top: 76px;
  width: 90px;
}
.contact-center .film-owner {
  width: 56px;
  padding: 3px;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 5%, transparent),
    0 5px 16px color-mix(in srgb, var(--ink) 5%, transparent);
}
.contact-center strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 7px;
}
.contact-tags {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  right: -8px;
  top: -8px;
  padding: 3px 4px;
  border: 1px solid var(--scene-border);
  border-radius: 8px;
  background: var(--scene-paper);
  color: var(--muted);
}
.contact-tags > span {
  display: block;
  width: 12px;
  height: 12px;
}
.contact-tags svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-network[data-active-circle="friends"] [data-tag="friends"],
.contact-network[data-active-circle="work"] [data-tag="work"],
.contact-network[data-active-circle="services"] [data-tag="services"],
.contact-network[data-active-circle="gaming"] [data-tag="gaming"] {
  color: var(--accent);
}
.circle-tabs {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.circle-tabs button {
  padding: 7px 6px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.circle-tabs button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--scene-border);
  background: var(--scene-bubble);
  box-shadow: 0 2px 7px color-mix(in srgb, var(--ink) 3%, transparent);
}
.circle-tabs button:hover {
  color: var(--ink);
}
.contact-request {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  margin: 10px auto 0;
  padding: 9px 12px;
  max-width: 300px;
  border: 1px solid var(--scene-border);
  border-radius: 14px;
  background: var(--scene-bubble);
}
.contact-request > span {
  flex: none;
  font-size: 11px;
  line-height: 18px;
  color: var(--muted);
}
.contact-request > p {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  text-wrap: pretty;
}

.compatible-agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 15px;
  width: 100%;
  max-width: 320px;
}
.compatible-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.compatible-agent > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 4%, transparent);
}
.compatible-agent > span > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.compatible-agent:nth-child(-n + 2) > span > img {
  border-radius: 50%;
}
.compatible-agent--custom > span > img {
  width: 80%;
  height: 80%;
  mix-blend-mode: normal;
}
.compatible-agent > p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.installed-mark {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 23px;
  height: 23px;
  border: 3px solid #fff;
  background: #fff;
  border-radius: 8px;
}
.installed-mark::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  mask: url("/assets/site/assets/logo.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/site/assets/logo.svg") center / contain no-repeat;
}
html[data-palette="green"] .capabilities {
  --scene-paper: #fcfefc;
  --scene-soft: #edf5ef;
  --scene-border: #dbe8df;
  --scene-bubble: #fff;
  --scene-reply: #d8eedf;
}
@media (max-width: 1100px) {
  .distribution-card {
    padding: 32px;
    gap: 30px;
  }
  .capability-grid {
    gap: 16px;
  }
  .capability-visual {
    padding: 23px 18px;
  }
  .capability-copy {
    padding: 24px 22px 27px;
  }
  .capability-copy h3 {
    font-size: 23px;
  }
  .circle-tabs {
    gap: 2px;
  }
}
@media (max-width: 1000px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .capability-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .capability-visual {
    border-bottom: 0;
    border-right: 1px solid var(--scene-border);
    padding: 26px;
  }
  .capability-copy {
    align-self: center;
    padding: 30px;
  }
  .capability-copy h3 {
    font-size: 26px;
  }
  .distribution-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .distribution-copy {
    max-width: 610px;
  }
  .distribution-copy > p {
    max-width: 560px;
    margin-top: 18px;
  }
  .opportunity-network {
    max-width: 560px;
  }
}
@media (max-width: 850px) {
  .capabilities {
    padding-top: 62px;
  }
  .capabilities-heading {
    display: block;
    margin-bottom: 31px;
  }
}
@media (max-width: 700px) {
  .capability-card {
    display: flex;
  }
  .capability-visual {
    border-right: 0;
    border-bottom: 1px solid var(--scene-border);
  }
  .capability-copy {
    align-self: stretch;
  }
  .capability-copy h3 {
    font-size: 25px;
  }
}
@media (max-width: 560px) {
  .capabilities-heading h2 {
    font-size: 39px;
    letter-spacing: -1.7px;
  }
  .distribution-card {
    padding: 27px 22px 24px;
    border-radius: 24px;
    gap: 28px;
  }
  .distribution-copy h3 {
    font-size: 34px;
    letter-spacing: -1.1px;
  }
  .distribution-copy h3 br {
    display: block;
  }
  .distribution-copy > p {
    font-size: 16px;
  }
  .capability-copy {
    padding: 25px 26px 28px;
  }
  .capability-visual {
    padding: 25px;
    min-height: 330px;
  }
}
@media (max-width: 370px) {
  .capabilities-heading h2 {
    font-size: 35px;
  }
  .distribution-card {
    padding-inline: 18px;
  }
  .distribution-copy h3 {
    font-size: 31px;
  }
  .capability-visual {
    padding: 22px 19px;
  }
  .capability-copy {
    padding-inline: 22px;
  }
  .compatible-agents {
    gap: 24px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .saved-contact,
  .saved-contact .film-owner,
  .contact-links path {
    transition: none !important;
  }
}

/* The desktop trio shares its illustration and copy rows. Content can grow
   without pushing only one divider down or clipping the contact filters. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1001px) {
    .capability-grid {
      grid-template-rows: auto auto;
      row-gap: 0;
    }
    .capability-grid > .capability-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 2;
      row-gap: 0;
    }
  }
}
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 1001px) and (max-width: 1100px) {
    .capability-visual {
      min-height: 440px;
    }
  }
}
