/* The Problem section (scoped to .problem-section) */

.problem-section {
  --problem-bg: #f5f5f5;
  --problem-text: #1d1d1d;
  --problem-label: #d9d9d9;
  --problem-faded: rgba(29, 29, 29, 0.3);
  --problem-circle: #d9d9d9;
  --problem-max-width: 958px;
  --problem-subtitle-max: 546px;
  --problem-gutter: clamp(20px, 3.125vw, 45px);

  position: relative;
  box-sizing: border-box;
  background-color: var(--problem-bg);
  color: var(--problem-text);
  font-family: "Creato Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.problem-section *,
.problem-section *::before,
.problem-section *::after {
  box-sizing: border-box;
}

/* Decorative circles — absolute only */
.problem-section__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.problem-section__circle {
  position: absolute;
  border-radius: 50%;
  background-color: var(--problem-circle);
}

.problem-section__circle--tl {
  width: 69px;
  height: 69px;
  top: 121px;
  left: 129px;
}

.problem-section__circle--bl {
  width: 69px;
  height: 69px;
  top: 637px;
  left: 207px;
}

.problem-section__circle--tr {
  width: 69px;
  height: 69px;
  top: 100px;
  right: 172px;
  left: auto;
}

.problem-section__circle--br {
  width: 94px;
  height: 94px;
  top: 625px;
  right: 232px;
  left: auto;
}

/* Content */
.problem-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--problem-max-width) + var(--problem-gutter) * 2);
  margin: 0 auto;
  padding: 202px var(--problem-gutter) 257px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.problem-section__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--problem-label);
}

.problem-section__label-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Scroll-fill headline: character-by-character gray → black in reading order */
.problem-section__headline-wrap {
  width: 100%;
  max-width: var(--problem-max-width);
  margin: 40px 0 0;
}

.problem-section__headline {
  width: 100%;
  margin: 0;
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

.problem-section__char {
  display: inline;
  color: var(--problem-faded);
  transition: color 0.14s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .problem-section__char {
    color: var(--problem-text) !important;
    transition: none;
  }
}

.problem-section__subtitle {
  margin: 30px 0 0;
  max-width: var(--problem-subtitle-max);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--problem-text);
}

/* Tablet */
@media (max-width: 1023px) {
  .problem-section__inner {
    padding: 140px var(--problem-gutter) 160px;
  }

  .problem-section__label {
    font-size: 28px;
  }

  .problem-section__headline-wrap {
    margin-top: 32px;
    max-width: 90%;
  }

  .problem-section__headline {
    font-size: clamp(32px, 4.5vw, 44px);
  }

  .problem-section__subtitle {
    margin-top: 24px;
    font-size: 17px;
  }

  .problem-section__circle--tl {
    width: 52px;
    height: 52px;
    top: 80px;
    left: 5%;
  }

  .problem-section__circle--bl {
    width: 52px;
    height: 52px;
    top: auto;
    bottom: 80px;
    left: 8%;
  }

  .problem-section__circle--tr {
    width: 52px;
    height: 52px;
    top: 70px;
    right: 5%;
  }

  .problem-section__circle--br {
    width: 68px;
    height: 68px;
    top: auto;
    bottom: 70px;
    right: 6%;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .problem-section__inner {
    padding: 100px var(--problem-gutter) 120px;
  }

  .problem-section__label {
    font-size: 24px;
    gap: 10px;
  }

  .problem-section__label-icon {
    width: 24px;
    height: 24px;
  }

  .problem-section__headline-wrap {
    margin-top: 28px;
    max-width: 100%;
  }

  .problem-section__headline {
    font-size: clamp(22px, 6.5vw, 32px);
    letter-spacing: -0.015em;
  }

  .problem-section__subtitle {
    margin-top: 20px;
    font-size: 16px;
  }

  .problem-section__circle--tl {
    width: 40px;
    height: 40px;
    top: 48px;
    left: 4%;
  }

  .problem-section__circle--bl {
    width: 40px;
    height: 40px;
    bottom: 48px;
    left: 6%;
  }

  .problem-section__circle--tr {
    width: 40px;
    height: 40px;
    top: 40px;
    right: 4%;
  }

  .problem-section__circle--br {
    width: 48px;
    height: 48px;
    bottom: 40px;
    right: 5%;
  }
}
