/* Dark statement with the agreed edge composition: rainbow, unicorn and sparkles. */
.statement-section {
  padding-block: 28px 56px;
  scroll-margin-top: 30px;
}

.statement-surface {
  --statement-icon-stroke: 4px;
  --statement-top-space: 80px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--purple, #3a1a4a);
  color: var(--paper);
  padding: var(--statement-top-space) max(24px, var(--gutter, 5.5vw)) 112px;
}

.statement-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
}

:is(.statement-title, .statement-copy, .statement-intro, .statement-kicker) {
  position: relative;
  z-index: 1;
}

.statement-title {
  width: 100%;
  margin: 0;
  color: inherit;
  font: 700 clamp(64px, 6.2vw, 88px)/var(--leading-heading) Poppins, Arial, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.statement-title span {
  display: block;
}

.statement-title em {
  color: var(--orange);
  font-style: normal;
}

.statement-copy {
  max-width: 42ch;
  margin: var(--space-group) 0 0;
  color: inherit;
  font: 400 var(--type-lead)/var(--leading-short) Inter, Arial, sans-serif;
  text-wrap: pretty;
}

.statement-copy--context {
  max-width: 54ch;
  margin-top: var(--space-copy);
}

/* Optional emphasis between the statement and its personal context. */
.statement-section .statement-kicker {
  max-width: 100%;
  margin: 28px 0 0;
  color: var(--purple);
  font: 600 17px/var(--leading-short) Poppins, Inter, sans-serif;
  letter-spacing: .02em;
  text-wrap: balance;
}
/* Full highlight label on the dark statement, with one continuous surface. */
.statement-kicker-mark {
  display: inline-block;
  max-width: 100%;
  padding: .12em .25em;
  vertical-align: top;
  color: inherit;
  background: var(--orange);
}

/* An optional lead-in may precede the headline in either layout. */
.statement-intro {
  margin: 0 0 20px;
}

/* Plain statements use the same type and surface, without the edge illustrations. */
.statement-section[data-statement-layout="plain"] .statement-surface {
  --statement-top-space: clamp(56px, 7vw, 96px);
  padding-block: var(--statement-top-space);
}

/* Edge tapes belong to the decoration module; leave their overhang visible and
   keep the first line below the tape's lower half with the shared copy gap. */
.statement-surface:has(> .patterns-divider-overlay) {
  --statement-edge-clearance: calc(36px + var(--space-group));
  overflow: visible;
}
.statement-section .statement-surface:has(> .patterns-divider-overlay:not(.patterns-divider-overlay--bottom)) {
  padding-block-start: max(var(--statement-top-space), var(--statement-edge-clearance));
}

.statement-section[data-statement-layout="plain"] .statement-doodles {
  display: none;
}

.statement-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.statement-doodle {
  position: absolute;
  display: block;
  width: var(--doodle-size);
  aspect-ratio: 1;
}
.statement-doodle-ink {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--doodle-color);
  overflow: visible;
}
.statement-doodle-ink path { stroke-width: var(--statement-icon-stroke); vector-effect: non-scaling-stroke; }

.statement-doodle--rainbow { --doodle-size: clamp(260px, 25vw, 360px); --doodle-color: var(--lilac); right: -108px; bottom: -68px; transform: rotate(18deg); }
.statement-doodle--unicorn { --doodle-size: clamp(320px, 32vw, 460px); --doodle-color: var(--cyan); left: -64px; bottom: -36px; transform: rotate(-18deg); }
.statement-doodle--sparkles { --doodle-size: 144px; --doodle-color: var(--orange); right: 32px; bottom: 160px; transform: rotate(16deg); }

@media (max-width: 700px) {
  .statement-section {
    padding-block: 12px 32px;
  }

  .statement-surface {
    --statement-icon-stroke: 3px;
    --statement-top-space: 48px;
    padding: var(--statement-top-space) 24px 192px;
  }

  .statement-title {
    font-size: clamp(38px, 10.25vw, 52px);
    line-height: var(--leading-heading);
    letter-spacing: -.03em;
  }

  .statement-copy {
    line-height: var(--leading-short);
  }

  .statement-doodle--rainbow { --doodle-size: 200px; right: -82px; bottom: -64px; }
  .statement-doodle--unicorn { --doodle-size: 232px; left: -20px; bottom: -32px; }
  .statement-doodle--sparkles { --doodle-size: 88px; right: 72px; bottom: -2px; }

  .statement-section[data-statement-layout="plain"] .statement-surface {
    --statement-top-space: 48px;
    padding: var(--statement-top-space) var(--gutter);
  }

  .statement-surface:has(> .patterns-divider-overlay) {
    --statement-edge-clearance: calc(24px + var(--space-group));
  }
}
