/* About page overrides */

.about-intro {
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.about-intro__lead {
  max-width: 44rem;
  margin: var(--space-lg) auto 0;
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}

/* ---------- Story timeline ---------- */

.about-story {
  padding-block: var(--space-xl) var(--space-2xl);
}

/*
  Each step draws its own diamond (::before) and the connector to the next
  step (::after), so nothing depends on the list's own padding — the reset
  zeroes padding on ol[role="list"].
  Diamond box is 0.7rem, offset 0.15rem, so its centre sits at 0.5rem.
*/
.timeline {
  --step-gap: var(--space-xl);
  display: grid;
  gap: var(--step-gap);
  margin-top: var(--space-2xl);
  font-size: var(--fs-sm);
}

.timeline__item {
  position: relative;
  padding-left: 2rem;
}

/* Gold diamond */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* Connector: vertical on small screens, runs down to the next diamond */
.timeline__item::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: calc(var(--step-gap) * -1);
  left: calc(0.5rem - 0.5px);
  width: 1px;
  background: var(--color-border);
}

.timeline__item:last-child::after {
  display: none;
}

.timeline__label {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
}

.timeline__title {
  margin-block: var(--space-2xs) var(--space-xs);
  font-size: var(--fs-md);
}

/* ---------- How we work now ---------- */

.about-now {
  padding-block: var(--space-2xl);
  background: var(--color-surface-alt);
}

.about-now__grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.about-now__card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-top: 2px solid var(--color-slate);
  font-size: var(--fs-sm);
}

.about-now__card h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.about-now__note {
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ---------- CTA ---------- */

.about-cta {
  padding-block: var(--space-2xl) var(--space-3xl);
}

.about-cta p {
  font-size: var(--fs-sm);
  margin-block: var(--space-sm) var(--space-lg);
}

@media (min-width: 48em) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline__item {
    padding-left: 0;
    padding-top: 2rem;
  }

  .timeline__item::before {
    top: 0.15rem;
  }

  /* Connector: horizontal, from this diamond to the next one */
  .timeline__item::after {
    top: calc(0.5rem - 0.5px);
    bottom: auto;
    left: 1.5rem;
    right: calc(var(--step-gap) * -1 + 0.5rem);
    width: auto;
    height: 1px;
  }

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