/* ==========================================================================
   Launch Labs — Section: "This is what we solve every day."
   Reassurance, not another pitch: the previous section names the visitor's
   problem; this one quietly confirms it's familiar territory. A warm photo
   on the left, five short, minimal rows on the right. Locked to the same
   white surface / local tokens as .hub and .diagnostic.

   Structure: section shell -> two-column grid: media (photo, large radius,
              soft shadow) + content (heading, lede, five rows separated by
              hairlines, index + title + one line of support each). Rows
              reveal with a small stagger as the section scrolls into view;
              hovering one gives a soft background tint + a slight lift —
              nothing dramatic. Driven by js/team.js: an IntersectionObserver
              that adds .is-visible once, matching the pattern already used
              by hub.js / diagnostic.js.
   ========================================================================== */

.team {
  --ink: #0b0a0d;
  --ink-muted: rgba(11, 10, 13, 0.64);
  --ink-faint: rgba(11, 10, 13, 0.42);
  --hairline: rgba(11, 10, 13, 0.1);
  --contrast: #D92632;
  --surface: #FAFAF9;

  background: #FFFFFF;
  color: var(--ink);
  padding: clamp(6rem, 13vw, 10rem) clamp(1.5rem, 4vw, 4rem);
}

.team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  max-width: 88rem;
  margin: 0 auto;
}

/* ==========================================================================
   Media
   ========================================================================== */
.team__media {
  opacity: 0;
  transform: translateY(18px);
}

.team.is-visible .team__media {
  animation: team-rise 0.9s var(--ease) forwards;
}

/* Placeholder until a real photograph is dropped in — swap this element
   for an <img class="team__image" src="..."> with the same aspect-ratio. */
.team__placeholder,
.team__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(11, 10, 13, 0.1);
  object-fit: cover;
}

.team__placeholder {
  background: var(--surface);
  border: 1px solid var(--hairline);
}

/* ==========================================================================
   Content
   ========================================================================== */
.team__heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.15rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.team__lede {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(14px);
}

.team.is-visible .team__heading,
.team.is-visible .team__lede {
  animation: team-rise 0.75s var(--ease) forwards;
}

.team.is-visible .team__heading { animation-delay: 0s; }
.team.is-visible .team__lede    { animation-delay: 0.12s; }

.team__rows {
  margin-top: 2.5rem;
}

.team__row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  margin-inline: -1.25rem;
  border-top: 1px solid var(--hairline);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: background-color 0.3s var(--ease-ui), transform 0.3s var(--ease-ui);
}

.team__row:last-child {
  margin-bottom: -1.5rem;
}

.team.is-visible .team__row {
  animation: team-rise 0.6s var(--ease) forwards;
}

.team.is-visible .team__row:nth-child(1) { animation-delay: 0.22s; }
.team.is-visible .team__row:nth-child(2) { animation-delay: 0.3s; }
.team.is-visible .team__row:nth-child(3) { animation-delay: 0.38s; }
.team.is-visible .team__row:nth-child(4) { animation-delay: 0.46s; }
.team.is-visible .team__row:nth-child(5) { animation-delay: 0.54s; }

@media (hover: hover) and (pointer: fine) {
  .team__row:hover {
    background-color: var(--surface);
    transform: translateY(-2px);
  }
}

.team__row-index {
  flex: 0 0 auto;
  width: 1.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.team__row-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.team__row-text {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 30rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes team-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 64rem) {
  .team__grid { grid-template-columns: 1fr; }
  .team__media { max-width: 30rem; margin: 0 auto; }
}
