/* ─────────────────────────────────────────────────────────────────────────
   Section: Solutions Hero — Figma 2225:289 ("Solutions by Persona
   Improved" 2225:281, 1440 canvas) and 2353:3784 (Mobile Solutions by
   Persona 2353:3783, 360 canvas).

   CANVAS NOTE: this page is a 1440 frame, NOT the 1920 canvas the
   homepage sections were measured off. Every fluid value here is
   px / 1440 * 100 = vw. Using the homepage's 1920 divisor would make the
   whole page render ~33% small at 1440.

   FLUIDITY MODEL — read before editing any number here.

   Figma gives two anchors: 360 and 1440. Everything that differs between
   them is interpolated with clamp(min, <intercept> + <slope>vw, max) so
   there is NO step at a breakpoint — the section is continuous from 320px
   to beyond 1440px. Slope = (v1440 - v360) / 1080 * 100 vw; intercept =
   v360 - slope * 3.6. Values that shrink with width (the text gap, 24 -> 10)
   have a negative slope, which is fine — clamp's first arg is still the
   smaller number.

   An earlier pass stepped these at `@media (width >= 64rem)` instead, which
   left 768-1023px rendering mobile type inside a desktop-width container.

   BLOB POSITIONING — the subtle one. The mobile blob offsets were first
   written in vw. That breaks, because this section's height is driven by
   its content and does NOT grow with vw: widen the window and the blobs
   march down past a section that stayed the same height. Vertical offsets
   for the mobile arrangement are therefore % of the SECTION box, which is
   what they are actually anchored to.

   The desktop group has the opposite property and can stay in vw/%: the
   section carries min-height 52.0833vw, so group and section scale
   together and the group clips at the same 48% of its height at every
   width, exactly as it does at 1440 in Figma.

   Desktop geometry: px 150, py 100, with a 491px-tall container that
   centres its content — so the section is 691px tall even though the
   text itself is only 205px. Reproduced as a min-height rather than a
   fixed height so long copy can still push it taller.

   The text block carries padding-right 100 and centres inside the
   remainder (1040 of 1140), which is why the headline reads slightly
   left of the true page centre in Figma. That is deliberate, not drift.

   Typography differs between the two frames beyond size — desktop
   tracking is -0.024em (-1.68px on 70) while mobile is -0.016em
   (-0.64px on 40). Size interpolates; tracking is a step at lg, because
   the difference is well under a pixel and not worth a third curve.
   ───────────────────────────────────────────────────────────────────── */

/* The section clips the blob layer. In Figma the blobs run past the
   section's bottom edge into the Call Out frame, but the Call Out's solid
   yellow panel paints over exactly that overhang — so clipping produces an
   identical result without letting the blobs escape into later sections. */
.section-solutions-hero {
  position: relative;
  overflow: hidden;
  padding-inline: clamp(1.25rem, -1.45833rem + 12.037vw, 9.375rem); /* 20 -> 150 */
  padding-top: clamp(1.25rem, -0.41667rem + 7.4074vw, 6.25rem); /* 20 -> 100 */
  padding-bottom: clamp(5.625rem, 5.41667rem + 0.9259vw, 6.25rem); /* 90 -> 100 */
}

/* ── Copy ─────────────────────────────────────────────────────────────── */

.section-solutions-hero__texts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma's container is 1140 of the 1440 frame. Without this cap the
     column keeps growing past 1440 and the headline stops wrapping where
     the design wraps it. */
  max-width: min(71.25rem, 100%);
  margin-inline: auto;
  gap: clamp(0.625rem, 1.79167rem - 1.2963vw, 1.5rem); /* 24 -> 10 */
  width: 100%;
  text-align: center;
}

.section-solutions-hero__eyebrow {
  font-family: var(--font-accent, "Rock Salt", cursive);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.70833rem + 0.7407vw, 2.375rem); /* 30 -> 38 */
  line-height: clamp(2.1875rem, 1.97917rem + 0.9259vw, 2.8125rem); /* 35 -> 45 */
  letter-spacing: -0.016em;
  color: var(--color-green, #00804d);
}

.section-solutions-hero__headline {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.875rem + 2.7778vw, 4.375rem); /* 40 -> 70 */
  line-height: clamp(2.8125rem, 2.29167rem + 2.3148vw, 4.375rem); /* 45 -> 70 */
  letter-spacing: -0.016em;
  color: var(--color-navy-dark, #001428);
}

/* Below lg the headline wraps as one continuous sentence, as the 360
   frame does. The explicit two-line break only comes in once the
   container is wide enough to hold "One Platform. Every Role." on one
   line — below that, forcing the break overflows instead of helping. */
.section-solutions-hero__line {
  display: inline;
}

/* ── Decorative blobs ─────────────────────────────────────────────────── */

/* CLIPPED TO THE CANVAS, not just centred on it. The blob group is 2324
   wide against a 1440 frame — 1.61x — so at 1440 only its middle third is
   on screen and the rest bleeds off both edges. Capping the group's width
   and centring it is not enough: on a 2355 viewport the whole 2324 group
   then fits, and shapes meant to be half off-frame appear in full, which
   reads as the hero breaking. This box is FULL-BLEED, never a centred 1440
   canvas: capping it at min(90rem, 100%) and centring left 240px of white
   gutter down each side at a 1920 viewport, because the layer stopped at
   the canvas edge while the white section behind it carried on. A
   background layer must always span the viewport; only the artwork inside
   it is positioned. The group is sized in % of this layer, so at 1440 it
   still resolves to Figma's -561 / 2324 exactly — nothing changes at or
   below 1440. */
