/* ==========================================================================
   CallSuit - About & Contact page heroes (title pill)
   Loaded only by Views/About/Index.cshtml and Views/Contact/Index.cshtml; the page bodies are
   styled by about.css and contact.css (also used by the home page).
   Builds on the tokens and shared components in site.css (panel, page-hero,
   card, icon-tile, btn, eyebrow). Everything below is page-specific:
   pages-* (hero pill used by both pages), about-*, contact-*.
   Decoration never uses ::before/::after on elements that carry .card
   classes, so the shared card styles stay untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero pill - decorative gradient pill placed inline after the page title
   (sized in em, so it scales with .page-hero__title)
   -------------------------------------------------------------------------- */
.pages-pill {
  position: relative;
  top: -0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 0.82em;
  margin-left: 0.3em;
  vertical-align: middle;
  border-radius: var(--radius-pill);
  background: var(--brand-grad);
  box-shadow:
    0 0.2em 0.5em -0.18em rgba(58, 110, 232, 0.6),
    inset 0 0.02em 0 rgba(255, 255, 255, 0.4);
  letter-spacing: normal;
}

.pages-pill__wave {
  display: inline-flex;
  align-items: center;
  gap: 0.06em;
  height: 0.38em;
}

.pages-pill__wave i {
  display: block;
  width: 0.055em;
  height: 100%;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.95);
  transform: scaleY(0.45);
  animation: pages-wave 1.1s ease-in-out infinite alternate;
}

.pages-pill__wave i:nth-child(1) { animation-delay: -0.2s; animation-duration: 0.9s; }
.pages-pill__wave i:nth-child(2) { animation-delay: -0.7s; }
.pages-pill__wave i:nth-child(3) { animation-delay: -0.1s; animation-duration: 1.3s; }
.pages-pill__wave i:nth-child(4) { animation-delay: -0.9s; }
.pages-pill__wave i:nth-child(5) { animation-delay: -0.4s; animation-duration: 1s; }

.pages-pill__tile {
  --tilt: 12deg;
  position: absolute;
  display: grid;
  place-items: center;
  width: 0.56em;
  height: 0.56em;
  border-radius: 0.16em;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0.14em 0.32em -0.1em rgba(16, 24, 40, 0.4),
    0 0 0 1px rgba(21, 23, 28, 0.06);
  transform: rotate(var(--tilt));
  animation: pages-float 6s ease-in-out infinite;
}

.pages-pill__tile svg {
  width: 0.3em;
  height: 0.3em;
}

/* Tiles on opposite corners, matching the home hero pill */
.pages-pill__tile--a {
  --tilt: -14deg;
  top: -0.24em;
  left: -0.2em;
  color: var(--accent);
}

.pages-pill__tile--b {
  --tilt: 12deg;
  bottom: -0.28em;
  right: -0.16em;
  width: 0.46em;
  height: 0.46em;
  animation-duration: 7s;
  animation-delay: -2.5s;
}

.pages-pill__tile--b svg {
  width: 0.24em;
  height: 0.24em;
}

@keyframes pages-wave {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

@keyframes pages-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50%      { transform: translateY(-0.05em) rotate(calc(var(--tilt) * 0.6)); }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pages-pill__wave i,
  .pages-pill__tile {
    animation: none;
  }
}
