/* ============================================
   intro — "We handle everything between your idea and revenue" + numbers
   Mobile DRAWN (Figma 4:44 @390). Tablet 768–1023 pseudo, desktop 1024+ INVENTED
   (brief/intro.md BA-INV-IN1..IN4; mobile-only-mode.md). Pattern A.
   Spacing custom properties are section-scoped (no page spacing tokens exist).
============================================ */
.intro {
  /* MOBILE (anchor 390): clamp(M-min, M-base + (vw-390)*0.015, M-max) */
  --intro-pad: clamp(41px, calc(50px + (var(--max-vw) - 390px) * 0.015), 100px);   /* 50 DRAWN */
  --intro-gap-40: clamp(33px, calc(40px + (var(--max-vw) - 390px) * 0.015), 60px); /* 40 DRAWN */
  --intro-gap-20: clamp(16px, calc(20px + (var(--max-vw) - 390px) * 0.015), 30px); /* 20 DRAWN */
  --intro-gap-10: clamp(8px, calc(10px + (var(--max-vw) - 390px) * 0.015), 15px);  /* 10 DRAWN */
  --intro-gap-5: clamp(4px, calc(5px + (var(--max-vw) - 390px) * 0.015), 8px);     /* 5 DRAWN */

  display: flex;
  flex-direction: column;
  gap: var(--intro-gap-40);
  padding-top: var(--intro-pad);
  padding-bottom: var(--intro-pad);
  background: var(--color-white);
}

/* Lead: title + chain line (4:45) */
.intro__lead {
  display: flex;
  flex-direction: column;
  gap: var(--intro-gap-20);
  min-width: 0;
}

.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--color-ink);
}

.intro__chain {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body-s-medium);
  line-height: var(--lh-body-s-medium);
  letter-spacing: var(--ls-body);
  text-align: justify;
  white-space: pre-wrap;   /* two spaces around every arrow are design (D-IN5) */
  color: var(--color-ink);
}

/* Body: image + stats (4:48) */
.intro__body {
  display: flex;
  flex-direction: column;
  gap: var(--intro-gap-20);
}

.intro__media {
  width: 100%;
  aspect-ratio: 728 / 332;
}

.intro__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats row (4:51) */
.intro__stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--intro-gap-20);
}

/* "Our numbers —" (4:52 fixed 98x68 @20px label; dash 4:54 in em — D-IN4) */
.intro__stats-head {
  position: relative;
  flex: none;
  font-size: var(--text-label-display);
  width: 4.9em;
  height: 3.4em;
}

.intro__stats-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  line-height: var(--lh-label-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--color-ink);
}

.intro__stats-dash {
  position: absolute;
  left: 3.95em;
  top: 1.309em;
  width: 1.45em;
  height: 0.15em;
  background: var(--color-ink);
}

/* Stats list (4:55) */
.intro__stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* rows HUG (192/192/203), Figma alignItems MIN */
  gap: var(--intro-gap-5);
}

.intro__stat {
  display: flex;
  align-items: center;
  gap: var(--intro-gap-10);
  white-space: nowrap;   /* Figma rows HUG, one line each; fits down to 320 (D-IN10) */
  color: var(--color-ink);
}

.intro__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

.intro__stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-label-display);
  line-height: var(--lh-label-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

/* ---------- NARROW MOBILE 320–389 (below the drawn anchor) ----------
   The drawn stats row (390: award row 199.84 in a 232 list) shrinks its type on the 0.015
   slope while the list loses ~0.8px per px of viewport, so the nowrap labels ran into the
   right gutter below ~347 (PAGE_AUDIT P2-2: award right edge 319.92 @320). Below the anchor
   the row is a PURE SCALE of the drawn one (type x vw/390; the head box is em-based and
   follows). 390+ untouched: at 389.98 this is 28.00/20.00, identical to the mobile clamp. */
@media (max-width: 389.98px) {
  .intro__stats-head,
  .intro__stat-label { font-size: calc(var(--max-vw) * 20 / 390); }
  .intro__stat-value { font-size: calc(var(--max-vw) * 28 / 390); }
}

/* ---------- PSEUDO-TABLET 768–1023: desktop composition compressed (BA-INV-IN2) ---------- */
@media (min-width: 768px) {
  .intro {
    --intro-pad: clamp(55.66px, calc(55.66px + (var(--max-vw) - 768px) * 0.025), 100px);
    --intro-gap-40: clamp(45.66px, calc(45.66px + (var(--max-vw) - 768px) * 0.025), 60px);
    --intro-gap-20: clamp(25.66px, calc(25.66px + (var(--max-vw) - 768px) * 0.025), 30px);
    --intro-gap-5: 8px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "lead media"
      "stats stats";
    column-gap: var(--intro-gap-40);
    row-gap: var(--intro-gap-40);
    align-items: start;
  }

  .intro__lead { grid-area: lead; }
  .intro__body { display: contents; }
  .intro__media { grid-area: media; }

  .intro__stats {
    grid-area: stats;
    justify-content: flex-start;
    gap: var(--intro-gap-40);
  }

  .intro__stats-head { height: auto; }

  /* grid-3, tracks HUG their stat and are spread across the row (D1: a left-aligned stat
     never sits in a much wider 1fr track) */
  .intro__stats-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: var(--intro-gap-40);
    row-gap: 0;
    align-items: start;
  }

  /* BA-INV-IN3: value over label */
  .intro__stat {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--intro-gap-5);
    white-space: normal;
  }
}

/* ---------- DESKTOP 1024+ (INVENTED, D-base @1440) ---------- */
@media (min-width: 1024px) {
  .intro {
    --intro-pad: clamp(71px, calc(100px * (var(--max-vw) / var(--vw-base))), 133px);
    --intro-gap-40: clamp(43px, calc(60px * (var(--max-vw) / var(--vw-base))), 80px);
    --intro-gap-20: clamp(21px, calc(30px * (var(--max-vw) / var(--vw-base))), 40px);
    --intro-gap-5: clamp(6px, calc(8px * (var(--max-vw) / var(--vw-base))), 11px);
  }
}
