/* ============================================================
   Limboid — limboid.ai
   Dark, cinematic, technical. Barlow display / Jakarta body /
   Plex Mono for anything that is data.
   ============================================================ */

:root {
  color-scheme: dark;

  --black:      #030201;
  --black-2:    #070605;
  --black-3:    #0b0908;
  --paper:      #f4f1eb;
  --muted:      rgba(236, 232, 224, 0.62);
  --muted-2:    rgba(236, 232, 224, 0.42);
  --amber:      #d5a269;
  --amber-soft: rgba(213, 162, 105, 0.78);
  --amber-dim:  rgba(213, 162, 105, 0.30);
  --line:       rgba(236, 232, 224, 0.10);
  --line-soft:  rgba(236, 232, 224, 0.06);

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(22px, 4.2vw, 68px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { color: #120b05; background: #e2b27a; }

a { color: inherit; }

img, svg, canvas { display: block; max-width: 100%; }

:focus-visible {
  outline: 1px solid rgba(244, 241, 235, 0.8);
  outline-offset: 5px;
  border-radius: 2px;
}

.lb-skip {
  position: absolute;
  top: -100px; left: var(--gut);
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--black);
  font-size: 12px;
  text-decoration: none;
}
.lb-skip:focus { top: 12px; }

/* ── shared type primitives ───────────────────────────────── */

.lb-eyebrow,
.lb-kicker,
.lb-brand,
.lb-nav a,
.lb-topcta,
.lb-secnum,
.lb-badge,
.lb-bet-n,
.lb-label,
.lb-layer-role,
.lb-flow-tag,
.lb-phase-n,
.lb-hero-foot {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1;
}

.lb-hl { color: var(--paper); border-bottom: 1px solid var(--amber-dim); }
.lb-muted { color: var(--muted); }
.lb-small { font-size: 13.5px; line-height: 1.68; }

strong { font-weight: 500; color: var(--paper); }
em { font-style: italic; }

/* ── topbar ───────────────────────────────────────────────── */

.lb-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gut);
  transition: background 420ms var(--ease), border-color 420ms var(--ease), padding 420ms var(--ease);
  border-bottom: 1px solid transparent;
}

.lb-topbar.is-stuck {
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgba(3, 2, 1, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
}

.lb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-decoration: none;
  color: var(--paper);
  transition: opacity 180ms ease;
}
.lb-brand:hover { opacity: 0.72; }

.lb-brand-mark {
  width: 9px; height: 9px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(213, 162, 105, 0.12);
  flex: none;
}

.lb-nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
}
.lb-nav a {
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.lb-nav a:hover { color: var(--paper); border-bottom-color: var(--amber); }
.lb-nav a.is-current { color: var(--paper); border-bottom-color: var(--amber-dim); }

.lb-topcta {
  font-size: 10px;
  color: var(--amber);
  text-decoration: none;
  padding: 9px 15px;
  border: 1px solid var(--amber-dim);
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease;
  white-space: nowrap;
}
.lb-topcta:hover { background: var(--amber); border-color: var(--amber); color: #120b05; }

/* ── hero ─────────────────────────────────────────────────── */

.lb-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(104px, 13vh, 150px) var(--gut) clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.lb-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.lb-hero-canvas.is-lit { opacity: 1; }

.lb-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(96deg, rgba(3,2,1,0.94) 0%, rgba(3,2,1,0.74) 34%, rgba(3,2,1,0.18) 66%, rgba(3,2,1,0.55) 100%),
    radial-gradient(ellipse 92% 86% at 62% 48%, transparent 42%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(3,2,1,0.66) 0%, transparent 24%, transparent 62%, rgba(3,2,1,0.9) 100%);
}

/* `margin: auto 0` centres the block in whatever space the footer leaves,
   so tall content can never collide with it */
.lb-hero-inner {
  position: relative;
  width: min(62vw, 900px);
  margin: auto 0;
  padding-block: clamp(20px, 4vh, 48px);
}

.lb-eyebrow {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: clamp(9px, 0.74vw, 11px);
  color: var(--amber-soft);
}

.lb-hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(58px, 9.2vw, 152px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.lb-dot { color: var(--amber); }

.lb-hero-lead {
  max-width: 46ch;
  margin: clamp(26px, 2.6vw, 40px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.74;
}
.lb-hero-lead strong { color: var(--paper); }

.lb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 3vw, 44px);
}

.lb-hero-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  font-size: clamp(8px, 0.58vw, 10px);
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--amber-soft);
}
.lb-rule {
  width: clamp(24px, 2.4vw, 40px);
  height: 1px;
  background: var(--amber-dim);
  flex: none;
}

/* ── buttons ──────────────────────────────────────────────── */

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms var(--ease);
}
.lb-btn:hover { border-color: rgba(236,232,224,0.34); background: rgba(236,232,224,0.04); }
.lb-btn:active { transform: translateY(1px); }

