/* Hero variants (prototype): switcher and the heartbeat label. See js/custom/hero-variants.js */
.hero-variant-switcher {
  position: absolute;
  top: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% - 2rem);
  overflow-x: auto;
  padding: 4px;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 500 11px/1 Thicccboi, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  scrollbar-width: none;
}
.hero-variant-switcher::-webkit-scrollbar { display: none; }
.hero-variant-switcher span {
  padding: 0 8px 0 6px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.hero-variant-switcher button {
  flex: none;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.hero-variant-switcher button:hover { color: #fff; }
.hero-variant-switcher button[aria-pressed="true"] { background: #fff; color: #080808; }
.hero-variant-switcher button:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* Heartbeat: project label, top right under the header */
.hero-hb-label {
  position: absolute;
  top: 6.5rem;
  right: 2rem;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  align-items: center;
  justify-items: end;
  color: #fff;
  font: 500 11px/1.2 Thicccboi, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-hb-ecg { color: #ff4d5e; }
.hero-hb-bpm { color: rgba(255, 255, 255, 0.55); }
.hero-hb-name {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.hero-hb-tags, .hero-hb-count { color: rgba(255, 255, 255, 0.6); }
.hero-hb-label.is-cut .hero-hb-name { animation: hero-hb-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes hero-hb-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  .hero-variant-switcher { top: 4.75rem; }
  .hero-variant-switcher span { display: none; }
  .hero-variant-switcher button { padding: 8px 7px; }
  .hero-hb-label { top: 8.5rem; right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hb-label.is-cut .hero-hb-name { animation: none; }
}
