/* Selected cr–jc dots, with the earlier title treatment retained for local review. */
.galaxy-main { padding-bottom: 90px; }
.galaxy {
  position: relative;
  width: min(1180px, 100%);
  height: calc(100svh - 190px);
  min-height: 470px;
  margin: 22px auto 0;
  isolation: isolate;
}
.galaxy-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.galaxy-dust i { position: absolute; width: var(--dust-size); height: var(--dust-size); border-radius: 50%; background: #bababa; opacity: var(--dust-opacity); }
.star-cluster { position: absolute; width: 180px; height: 130px; transform: translate(-50%, -50%); }
.star-cluster--talks { left: 27%; top: 37%; }
.star-cluster--instagram { left: 81%; top: 77%; width: 120px; height: 90px; }
.star {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 4px;
  color: #929292;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  transform: translate(-50%, -50%);
}
.star:focus-visible { outline: 1px solid #aaa; outline-offset: 3px; }
.star:hover, .star:focus-visible { color: #e1e1e1; z-index: 2; }
.star-light { flex: none; width: 3px; height: 3px; border-radius: 50%; background: #bcbcbc; box-shadow: 0 0 6px 1px #ffffff30; animation: star-pulse var(--period, 8s) ease-in-out var(--delay, -2s) infinite; }
.star-name { transition: opacity .25s ease, color .25s ease; }
.star--jc-talks { left: 34px; top: 21px; --period: 4.8s; --delay: -1.2s; }
.star--cr-talks { left: 121px; top: 62px; --period: 7.1s; --delay: -5s; }
.star--video-talks { left: 51px; top: 106px; --period: 5.9s; --delay: -3.4s; }
.star--writing { left: 70%; top: 18%; color: #e5e5e5; --period: 10.7s; --delay: -6s; --pulse-low: .62; }
.star--writing .star-light { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 6px 2px #ffffff70, 0 0 20px 6px #ffffff24, 0 0 42px 10px #ffffff0c; }
.star--acte { left: 49%; top: 59%; --period: 8.3s; --delay: -2.8s; }
.star--igcr { left: 28px; top: 20px; --period: 6.5s; --delay: -4.2s; }
.star--igjc { left: 85px; top: 66px; --period: 9.7s; --delay: -7s; }
.star--felicitat { left: 24%; top: 86%; --period: 12.1s; --delay: -8.6s; }
/* Bring each group/single-star anchor 15% closer to the center; do not scale its children. */
.galaxy--dots .star-cluster--talks { left: 30.45%; top: 38.95%; }
.galaxy--dots .star-cluster--instagram { left: 76.35%; top: 72.95%; }
.galaxy--dots > .star--writing { left: 67%; top: 22.8%; }
.galaxy--dots > .star--acte { left: 49.15%; top: 57.65%; }
.galaxy--dots > .star--felicitat { left: 27.9%; top: 80.6%; }
.galaxy--dots .star-name { position: absolute; top: calc(50% + 18px); left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.galaxy--dots .star:hover .star-name, .galaxy--dots .star:focus-visible .star-name { opacity: 1; }
.galaxy--titles .star-light { display: none; }
.galaxy--titles .star-name { animation: star-breathe var(--period, 8s) ease-in-out var(--delay, -2s) infinite alternate; }
.galaxy--titles .star--writing .star-name { text-shadow: 0 0 9px #ffffff45, 0 0 24px #ffffff20; }
.galaxy--titles .star:hover .star-name, .galaxy--titles .star:focus-visible .star-name { animation: none; }
@keyframes star-breathe { from { opacity: .68; } to { opacity: 1; } }
@keyframes star-pulse {
  0%, 100% { opacity: var(--pulse-low, .24); transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (max-width: 600px) {
  .star-cluster--talks { left: 31%; top: 34%; }
  .star-cluster--instagram { left: 78%; top: 78%; }
  .star--writing { left: 69%; top: 13%; }
  .star--acte { left: 52%; top: 58%; }
  .star--felicitat { left: 30%; top: 88%; }
  .galaxy--dots .star-cluster--talks { left: 33.85%; top: 36.4%; }
  .galaxy--dots .star-cluster--instagram { left: 73.8%; top: 73.8%; }
  .galaxy--dots > .star--writing { left: 66.15%; top: 18.55%; }
  .galaxy--dots > .star--acte { left: 51.7%; top: 56.8%; }
  .galaxy--dots > .star--felicitat { left: 33%; top: 82.3%; }
}
@media (max-width: 600px), (hover: none), (pointer: coarse) {
  /* Keep link names accessible without showing labels beneath the mobile stars. */
  .galaxy--dots .star-name {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .star-light, .galaxy--titles .star-name { animation: none; }
  .star-name { transition: none; }
}
body.galaxy-paused .star-light, body.galaxy-paused .galaxy--titles .star-name { animation-play-state: paused; }
