/* ============================================================
   Section: founder — desktop 3446:874 (1440x590, HUG) · mobile 3446:1920 (375x917)
   Pattern B-edge: .container on <section>; photo + scrim are the section's own
   background; content stays in the gutter (base.css padding-inline: var(--gutter)).
   Mobile-first: base = <768 (anchor 375) · 768-1023 pseudo-tablet (desktop
   composition, brief/founder.md §6) · 1024+ desktop (scales from --vw-base 1440).
   Fluid math: pipeline/components/fluid-formulas.md (values: brief/founder.md §2).
   Decisions: D-F2 (gap above M 60 / D 0), D-F3 (filter baked in the jpg, no CSS
   filter), D-F4 (mobile photo bottom-anchored), D-F5 (scrim = CSS gradient),
   D-F6 (no backdrop-filter), D-F7 (mobile height via padding-bottom).
   ============================================================ */

/* ---------- Local scale + section frame — MOBILE base (0-767) ---------- */
.founder {
  --founder-pt: clamp(51px, calc(60px + (var(--max-vw) - 375px) * 0.015), 60px);
  --founder-pb-m: clamp(317px, calc(372px + (var(--max-vw) - 375px) * 0.015), 372px);
  --founder-title-gap: clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 40px);
  --founder-block-gap: clamp(26px, calc(30px + (var(--max-vw) - 375px) * 0.015), 30px);
  --founder-letter-gap: clamp(9px, calc(10px + (var(--max-vw) - 375px) * 0.015), 10px);
  --founder-sign-gap: clamp(13px, calc(15px + (var(--max-vw) - 375px) * 0.015), 15px);
  --founder-names-gap: clamp(4px, calc(5px + (var(--max-vw) - 375px) * 0.015), 5px);
  --founder-avatar: clamp(52px, calc(61px + (var(--max-vw) - 375px) * 0.015), 80px);
  --founder-quote-h: clamp(24px, calc(28px + (var(--max-vw) - 375px) * 0.015), 28px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: var(--section-gap);              /* D-F2: why-klar -> founder = 60 on mobile */
  padding-top: var(--founder-pt);
  padding-bottom: var(--founder-pb-m);         /* 60 + 312 photo reveal (D-F7) */
  color: var(--color-white);
  /* Top-down scrim (3446:1920 GRADIENT_RADIAL, horizontally flat = linear, D-F5) over the portrait photo */
  background:
    linear-gradient(180deg, #26352B 0%, rgba(38, 53, 43, 0.6) 57.19%, rgba(38, 53, 43, 0) 78.79%),
    url("../../assets/images/founder-photo-mobile.webp") center bottom / cover no-repeat,
    var(--color-brand);
}

/* ---------- Content column (3446:1921 / 3446:875) ---------- */
.founder__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--founder-title-gap);
  width: 100%;
  min-width: 0;
}

/* ---------- Heading (3446:1922 / 3446:876) ---------- */
.founder__title {
  width: 100%;
  font-family: var(--font-display);
  font-variation-settings: var(--fv-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--color-white);
  text-align: left;
}

/* ---------- Body stack: letter + signature (3446:1923 / 3446:877) ---------- */
.founder__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--founder-block-gap);
  width: 100%;
}

/* ---------- Letter block (3446:1924 / 3446:878) ---------- */
.founder__letter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--founder-letter-gap);
  width: 100%;
  margin: 0;
}

.founder__quote {
  height: var(--founder-quote-h);
  width: auto;
  flex: 0 0 auto;
}

/* Close-quote holder (3446:1927 / 3446:881): full-width row, glyph flush right */
.founder__quote-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  width: 100%;
}

/* ---------- Letter text (3446:1926 / 3446:880) ---------- */
.founder__text {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-ui);
  letter-spacing: 0;
  color: var(--color-white-80);
  text-align: left;
}

.founder__text p {
  margin: 0;                                   /* D-F10: no paragraph spacing */
}

.founder__text strong {
  font-weight: 600;
  color: inherit;
}

/* ---------- Signature row (3446:1929 / 3446:883) ---------- */
.founder__sign {
  display: flex;
  flex-direction: row;
  align-items: flex-start;                     /* Figma MIN (D-F11) */
  gap: var(--founder-sign-gap);
}

