/* 2026-08-26 — keep the input, NeuMa model and four outputs in one scan. */
.qesora-pipeline-creative {
  padding: 4px;
  border: 1px solid #17181a;
  border-radius: 3px;
  background: #17181a;
  box-shadow: none;
  overflow: hidden;
  transform: rotate(-1.55deg);
  transform-origin: 50% 50%;
}

.qesora-pipeline-creative__frame {
  border-radius: 2px;
  overflow: hidden;
}

/* Compact the hand-off after the response cards: one intentional pause, not
   three stacked section spacings. Hero and the first feature stage are untouched. */
.qesora-kpi-section {
  padding-bottom: 0;
}

.qesora-four-signals {
  padding-bottom: clamp(28px, 3vw, 42px);
}

.qesora-pipeline-responses {
  border-radius: 3px;
  box-shadow: none;
  overflow: hidden;
  transform: rotate(1.05deg);
  transform-origin: 50% 50%;
}

.qesora-feature-tab {
  align-items: center;
  grid-template-rows: 1fr;
  row-gap: 0;
}

.qesora-feature-tab__icon,
.qesora-feature-tab__title {
  grid-row: 1;
}

.qesora-feature-tab__title {
  grid-column: 2;
  align-self: center;
}

@media (min-width: 761px) {
  .qesora-kpi-section__intro {
    margin-bottom: clamp(34px, 4vw, 54px);
  }

  .qesora-response-pipeline {
    grid-template-columns:
      minmax(0, 1.12fr)
      clamp(30px, 4vw, 48px)
      clamp(82px, 10vw, 150px)
      clamp(30px, 4vw, 48px)
      minmax(0, 1fr);
    grid-template-rows: auto;
    gap: clamp(6px, 1vw, 14px);
    align-items: center;
    width: 100%;
  }

  .qesora-pipeline-creative,
  .qesora-pipeline-arrow--input,
  .qesora-pipeline-model,
  .qesora-pipeline-arrow--output,
  .qesora-pipeline-responses {
    grid-row: 1;
    width: auto;
    margin-inline: 0;
  }

  .qesora-pipeline-creative {
    grid-column: 1;
    justify-self: center;
    width: 92%;
  }
  .qesora-pipeline-arrow--input { grid-column: 2; }
  .qesora-pipeline-model { grid-column: 3; }
  .qesora-pipeline-arrow--output { grid-column: 4; }
  .qesora-pipeline-responses { grid-column: 5; }

  .qesora-pipeline-creative__frame {
    aspect-ratio: 16 / 10.5;
  }

  .qesora-pipeline-model {
    align-self: center;
    width: 100%;
  }

  .qesora-neuma-particle-core {
    width: 100%;
    aspect-ratio: 1;
  }

  .qesora-pipeline-arrow {
    position: relative;
    justify-self: stretch;
    width: 100%;
    height: 34px;
  }

  .qesora-pipeline-arrow svg {
    display: none;
  }

  .qesora-pipeline-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 9px;
    background: #1e3fe0;
    clip-path: polygon(0 44%, 76% 44%, 76% 0, 100% 50%, 76% 100%, 76% 56%, 0 56%);
    transform: translateY(-50%);
  }

  .qesora-pipeline-arrow::after {
    content: none;
  }

  .qesora-pipeline-response {
    grid-template-columns: 20px minmax(74px, .84fr) 22px minmax(68px, 1.16fr);
    grid-template-areas: "icon title num wave";
    min-height: clamp(52px, 5.5vw, 72px);
    padding: 7px clamp(8px, 1vw, 13px);
    column-gap: clamp(5px, .7vw, 10px);
  }

  .qesora-pipeline-response__title strong {
    font-size: clamp(12px, 1.2vw, 15px);
    line-height: 1.08;
  }

  .qesora-pipeline-response__head > b,
  .qesora-pipeline-response:hover .qesora-pipeline-response__head > b,
  .qesora-pipeline-response[aria-selected="true"] .qesora-pipeline-response__head > b {
    font-size: 8px !important;
  }

  .qesora-pipeline-response > svg {
    height: clamp(22px, 3vw, 34px);
  }
}

/* On phones the same idea becomes a compact, horizontal micro-dashboard. */
@media (max-width: 760px) {
  .qesora-kpi-section__intro {
    margin-bottom: 28px;
  }

  .qesora-response-pipeline {
    grid-template-columns: minmax(0, 1.04fr) clamp(38px, 11vw, 48px) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 5px;
    align-items: center;
    width: 100%;
  }

  .qesora-pipeline-creative,
  .qesora-pipeline-model,
  .qesora-pipeline-responses {
    grid-row: 1;
    margin-inline: 0;
  }

  .qesora-pipeline-creative {
    grid-column: 1;
    justify-self: start;
    width: 90%;
  }

  .qesora-pipeline-creative__frame {
    aspect-ratio: 16 / 10.5;
  }

  .qesora-pipeline-model {
    grid-column: 2;
    z-index: 2;
    width: 100%;
  }

  .qesora-pipeline-model::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -18px;
    z-index: 0;
    width: 20px;
    height: 8px;
    background: #1e3fe0;
    clip-path: polygon(0 44%, 72% 44%, 72% 0, 100% 50%, 72% 100%, 72% 56%, 0 56%);
    transform: translateY(-50%);
  }

  .qesora-pipeline-model::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 1;
    width: 20px;
    height: 8px;
    background: #1e3fe0;
    clip-path: polygon(0 44%, 72% 44%, 72% 0, 100% 50%, 72% 100%, 72% 56%, 0 56%);
    transform: translateY(-50%);
  }

  .qesora-neuma-particle-core {
    z-index: 2;
    width: 100%;
    aspect-ratio: 1;
  }

  .qesora-pipeline-arrow {
    display: none;
  }

  .qesora-pipeline-responses {
    grid-column: 3;
    justify-self: end;
    width: 94%;
    min-width: 0;
  }

  .qesora-pipeline-response {
    grid-template-columns: minmax(0, 1fr) 16px minmax(31px, .62fr);
    grid-template-areas: "title num wave";
    min-height: 25px;
    padding: 2px 4px;
    column-gap: 3px;
  }

  .qesora-pipeline-response__head > i {
    display: none;
  }

  .qesora-pipeline-response__title {
    min-width: 0;
  }

  .qesora-pipeline-response__title strong {
    overflow: hidden;
    font-size: clamp(9px, 2.55vw, 10.5px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .qesora-pipeline-response[data-kpi="load"] .qesora-pipeline-response__title strong {
    line-height: .88;
    text-overflow: clip;
    white-space: normal;
  }

  .qesora-pipeline-response__head > b,
  .qesora-pipeline-response:hover .qesora-pipeline-response__head > b,
  .qesora-pipeline-response[aria-selected="true"] .qesora-pipeline-response__head > b {
    font-size: 7px !important;
  }

  .qesora-pipeline-response > svg {
    height: 14px;
    margin: 0;
  }
}
