/* ─────────────────────────────────────────────────────────────────────────
   Section: About — Affirmation (Figma 2225:1700 / mobile 2362:5364)

   The heading is the positioned box for the decoratives: on mobile the
   324-wide column, on desktop the 1000.93-wide column. Positions are
   Figma's, in that box's coordinates (drawings centred in their Figma
   bounding boxes):
     desktop  circle 223.29x75.35 at 219.91 / 14.72, rotate -5.07deg
              arrow 25x22 at 378.45 / 204.47, rotate 120deg
              "Old-school" box 404x91.64 at 209.33 / 237.56, rotate -7.75deg
              underline 236.46x17.44 at 294.97 / 293.17, rotate -6.16deg
     mobile   circle 108.28x36.54 at 66.4 / 5.27, rotate -5.07deg
              arrow 13.14x10.8 at 264 / 125.05, rotate 116.73deg
              scaleY .99 skewX -6.76deg
              "Old-school" box 244.75x63.32 at 117.14 / 97.4, rotate
              13.73deg skewX -2.1deg
   Desktop values are N x --space-af-u: 1px from 1440 up, the same share of
   the viewport below it, so the composition scales as one piece.
   ───────────────────────────────────────────────────────────────────────── */

.section-affirmation {
  padding: 3.75rem 1.125rem; /* 60 / 18: the 324 column centred in 360 */
  overflow: clip; /* Figma's mobile "Old-school" box runs past the frame edge */
}

.section-affirmation__heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem; /* 20 */
  width: 20.25rem; /* 324 */
  max-width: 100%;
  margin: 0 auto;
  color: var(--color-navy-dark);
  font-size: 1.875rem; /* 30 */
  line-height: 2.0625rem; /* 33 */
  letter-spacing: -0.016em;
  text-align: center;
}

.section-affirmation__line {
  display: block;
  width: 100%;
  padding: 0.625rem 0.9375rem; /* 10 / 15 */
}

.section-affirmation__deco {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.section-affirmation__old-school {
  position: absolute;
  top: 6.0875rem; /* 97.4 */
  left: 7.3213rem; /* 117.14 */
  width: 15.2969rem; /* 244.75 */
  height: 3.9575rem; /* 63.32 */
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.016em;
  text-align: center;
  transform: rotate(13.73deg) skewX(-2.1deg);
}

.section-affirmation__circle,
.section-affirmation__arrow,
.section-affirmation__underline {
  display: none;
}

.section-affirmation__circle-mobile {
  top: 0.3294rem; /* 5.27 */
  left: 4.15rem; /* 66.4 */
  width: 6.7675rem; /* 108.28 */
  height: 2.2838rem; /* 36.54 */
  transform: rotate(-5.07deg);
}

.section-affirmation__arrow-mobile {
  top: 7.8156rem; /* 125.05 */
  left: 16.5rem; /* 264 */
  width: 0.8213rem; /* 13.14 */
  height: 0.675rem; /* 10.8 */
  transform: rotate(116.73deg) scaleY(0.99) skewX(-6.76deg);
}

/* ── Desktop: the 1440 frame ────────────────────────────────────────────── */
@media (width >= 64rem) {
  .section-affirmation {
    --space-af-u: min(calc(100vw / 1440), 0.0625rem);

    padding: calc(160 * var(--space-af-u)) 0 calc(248 * var(--space-af-u));
  }

  .section-affirmation__heading {
    gap: calc(16 * var(--space-af-u));
    width: calc(1000.93 * var(--space-af-u));
    font-size: calc(62 * var(--space-af-u));
    line-height: calc(75 * var(--space-af-u));
    letter-spacing: -0.024em;
  }

  .section-affirmation__line {
    padding: calc(10 * var(--space-af-u)) calc(15 * var(--space-af-u));
    white-space: nowrap;
  }

  .section-affirmation__line--first {
    width: calc(732.77 * var(--space-af-u));
  }

  .section-affirmation__old-school {
    top: calc(237.56 * var(--space-af-u));
    left: calc(209.33 * var(--space-af-u));
    width: calc(404 * var(--space-af-u));
    height: calc(91.64 * var(--space-af-u));
    font-size: calc(45 * var(--space-af-u));
    line-height: calc(46 * var(--space-af-u));
    letter-spacing: -0.019em;
    transform: rotate(-7.75deg);
  }

  .section-affirmation__circle-mobile,
  .section-affirmation__arrow-mobile {
    display: none;
  }

  .section-affirmation__circle,
  .section-affirmation__arrow,
  .section-affirmation__underline {
    display: block;
  }

  .section-affirmation__circle {
    top: calc(14.72 * var(--space-af-u)); /* 10.72 + 4: lands on Figma's render */
    left: calc(219.91 * var(--space-af-u));
    width: calc(223.29 * var(--space-af-u));
    height: calc(75.35 * var(--space-af-u));
    transform: rotate(-5.07deg);
  }

  .section-affirmation__arrow {
    top: calc(204.47 * var(--space-af-u));
    left: calc(378.45 * var(--space-af-u));
    width: calc(25 * var(--space-af-u));
    height: calc(22 * var(--space-af-u));
    transform: rotate(120deg);
  }

  .section-affirmation__underline {
    top: calc(293.17 * var(--space-af-u));
    left: calc(294.97 * var(--space-af-u));
    width: calc(236.46 * var(--space-af-u));
    height: calc(17.44 * var(--space-af-u));
    transform: rotate(-6.16deg);
  }
}
