/* Living GekoPulse mark — shared by boot splash and in-app logos */

.gp-mark {
  --gp-pad: 0;
  display: block;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: #1b4332;
}

.gp-mark--splash {
  aspect-ratio: 2048 / 1330;
}

.gp-mark--icon,
.gp-mark--mark {
  aspect-ratio: 1 / 1;
}

.gp-mark__art {
  position: absolute;
  inset: 0;
  animation: gp-rise-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Crop the square lockup to the gecko (hands stay in frame, wordmark out) */
.gp-mark--mark .gp-mark__art {
  transform: scale(1.72);
  transform-origin: 48% 30%;
  animation: none;
}

.gp-mark__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.gp-mark__halo {
  position: absolute;
  left: 18%;
  top: 2%;
  width: 64%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 230, 110, 0.22) 0%, rgba(80, 160, 90, 0.06) 42%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: gp-halo-breath 5.5s ease-in-out infinite;
}

.gp-mark--icon .gp-mark__halo,
.gp-mark--mark .gp-mark__halo {
  left: 12%;
  top: 4%;
  width: 76%;
  height: 62%;
}

.gp-mark__sheen {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 230, 0.14) 48%,
    rgba(190, 255, 140, 0.1) 52%,
    transparent 64%
  );
  mix-blend-mode: soft-light;
  animation: gp-sheen 11s ease-in-out 1.6s infinite;
  transform: translateX(-70%);
}

.gp-mark__motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.gp-mark__mote {
  fill: #c8ff7a;
  opacity: 0;
  animation: gp-mote-rise 9s linear infinite;
}

.gp-mark__pad {
  position: absolute;
  width: 7.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(240, 255, 160, 0.7) 0%, rgba(170, 240, 70, 0.28) 38%, transparent 70%);
  mix-blend-mode: screen;
  animation: gp-pad-pulse 1.8s ease-in-out infinite;
}

.gp-mark--splash .gp-mark__pad--p1,
.gp-mark--splash .gp-mark__pad--p2,
.gp-mark--splash .gp-mark__pad--p3,
.gp-mark--splash .gp-mark__pad--p4 {
  display: none;
}

.gp-mark--splash .gp-mark__pad--thumb {
  left: 50.1%;
  top: 14.9%;
  width: 8.4%;
  animation-duration: 1.35s;
}

.gp-mark--icon .gp-mark__pad--p1,
.gp-mark--mark .gp-mark__pad--p1 { left: 23.6%; top: 35.8%; animation-delay: 0s; }

.gp-mark--icon .gp-mark__pad--p2,
.gp-mark--mark .gp-mark__pad--p2 { left: 21.6%; top: 42.9%; animation-delay: 0.12s; }

.gp-mark--icon .gp-mark__pad--p3,
.gp-mark--mark .gp-mark__pad--p3 { left: 25.1%; top: 49.6%; animation-delay: 0.24s; }

.gp-mark--icon .gp-mark__pad--p4,
.gp-mark--mark .gp-mark__pad--p4 { left: 32.4%; top: 34.2%; animation-delay: 0.08s; }

.gp-mark--icon .gp-mark__pad--thumb,
.gp-mark--mark .gp-mark__pad--thumb {
  left: 62.2%;
  top: 23.0%;
  width: 8.6%;
  animation-duration: 1.35s;
}

.gp-mark__ring {
  position: absolute;
  left: 32%;
  top: 12%;
  width: 36%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(190, 255, 140, 0);
  border-radius: 50%;
  pointer-events: none;
  animation: gp-ring-out 6.5s ease-out infinite;
}

.gp-mark--icon .gp-mark__ring,
.gp-mark--mark .gp-mark__ring {
  left: 22%;
  top: 10%;
  width: 56%;
}

.gp-mark__ring--delay {
  animation-delay: 3.2s;
}

.gp-mark__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 46%, rgba(6, 16, 10, 0.28) 100%);
}

.gp-mark--react .gp-mark__halo {
  animation: gp-halo-flash 0.7s ease-out;
}

.gp-mark--react .gp-mark__pad {
  animation: gp-pad-flash 0.7s ease-out;
}

/* Tiny chrome: keep pads + halo, drop the rest */
@container (max-width: 72px) {
  .gp-mark__motes,
  .gp-mark__ring,
  .gp-mark__sheen,
  .gp-mark__vignette {
    display: none;
  }

  .gp-mark__pad {
    width: 10%;
  }
}

@keyframes gp-rise-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

@keyframes gp-halo-breath {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes gp-sheen {
  0%, 12% { transform: translateX(-70%); opacity: 0; }
  22% { opacity: 1; }
  48% { transform: translateX(70%); opacity: 0; }
  100% { transform: translateX(70%); opacity: 0; }
}

@keyframes gp-pad-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.86); }
  50% { opacity: 0.95; transform: scale(1.12); }
}

@keyframes gp-mote-rise {
  0% { opacity: 0; }
  18% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-220px); }
}

@keyframes gp-ring-out {
  0% { transform: scale(0.55); opacity: 0.35; border-color: rgba(190, 255, 140, 0.35); }
  100% { transform: scale(1.55); opacity: 0; border-color: rgba(190, 255, 140, 0); }
}

@keyframes gp-halo-flash {
  0% { opacity: 0.4; }
  40% { opacity: 1; transform: scale(1.16); }
  100% { opacity: 0.6; }
}

@keyframes gp-pad-flash {
  0% { opacity: 0.3; }
  40% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-mark *,
  .gp-mark__art {
    animation: none !important;
  }
}