.lb-btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #120b05;
}
.lb-btn--primary:hover { background: #e2b27a; border-color: #e2b27a; color: #120b05; }
.lb-btn--full { width: 100%; }
.lb-btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

/* ── section frame ────────────────────────────────────────── */

.lb-section {
  position: relative;
  padding: clamp(88px, 12vh, 168px) var(--gut);
  border-top: 1px solid var(--line-soft);
}
.lb-section--alt { background: var(--black-2); }

.lb-wrap { width: min(1180px, 100%); margin: 0 auto; }
.lb-wrap--narrow { width: min(640px, 100%); }

.lb-sechead { max-width: 62ch; margin-bottom: clamp(44px, 6vw, 78px); }
.lb-sechead--center { max-width: none; text-align: center; margin-inline: auto; }

.lb-secnum {
  display: block;
  font-size: 10px;
  color: var(--amber-soft);
  margin-bottom: 20px;
}

.lb-kicker {
  margin: 0 0 14px;
  font-size: 10px;
  color: var(--muted-2);
}

.lb-sectitle {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.lb-secsub {
  max-width: 58ch;
  margin: clamp(20px, 2vw, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17px);
}
.lb-sechead--center .lb-secsub { margin-inline: auto; }

.lb-h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.lb-h3--divider {
  margin: clamp(60px, 7vw, 92px) 0 clamp(26px, 3vw, 38px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ── lede + bets ──────────────────────────────────────────── */

.lb-lede {
  max-width: 66ch;
  font-size: clamp(16px, 1.16vw, 18.5px);
  color: var(--muted);
}
.lb-lede p { margin: 0 0 1.3em; }
.lb-lede p:first-child { color: var(--paper); font-size: 1.06em; }

.lb-bets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  margin: clamp(52px, 6vw, 84px) 0 0;
  padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.lb-bet {
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--black);
  transition: background 300ms ease;
}
.lb-section--alt .lb-bet { background: var(--black-2); }
.lb-bet:hover { background: var(--black-3); }

.lb-bet-n { display: block; font-size: 9.5px; color: var(--amber-soft); margin-bottom: 18px; }
.lb-bet h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.36;
  letter-spacing: -0.01em;
}
.lb-bet p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }

/* ── stack diagram ────────────────────────────────────────── */

.lb-stack {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.lb-layer {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 34px) clamp(22px, 2.6vw, 36px);
  background: var(--black-2);
  position: relative;
  transition: background 320ms ease;
}
.lb-section--alt .lb-layer { background: var(--black); }
.lb-layer:hover { background: var(--black-3); }

.lb-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amber);
  opacity: 0.9;
}
.lb-layer[data-layer="body"]::before { opacity: 0.62; }
.lb-layer[data-layer="runtime"]::before { opacity: 0.4; }
.lb-layer[data-layer="cognition"]::before { opacity: 0.22; }

.lb-layer-name {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lb-layer-role { display: block; font-size: 9.5px; color: var(--muted-2); line-height: 1.6; }

.lb-layer-items {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 26px;
}
.lb-layer-items li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.lb-layer-items li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 1px;
  background: var(--amber-dim);
}

.lb-stack-note {
  max-width: 60ch;
  margin: clamp(28px, 3vw, 40px) 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── split layout ─────────────────────────────────────────── */

.lb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.lb-split--wide { gap: clamp(36px, 6vw, 96px); }
.lb-split-body p { margin: 0 0 1.15em; color: var(--muted); font-size: 15.5px; }
.lb-split-body p:last-child { margin-bottom: 0; }

/* ── flow ─────────────────────────────────────────────────── */

.lb-flow { margin: 0; display: grid; gap: 0; }
.lb-flow-step {
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(236,232,224,0.015);
  font-size: 14.5px;
  color: var(--paper);
}
.lb-flow-step em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted-2);
}
.lb-flow-step--end { border-color: var(--amber-dim); background: rgba(213,162,105,0.05); }
.lb-flow-tag {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 7px;
}
.lb-flow-arrow {
  width: 1px; height: 22px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--amber-dim), rgba(213,162,105,0.06));
  position: relative;
}
.lb-flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 1px) rotate(45deg);
  width: 4px; height: 4px;
  border-right: 1px solid var(--amber-dim);
  border-bottom: 1px solid var(--amber-dim);
}

/* ── badges ───────────────────────────────────────────────── */

.lb-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  padding: 6px 10px 5px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  white-space: nowrap;
  flex: none;
}
.lb-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  flex: none;
}
.lb-badge--proto    { color: var(--amber); border-color: var(--amber-dim); background: rgba(213,162,105,0.07); }
.lb-badge--proto::before { background: var(--amber); }
.lb-badge--target   { color: rgba(244,241,235,0.82); border-color: rgba(236,232,224,0.2); }
.lb-badge--research { color: var(--muted); border-style: dashed; }
.lb-badge--vision   { color: var(--muted-2); border-color: var(--line-soft); }
.lb-badge--vision::before { border-style: dotted; }

