/* ==========================================================================
   About (templates/about.php). Loaded only for this template.
   Same skeleton as the case studies: the centred hero, then sections on the
   12 columns, with the label (or the portrait) in the margin column and the
   content on the text column.
   ========================================================================== */

.about { padding-bottom: var(--space-section-lg); }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--grid-gap);
  align-items: start;
  margin-top: var(--space-section-lg);
}
@media (min-width: 768px) {
  .about-section { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
.about-section > :first-child { grid-column: var(--margin-col); }
.about-section > :last-child { grid-column: var(--spine); }

.about-label {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted); /* one step darker than elsewhere: they guide a long page */
}
@media (min-width: 1024px) {
  .about-label { padding-top: 0.9em; } /* level with the serif line beside it */
}

/* Bio --------------------------------------------------------------------- */

.about-portrait { margin: 0; }
.about-portrait .picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-media);
  background: var(--color-placeholder);
}
@media (max-width: 1023px) {
  .about-portrait { max-width: 16rem; }
}
/* Phones: a smaller portrait, so the opening line is on the first screen */
@media (max-width: 767px) {
  .about-portrait { max-width: 9rem; }
}

.about-lead {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  color: var(--color-text);
  text-wrap: pretty;
}
.about-prose {
  margin-top: var(--space-6);
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: var(--color-text-body);
}
.about-prose p + p { margin-top: var(--space-paragraph); }
.about-prose a { text-decoration: underline; text-underline-offset: 0.15em; }

/* How I work -------------------------------------------------------------- */

/* One step below the opening line, so six of them don't shout. Desktop: two
   columns across the text column and the space to its right; phones: one. */
.principles { margin: 0; padding: 0; list-style: none; }
.principle { padding-block: var(--space-6); border-top: 1px solid var(--color-border); }
.principle:first-child { padding-top: 0; border-top: 0; }
.principle__num {
  display: block;
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-subtle);
}
.principle__title {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.75vw, 2rem); /* 24 → 32 */
  line-height: var(--leading-heading);
  color: var(--color-text);
  text-wrap: balance;
}
.principle__text {
  max-width: 34rem;
  margin-top: var(--space-3);
  line-height: 1.55;
  color: var(--color-text-muted);
}
@media (min-width: 1024px) {
  .about-section > .principles { grid-column: 4 / -1; }
  .principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .principle:nth-child(2) { padding-top: 0; border-top: 0; }
}

/* Worked with --------------------------------------------------------------- */

.client-group + .client-group { margin-top: var(--space-8); }
.client-group__label {
  margin-bottom: var(--space-4);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.clients { margin: 0; padding: 0; list-style: none; color: var(--color-text); }
/* In-house: the few names, in the serif */
.clients--main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-7);
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}
/* Agency clients: one flowing list, names separated by a thin dot. A name
   never breaks in two (the line breaks between names, after the dot). */
.clients--list {
  font-size: var(--text-body-lg);
  line-height: 1.7;
}
.clients--list li { display: inline; white-space: nowrap; }
.clients--list li:not(:last-child)::after {
  content: "·";
  margin-inline: 0.55em;
  color: var(--color-text-subtle);
}

/* Experience, education, languages ------------------------------------------ */

.about-cv__group { margin-top: var(--space-8); }
.about-languages { color: var(--color-text); }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.timeline li:first-child { padding-top: 0; border-top: 0; }
.timeline__years {
  grid-row: span 2;
  padding-top: 0.15em;
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}
.timeline__role { font-weight: var(--weight-medium); color: var(--color-text); }
.timeline__note { color: var(--color-text-muted); }
@media (max-width: 479px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .timeline__years { grid-row: auto; }
}
