/* ============================================================
   TTCC — ABOUT PAGE
   about.html only: the intro row and the team grid. The shell
   (top bar, menu panel, search overlay, footer) comes from
   base.css + nav.css + footer.css, shared with the other pages.
   ============================================================ */
.about {
  padding-top: calc(var(--topbar-h) + 90px);   /* clears the fixed top bar */
  padding-bottom: 120px;                       /* clear of the footer */
}

/* Same gutter as the top bar, no full-bleed override. */
.about__inner {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Intro -----
   Two columns: heading left, copy starting at the halfway line. The
   1fr/1fr split is what puts the body at 50%, so the copy's own
   max-width can cap its measure without pulling it off that line. */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-bottom: 120px;
}

.about-intro__title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #000000;
}

.about-intro__body {
  max-width: 620px;
}

.about-intro__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #000000;
}

.about-intro__text + .about-intro__text {
  margin-top: 18px;
}

.about-intro__link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 3px;
  background: #ececec;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  transition: background 200ms ease;
}

.about-intro__link:hover {
  background: #dcdcdc;
}

/* ----- Team grid -----
   One row of three equal cards (see js/about.js, which no longer sets a
   per-card grid-column — the grid places them). */
.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 90px;
  align-items: start;
}

/* One link per card, wrapping portrait and text alike. The hover rules
   below key off .about-card, which still encloses this, so grayscale and
   scale keep working. */
.about-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Clips nothing and rounds nothing — the portrait fills its own box. */
.about-card__portrait-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ececec;          /* shows through until the image lands */
}

.about-card__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(1);
  /* Two effects on one hover: colour comes up while the portrait pushes
     in slightly, the same 1.03/0.6s scale the homepage cards use. The
     wrap clips it. */
  transition:
    filter 300ms ease,
    transform 0.6s ease;
}

.about-card:hover .about-card__portrait {
  filter: grayscale(0);
  transform: scale(1.03);
}

.about-card__name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 500;
  color: #000000;
}

.about-card__role {
  font-size: 15px;
  font-weight: 400;
  color: #000000;
}

.about-card__location {
  font-size: 15px;
  font-weight: 400;
  color: #666666;
}

.about-card__bio {
  margin-top: 10px;
  max-width: 90%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #666666;
}

/* Below 1300px the intro stacks: heading above the copy, both full
   width. The copy keeps its own max-width so the measure stays read
   able rather than running the full page. */
@media (max-width: 1300px) {
  .about-intro {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 900px) {
  .about {
    padding-bottom: 80px;
  }

  .about-team__grid {
    row-gap: 56px;
  }

  /* Cards stack full width. JS still writes an inline grid-column
     ("auto"), so this keeps !important. */
  .about-card {
    grid-column: 1 / -1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card__portrait {
    transition: none !important;
  }

  .about-card:hover .about-card__portrait {
    transform: none;
  }
}
