.ci-next-chapter {
  position: relative;
  min-height: clamp(590px, 50vw, 720px);
  margin: 0;
  padding: clamp(76px, 6.5vw, 104px) 0 clamp(82px, 7vw, 112px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 63% 44%, rgba(35, 91, 143, 0.24) 0%, rgba(20, 61, 105, 0.12) 28%, rgba(8, 29, 61, 0) 58%),
    linear-gradient(105deg, #081d3d 0%, #091f41 58%, #0a2449 100%);
  scroll-margin-top: 96px;
}

.ci-next-chapter,
.ci-next-chapter * {
  box-sizing: border-box;
}

.ci-next-chapter::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 29, 61, 0.08) 0%, rgba(8, 29, 61, 0.04) 55%, rgba(8, 29, 61, 0.18) 100%);
  content: "";
  pointer-events: none;
}

.ci-next-chapter__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 104px, 1320px);
  margin-inline: auto;
}

.ci-next-chapter__content {
  width: min(82%, 930px);
}

.ci-next-chapter__eyebrow {
  margin: 0 0 clamp(22px, 2vw, 30px);
  color: var(--accent-color, #00d9d2);
  font-family: var(--paragraph-font, sans-serif);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.ci-next-chapter__title {
  max-width: 930px;
  margin: 0;
  color: #fff;
  font-family: var(--title-font, sans-serif);
  font-size: clamp(50px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ci-next-chapter__title span {
  display: block;
}

.ci-next-chapter__copy {
  max-width: 675px;
  margin-top: clamp(26px, 2.6vw, 38px);
}

.ci-next-chapter__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--paragraph-font, sans-serif);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.ci-next-chapter__copy p + p {
  margin-top: clamp(20px, 2vw, 28px);
}

.ci-next-chapter__lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.ci-next-chapter__lines svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ci-next-chapter__line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.ci-next-chapter__line--one {
  stroke: #00d9d2;
}

.ci-next-chapter__line--two {
  stroke: #00bec6;
}

.ci-next-chapter__line--three {
  stroke: #1687ff;
}

.ci-next-chapter__line--four {
  stroke: #278bfd;
}

@media (max-width: 1100px) {
  .ci-next-chapter {
    min-height: 570px;
    padding-block: 72px 82px;
  }

  .ci-next-chapter__inner {
    width: min(100% - 104px, 980px);
  }

  .ci-next-chapter__content {
    width: min(90%, 840px);
  }

  .ci-next-chapter__title {
    font-size: clamp(52px, 6.6vw, 68px);
  }

  .ci-next-chapter__copy {
    max-width: 600px;
  }

  .ci-next-chapter__copy p {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  .ci-next-chapter {
    min-height: 0;
    padding: 64px 0 76px;
    scroll-margin-top: 76px;
  }

  .ci-next-chapter__inner {
    width: calc(100% - 40px);
  }

  .ci-next-chapter__content {
    width: 100%;
  }

  .ci-next-chapter__eyebrow {
    max-width: 330px;
    margin-bottom: 19px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.34em;
  }

  .ci-next-chapter__title {
    max-width: 600px;
    font-size: clamp(37px, 10.5vw, 52px);
    line-height: 1;
  }

  .ci-next-chapter__copy {
    max-width: 610px;
    margin-top: 25px;
  }

  .ci-next-chapter__copy p {
    font-size: 16px;
    line-height: 1.5;
  }

  .ci-next-chapter__copy p + p {
    margin-top: 19px;
  }

  .ci-next-chapter__lines {
    top: 42%;
    right: -65%;
    bottom: -8%;
    left: -25%;
    opacity: 0.5;
  }
}

@media (max-width: 430px) {
  .ci-next-chapter__title {
    font-size: clamp(35px, 10vw, 43px);
  }

  .ci-next-chapter__lines {
    top: 52%;
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-next-chapter {
    scroll-behavior: auto;
  }
}
