/* ============================================================
   About Me (`about`) — brief/about.md
   Figma: desktop 3441:2071 (1440) · mobile 3441:1751 (375). Pattern A.
   Mobile-first: base = mobile (<768); 768-1023 = pseudo-tablet
   (split row desktop-compressed, stats still stacked — D-ABOUT-7);
   1024+ = desktop (stats row + left rule).
   ============================================================ */

/* Section-local spacing tokens (brief/about.md §2) — MOBILE */
.about {
  --about-cols-gap: clamp(20px, calc(24px + (var(--max-vw) - 375px) * 0.015), 64px);
  --about-title-gap: clamp(10px, calc(12px + (var(--max-vw) - 375px) * 0.015), 16px);
  --about-intro-gap: clamp(41px, calc(48px + (var(--max-vw) - 375px) * 0.015), 80px);
  --about-story-gap: clamp(27px, calc(32px + (var(--max-vw) - 375px) * 0.015), 80px);
  --about-content-gap: clamp(27px, calc(32px + (var(--max-vw) - 375px) * 0.015), 48px);
  --about-pair-gap: clamp(20px, calc(24px + (var(--max-vw) - 375px) * 0.015), 32px);
  --about-stats-gap: clamp(20px, calc(24px + (var(--max-vw) - 375px) * 0.015), 32px);
  --about-stat-gap: clamp(7px, calc(8px + (var(--max-vw) - 375px) * 0.015), 8px);

  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  color: var(--color-text);
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--about-cols-gap);
}

.about__col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.about__col--intro { gap: var(--about-intro-gap); }
.about__col--story { gap: var(--about-story-gap); }

/* Title block (3441:1754 / 3441:2074) */
.about__title {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--about-title-gap);
  text-align: center;                 /* D-ABOUT-8: centred <768 */
}

.about__tagline {
  font-family: var(--font-body);
  font-size: var(--text-tagline);
  font-weight: 500;
  line-height: var(--lh-body);
}

.about__tagline-text--mobile { display: block; }
.about__tagline-text--desktop { display: none; }

.about__heading {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--lh-h2);
}

/* Photos — <picture> carries the aspect; renders ARE Figma's crops (D-ABOUT-2) */
.about__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Staggered pair (3441:1760 / 3441:2080) — D-ABOUT-6 */
.about__pair {
  display: flex;
  align-items: flex-start;
  gap: var(--about-pair-gap);
}

.about__pair-item {
  flex: 1 1 0;
  min-width: 0;
}

.about__pair-item--low { padding-top: 11.940%; }   /* 40 / 335 */
.about__pair-item--high { padding-top: 0; }

/* Bio + stats (D-ABOUT-5) */
.about__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--about-content-gap);
}

.about__bio {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

.about__stats {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--about-stats-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--about-stat-gap);
  min-width: 0;
}

.about__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 600;
  line-height: var(--lh-stat);
  white-space: nowrap;                /* D-ABOUT-12: a value never breaks */
}

.about__stat-label {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* ---------- PSEUDO-TABLET 768-1023: split row, desktop composition ---------- */
@media (min-width: 768px) {
  .about {
    --about-cols-gap: clamp(29.88px, calc(29.88px + (var(--max-vw) - 768px) * 0.025), 64px);
    --about-title-gap: clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 16px);
    --about-intro-gap: clamp(53.88px, calc(53.88px + (var(--max-vw) - 768px) * 0.025), 80px);
    --about-story-gap: clamp(37.88px, calc(37.88px + (var(--max-vw) - 768px) * 0.025), 80px);
    --about-content-gap: clamp(37.88px, calc(37.88px + (var(--max-vw) - 768px) * 0.025), 48px);
    --about-pair-gap: clamp(29.88px, calc(29.88px + (var(--max-vw) - 768px) * 0.025), 32px);
    --about-stats-gap: clamp(29.88px, calc(29.88px + (var(--max-vw) - 768px) * 0.025), 32px);
    --about-stat-gap: clamp(8px, calc(8px + (var(--max-vw) - 768px) * 0.025), 8px);
  }

  .about__inner {
    flex-direction: row;
    align-items: flex-start;          /* 3441:2072 alignItems MIN — columns top-aligned */
  }

  .about__col { flex: 1 1 0; }

  .about__title {
    align-items: flex-start;
    text-align: left;
  }

  .about__tagline-text--mobile { display: none; }
  .about__tagline-text--desktop { display: block; width: fit-content; }

  .about__photo--main { aspect-ratio: 568 / 624; }
  .about__photo--studio,
  .about__photo--tripod { aspect-ratio: 268 / 296; }

  .about__pair-item--low { padding-top: 26.056%; }   /* 148 / 568 */
  .about__pair-item--high { padding-top: 13.028%; }  /*  74 / 568 */
}

/* ---------- DESKTOP 1024+ ---------- */
/* ---------- PSEUDO-TABLET 768-1023: balanced 2-column grid (user request 2026-10-09) ----------
   The split row (left: title + main photo / right: pair + bio + 3 stacked stats) left the right
   column ~1.5x taller than the left. Re-flow the same blocks into three rows instead:
   title | pair · main photo | bio · stats as one full-width row. Mobile and >=1024 unchanged. */
@media (min-width: 768px) and (max-width: 1023px) {
  .about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "title pair"
      "main  bio"
      "stats stats";
    column-gap: var(--about-cols-gap);
    row-gap: var(--about-intro-gap);
    align-items: start;
  }
  .about__col,
  .about__content { display: contents; }

  .about__title { grid-area: title; align-self: center; }
  .about__pair { grid-area: pair; }
  /* square on tablet (as the mobile crop) so the photo does not outgrow the bio beside it */
  .about__photo--main { grid-area: main; aspect-ratio: 1 / 1; }
  .about__bio { grid-area: bio; align-self: center; }

  .about__stats {
    grid-area: stats;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--about-cols-gap);
  }
  .about__stat { flex: 1 1 0; }
}

@media (min-width: 1024px) {
  .about {
    --about-cols-gap: clamp(46px, calc(64px * (var(--max-vw) / var(--vw-base))), 85px);
    --about-title-gap: clamp(11px, calc(16px * (var(--max-vw) / var(--vw-base))), 21px);
    --about-intro-gap: clamp(57px, calc(80px * (var(--max-vw) / var(--vw-base))), 107px);
    --about-story-gap: clamp(57px, calc(80px * (var(--max-vw) / var(--vw-base))), 107px);
    --about-content-gap: clamp(34px, calc(48px * (var(--max-vw) / var(--vw-base))), 64px);
    --about-pair-gap: clamp(23px, calc(32px * (var(--max-vw) / var(--vw-base))), 43px);
    --about-stats-gap: clamp(23px, calc(32px * (var(--max-vw) / var(--vw-base))), 43px);
    --about-stat-gap: clamp(6px, calc(8px * (var(--max-vw) / var(--vw-base))), 11px);
  }

  .about__stats {
    flex-direction: row;
    align-items: flex-start;
  }

  .about__stat {
    flex: 1 1 0;
    /* D-ABOUT-4: Figma stroke left 1px, color-scheme-1/border = #000000 (invisible on the page bg) */
    border-left: var(--border-width) solid var(--color-bg);
  }
}
