html,
body {
  background: #0b0a12;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.signal {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgb(4 3 9 / 0.85) 100%);
  animation: breathe 6s ease-in-out infinite;
}

.core {
  display: grid;
  justify-items: center;
  width: min(440px, 100%);
}

.mark {
  position: relative;
  width: 100%;
  margin: 0;
}
.mark img {
  width: 100%;
  height: auto;
  animation: lift 6s ease-in-out infinite;
}
.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url('/img/voltaic-logo-white.svg') center / 100% 100% no-repeat;
  mask: url('/img/voltaic-logo-white.svg') center / 100% 100% no-repeat;
}
.sheen::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgb(51 220 255 / 0.35) 35%,
    #d9f8ff 50%,
    rgb(51 220 255 / 0.35) 65%,
    transparent 100%
  );
  transform: translateX(-110%);
  animation: sheen 6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.meter {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 36px;
  overflow: hidden;
}
.meter::before {
  content: '';
  position: absolute;
  inset: 4px 0 auto;
  height: 2px;
  background: var(--line);
}
.fill {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  animation: charge 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.fill::before {
  content: '';
  position: absolute;
  inset: 4px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgb(51 220 255 / 0.15), var(--accent));
}
.fill::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 0;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d9f8ff 70%, #fff);
}
.status {
  justify-self: start;
  margin: 16px 0 0;
  font: 600 12px/1 var(--display);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--faint);
}
.status::after {
  content: '_';
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}

.ways {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.ways li {
  display: flex;
  align-items: center;
}
.ways li + li::before {
  content: '';
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}
.ways a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 18px;
  font: 600 13px/1 var(--display);
  letter-spacing: 0.24em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease;
}
.ways a:focus-visible,
.edge a:focus-visible {
  outline-offset: -2px;
}

.edge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px var(--gutter) max(20px, env(safe-area-inset-bottom, 0px));
}
.edge .socials a {
  width: 40px;
  height: 40px;
  color: var(--faint);
}
.edge .socials svg {
  width: 18px;
  height: 18px;
}
.fine {
  margin: 0;
  font-size: 14px;
  color: var(--faint);
}

@media (hover: hover) {
  .ways a:hover,
  .edge .socials a:hover {
    color: var(--text);
  }
}

@media (max-width: 560px) {
  .core {
    width: min(300px, 100%);
  }
  .meter {
    margin-top: 28px;
  }
  .ways {
    margin-top: 48px;
  }
  .ways a {
    padding-inline: 14px;
  }
  .edge {
    justify-content: center;
  }
  .edge .socials {
    margin: 0;
    justify-content: center;
  }
}

.lost .fill {
  animation: none;
  transform: translateX(-100%);
}
.lost .sheen,
.lost .mark img {
  animation: none;
}
.lost .sheen::before {
  animation: none;
  transform: translateX(-110%);
}

@keyframes charge {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  78% {
    transform: translateX(0);
    opacity: 1;
  }
  88% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0;
  }
}
@keyframes sheen {
  0%,
  77% {
    transform: translateX(-110%);
  }
  95%,
  100% {
    transform: translateX(310%);
  }
}
@keyframes lift {
  0%,
  100% {
    opacity: 0.86;
  }
  80% {
    opacity: 1;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
  }
  80% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fill {
    animation: none;
    transform: translateX(-28%);
  }
  .sheen::before,
  .mark img,
  .status::after,
  body::before {
    animation: none;
  }
  .mark img {
    opacity: 1;
  }
}
