/* Hero typography (layout lives in hero-scene.css) and the team. */

/* ─── Hero (design system hero: Caslon Display, the italic turn in fern, the pill CTA) ─── */

.hero__title {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero__line {
  display: block;
}

/* The question is set like the race under it. Its opening ("Votre entreprise grandit-elle") is
   the lead-in: smaller, in an ink drawn slightly toward fern, so it reads first but stays quiet. */
.hero__line--a {
  font-size: 0.6em;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--color-text) 84%, var(--color-primary));
}

/* The comparison ("plus vite que sa gestion ?") carries the size: Caslon Text italic, in fern,
   pulling ahead of its lead-in the way the van pulls ahead of the manager. */
.hero__line--b {
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  text-wrap: balance;
}

/* ─── Team: one mat for every portrait — three photographs read as the same series of
   framed prints. ─── */

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.person {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--paper-radius);
  box-shadow: var(--paper-shadow-rest);
}

.person--lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(14rem, 24rem) 1fr;
}

.person__mat {
  padding: var(--space-3);
  background: var(--color-surface-sunken);
  border-radius: var(--radius-sm);
}

.person__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 2px;
  background: var(--color-surface-sunken);
}

.person__text {
  display: grid;
  align-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
}

.person--lead .person__text {
  padding-right: var(--space-7);
}

.person__name {
  font-size: var(--text-xl);
  line-height: 1.15;
}

.person--lead .person__name {
  font-size: var(--text-2xl);
}

.person__role {
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.person__bio {
  max-width: var(--measure);
  color: var(--color-text-secondary);
}

.person--lead .person__bio {
  font-size: var(--text-lg);
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .team {
    grid-template-columns: 1fr;
  }

  .person--lead {
    grid-template-columns: minmax(10rem, 16rem) 1fr;
  }
}

@media (max-width: 640px) {
  .person,
  .person--lead {
    grid-template-columns: 1fr;
  }

  .person__text,
  .person--lead .person__text {
    padding: var(--space-2) var(--space-2) var(--space-4);
  }
}