/* ── cards ────────────────────────────────────────────────── */

/* Card counts are chosen to fill these grids exactly — three across on
   desktop, two on tablet, one on phone. Keep multiples of 3. */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.lb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1020px) {
  .lb-grid, .lb-grid--3, .lb-open-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lb-grid, .lb-grid--3, .lb-open-grid { grid-template-columns: minmax(0, 1fr); }
}

.lb-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--black);
  transition: background 300ms ease;
}
.lb-section--alt .lb-card { background: var(--black-2); }
.lb-card:hover { background: var(--black-3); }

.lb-card h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.lb-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }
.lb-card > .lb-badge { align-self: flex-start; }

/* ── spec lists ───────────────────────────────────────────── */

.lb-spec { margin: 4px 0 0; display: grid; gap: 0; }
.lb-spec > div {
  display: grid;
  grid-template-columns: minmax(110px, 42%) 1fr;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.lb-spec > div:last-child { border-bottom: 1px solid var(--line-soft); }
.lb-spec--wide > div { grid-template-columns: minmax(130px, 38%) 1fr; }

.lb-spec dt {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}
.lb-spec dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--paper);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lb-formula {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(236,232,224,0.02);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-soft);
  line-height: 1.6;
  overflow-x: auto;
}

.lb-code {
  margin: 2px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.lb-code code { font: inherit; color: inherit; }

.lb-chain {
  font-family: var(--mono);
  font-size: 11.5px !important;
  line-height: 2 !important;
  color: var(--muted) !important;
}
.lb-chain span { color: var(--amber-dim); padding: 0 3px; }

.lb-numlist {
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: n;
  display: grid; gap: 7px;
}
.lb-numlist li {
  counter-increment: n;
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14px;
}
.lb-numlist li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber-soft);
  line-height: 1.9;
}

/* ── panels ───────────────────────────────────────────────── */

.lb-panel {
  margin-top: clamp(40px, 4.4vw, 62px);
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid var(--line);
  background: rgba(236,232,224,0.018);
}
.lb-panel--warn { border-color: var(--amber-dim); background: rgba(213,162,105,0.045); }
.lb-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.lb-panel-head .lb-h3 { margin: 0; }
.lb-panel > p { margin: 0 0 1.1em; color: var(--muted); font-size: 15.5px; max-width: 72ch; }
.lb-panel > p:last-child { margin-bottom: 0; }

.lb-checks {
  list-style: none;
  margin: 22px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 34px;
}
.lb-checks li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.lb-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 4px;
  border-left: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: rotate(-45deg);
}

.lb-metrics {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.9;
}
.lb-metrics li { padding-left: 11px; text-indent: -11px; }
.lb-metrics li::before { content: "· "; color: var(--amber-dim); }

/* ── robots ───────────────────────────────────────────────── */

.lb-robots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.lb-robot {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--black);
}
.lb-section--alt .lb-robot { background: var(--black-2); }

.lb-robot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lb-robot-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.lb-robot-tag {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.5;
}
.lb-robot-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.lb-topo {
  width: 100%;
  height: auto;
  max-height: 260px;
  margin: 4px 0;
}
.lb-topo-links path {
  fill: none;
  stroke: rgba(236, 232, 224, 0.26);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-topo-nodes circle {
  fill: var(--black);
  stroke: rgba(236, 232, 224, 0.5);
  stroke-width: 1.1;
}
.lb-topo-nodes .is-core { fill: rgba(213,162,105,0.16); stroke: var(--amber); }
.lb-topo-nodes .is-head { fill: rgba(213,162,105,0.1); stroke: var(--amber-soft); }
.lb-topo-nodes .is-hand { fill: rgba(213,162,105,0.22); stroke: var(--amber); }
.lb-topo-labels text {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--muted-2);
}

/* ── autonomy loop ────────────────────────────────────────── */

.lb-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 clamp(44px, 5vw, 68px);
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  background: rgba(236,232,224,0.015);
}
.lb-loop span {
  font-family: var(--mono);
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb-loop span.is-key { color: var(--amber); }
.lb-loop i {
  width: 16px; height: 1px;
  background: var(--amber-dim);
  flex: none;
}

/* ── status ───────────────────────────────────────────────── */

.lb-legend {
  list-style: none;
  margin: 0 0 clamp(46px, 5vw, 70px); padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px 30px;
}
.lb-legend li {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.lb-phases { list-style: none; margin: 22px 0 0; padding: 0; }
.lb-phases li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-top: 1px solid var(--line-soft);
}
.lb-phases li:last-child { border-bottom: 1px solid var(--line-soft); }
.lb-phases li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted-2);
  opacity: 0.5;
}
.lb-phases li.is-active::before { background: var(--amber); border-color: var(--amber); opacity: 1; box-shadow: 0 0 0 4px rgba(213,162,105,0.14); }
.lb-phases li.is-next::before { border-color: var(--amber); opacity: 1; }

