/* About page (session C). Layout only: colour, type, cards and photos come from ../../design-system/ and agents.css.
   Every class here starts with ab- so nothing reaches another page. */

/* ---------- Mission and vision: photo beside the two lines ---------- */
.ab-mission__grid {
  row-gap: var(--space-10);
  align-items: center;
}
.ab-mission__copy {
  display: grid;
  gap: var(--space-6);
}
.ab-mv {
  display: grid;
  border-top: 1px solid var(--color-border);
}
.ab-mv > div {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.ab-mv dt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
}
.ab-mv dd {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--tracking-snug);
  text-wrap: balance;
}
@media (min-width: 60rem) {
  .ab-mission__photo {
    grid-column: 1 / span 5;
  }
  .ab-mission__copy {
    grid-column: 7 / -1;
  }
  .ab-mv > div {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--space-5);
    align-items: baseline;
  }
}

/* ---------- Why time matters: heading row, then photo beside four sourced figures ---------- */
.ab-time {
  padding-top: 0;
}
.ab-time__head {
  row-gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-head);
}
.ab-time__title {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.ab-time__body {
  row-gap: var(--grid-gap);
}
.ab-stats {
  display: grid;
  gap: var(--grid-gap);
}
.ab-stat {
  align-content: space-between;
  gap: var(--space-5);
}
.ab-stat__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}
.ab-stat__text {
  max-width: 30ch;
  font-size: var(--text-base);
  line-height: 1.45;
  text-wrap: pretty;
}
.ab-stat__src {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.ab-time__note {
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
@media (min-width: 40rem) {
  .ab-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 60rem) {
  .ab-time__title {
    grid-column: 1 / span 7;
  }
  .ab-time__head > .am-lead {
    grid-column: 8 / -1;
  }
  .ab-time__photo {
    grid-column: 1 / span 5;
    aspect-ratio: auto;
    min-height: 100%;
  }
  /* The photo fills the height of the figures beside it without adding height of its own. */
  .ab-time__photo img {
    position: absolute;
    inset: 0;
  }
  .ab-stats {
    grid-column: 6 / -1;
  }
}

/* ---------- What we believe: heading and a trade photo beside four cards ---------- */
.ab-believe {
  padding-top: 0;
}
.ab-believe__grid {
  row-gap: var(--space-10);
  align-items: start;
}
.ab-believe__side {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
.ab-believe__photo {
  width: 100%;
  max-width: 24rem;
  margin-top: var(--space-4);
}
.ab-beliefs {
  display: grid;
  gap: var(--grid-gap);
}
.ab-beliefs .am-card--feature {
  min-height: 15rem;
}
@media (min-width: 40rem) {
  .ab-beliefs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 60rem) {
  .ab-believe__side {
    grid-column: 1 / span 4;
  }
  .ab-beliefs {
    grid-column: 5 / -1;
    align-self: stretch;
  }
  .ab-believe__photo {
    max-width: none;
  }
}
/* Phone widths: cards size to their content, the photo stays short enough to scroll past. */
@media (max-width: 39.99rem) {
  .ab-beliefs .am-card--feature {
    min-height: 0;
    gap: var(--space-6);
  }
  .ab-believe__photo {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Who makes AgentMagic ---------- */
.ab-company {
  padding-top: 0;
}
.ab-company__grid {
  row-gap: var(--space-6);
  align-items: start;
}
@media (min-width: 60rem) {
  .ab-company__head {
    grid-column: 1 / span 4;
  }
  .ab-company__card {
    grid-column: 5 / -1;
  }
}