.section-solutions-hero__elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Every Figma export here carries preserveAspectRatio="none", so each one
   needs BOTH dimensions pinned (width + aspect-ratio). Left on height:auto
   the browser falls back to the viewBox ratio and the shapes distort — see
   .claude/rules/assets.md.

   SPECIFICITY: this selector must stay class-only (`> *`, not `img`). Written
   as `.section-solutions-hero__elements img` it scores (0,1,1) — one class
   plus one type — which beats the (0,1,0) of every single-class
   `display: none` below it. The result was that none of the blob-hiding
   rules took effect and all five shapes rendered at every width. */
.section-solutions-hero__elements > * {
  position: absolute;
  display: block;
  max-width: none;
}

.section-solutions-hero__elements-desktop {
  display: none;
}

/* Mobile arrangement — four separate shapes from the 360 frame. Widths are
   % of the section width (so they scale with it); vertical offsets are % of
   the section HEIGHT (see the blob note in the header). The two rotated
   shapes are placed by their centre, because rotating about a top-left
   origin would move the shape as well as turn it.

   Figma y values are measured from the top of Frame 242, which includes the
   logo/hamburger row. Our section starts below that row, so each offset has
   the 75.5px header block subtracted before being converted to a % of the
   ~339px mobile section. */
.section-solutions-hero__blob-navy {
  left: -25.897%;
  top: 25.48%; /* Figma centre y 162 − 75.5 */
  width: 26.111%;
  aspect-ratio: 94 / 247.533;
  transform: translate(-50%, -50%) rotate(90deg);
}

.section-solutions-hero__blob-circle {
  left: 30.25%;
  top: 112.2%; /* Figma centre y 456.5 − 75.5; bleeds below, clipped */
  width: 49.722%;
  aspect-ratio: 179 / 177.807;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.section-solutions-hero__blob-quarter {
  left: 86.944%;
  top: 59.94%; /* Figma y 279 − 75.5 */
  width: 31.065%;
  aspect-ratio: 111.833 / 111;
}

/* Figma "Rectangle 52" — a plain two-stop gradient with two rounded
   corners, so it is cheaper drawn here than exported. The Figma node is
   rotate(180deg) scaleY(-1), which composes to a plain horizontal flip. */
.section-solutions-hero__blob-bar {
  left: 80.556%;
  top: 78.5%; /* Figma y 342 − 75.5 */
  width: 15.783%;
  aspect-ratio: 56.82 / 242;
  border-start-end-radius: 4.089vw;
  border-end-start-radius: 4.089vw;
  background: linear-gradient(106.8deg, rgb(0 128 77 / 90%) 9.96%, rgb(255 255 255 / 90%) 96.05%);
  transform: scaleX(-1);
}

/* ── Tablet and up ────────────────────────────────────────────────────── */

/* The blob swap happens here, not at lg. From 48rem the section carries the
   scaling min-height, which is the thing the desktop group is anchored to;
   below it the section is content-height and only the mobile arrangement
   tracks correctly. The type either side of this line is already
   continuous, so nothing visibly jumps at the boundary except the blobs —
   which are two different compositions in Figma regardless. */
@media (width >= 48rem) {
  .section-solutions-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(46.875rem, 52.0833vw); /* 750 — the Hero frame's own height */
  }

  .section-solutions-hero__texts {
    padding-right: min(6.25rem, 6.9444vw); /* 100 — centres on 1040 of 1140 */
  }

  .section-solutions-hero__blob-navy,
  .section-solutions-hero__blob-circle,
  .section-solutions-hero__blob-quarter,
  .section-solutions-hero__blob-bar {
    display: none;
  }

  /* The single flattened Elements group (2225:283) — a different
     composition from the mobile blobs, not a rescale of them. Two shapes
     land left of the copy (navy rounded rect, green/navy circle) and two
     right (green bar, large pale-green circle).

     VERIFYING THIS LAYER: screenshot node 2225:283, NOT the Hero node. The
     Hero frame is transparent and sits above Elements, so rendering
     2225:289 on its own returns a blank white image and reads as "the
     design has no blobs" — it only means siblings behind a node aren't
     drawn when that node is rendered alone.

     All four values below cap at the same 1440 anchor, and that matters.
     Leaving `width` as a bare 161.389% while `top` and the section's
     min-height are capped with min() makes the group keep growing past
     1440 while its container does not, so shapes slide out of the clip at
     different rates and the composition changes as the window widens.
     Cap every one of them or none.

     Above 1440 the group anchors to the page CENTRE rather than the left
     edge — its centre sits 119px left of the frame's, hence the 1281px
     half-offset — so it holds position relative to the headline instead of
     drifting left on a wide monitor. */
  .section-solutions-hero__elements-desktop {
    display: block;
    left: -38.958%; /* -561 of the 1440 canvas box */
    top: min(9.125rem, 10.1389vw); /* 146 = Elements y 238 − hero y 92 */
    width: 161.389%; /* 2324 of the 1440 canvas box */
    aspect-ratio: 2324 / 1130;
  }
}

/* ── Desktop ──────────────────────────────────────────────────────────── */

@media (width >= 64rem) {
  .section-solutions-hero__headline {
    letter-spacing: -0.024em;
  }

  .section-solutions-hero__line {
    display: block;
  }

  .section-solutions-hero__line + .section-solutions-hero__line {
    margin-top: min(0.625rem, 0.6944vw); /* 10 */
  }
}
