/* C5C full-color section: proportions follow the supplied 1920 × 1080 layout. */
.c5c-vision {
  --vision-unit: 1px;
  position: relative;
  isolation: isolate;
  min-height: calc(1080 * var(--vision-unit));
  padding: 75px 24px 124px;
  overflow: hidden;
  background: #02090d;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  text-align: center;
}

.c5c-vision-video,
.c5c-vision-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.c5c-vision-video {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(calc(12 * var(--vision-unit))) brightness(.68);
  transform: scale(1.05);
}

.c5c-vision-shade {
  z-index: 1;
  background: linear-gradient(180deg, #0003, #0006);
}

.c5c-vision-content { position: relative; z-index: 2; }

.c5c-vision h2 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
}

.c5c-vision .c5c-vision-title { line-height: 20px; }

.c5c-vision-description {
  width: min(100%, calc(773 * var(--vision-unit)));
  margin: 48px auto 0;
  font-size: max(13px, calc(16 * var(--vision-unit)));
  line-height: 1.625;
}

.c5c-vision-description p,
.c5c-vision-description h3 {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: 0;
}

.c5c-vision-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(30 * var(--vision-unit)) calc(40 * var(--vision-unit));
  width: min(100%, calc(1032 * var(--vision-unit)));
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}

.c5c-vision-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
}

.c5c-vision-icon {
  display: block;
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: calc(22 * var(--vision-unit));
  box-shadow: 0 4px 4px 0 rgb(0 0 0 / 60%);
}

/* Some supplied files have extra space to the right of the square icon. */
.c5c-vision-icon img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

.c5c-vision-powered {
  margin: calc(80 * var(--vision-unit)) auto 0;
}

.c5c-vision-powered p {
  width: min(100%, calc(480 * var(--vision-unit)));
  margin: calc(20 * var(--vision-unit)) auto 0;
  color: #fff;
  font-size: max(12px, calc(14 * var(--vision-unit)));
  font-weight: 400;
  line-height: 1.45;
}

/* Only hide copy after its scroll controller has initialized successfully. */
body[data-product="c5c"].is-c5c-reveal-ready [data-c5c-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--c5c-reveal-delay, 0ms);
}

body[data-product="c5c"].is-c5c-reveal-ready [data-c5c-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 701px) and (max-width: 1100px) {
  .c5c-vision-description { width: min(100%, 680px); }
  .c5c-vision-features { width: min(100%, 850px); }
  .c5c-vision-features li { font-size: 15px; }
  .c5c-vision-powered p { width: min(100%, 440px); }
}

@media (max-width: 700px) {
  .c5c-vision {
    --vision-unit: 1px;
    min-height: 0;
    padding: 56px 20px 64px;
  }
  .c5c-vision h2 { font-size: 28px; line-height: 1.3; }
  .c5c-vision .c5c-vision-title { line-height: 1.3; }
  .c5c-vision-description {
    width: min(100%, 560px);
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.75;
  }
  .c5c-vision-description h3 { margin-top: 8px; }
  .c5c-vision-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
    width: min(100%, 520px);
    margin-top: 40px;
  }
  .c5c-vision-features li { gap: 14px; font-size: 13px; line-height: 1.5; }
  .c5c-vision-icon { width: 72px; height: 72px; border-radius: 18px; }
  .c5c-vision-powered { margin-top: 48px; }
  .c5c-vision-powered h2 { font-size: 26px; }
  .c5c-vision-powered p { width: min(100%, 450px); margin-top: 18px; font-size: 13px; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-product="c5c"].is-c5c-reveal-ready [data-c5c-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
