/* About page composition. Placement only: every block is a shared component
   from base.css on the shared grid, and every value comes from tokens.css.
   Order: the intro, Matt, What is Quivira? (round 11), our story, partners & tools (back in round
   10), the FAQ, Get in touch, the footer (core values moved to Home in
   round 9). */

/* ---- Intro -------------------------------------------------------------------
   The shared page intro (base.css, its spacing is --intro-y), then straight
   into Matt: no photo plate (Matt, markup 2026-10-16). */

/* ---- Matt: the text over the last six columns, the buttons under it on
   their own row. The text is one block, spaced like the rest of the site:
   his name, the bio, then the way to reach him, his email and number with
   his LinkedIn under them (Luke, 2026-10-26). That block sets the portrait:
   its top level with his name's capitals and its foot with the LinkedIn
   link's. The portrait doesn't size the row (contain: size); it stretches
   to the block's height and its 4:5 sets the width, at most five columns.
   View services and See how I think sit on the next row, under both, so the
   calls to action aren't stacked on the contact details (Luke, the same
   day) ------------------------------------------------------------------ */
.leader__frame { padding-block: var(--section-y); }
@media (min-width: 1024px) {
  .leader__grid { align-items: start; }
  .leader__photo { grid-column: 1 / span 5; grid-row: 1; align-self: stretch; justify-self: start; max-width: 100%; contain: size; }
  .leader__text { grid-column: 7 / -1; grid-row: 1; }
  .leader__grid > .btn-row { grid-column: 7 / -1; grid-row: 2; margin-top: var(--space-7); }
}
/* Matt's favorite quote (his markup 2026-11-12, #32): after the bio, before
   his email and number, the bio's 24px above it (Luke locked it there on
   2026-11-13, over under the portrait, under his name and a band of its
   own). The portrait grows with the text. Its style is base.css .fav. */
.leader__fav { margin-top: var(--space-5); }
/* Tablets from 768px: the portrait over the first three columns, held in
   view while the bio beside it scrolls by, the text and the buttons over
   the other five (2026-11-16, the mobile build: stacked, the bio ran in
   750px lines under a 560px portrait) */
@media (min-width: 768px) and (max-width: 1023px) {
  .leader__grid { align-items: start; }
  .leader__photo { grid-column: 1 / span 3; grid-row: 1 / span 2; position: sticky; top: calc(var(--nav-h) + var(--space-6)); }
  .leader__text, .leader__grid > .btn-row { grid-column: 4 / -1; padding-left: var(--space-5); }
  .leader__text { grid-row: 1; }
  .leader__grid > .btn-row { grid-row: 2; }
}
@media (max-width: 767px) {
  .leader__photo, .leader__text, .leader__grid > .btn-row { grid-column: 1 / -1; }
  .leader__photo { width: 100%; max-width: 28rem; }
  .leader__text { margin-top: var(--space-7); }
}

/* ---- What is Quivira? (Matt, round 11 #45). Round 12 (#4, #5): no
   photo, so the question and the legend run over eight columns (they had
   six beside the photo, Matt asked for 20-40% wider), six of eight on
   tablets, the full width on phones, and the section is only as tall as
   its text. The legend is body text, the bio's 15 (Luke, 2026-12-01: 17
   read too large; the site sets paragraphs at 15), 48 under the question
   (40 below desktop, the token's own step). */
.legend__frame { padding-block: var(--section-y); }
.legend__copy { grid-column: 1 / span 8; }
.legend__title { text-box: trim-both cap alphabetic; }
.legend__text { margin-top: var(--space-7); font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-muted); }
.legend__text > p + p { margin-top: var(--space-4); }
.legend__text > p:first-child { text-box: trim-start cap alphabetic; }
.legend__text > p:last-child { text-box: trim-end alphabetic; }
@media (max-width: 1023px) {
  .legend__copy { grid-column: 1 / span 6; }
}
@media (max-width: 639px) {
  .legend__copy { grid-column: 1 / -1; }
  .legend__text { margin-top: var(--space-6); }
}

/* ---- Our story (the switcher, once the values): the years over three
   columns, the pane from the fourth, right beside them, and the photo
   over the last four, to the right guide (Matt, round 8 #20: his eye had to
   jump over the photo to read the text; the photo sat in the middle until
   then). All on one center line. Below desktop they stack. */
.story__frame { padding-block: var(--section-y); }
@media (min-width: 1024px) {
  .story .switcher { align-items: center; }
  .story__list { grid-column: 1 / span 3; }
  .story__panes { grid-column: 4 / span 5; grid-row: 1; }
  .story__photos { grid-column: 9 / -1; grid-row: 1; }
}
/* Below desktop the years run in a row across the top (base.css); on a
   tablet the photo and the pane sit side by side under it, on a phone the
   pane follows the photo */
@media (max-width: 1023px) {
  .story__list { grid-column: 1 / -1; }
  .story__photos { grid-column: 1 / span 4; aspect-ratio: 4 / 5; margin-top: var(--space-7); }
  .story__panes { grid-column: 5 / -1; align-self: center; margin-top: var(--space-7); padding-left: var(--space-5); }
}
@media (max-width: 639px) {
  .story__photos, .story__panes { grid-column: 1 / -1; }
  .story__photos { aspect-ratio: 4 / 3; margin-top: var(--space-6); }
  .story__panes { align-self: start; margin-top: var(--space-5); padding-left: 0; }
}

/* ---- Partners & Tools (back from Home, Matt round 10 #17): the heading,
   then the two logo rows guide to guide (the tags' layout) ------------------- */
.partners__frame { padding-block: var(--section-y); }
.partners__head .h-two { grid-column: 1 / span 8; }
.partners__rows { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
@media (max-width: 639px) { .partners__rows { gap: var(--space-3); } }
.partners__rows .ticker { min-width: 0; margin-inline: calc(-1 * var(--frame-pad)); }   /* min-width: a grid item would grow to its whole row */
@media (max-width: 1023px) { .partners__head .h-two { grid-column: 1 / -1; } }