.founder__avatar {
  flex: 0 0 auto;
  width: var(--founder-avatar);
  height: var(--founder-avatar);
  border-radius: var(--radius-round);
  object-fit: cover;
}

.founder__sign-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--founder-names-gap);
  margin: 0;
}

.founder__love,
.founder__name,
.founder__role {
  display: block;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  white-space: nowrap;                         /* single lines in Figma (D-F11) */
}

/* "With love," (3446:1932 / 3446:886): --text-lead size, LH 1.1, LS -0.01em */
.founder__love {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: 400;
  color: var(--color-white-80);
}

/* "Liv" (3446:1933 / 3446:887): --text-h4, LH 1.1, LS -0.01em */
.founder__name {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 500;
  color: var(--color-white);
}

/* "Founder, Havn" (3446:1934 / 3446:888): --text-signature (Fraunces) */
.founder__role {
  font-family: var(--font-display);
  font-variation-settings: var(--fv-display);
  font-size: var(--text-signature);
  font-weight: 400;
  color: var(--color-white);
}

/* ---------- PSEUDO-TABLET 768-1023: desktop composition (brief §6 Tablet) ---------- */
@media (min-width: 768px) {
  .founder {
    --founder-pt: clamp(60px, calc(60px + (var(--max-vw) - 768px) * 0.025), 60px);
    --founder-title-gap: clamp(40px, calc(40px + (var(--max-vw) - 768px) * 0.025), 40px);
    --founder-block-gap: clamp(30px, calc(30px + (var(--max-vw) - 768px) * 0.025), 30px);
    --founder-letter-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 10px);
    --founder-sign-gap: clamp(15px, calc(15px + (var(--max-vw) - 768px) * 0.025), 15px);
    --founder-names-gap: clamp(5px, calc(5px + (var(--max-vw) - 768px) * 0.025), 5px);
    --founder-avatar: clamp(66.88px, calc(66.88px + (var(--max-vw) - 768px) * 0.025), 80px);
    --founder-quote-h: clamp(28px, calc(28px + (var(--max-vw) - 768px) * 0.025), 28px);

    flex-direction: row;                       /* Figma HORIZONTAL, one child (D-F9) */
    margin-top: 0;                             /* D-F2: touches why-klar (wrapper 3446:761) */
    padding-bottom: var(--founder-pt);
    /* Left radial scrim (3446:874, D-F5) over the landscape photo (filter baked, D-F3) */
    background:
      radial-gradient(66.91% 235.23% at 0% 50%, #26352B 0%, rgba(38, 53, 43, 0.6) 72.58%, rgba(38, 53, 43, 0) 100%),
      url("../../assets/images/founder-photo-desktop.webp") center / cover no-repeat,
      var(--color-brand);
  }

  /* 630 / 1360 of the content box (D-F9): 332 @768, 448 @1024, 840 @1920 */
  .founder__content {
    flex: 0 0 46.32%;
    width: 46.32%;
  }
}

/* ---------- DESKTOP 1024+: scales from --vw-base 1440, capped at 1920 ---------- */
@media (min-width: 1024px) {
  .founder {
    --founder-pt: clamp(43px, calc(60px * (var(--max-vw) / var(--vw-base))), 80px);
    --founder-title-gap: clamp(28px, calc(40px * (var(--max-vw) / var(--vw-base))), 53px);
    --founder-block-gap: clamp(21px, calc(30px * (var(--max-vw) / var(--vw-base))), 40px);
    --founder-letter-gap: clamp(7px, calc(10px * (var(--max-vw) / var(--vw-base))), 13px);
    --founder-sign-gap: clamp(11px, calc(15px * (var(--max-vw) / var(--vw-base))), 20px);
    --founder-names-gap: clamp(4px, calc(5px * (var(--max-vw) / var(--vw-base))), 7px);
    --founder-avatar: clamp(57px, calc(80px * (var(--max-vw) / var(--vw-base))), 107px);
    --founder-quote-h: clamp(20px, calc(28px * (var(--max-vw) / var(--vw-base))), 37px);
  }
}
