/* Black ground, grey dot grid, white type, one periwinkle accent. */
:root {
  --ground: #000;
  --dot: #3d3d3d;
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --line: #2b2b2b;
  --accent: #8fa2ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
h1, h2, p, ul { margin: 0; }
svg { display: block; max-width: 100%; height: auto; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.nav-link { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 0; }
.nav-link:hover, .foot a:hover { color: var(--accent); }

.hero {
  min-height: calc(100vh - 72px); min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 24px var(--gutter) 96px; text-align: center;
}
.cluster { width: min(420px, 70vw); }
.wordmark {
  font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-size: clamp(2.75rem, 15vw, 10.5rem);
}
.lede { max-width: 30em; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); text-wrap: balance; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 12px;
  background: #fff; color: #000; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .15s ease;
}
.button:hover { background: var(--accent); }
.aside { font-size: 14px; color: var(--muted); }

section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance;
}
.copy { display: flex; flex-direction: column; gap: 22px; }
.copy p { color: var(--muted); max-width: 26em; }

.split, .constellation {
  display: grid; align-items: center; gap: clamp(32px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto; padding: clamp(72px, 12vw, 160px) var(--gutter);
}
.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.constellation { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.constellation .cta-row { justify-content: flex-start; }

.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.pane { padding: 26px 28px; min-width: 0; }
.pane.canvas { border-left: 1px solid var(--line); background: #050505; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pane ul { list-style: none; padding: 0; }
.pane li {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0;
  border-bottom: 1px solid #1c1c1c; font-size: 15px; line-height: 1.3;
}
.pane li i { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #777; }
.pane li.done { color: var(--muted); }
.pane li.done i {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3.3 3 5.7-6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pane.canvas svg { width: 100%; }
.stars { width: 100%; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); background: var(--ground);
}
.foot a { text-decoration: none; }

.wait { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px var(--gutter) 120px; text-align: center; }
.wait h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(2.2rem, 6vw, 4.5rem); text-wrap: balance; }
.wait p { color: var(--muted); max-width: 28em; }

@media (max-width: 820px) {
  .split, .constellation { grid-template-columns: minmax(0, 1fr); }
  .constellation .stars { order: 2; }
}
@media (max-width: 560px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .pane.canvas { border-left: 0; border-top: 1px solid var(--line); }
  .pane.canvas svg { max-width: 260px; margin: 0 auto; }
  .star-labels { display: none; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
