/* About David (P04): a short portrait essay on the paper, never a resume and never a hero.
   One composition on the 12-column grid. The portrait is small to medium, set low on the left with paper around it;
   the words sit to its right at the reading measure; the background is a quiet footnote under them. Asymmetry and
   negative space carry it; nothing is boxed, no skills, no timeline.
   The portrait frame holds its own proportion (--portrait-aspect), so a stronger photo can replace the files in
   assets/portrait/ without touching the layout. Large screens grow through the shared tokens and css/large.css. */

.about { position: relative; padding: 90px var(--m) 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g); align-items: start; }
.about .rule-h { top: 0; }

.about-eyebrow { color: var(--ink-3); }

/* the positioning line, exactly as P01 set it in this slot (serif, about 33 px at 1440). Floor 1.5rem (was 1.625rem with
   IvyPresto): Newsreader sets about 6 percent wider, and 1.5rem keeps the 3 lines at 390 and 2 lines at 820 */
.about .statement { margin-top: 18px; font-size: clamp(1.5rem, 2.3vw, calc(2.0625rem * var(--display-boost))); line-height: 1.08; max-width: 22em; }
/* (was overflow-wrap: anywhere, which broke the protected phrases inside words at 200% text; js/keep.js now lets
   the .keep runs wrap at their spaces when the line does not fit, P06 200% text fix) */

.about-portrait { margin: 0; }
/* small to medium at every size: on very large screens the columns outgrow the words, so the portrait stops at 22 rem
   (the reading scale) and sits against the text side of its columns */
.about-portrait__frame { aspect-ratio: var(--portrait-aspect, 4 / 5); overflow: hidden; background: var(--paper-2); }
.about-portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-portrait figcaption { margin-top: 14px; color: var(--ink-3); }

.about-body { max-width: var(--measure); margin-top: 3rem; }
.about-body .body + .body { margin-top: 1em; }
.about-body .link { display: inline-block; margin-top: 1.5rem; }

.about-bg { margin: 0; }
.about-bg__h { color: var(--ink-3); }
/* three quiet columns, the qualification leading each, then where and when, all at footnote scale */
.about-bg__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 26px var(--g); }   /* no rules, no boxes: spacing only */
.about-bg__q { color: var(--ink-2); }   /* quieter than the essay above it */
.about-bg__where { color: var(--ink-3); margin-top: 2px; }
.about-bg__certs { margin-top: 28px; }
.about-bg__certs-h { color: var(--ink-3); margin-bottom: 6px; }

/* desktop: the words first, high in columns 6 to 11; the portrait lower on the left, meeting the paragraph rather
   than the headline; the background as a footnote of three quiet columns at the foot. A falling diagonal. */
@media (min-width: 1100px) {
  .about-text { grid-column: 6 / span 6; grid-row: 1; }
  .about-portrait { grid-column: 2 / span 3; grid-row: 1 / span 2; margin-top: 10rem; width: 100%; max-width: 22rem; justify-self: end; }
  .about-bg { grid-column: 6 / span 7; grid-row: 2; align-self: end; margin-top: 4.5rem; }
  .about-bg__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* tablets: the same fall on fewer columns */
@media (max-width: 1099px) and (min-width: 820px) {
  .about-text { grid-column: 6 / span 7; grid-row: 1; }
  .about-portrait { grid-column: 1 / span 4; grid-row: 1 / span 2; margin-top: 7rem; }
  .about-bg { grid-column: 6 / span 7; grid-row: 2; align-self: end; margin-top: 3.5rem; }
}
/* phones: the line first, then the portrait set to the right with paper on its left, then the words */
@media (max-width: 819px) {
  .about { display: flex; flex-direction: column; padding: 64px var(--m) 88px; }
  .about-text { display: contents; }
  .about-eyebrow { order: 1; }
  .about .statement { order: 2; }
  .about-portrait { order: 3; width: 62%; align-self: flex-end; margin-top: 40px; }
  .about-body { order: 4; margin-top: 36px; }
  .about-bg { order: 5; margin-top: 48px; }
}
