/* =============================================================
   css/about.css
   About page — eyebrow + asymmetric 5-column grid layout.

   Layout anatomy (desktop):
   ┌─────────────────────────────────────────────────────────┐
   │  about__eyebrow  (full width, above the grid)           │
   ├───────────────────────────────┬─────────────────────────┤
   │  Inspiration text  (3fr)      │  Schrödinger img  (2fr) │
   ├─────────────────┬─────────────────────────────────────  ┤
   │  Headshot (1fr) │  Leadership text  (4fr)               │
   └─────────────────┴─────────────────────────────────────  ┘

   Depends on: components.css, tokens/ (palette, typography,
               space-size, layout, motion, shape-shadow), theme-*.css
   ============================================================= */


/* ----------------------------------------------------------
   Page shell — needed so eyebrow can be full-width while
   the grid sits inside a container.
   ---------------------------------------------------------- */

.about-page {
  width: 100%;
  overflow: hidden;
}


/* ----------------------------------------------------------
   EYEBROW — matches home/services eyebrow style exactly.
   Mixed case (not uppercase) per design spec.
   ---------------------------------------------------------- */

.about__eyebrow {
  margin: 0;
  width: 100%;
  padding-block: var(--space-1);
  padding-inline: var(--page-padding-inline-desktop);

  /* Absorb the header fade-zone */
  padding-top: calc(var(--space-1) + var(--header-height) * 0.25);

  font-family: var(--font-family-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-logo);
  line-height: var(--line-height-tight);
  text-align: center;

  color: var(--color-primary);
}


/* ----------------------------------------------------------
   Container spacing below eyebrow
   ---------------------------------------------------------- */

.about-page .container {
  padding-block-start: var(--section-space-sm);
  padding-block-end:   var(--section-space-md);
}


/* ----------------------------------------------------------
   Outer 5-column grid.
   ---------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

/* Span helpers */
.about-grid__span-1 { grid-column: span 1; }
.about-grid__span-2 { grid-column: span 2; }
.about-grid__span-3 { grid-column: span 3; }
.about-grid__span-4 { grid-column: span 4; }
.about-grid__span-5 { grid-column: span 5; }


/* ----------------------------------------------------------
   Media cards
   ---------------------------------------------------------- */

.about-grid__media-card {
  padding: 0;
  overflow: hidden;
}

.about-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Headshot — cover fills the card fully, top anchor keeps
   the face in frame. The image's dark background blends
   naturally into the card surface. */
.about-grid__img--headshot {
  object-fit: cover;
  object-position: center top;
}


/* ----------------------------------------------------------
   Responsive — tablet (≤ 1024px): collapse to single column.
   Mirrors the services page breakpoint exactly.
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .about__eyebrow {
    font-size: var(--text-lg);
    padding-inline: var(--page-padding-inline-mobile);
    text-align: left;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid__span-1,
  .about-grid__span-2,
  .about-grid__span-3,
  .about-grid__span-4,
  .about-grid__span-5 {
    grid-column: span 1;
  }

  /* Schrödinger image: let it size naturally to its content
     rather than stretching to fill a tall single-column card. */
  .about-grid__media-card {
    max-height: 24rem;
  }

  /* Headshot: fixed height so it reads as a portrait, not a
     thin strip, when the card is full width. */
  .about-grid__img--headshot {
    height: 20rem;
  }
}


/* ----------------------------------------------------------
   Responsive — mobile (≤ 600px): tighten spacing.
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .about-grid {
    gap: var(--space-3);
  }

  /* Schrödinger image a little shorter on small phones. */
  .about-grid__media-card {
    max-height: 18rem;
  }

  /* Headshot slightly shorter too. */
  .about-grid__img--headshot {
    height: 16rem;
  }
}
