.customer-collaboration {
  --customer-ink: #18253a;
  --customer-muted: #435675;
  --customer-blue: #215baa;
  --customer-mint: #a1e7dd;
  position: relative;
  padding: clamp(52px, 6.5vw, 94px) 24px clamp(65px, 8vw, 114px);
  color: var(--customer-ink);
  color-scheme: light;
  background:
    linear-gradient(to bottom, #eaf0f8, transparent 130px),
    radial-gradient(ellipse at 22% 66%, #deeffd, transparent 46%),
    radial-gradient(ellipse at 75% 57%, #d9f3ee, transparent 48%),
    #f2f6fc;
  scroll-margin-top: 16px;
}

.customer-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  scroll-margin-top: 16px;
}

.customer-inner {
  width: min(100%, 1184px);
  margin-inline: auto;
}

.customer-heading {
  max-width: 860px;
  margin: 0 auto clamp(32px, 4.3vw, 59px);
  text-align: center;
}

.customer-kicker {
  margin: 0 0 13px;
  color: var(--customer-blue);
  font-size: 15px;
  font-weight: 700;
}

.customer-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 59px);
  letter-spacing: -.051em;
  line-height: 1.08;
  text-wrap: balance;
}

.customer-heading > p:last-child {
  max-width: 690px;
  margin: 17px auto 0;
  color: var(--customer-muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.45;
  text-wrap: pretty;
}

.customer-icon {
  display: block;
  aspect-ratio: 1;
  background-image: url("media/customer-collaboration-icons.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.customer-icon-request { background-position: left top; }
.customer-icon-feedback { background-position: center top; }
.customer-icon-deadlines { background-position: right top; }
.customer-icon-rating { background-position: center bottom; }

.customer-layout,
.customer-grid {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
}

.customer-layout {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
}

.customer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-dashboard,
.customer-card {
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: 0 15px 40px -28px #244a8266;
}

.customer-dashboard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3.4vw, 44px);
  background:
    radial-gradient(ellipse at 80% 75%, #beece7, transparent 57%),
    radial-gradient(ellipse at 45% 83%, #c8ddfc, transparent 70%),
    linear-gradient(145deg, #f6faff, #e6f0fb);
}

.customer-dashboard h3,
.customer-card h3 {
  margin: 0;
  letter-spacing: -.033em;
  line-height: 1.13;
}

.customer-dashboard h3 {
  font-size: clamp(29px, 3vw, 42px);
}

.customer-dashboard-copy > p,
.customer-card p {
  margin: 9px 0 0;
  color: var(--customer-muted);
  line-height: 1.47;
  text-wrap: pretty;
}

.customer-dashboard-copy > p {
  max-width: 430px;
  font-size: clamp(16px, 1.5vw, 18px);
}

.customer-dashboard-scene {
  margin: clamp(26px, 4vw, 50px) 0 0;
}

.customer-dashboard-window {
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 5px 8px 0 #d4e4f4, 0 23px 42px -14px #224c8a70;
  transform: rotate(-2.2deg);
}

.customer-dashboard-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px clamp(12px, 1.6vw, 20px);
  background: #223149;
  color: #e7eef9;
  font-size: 12px;
}

.customer-dashboard-appbar img {
  display: block;
  width: clamp(74px, 7.5vw, 96px);
  height: auto;
}

.customer-dashboard-body {
  padding: clamp(12px, 1.6vw, 21px);
}

.customer-dashboard-vacancy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.2;
}

.customer-dashboard-vacancy p {
  margin: 0 0 4px;
  color: var(--customer-muted);
  font-size: 12px;
}

.customer-dashboard-vacancy strong {
  display: block;
  font-size: clamp(16px, 1.85vw, 23px);
  letter-spacing: -.03em;
}

.customer-dashboard-status {
  flex: none;
  padding: 5px 8px;
  border-radius: 99px;
  background: #d9f3ef;
  color: #1c5c5b;
  font-size: 11px;
  font-weight: 700;
}

.customer-dashboard-stages {
  display: grid;
  gap: 5px;
  margin: 15px 0 0;
}

.customer-dashboard-stages > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .83fr);
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f0f5fc;
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.24;
}

.customer-dashboard-stages dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25em;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #1e5b9a;
  text-align: right;
}

.customer-dashboard-stages dd span {
  width: var(--stage-length);
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #5898ff, var(--customer-mint));
  transform-origin: left center;
}

.customer-dashboard-scene figcaption {
  margin-top: 18px;
  color: var(--customer-muted);
  font-size: 12px;
  text-align: right;
}

.customer-card {
  padding: clamp(19px, 2.2vw, 29px);
  background: linear-gradient(145deg, #ffffffed, #f4f8ffdb);
}

.customer-card:nth-child(n + 3) {
  background: linear-gradient(145deg, #f8fbffed, #eef4fbbb);
}

.customer-card .customer-icon {
  width: 72px;
  margin: -7px 0 8px -8px;
}

.customer-card h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  text-wrap: balance;
}

.customer-card p {
  font-size: 15px;
}

@media (max-width: 900px) {
  .customer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-dashboard {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }

  .customer-dashboard-scene {
    margin: 0;
  }
}

@media (max-width: 650px) {
  .customer-dashboard,
  .customer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-dashboard-window {
    transform: none;
  }

  .customer-card {
    display: grid;
    grid-template-columns: 53px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .customer-card .customer-icon {
    width: 58px;
    margin: -4px 0 0 -4px;
  }

  .customer-card p {
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .customer-collaboration {
    padding-inline: 19px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .customer-layout[data-reveal] [data-customer-reveal] {
    transition: opacity 600ms ease, transform 700ms cubic-bezier(.2, .72, .28, 1);
    transition-delay: var(--customer-card-delay, 0ms);
  }

  .customer-layout[data-reveal] [data-customer-reveal]:not([data-visible]) {
    opacity: 0;
    transform: translateY(26px);
  }

  .customer-dashboard[data-visible] .customer-dashboard-stages dd span {
    animation: customer-stage-grow 640ms cubic-bezier(.2, .72, .28, 1) both;
    animation-delay: calc(330ms + var(--stage-index) * 85ms);
  }

  @keyframes customer-stage-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .customer-card {
    --customer-card-delay: 155ms;
  }

  .customer-card:nth-child(n + 3) {
    --customer-card-delay: 280ms;
  }
}
