:root {
  --paper: #ecebe5;
  --ink: #121210;
  --dim: #77756d;
  --gold: #f4b400;
  --rule: rgba(18, 18, 16, 0.16);
  --pad: clamp(16px, 3vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 "Geist", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mono {
  font: 400 12.5px/1.6 "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dim { color: var(--dim); }
a { color: var(--ink); text-underline-offset: .2em; }
button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
h2 {
  max-width: 18ch;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.lede { max-width: 42ch; margin: 1.25rem 0 2rem; font-size: 17px; }
.label { margin: 0; color: var(--dim); }

.cta {
  display: inline-flex;
  padding: .9em 1.3em;
  background: var(--ink);
  color: var(--paper);
  transition: background .15s;
}
.cta:hover { background: #3a3934; }

/* Hero: same split as o1sys.com, copy on the left and the globe on the right. */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "top stage" "copy stage";
}
.top {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad) var(--pad) 0;
}
.top a { text-decoration: none; }
.top nav { display: flex; gap: 1.5rem; }
.top a:hover, .top button:hover { text-decoration: underline; text-underline-offset: .2em; }
.copy {
  grid-area: copy;
  align-self: end;
  padding: 4rem var(--pad) var(--pad);
}
.eyebrow { margin: 0 0 1.25rem; color: var(--dim); }

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  max-width: 36rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.legend li { border-bottom: 1px solid var(--rule); }
.legend button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .4rem 0;
  color: var(--dim);
  text-align: left;
}
.legend button:hover, .legend button.active { color: var(--ink); }
.legend button span:first-child::before,
.popup .title span:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 .75em .1em .15em;
  border: 1px solid var(--ink);
  background: var(--gold);
}

.stage {
  grid-area: stage;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage canvas {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.popup {
  position: absolute;
  top: 0;
  left: 0;
  place-self: start;
  min-width: 15rem;
  padding: .55rem .75rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.popup.shown { opacity: 1; }
.popup .title { display: flex; justify-content: space-between; gap: 2rem; margin: 0; }
.popup .entry + .entry { margin-top: .2rem; }
.popup.pinned {
  width: 22rem;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  overflow-y: auto;
  padding: .9rem 1rem 1rem;
  pointer-events: auto;
  cursor: auto;
}
.popup.pinned .entry:first-of-type .title { padding-right: 2rem; }
.popup.pinned .entry + .entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.points {
  margin: .75rem 0 1rem;
  padding: 0;
  list-style: none;
  font: 400 14px/1.4 "Geist", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.points li { position: relative; padding-left: 1rem; }
.points li + li { margin-top: .4rem; }
.points li::before {
  content: "";
  position: absolute;
  top: .5em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--ink);
}
.more { text-decoration: none; }
.more:hover { text-decoration: underline; }
.popup-close {
  position: absolute;
  top: .55rem;
  right: .8rem;
  font-size: 20px;
  line-height: 1;
}
.hint {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  margin: 0;
  color: var(--dim);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  border-top: 1px solid var(--rule);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.5rem calc(var(--pad) * 2);
}
.head { margin-bottom: 3rem; }

.jlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.jrow {
  margin: 0 calc(var(--pad) * -1);
  padding: 2rem var(--pad);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1rem;
  transition: background .6s;
}
.jrow:target { background: rgba(18, 18, 16, .05); }
.jname { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.jname p { margin: 0; }
.jname a { margin-top: .5rem; color: var(--dim); text-decoration: none; }
.jname a:hover { color: var(--ink); }
.summary { max-width: 52ch; margin: 0 0 1.5rem; font-size: 17px; }
.facts {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: .5rem 1.5rem;
  margin: 0;
  font-size: 15px;
}
.facts dt { padding-top: .15rem; color: var(--dim); }
.facts dd { margin: 0; }
.note { margin: 2rem 0 0; color: var(--dim); }

.steps {
  max-width: 36rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.steps li {
  display: flex;
  gap: 1.5rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad);
  border-top: 1px solid var(--rule);
  color: var(--dim);
}

/* Waitlist dialog */
.modal {
  width: min(32rem, calc(100vw - 2 * var(--pad)));
  max-width: none;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(236, 235, 229, .72);
  backdrop-filter: blur(3px);
}
.modal-body { position: relative; padding: 2rem; }
.modal h2 { margin: 1rem 0 .75rem; font-size: 32px; }
.modal p { margin: 0 0 1.5rem; }
.modal .label { margin: 0; }
.close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 22px;
  line-height: 1;
}
.signup { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: .9em 1em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-transform: none;
}
.signup input::placeholder { color: var(--dim); }
.signup input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "top" "stage" "copy";
  }
  .stage { aspect-ratio: 1; min-height: 0; }
  .copy { padding-top: 1rem; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .hint { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: .75rem; }
}
