/* About Us page. */

/* ---------- Company overview ---------- */

.overview {
  display: flex;
  align-items: flex-start;
  gap: 72px;
}

.overview__head {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.overview__head .section-title {
  line-height: 1.22;
}

.overview__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  width: 560px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-slate);
}

/* ---------- Timeline ---------- */

.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline {
  display: flex;
  /* Darker than the page's usual hairlines so the line reads clearly. */
  border-top: 2px solid rgba(14, 46, 92, 0.3);
}

.timeline__item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 34px 28px 0 0;
}

/* One dot per milestone, sitting on the line above its year. The ring in the
   section's own background colour makes the dot look threaded onto the line. */
.timeline__item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px var(--surface-offwhite);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  color: var(--brand-orange);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--text-ink);
}

.timeline__text {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-slate);
}

/* ---------- Licences & leadership ---------- */

.leadership-section {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.licences {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.licences__text {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-slate);
}

.leaders-head {
  margin-bottom: -24px; /* design: 40px between heading and cards, section gap is 64px */
}

.leaders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 24px;
}

.leader {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface-offwhite);
}

.leader__avatar {
  width: 52px;
  height: 52px;
}

.leader__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: var(--text-ink);
}

.leader__role {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-navy);
}

.leader__bio {
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--text-slate);
}

@media (max-width: 1200px) {
  .overview__body { width: 50%; }
}

@media (max-width: 1024px) {
  .overview { flex-direction: column; gap: 28px; }
  .overview__body { width: 100%; max-width: 680px; }
  /* Stacked, the line runs down the left with the dots on it. */
  .timeline { flex-direction: column; border-top: 0; border-left: 2px solid rgba(14, 46, 92, 0.3); }
  .timeline__item { padding: 0 0 32px 28px; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__item::before { top: 9px; left: -8px; }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .leadership-section { gap: 56px; }
}

@media (max-width: 640px) {
  .timeline__year { font-size: 22px; }
  .leaders { grid-template-columns: 1fr; gap: 16px; }
  .leadership-section { gap: 48px; }
  .leaders-head { margin-bottom: -16px; }
}
