@font-face {
  font-family: "Space Mono Konsiens";
  src: url("/fonts/space-mono-konsiens.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --black: #000;
  --white: #fff;
  --lime: #bcfc00;
  --quiet: rgba(255, 255, 255, 0.5);
  --mono: "Space Mono Konsiens", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The living field behind everything: particles on a current, and nodes that link up. */
.field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.field.on { opacity: 1; }

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 56px;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(max(24px, env(safe-area-inset-bottom)) + 4svh)
    max(16px, env(safe-area-inset-left));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The logo */
.brand {
  margin: 0;
  line-height: 0;
  font-size: 1rem;
}
.brand a { display: block; border-radius: 4px; }
.lockup {
  display: block;
  width: min(78vw, 330px);
  height: auto;
  overflow: visible;
}

/* On arrival the symbol lights up like the field: the halves, then node, link, node, link, node. */
.k-word { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.k-half { animation: fade 1.1s ease 0.1s both; }
.k-node, .k-link { animation: spark 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.k-n1 { animation-delay: 0.55s; }
.k-l1 { animation-delay: 0.72s; }
.k-n2 { animation-delay: 0.89s; }
.k-l2 { animation-delay: 1.06s; }
.k-n3 { animation-delay: 1.23s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spark {
  0% { opacity: 0; }
  35% { opacity: 1; fill: #f4ffd6; }
  100% { opacity: 1; }
}

/* The typed line: a fixed box as wide as the longest sentence, so the words grow to the right and nothing jumps */
.type {
  margin: clamp(34px, 8vw, 54px) 0 0;
  width: 22ch;
  max-width: 100%;
  font-size: clamp(14.5px, 3.9vw, 20px);
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  white-space: pre;
  animation: fade 0.6s ease 1.3s both;
}
.type .pre { color: rgba(255, 255, 255, 0.56); }
.type .word {
  color: #f6fff8;
  text-shadow: 0 0 7px rgba(200, 255, 220, 0.42), 0 0 20px rgba(120, 255, 170, 0.16);
}
.type .word i {
  font-style: normal;
  animation: phosphor 0.6s ease-out both;
}
@keyframes phosphor {
  0% { color: #fbffe8; text-shadow: 0 0 10px rgba(214, 255, 120, 0.95), 0 0 26px rgba(188, 252, 0, 0.5); }
  100% { color: #f6fff8; text-shadow: 0 0 7px rgba(200, 255, 220, 0.42), 0 0 20px rgba(120, 255, 170, 0.16); }
}

.cursor {
  display: inline-block;
  width: 0.62em;
  height: 1.12em;
  margin-left: 0.08em;
  vertical-align: -0.2em;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(188, 252, 0, 0.55), 0 0 26px rgba(188, 252, 0, 0.18);
  animation: blink 1.06s steps(1, end) infinite;
}
.cursor.busy { animation: none; }
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.soon {
  margin: 1.1em 0 0;
  font-size: clamp(11.5px, 3.05vw, 13.5px);
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--quiet);
  animation: fade 1.2s ease 2.2s both;
}
.js .soon:not(.soon-still) { animation: none; opacity: 0; transition: opacity 1.4s ease; }
.js .soon.on { opacity: 1; }

.soon a,
.type a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: rgba(188, 252, 0, 0.55);
}
.soon a:hover,
.soon a:focus-visible { color: #fff; text-decoration-color: var(--lime); }
a:focus-visible { outline: 1px solid rgba(188, 252, 0, 0.7); outline-offset: 6px; }

.type-still { width: auto; animation-delay: 0.6s; }

@media (min-width: 900px) {
  .lockup { width: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  .k-word, .k-half, .k-node, .k-link, .type, .soon, .type .word i { animation: none; }
  .cursor { animation: none; }
  .field { transition: none; }
  .js .soon:not(.soon-still) { opacity: 1; transition: none; }
}
