:root {
  color-scheme: dark;
  color: #eee6d3;
  background: #101617;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.splash {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}
.splash-mark {
  position: relative;
  width: min(100%, 1000px);
  margin: 0;
  font-weight: 400;
  text-align: center;
  animation: apparition 2.3s ease-out both;
}
.signal { position: relative; display: block; }
.signal img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 144px);
  object-fit: contain;
  animation: unsettled-light 11.9s ease-in-out 2.3s infinite;
}
.splash-caption {
  display: block;
  margin-top: clamp(18px, 3vw, 36px);
  padding-left: .35em;
  font: 400 clamp(.7rem, 1.7vw, 1.25rem)/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .35em;
}
.signal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("plik-isometric.png") center / contain no-repeat;
  opacity: 0;
}
.signal::before {
  filter: blur(2.5px) sepia(.18) saturate(.55) contrast(1.12);
  mix-blend-mode: screen;
  animation: wandering-echo 17.3s ease-in-out 2.3s infinite;
}
.signal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='wear'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238b806b' filter='url(%23wear)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mix-blend-mode: soft-light;
  opacity: .16;
}
.splash-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 77%);
}
.splash-mark::before {
  background: radial-gradient(ellipse 6% 35% at 31% 43%, #eee6d361, transparent), radial-gradient(ellipse 14% 18% at 68% 57%, #c6a36b52, transparent), radial-gradient(ellipse 4% 25% at 51% 36%, #000c, transparent);
  filter: blur(12px);
  opacity: 0;
  mix-blend-mode: soft-light;
  animation: stray-light 19.7s ease-in-out 2.3s infinite;
}
.filaments {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(.35px);
  opacity: .8;
  mask-image: radial-gradient(ellipse at center, #000 32%, transparent 78%);
}
@keyframes apparition {
  0% { opacity: 0; filter: blur(12px) brightness(.35); }
  24% { opacity: .18; filter: blur(7px) brightness(.6); }
  47% { opacity: .68; filter: blur(2px) brightness(1.08); }
  56% { opacity: .45; filter: blur(3px) brightness(.8); }
  76% { opacity: .9; filter: blur(.5px) brightness(1.12); }
  100% { opacity: 1; filter: none; }
}
@keyframes unsettled-light {
  0%, 19%, 43%, 72%, 100% { opacity: 1; filter: brightness(.97) contrast(1.07) sepia(.14) saturate(.65); }
  26% { opacity: .92; filter: brightness(.87) contrast(1.14) sepia(.2) saturate(.5); }
  34% { opacity: 1; filter: brightness(1.06) contrast(1.12) sepia(.12) saturate(.7); }
  48% { opacity: .96; filter: brightness(.93) contrast(1.1) sepia(.18) saturate(.55); }
  79% { opacity: .89; filter: brightness(.89) contrast(1.16) sepia(.22) saturate(.45); }
  86% { opacity: 1; filter: brightness(1.03) contrast(1.1) sepia(.14) saturate(.6); }
}
@keyframes wandering-echo {
  0%, 15%, 44%, 68%, 100% { opacity: 0; transform: translate(0, 0); }
  24% { opacity: .22; transform: translate(-4px, 3px); }
  33% { opacity: .07; transform: translate(3px, -2px); }
  54% { opacity: .17; transform: translate(5px, 1px) skewX(-.35deg); }
  79% { opacity: .26; transform: translate(-2px, 5px); }
  88% { opacity: .1; transform: translate(3px, -3px); }
}
@keyframes stray-light {
  0%, 18%, 42%, 70%, 100% { opacity: 0; transform: translate(0, 0); }
  29% { opacity: .6; transform: translate(-12px, 6px); }
  51% { opacity: .28; transform: translate(9px, -8px); }
  61% { opacity: .5; transform: translate(4px, 10px); }
  83% { opacity: .7; transform: translate(-8px, -4px); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-mark, .signal img, .signal::before, .splash-mark::before { animation: none; }
  .filaments { display: none; }
}
