/* Agency introduction: three equally visible steps, with separate headings. */
.agency-scene .agency-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.agency-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 22px 20px;
  border: 1px solid #617f9b80;
  border-radius: 12px;
  background: linear-gradient(150deg, #1b344c, #132733);
  box-shadow: 0 10px 24px #020b1826;
}
.agency-step:nth-child(2) {
  background: linear-gradient(150deg, #203c63, #142b42);
}
.agency-step:nth-child(3) {
  background: linear-gradient(150deg, #1c3939, #142b30);
}
.agency-step-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 21px;
  border-bottom: 1px solid #91acd83d;
}
.agency-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid #a7bffc80;
  border-radius: 9px;
  background: #a7bffc1c;
  color: #e0eaff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.agency-step-title {
  margin: 2px 0 0;
  min-height: 2.6em;
  color: #f1f6ff;
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.5px;
}
.agency-step-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 300px;
  padding: 28px 8px;
}
.agency-scene .agency-step .scene-sheet {
  width: 100%;
  max-width: 260px;
  min-height: 195px;
  padding: 25px 21px;
  gap: 14px;
  transform: rotate(-3deg);
}
.agency-scene .agency-step .scene-sheet strong {
  font-size: 21px;
  line-height: 1.25;
}
.agency-scene .agency-step .scene-sheet > span {
  font-size: 13px;
  line-height: 1.65;
}
.agency-scene .agency-step .scene-delivery {
  transform: rotate(3deg);
}
.agency-pipeline {
  width: 100%;
  min-width: 0;
}
.agency-pipeline > strong {
  display: block;
  margin-bottom: 20px;
  color: #f1f6ff;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.4px;
}
.agency-pipeline-rows {
  display: grid;
  gap: 10px;
}
.agency-pipeline-row {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #b5c8e280;
  border-radius: 7px;
  background: linear-gradient(135deg, #ced9e9, #a8bddb);
  color: #243b5f;
}
.agency-pipeline-row:last-child {
  border-color: #b6d4bf;
  background: linear-gradient(135deg, #c4dbce, #91b6a6);
  color: #25473b;
}
.agency-pipeline-row > span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.agency-pipeline-row > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.agency-step-caption {
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid #91acd83d;
  color: #c4d5df;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
@media (max-width: 1100px) {
  .agency-scene .agency-steps { gap: 14px; }
  .agency-step { padding: 20px 16px 18px; }
  .agency-step-header { gap: 10px; }
  .agency-step-number { flex-basis: 33px; height: 33px; font-size: 12px; }
  .agency-scene .agency-step .scene-sheet { padding: 22px 17px; }
  .agency-scene .agency-step .scene-sheet strong { font-size: 19px; }
  .agency-step-graphic { padding-inline: 4px; }
}
@media (max-width: 960px) {
  .agency-scene .agency-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .agency-step { padding: 24px; }
  .agency-step-header { align-items: center; gap: 13px; padding-bottom: 18px; }
  .agency-step-title { min-height: 0; margin: 0; font-size: 24px; }
  .agency-step-number { flex-basis: 38px; height: 38px; font-size: 14px; }
  .agency-step-graphic { min-height: 0; padding: 32px 10px; }
  .agency-pipeline { max-width: 440px; }
  .agency-step-caption { text-align: center; }
}
@media (max-width: 480px) {
  .agency-scene { padding: 19px 14px 20px; }
  .agency-scene .agency-steps { margin-top: 22px; gap: 16px; }
  .agency-step { padding: 19px 16px 17px; }
  .agency-step-title { font-size: 20px; }
  .agency-step-number { flex-basis: 34px; height: 34px; font-size: 13px; }
  .agency-step-graphic { padding: 29px 6px; }
  .agency-scene .agency-step .scene-sheet { min-height: 180px; padding: 22px 17px; gap: 12px; }
  .agency-scene .agency-step .scene-sheet strong { font-size: 20px; }
  .agency-scene .agency-step .scene-sheet > span { font-size: 12px; }
  .agency-pipeline > strong { font-size: 20px; }
  .agency-pipeline-row { padding: 11px 12px; }
  .agency-step-caption { font-size: 12px; }
}
