/*
  Life at Infleqtion section.
  Source: Figma node 822:4163 (desktop 1361 × 643).

  Two-column layout: left is text (eyebrow, heading with green accent,
  description paragraph, italic caption card with green LEFT border);
  right is a team photo with decorative dotted-ring clusters.

  Stacks vertically below 900px. Deco rings hidden below 1100px so the
  photo column stays clean on tablets. Deco SVGs are reused from
  alt-second-level-hero-intro to avoid asset duplication.
*/

.life-at-infleqtion {
  padding-block: var(--section-padding-block);
  /* Deco rings extend 85px past the photo column on both sides. `clip`
     stops the resulting page-wide h-scrollbar without creating a scroll
     container. */
  overflow-x: clip;
}

.life-at-infleqtion__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-inline);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .life-at-infleqtion__inner {
    grid-template-columns: 585fr 629fr;
    column-gap: clamp(var(--space-7), 6vw, 147px);
  }
}

/* ---------------------------------------------------------------
   Left column — text + caption card
   --------------------------------------------------------------- */
.life-at-infleqtion__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.life-at-infleqtion__eyebrow {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-heading);
  margin: 0;
}

.life-at-infleqtion__eyebrow-slash {
  color: var(--color-green-2);
  margin-right: 0.25em;
}

.life-at-infleqtion__heading {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
  margin: 0;
  color: var(--color-text-heading);
}

/* "Life" is the semibold green accent; "at Infleqtion" is regular navy. */
.life-at-infleqtion__heading-accent {
  color: var(--color-green-2);
  font-weight: var(--font-weight-semibold);
}

.life-at-infleqtion__description {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-body);
  margin: 0;
}

/* Caption card: white bg, 4px LEFT border in brand green, 8px radius,
   24px/16px padding. Italic 14px gray text inside. */
.life-at-infleqtion__caption {
  background-color: var(--color-background);
  border-left: 4px solid var(--color-green-2);
  border-radius: 8px;
  padding: var(--space-4) var(--space-6);
  margin: 0;
}

.life-at-infleqtion__caption-title,
.life-at-infleqtion__caption-text {
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-style: italic;
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text-body);
  margin: 0;
}

/* ---------------------------------------------------------------
   Right column — photo + decorative rings
   --------------------------------------------------------------- */
.life-at-infleqtion__photo {
  position: relative;
  /* Local stacking context so the small rings' negative z-index stays
     scoped to this column. */
  isolation: isolate;
}

.life-at-infleqtion__photo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 586 / 520;
  border-radius: 8px;
  object-fit: cover;
}

.life-at-infleqtion__deco {
  position: absolute;
  pointer-events: none;
  display: none;
}

@media (min-width: 1100px) {
  .life-at-infleqtion__deco {
    display: block;
  }
}

.life-at-infleqtion__deco-ring {
  position: absolute;
  display: block;
}

.life-at-infleqtion__deco--tl {
  top: -60px;
  left: -85px;
  width: 214px;
  height: 213px;
}

.life-at-infleqtion__deco-ring--tl-large {
  left: 0;
  top: 0;
  width: 214px;
  height: 213px;
  z-index: -1;    /* sits BEHIND the image (small ring is also -1) */
  animation: life-at-infleqtion-spin-ccw 28s linear infinite;
}

.life-at-infleqtion__deco-ring--tl-small {
  left: 150px;
  top: 0;
  width: 141px;
  height: 146px;
  z-index: -1;
  animation: life-at-infleqtion-spin 20s linear infinite;
}

.life-at-infleqtion__deco--br {
  right: -85px;
  bottom: -60px;
  width: 214px;
  height: 213px;
}

.life-at-infleqtion__deco-ring--br-large {
  right: 45px;
  bottom: 0;
  width: 214px;
  height: 213px;
  z-index: 1;
  animation: life-at-infleqtion-spin-ccw 28s linear infinite;
}

.life-at-infleqtion__deco-ring--br-small {
  right: 189px;
  bottom: 0;
  width: 141px;
  height: 146px;
  z-index: -1;
  animation: life-at-infleqtion-spin 20s linear infinite;
}

@keyframes life-at-infleqtion-spin {
  to { transform: rotate(360deg); }
}

@keyframes life-at-infleqtion-spin-ccw {
  to { transform: rotate(-360deg); }
}
