:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #080808;
  color: #f3f3ef;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; overflow-x: clip; }

::selection { background: #f3f3ef; color: #080808; }

.page {
  width: min(100% - 6rem, 64rem);
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 6rem;
}

.uap-mark {
  position: relative;
  width: 100vw;
  height: 22px;
  margin-inline-start: calc(50% - 50vw);
  margin-bottom: 3.5rem;
  overflow: hidden;
}

.uap-layer { display: contents; }

.uap-layer.is-animated {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.uap-flight {
  position: absolute;
  top: 9px;
  left: 43%;
  width: 4px;
  height: 4px;
  /* A defined inner glow and soft outer bloom share the entire silhouette. */
  filter: blur(0.25px) drop-shadow(0 0 2.5px #ffffffe6) drop-shadow(0 0 6.5px #ffffff70);
}

.uap-object {
  display: block;
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.uap-trail {
  position: absolute;
  top: 0.5px;
  right: 2px;
  width: 120px;
  height: 3px;
  filter: blur(0.25px);
  transform: scaleX(0);
  transform-origin: right center;
}

.uap-trail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff35 35%, #ffffffb0 75%, #fff);
  clip-path: polygon(0 50%, 55% 30%, 100% 0, 100% 100%, 55% 70%);
}

@keyframes uap-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes uap-core-pulse {
  0%, 100% { scale: 0.9; }
  50% { scale: 1.2; }
}

@keyframes wordmark-pulse {
  0%, 100% {
    color: #e8e8e5;
    text-shadow:
      0 0 3px rgb(255 255 255 / 15.16%),
      0 0 14px rgb(255 255 255 / 11.48%),
      0 0 32px rgb(255 255 255 / 6.15%),
      0 0 56px rgb(255 255 255 / 2.46%);
  }
  50% {
    color: #f8f8f4;
    text-shadow:
      0 0 3px rgb(255 255 255 / 27.42%),
      0 0 14px rgb(255 255 255 / 19.19%),
      0 0 32px rgb(255 255 255 / 12.34%),
      0 0 56px rgb(255 255 255 / 4.80%);
  }
}

h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0 0 2rem;
  font-size: clamp(2rem, 8.3vw, 6.625rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.wordmark {
  text-shadow: 0 0 3px #ffffff33, 0 0 14px #ffffff26, 0 0 32px #ffffff17, 0 0 56px #ffffff0a;
}

.intro {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.mission {
  max-width: 31rem;
  margin: 0;
  color: #a2a2a0;
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid #282828;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

a {
  color: #a2a2a0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  padding-block: 0.5rem;
}

a:hover { color: #f3f3ef; text-decoration-color: currentColor; }
a:focus-visible { outline: 1px solid #f3f3ef; outline-offset: 5px; }

@media (max-width: 600px) {
  .page { width: calc(100% - 3rem); }
  main { padding-block: 4rem; }
  .uap-mark { margin-bottom: 2.5rem; }
  h1 { margin-bottom: 1.75rem; }
  .mission { max-width: 26rem; font-size: 1rem; }
  footer { padding-block: 1rem 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark { animation: wordmark-pulse 8s ease-in-out infinite; }
  .uap-flight {
    animation: uap-pulse 3s ease-in-out infinite;
  }
  .uap-object { animation: uap-core-pulse 3s ease-in-out infinite; }
  a { transition: color 160ms ease, text-decoration-color 160ms ease; }
}
