:root {
  --bg: #0a0a09;
  --fg: #ece8df;
  --muted: #a6a296;
  --accent: #ff5a1f;
  --sans: "Helvetica Neue", Helvetica, Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(16px, 3.2vw, 44px);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  padding-top: max(var(--pad), env(safe-area-inset-top));
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 85% at 0% 58%, rgba(10, 10, 9, 0.95) 0%, rgba(10, 10, 9, 0.8) 32%, rgba(10, 10, 9, 0) 64%),
    linear-gradient(to bottom, rgba(10, 10, 9, 0.9) 0, rgba(10, 10, 9, 0) 16%, rgba(10, 10, 9, 0) 76%, rgba(10, 10, 9, 0.92) 100%);
}

.top,
.hero,
.bottom {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* Header */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.cursor {
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: blink 1.2s steps(2, start) infinite;
}

.meta .sep {
  margin: 0 0.7em;
  opacity: 0.45;
}

/* Hero */

.hero {
  align-self: center;
  max-width: 980px;
  padding: 9vh 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--fg);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s ease-out infinite;
}

h1 {
  font-size: clamp(46px, 8.6vw, 132px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.tagline {
  margin-top: 34px;
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--fg);
  opacity: 0.88;
}

/* Footer */

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2px 32px;
}

.hud dd {
  min-width: 8ch;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.status.reveal {
  animation-delay: 0.2s;
}

h1.reveal {
  animation-delay: 0.38s;
}

.tagline.reveal {
  animation-delay: 0.62s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(255, 90, 31, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cursor,
  .dot {
    animation: none;
  }
}

@media (max-width: 720px) {
  .coords,
  .hud {
    display: none;
  }

  .scrim {
    background:
      linear-gradient(to bottom, rgba(10, 10, 9, 0.9) 0, rgba(10, 10, 9, 0.25) 18%, rgba(10, 10, 9, 0.55) 40%, rgba(10, 10, 9, 0.88) 62%, rgba(10, 10, 9, 0.95) 100%);
  }

  .hero {
    padding: 6vh 0;
  }

  .tagline {
    margin-top: 26px;
  }
}