.lb-phase-n { display: block; font-size: 9px; color: var(--amber-soft); margin-bottom: 8px; }
.lb-phases li:not(.is-active):not(.is-next) .lb-phase-n { color: var(--muted-2); }
.lb-phase-t {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 5px;
}
.lb-phase-d { display: block; font-size: 13px; color: var(--muted-2); line-height: 1.6; }

.lb-open { margin-top: clamp(40px, 4.4vw, 62px); }
.lb-open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 22px;
}
.lb-open-grid p {
  margin: 0;
  padding: 20px 22px;
  background: var(--black-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.lb-open-grid p::before {
  content: "?";
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-soft);
  margin-bottom: 10px;
}

/* ── signup ───────────────────────────────────────────────── */

.lb-signup {
  position: relative;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(213,162,105,0.09) 0%, transparent 62%),
    var(--black);
  border-top: 1px solid var(--line);
}

.lb-form { margin-top: clamp(34px, 4vw, 48px); display: grid; gap: 16px; }

.lb-field { display: grid; gap: 9px; }
.lb-label { font-size: 9.5px; color: var(--muted-2); }

.lb-input {
  width: 100%;
  padding: 15px 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color 220ms ease, background 220ms ease;
  appearance: none;
}
.lb-input::placeholder { color: rgba(236,232,224,0.26); }
.lb-input:hover { border-color: rgba(236,232,224,0.2); }
.lb-input:focus { outline: none; border-color: var(--amber); background: rgba(0,0,0,0.55); }
.lb-input:focus-visible { outline: none; }
.lb-input[aria-invalid="true"] { border-color: #c8603f; }

.lb-selectwrap { position: relative; }
.lb-selectwrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--muted-2);
  border-bottom: 1px solid var(--muted-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.lb-select { padding-right: 42px; cursor: pointer; }
.lb-select option { background: #0b0908; color: var(--paper); }

.lb-hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lb-formnote {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

.lb-formstatus {
  margin: 0;
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}
.lb-formstatus.is-ok { color: var(--amber); }
.lb-formstatus.is-err { color: #e08a68; }

.lb-form.is-done .lb-field,
.lb-form.is-done #signupBtn,
.lb-form.is-done .lb-formnote { display: none; }
.lb-form.is-done .lb-formstatus {
  font-size: 14px;
  line-height: 1.7;
  padding: 26px 20px;
  border: 1px solid var(--amber-dim);
  background: rgba(213,162,105,0.06);
}

/* ── footer ───────────────────────────────────────────────── */

.lb-footer {
  padding: clamp(46px, 6vw, 76px) var(--gut) clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  background: var(--black);
}
.lb-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 46px;
}
.lb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.lb-footer-line {
  margin: 0;
  max-width: 44ch;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}
.lb-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.lb-footer-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color 200ms ease, border-color 200ms ease; }
.lb-footer-meta a:hover { color: var(--paper); border-bottom-color: var(--amber); }

/* ── reveal ───────────────────────────────────────────────── */

.lb-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.lb-reveal.is-in { opacity: 1; transform: none; }
.no-js .lb-reveal { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1000px) {
  .lb-split, .lb-split--wide { grid-template-columns: 1fr; }
  .lb-layer { grid-template-columns: 1fr; gap: 18px; }
  .lb-hero-inner { width: min(100%, 720px); }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 74px; }
  .lb-nav { display: none; }
  .lb-topbar { padding: 16px var(--gut); }
  .lb-hero { min-height: 100svh; padding-top: 120px; }
  .lb-hero-veil {
    background:
      linear-gradient(180deg, rgba(3,2,1,0.9) 0%, rgba(3,2,1,0.62) 26%, rgba(3,2,1,0.5) 54%, rgba(3,2,1,0.97) 100%),
      radial-gradient(ellipse 110% 70% at 60% 40%, transparent 34%, rgba(0,0,0,0.5) 100%);
  }
  .lb-hero-lead { max-width: 40ch; }
  .lb-robot-head { flex-direction: column; }
  .lb-btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .lb-topcta { padding: 8px 12px; letter-spacing: 0.14em; }
  .lb-hero-actions { flex-direction: column; align-items: stretch; }
  .lb-spec > div { grid-template-columns: 1fr; gap: 3px; }
  .lb-loop i { display: none; }
  .lb-loop { gap: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lb-reveal { opacity: 1; transform: none; transition: none; }
  .lb-hero-canvas { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
