/* ==========================================================================
   Hero
   Headline, audience switch, showcase image stage and floating chips.
   ========================================================================== */

/* hero */
.hero {
  padding: 40px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.stage {
  --px: 0;
  --py: 0;
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
  justify-self: end;
  width: 100%;
}
.blob {
  position: absolute;
  inset: 8% -6% -4% 12%;
  background: var(--pop);
  border-radius: 46% 54% 40% 60%/55% 45% 55% 45%;
  transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px));
  transition: transform 0.4s ease-out;
}
.ph {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--a);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transform: translate(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px));
  transition:
    transform 0.35s ease-out,
    background 0.35s;
}
.seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.seg b {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--line);
  border-radius: 999px;
  transition: transform 0.45s cubic-bezier(0.5, 1.5, 0.4, 1);
}
.seg.r b {
  transform: translateX(100%);
}
.seg button {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 9px 22px;
  font:
    600 0.95rem Figtree,
    system-ui,
    sans-serif;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s;
}
.seg button[aria-checked='true'] {
  color: var(--ink);
}
h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  max-width: 11em;
}
h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em 0.1em;
}
h1 .w span {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from {
    transform: translateY(110%) rotate(5deg);
  }
}
.panel {
  margin-top: 24px;
  max-width: 34em;
  animation: fade 0.5s both;
}
.panel p {
  color: var(--muted);
  font-size: 1.15rem;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  font-size: 0.92rem;
  font-weight: 500;
}
.badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pop);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #f1ff5e66;
  }
}
