* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.stage {
  padding: 4rem 1rem;
}

.stage__inner {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
}

.stage__text {
  position: relative;
  z-index: 10;
  text-align: center;
}

.stage__heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.stage__copy {
  max-width: 20rem;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #737373;
}

.stage__mobile-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mobile-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mobile-icon__glyph {
  width: 1rem;
  height: 1rem;
}

.stage__float {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.badge {
  position: absolute;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.badge__icon {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.badge__glyph {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .stage__heading {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .stage__inner {
    min-height: 22rem;
  }

  .stage__heading {
    font-size: 2.25rem;
  }

  .stage__text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
  }

  .stage__mobile-row {
    display: none;
  }

  .stage__float {
    display: block;
  }
}

/*
 * Logos 09 — "independent floating scatter + hover spotlight" animation
 * identity. Same canonical keyframes/transitions as `Logos09.tailwind.css`.
 * The float lives on the outer `.badge` while the hover spotlight lives on
 * the inner `.badge__icon` — two different elements, each with its own
 * independent `transform`, so the continuously-running float animation on
 * the wrapper can never block the hover transition on the inner tile.
 * Scoped so this never collides with another Resource's own animation
 * layer. Entirely disabled under reduced motion.
 */
@keyframes al-logos09-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .badge {
    animation: al-logos09-float var(--duration, 5s) ease-in-out infinite;
    animation-delay: var(--delay, 0ms);
  }

  .badge__icon {
    transition:
      transform 200ms ease,
      box-shadow 200ms ease;
  }

  .badge:hover .badge__icon {
    transform: scale(1.18);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
  }
}
