:root {
  --bg: #050607;
  --ink: #eef1f4;
  --muted: #9aa3ad;
  --signal: #ff7a2f;
  --cool: #5eead4;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No-JS fallback: a static hex lattice. The canvas replaces it when JS runs. */
html:not(.js) body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38.105' height='66' viewBox='0 0 38.105 66'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M19.05 0v11L9.53 16.5 0 11M19.05 11l9.53 5.5L38.1 11M9.53 16.5v22l9.52 5.5 9.53-5.5v-22M19.05 44v22M0 38.5l9.53 5.5M38.1 38.5l-9.52 5.5'/%3E%3C/g%3E%3C/svg%3E");
}

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

.scrim {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 32% 52%, rgba(5, 6, 7, .78) 0%, rgba(5, 6, 7, .35) 60%, rgba(5, 6, 7, 0) 100%),
    radial-gradient(140% 100% at 50% 50%, rgba(5, 6, 7, 0) 55%, rgba(5, 6, 7, .85) 100%);
}

.corner {
  position: fixed; width: 18px; height: 18px; pointer-events: none;
  border: 0 solid rgba(238, 241, 244, .28);
}
.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.frame {
  position: relative; z-index: 1;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 3.4vw, 44px) clamp(22px, 3.6vw, 48px);
  padding-top: max(clamp(22px, 3.4vw, 44px), env(safe-area-inset-top));
  padding-bottom: max(clamp(22px, 3.4vw, 44px), env(safe-area-inset-bottom));
}

/* Height pinned to the original 26px so the larger mark does not move the field the animation lays out. */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 26px; }

.mark {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-stretch: 125%; letter-spacing: .3em; font-size: 1.12rem;
}
.mark svg { width: 32px; height: 32px; flex: none; }

.hud {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: var(--muted);
}
#boot { display: inline-block; width: calc(12ch + 12 * .16em); white-space: nowrap; text-align: left; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--signal); box-shadow: 0 0 10px var(--signal);
  animation: blink 1.6s steps(2, start) infinite;
}

.hero { align-self: center; max-width: min(1040px, 100%); margin-top: -5vh; }

.soon {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--signal);
}

.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--signal); margin-bottom: clamp(14px, 2.4vh, 26px);
}

h1 {
  font-weight: 780; font-stretch: 118%;
  font-size: clamp(2.1rem, 6.6vw, 5.8rem);
  line-height: .98; letter-spacing: -.028em;
  text-wrap: balance;
}

.sub {
  margin-top: clamp(18px, 3vh, 30px);
  font-family: var(--mono); font-size: clamp(.82rem, 1.2vw, 1rem);
  color: var(--muted); letter-spacing: .06em;
  max-width: 42ch; line-height: 1.55; text-wrap: balance;
}

h1 .robots { color: var(--signal); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 .robots {
    background: linear-gradient(90deg, #ff7a2f 0%, #f472b6 38%, #a78bfa 68%, #60a5fa 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}

.specs {
  display: grid; gap: 12px; justify-items: start;
  margin-top: clamp(22px, 3.8vh, 40px);
  font-family: var(--mono); font-size: clamp(.8rem, 1.1vw, .95rem); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.specs span { display: inline-flex; align-items: center; gap: 10px; }
.specs span::before {
  content: ""; width: 9px; height: 10px; flex: none; background: var(--signal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.specs span + span::before { background: var(--cool); }
.specs span + span + span::before { background: #a78bfa; }

.bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .04em;
}
.cta { font-size: clamp(.92rem, 1.2vw, 1.08rem); }
.cta a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--signal); padding: 4px 0 2px;
}
.cta a:hover { color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 2px; }

.meta { display: grid; gap: 10px; justify-items: end; text-align: right; }
.credits { font-size: .72rem; letter-spacing: .06em; }
.credit { white-space: nowrap; }
.credits a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(238, 241, 244, .2); padding-bottom: 1px; }
.credits a:hover { color: var(--ink); border-bottom-color: var(--signal); }
.credits .sep { margin: 0 .6em; opacity: .5; }

.telemetry { font-size: .7rem; letter-spacing: .16em; color: var(--muted); }
.telemetry b { color: var(--ink); font-weight: 500; display: inline-block; min-width: 22ch; }

@keyframes blink { to { opacity: .25; } }

@media (max-width: 600px) {
  .telemetry { display: none; }
  .meta { justify-items: start; text-align: left; }
  .credits { display: grid; gap: 6px; justify-items: start; }
  .credits .sep { display: none; }
  .hud { font-size: .66rem; letter-spacing: .12em; }
  .soon { font-size: .7rem; letter-spacing: .16em; }
  .mark { letter-spacing: .24em; font-size: .98rem; gap: 12px; }
  .mark svg { width: 28px; height: 28px; }
  .scrim {
    background:
      radial-gradient(90% 40% at 40% 50%, rgba(5, 6, 7, .8) 0%, rgba(5, 6, 7, .3) 65%, rgba(5, 6, 7, 0) 100%),
      radial-gradient(140% 100% at 50% 50%, rgba(5, 6, 7, 0) 55%, rgba(5, 6, 7, .85) 100%);
  }
}

@media (max-height: 760px) {
  h1 { font-size: clamp(2rem, 5.4vw, 4.4rem); }
  .specs { margin-top: 22px; gap: 10px; }
}

@media (max-height: 520px) {
  h1 { font-size: clamp(1.6rem, 5.2vw, 3.2rem); }
  .eyebrow { margin-bottom: 10px; }
  .sub { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}
