/* Cloudish in Action.
 *
 * Two brands in one drawing: hal9.com's blueprint sheets (graphite canvas,
 * a gold construction grid, registration-mark corners, mono callouts in
 * coral, Space Grotesk headlines) and Cloudish's sky (amber and indigo,
 * orbital rings, the comet mark, the Comfortaa wordmark). Dark only: it's a
 * control room.
 */

:root {
  --bg: #111113;
  --bg-2: #18181b;
  --panel: rgba(21, 21, 24, 0.86);
  --panel-solid: #151518;
  --code-bg: #0c0c0e;
  --line: rgba(237, 202, 112, 0.17);
  --line-soft: rgba(237, 202, 112, 0.075);
  --line-strong: rgba(237, 202, 112, 0.36);
  --gold: #edca70;
  --amber: #f6b73c;
  --coral: #e0805f;
  --pink: #db526e;
  --indigo: #7577f0;
  --indigo-deep: #5457e5;
  --green: #3ddc97;
  --red: #f87171;
  --text: #f1f1f1;
  --muted: #a6a6ae;
  --faint: #6f6f78;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --grad: linear-gradient(90deg, #f6b73c 0%, #ec8f5e 46%, #8b7ff3 100%);
  --grad-warm: linear-gradient(90deg, #db526e 0%, #e98a5f 48%, #edca70 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(246, 183, 60, 0.3); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ──────────────────────────────────────────────── the sky behind it all */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 640px at 50% -12%, rgba(246, 183, 60, 0.14), transparent 62%),
    radial-gradient(900px 620px at 92% 18%, rgba(117, 119, 240, 0.11), transparent 60%),
    radial-gradient(700px 500px at 0% 70%, rgba(219, 82, 110, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.rings circle { fill: none; stroke: rgba(237, 202, 112, 0.075); stroke-width: 1; }
.rings path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.spin { transform-origin: 0 0; animation: spin 90s linear infinite; }
.spin-b { animation-duration: 140s; animation-direction: reverse; }
.spin-c { animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(rgba(237, 202, 112, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 202, 112, 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 30%, transparent 100%);
}

/* ──────────────────────────────────────────────── shared pieces */

.fig {
  margin: 0;
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(219, 82, 110, .6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(219, 82, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(219, 82, 110, 0); } }

/* A drawing frame: hairline border, registration marks just outside each corner. */
.frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.frame::before {
  --c: rgba(237, 202, 112, .75);
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 13px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 13px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 13px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 13px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 13px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 13px no-repeat;
}

.launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .95rem 1.5rem .95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #1d1306;
  font: 700 14px/1 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 34px -10px rgba(233, 138, 95, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s;
  white-space: nowrap;
}
.launch svg { width: 15px; height: 15px; }
.launch:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(233, 138, 95, .9), inset 0 1px 0 rgba(255, 255, 255, .35); text-decoration: none; }
.launch:active { transform: translateY(0) scale(.98); }
.launch:disabled { filter: grayscale(.6) brightness(.7); cursor: progress; transform: none; }
.launch.wide { width: 100%; }
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ghost-btn:hover { border-color: var(--gold); background: rgba(237, 202, 112, .06); text-decoration: none; }

/* ──────────────────────────────────────────────── top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(17, 17, 19, .72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; width: 34px; }
.brand-mark svg, #footer-mark svg { width: 100%; height: auto; display: block; }
.wordmark { font: 700 18px/1 "Comfortaa", var(--sans); letter-spacing: -0.01em; color: #f3f4f8; margin-top: 2px; }
.by { display: inline-flex; align-items: center; gap: .4rem; color: var(--faint); font-size: 12px; margin-left: .2rem; }
.by img { opacity: .82; height: 15px; width: auto; }
.tag {
  padding: .3rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 600 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.titleblock {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.titleblock > div { padding: .28rem .7rem; border-left: 1px solid var(--line); min-width: 74px; }
.titleblock > div:first-child { border-left: 0; }
.titleblock span { display: block; font: 500 8.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.titleblock b { display: block; font: 600 11px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: .4rem; vertical-align: 1px; box-shadow: 0 0 8px var(--green); }
.toplinks { display: flex; gap: 1.1rem; font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.toplinks a { color: var(--muted); }
.toplinks a:hover { color: var(--text); }

/* ──────────────────────────────────────────────── hero + prompt console */

.hero {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) 1.25rem 4.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: .96;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.lede { max-width: 740px; margin: 0 auto 2.6rem; color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.65; }

.console { text-align: left; max-width: 900px; margin: 0 auto; }
.console::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 3px;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, rgba(246, 183, 60, .9) 75%, rgba(117, 119, 240, .9) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.console:focus-within::after, .console.busy::after { opacity: 1; animation: angle 3.2s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle { to { --angle: 360deg; } }
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.console-model { font: 500 11px/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.console-body { display: flex; gap: .85rem; padding: 1.3rem 1.3rem .6rem; }
.caret { font: 600 24px/1.45 var(--mono); color: var(--amber); user-select: none; }
.prompt-wrap { position: relative; flex: 1; min-width: 0; }
.prompt-mirror, #prompt {
  margin: 0;
  padding: 0;
  border: 0;
  font: 400 clamp(17px, 1.9vw, 21px)/1.55 var(--sans);
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}
.prompt-mirror { position: absolute; inset: 0; color: transparent; pointer-events: none; }
.prompt-mirror mark {
  color: transparent;
  background: linear-gradient(transparent 62%, rgba(246, 183, 60, .26) 62%);
  border-bottom: 2px solid rgba(246, 183, 60, .85);
  border-radius: 2px;
}
#prompt {
  position: relative;
  display: block;
  width: 100%;
  min-height: 3.2em;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  caret-color: var(--amber);
  outline: none;
}
.ideas { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.3rem 1rem 3.4rem; flex-wrap: wrap; }
.ideas-label { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
#ideas { display: flex; gap: .45rem; flex-wrap: wrap; }
.idea {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font: 500 12.5px/1 var(--sans);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.idea:hover, .idea[aria-pressed="true"] { border-color: var(--line-strong); color: var(--text); background: rgba(237, 202, 112, .06); }
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.console-meta { margin: 0; font: 500 11.5px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; }
.console-meta b { color: var(--gold); font-weight: 600; }
.console-meta.cached { color: var(--gold); }
.console-error {
  margin: 0;
  padding: .8rem 1.3rem;
  border-top: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .07);
  color: #fecaca;
  font-size: 13.5px;
}

/* ──────────────────────────────────────────────── mission control */

.mission {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 2.5vw, 2rem) 2.5rem;
  scroll-margin-top: 64px;
}
.mission-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.mission-title { display: flex; align-items: center; gap: .9rem; }
.mission-mark { width: 54px; display: inline-flex; }
.mission-mark svg { width: 100%; height: auto; }
.mission-title h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; margin-top: .2rem; }
.mission-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  border-left: 2px solid var(--line-strong);
  padding-left: .9rem;
}
.mission-about { min-width: 0; }
.mission-replay { margin: .5rem 0 0; padding-left: .9rem; font: 500 11.5px/1.5 var(--mono); color: var(--gold); }
.mission-clock { display: flex; align-items: center; gap: .9rem; }
.clock { font: 600 26px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.status-pill {
  padding: .38rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 183, 60, .5);
  color: var(--amber);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-pill.live { border-color: rgba(61, 220, 151, .55); color: var(--green); }
.status-pill.failed { border-color: rgba(248, 113, 113, .55); color: var(--red); }

.rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin: 1.4rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.rail li { position: relative; }
.rail li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(-50% + 22px);
  right: calc(50% + 22px);
  height: 1px;
  background: var(--line);
}
.rail li:first-child::before { display: none; }
.rail li.done::before, .rail li.active::before { background: linear-gradient(90deg, var(--gold), var(--amber)); }
.rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}
.rail .dot {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--faint);
  font: 600 11px/1 var(--mono);
  transition: all .35s var(--ease);
}
.rail .name { font: 600 12.5px/1.25 var(--display); color: var(--faint); transition: color .3s; }
.rail .time { font: 500 10.5px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; min-height: 1em; }
.rail li.active .dot { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 5px rgba(246, 183, 60, .12), 0 0 24px rgba(246, 183, 60, .45); animation: breathe 1.6s ease-in-out infinite; }
.rail li.active .name { color: var(--text); }
.rail li.done .dot { border-color: var(--gold); background: var(--gold); color: #1a1405; }
.rail li.done .name { color: var(--text); }
.rail li.error .dot { border-color: var(--red); background: rgba(248, 113, 113, .15); color: var(--red); }
.rail li.viewing .name { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--coral); }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px rgba(246, 183, 60, .05), 0 0 30px rgba(246, 183, 60, .6); } }

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 1.4rem;
  height: clamp(580px, calc(100vh - 290px), 860px);
}
.panel { display: flex; flex-direction: column; min-height: 0; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.panel-note { font: 500 10.5px/1 var(--mono); color: var(--faint); letter-spacing: .04em; }
.panel-note button { padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--gold); font: 600 10.5px/1 var(--mono); cursor: pointer; }

/* The agent log */
.log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: .4rem 0 1.2rem;
  font: 12.5px/1.6 var(--mono);
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 202, 112, .25) transparent;
}
.sec { padding: .7rem 1.1rem .2rem; animation: rise .4s var(--ease) both; }
.sec-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.sec-num { color: var(--coral); font-weight: 600; font-size: 11px; letter-spacing: .1em; }
.sec-title { font: 600 13.5px/1.3 var(--display); color: var(--text); letter-spacing: -0.01em; }
.sec-time { margin-left: auto; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.sec.error .sec-num, .sec.error .sec-title { color: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.say { display: flex; gap: .6rem; color: #d7d7dc; margin: .3rem 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.55; }
.say::before { content: "●"; color: var(--amber); font-size: 9px; line-height: 2.2; flex: none; }
.say.claude::before { color: var(--indigo); }
.say.warn::before { color: var(--red); }
.say.warn { color: #fecaca; }

.http { margin: .45rem 0 .6rem; border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; background: var(--code-bg); overflow: hidden; }
.http-line { display: flex; align-items: center; gap: .55rem; padding: .45rem .7rem; flex-wrap: wrap; }
.method { padding: .12rem .4rem; border-radius: 3px; font-weight: 600; font-size: 10.5px; letter-spacing: .06em; }
.method.GET { background: rgba(117, 119, 240, .16); color: #a9aaf7; }
.method.POST { background: rgba(246, 183, 60, .16); color: var(--amber); }
.method.PUT { background: rgba(224, 128, 95, .16); color: #f0a487; }
.method.DELETE { background: rgba(248, 113, 113, .16); color: var(--red); }
.http-url { color: var(--text); word-break: break-all; }
.http-url .host { color: var(--faint); }
.http-meta { margin-left: auto; display: flex; gap: .5rem; align-items: center; color: var(--faint); font-size: 11px; }
.status { padding: .08rem .38rem; border-radius: 3px; font-weight: 600; font-size: 10.5px; }
.status.ok { background: rgba(61, 220, 151, .14); color: var(--green); }
.status.warn { background: rgba(246, 183, 60, .14); color: var(--amber); }
.status.bad { background: rgba(248, 113, 113, .14); color: var(--red); }
.status.wait { color: var(--faint); }
.who { padding: 0 .7rem .35rem; color: var(--faint); font-size: 11px; }
.who b { color: var(--gold); font-weight: 500; }
.json {
  margin: 0;
  padding: .45rem .7rem .55rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #c9c9d0;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 210px;
  overflow: auto;
}
.json.res { background: rgba(255, 255, 255, .015); }
.json .k { color: #a9aaf7; }
.json .s { color: #e9c58a; }
.json .n { color: #f0a487; }
.json .b { color: var(--green); }
.json .x { color: var(--faint); }

.file { margin: .5rem 0 .7rem; border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; background: var(--code-bg); overflow: hidden; }
.file-head { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: 11.5px; }
.file-head b { color: var(--text); font-weight: 500; }
.file-head .file-stats { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.file pre {
  margin: 0;
  padding: .55rem .75rem .8rem;
  max-height: 290px;
  overflow: auto;
  font-size: 11.5px;
  line-height: 1.55;
  color: #cfcfd6;
  white-space: pre-wrap;
  word-break: break-all;
  counter-reset: none;
}
.file.streaming pre::after { content: "▍"; color: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-tag { color: #f0a487; }
.t-attr { color: #a9aaf7; }
.t-str { color: #e9c58a; }
.t-com { color: var(--faint); font-style: italic; }
.t-kw { color: #c792ea; }
.t-num { color: #f78c6c; }
.t-key { color: var(--gold); }

.buildlog {
  margin: .5rem 0 .6rem;
  padding: .55rem .75rem;
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 6px;
  background: var(--code-bg);
  font-size: 11px;
  line-height: 1.55;
  color: #b9b9c2;
  white-space: pre-wrap;
  word-break: break-all;
}
.buildlog .b-step { color: var(--gold); }
.buildlog .b-done { color: var(--green); }
.buildlog .b-evt { color: #8f90c9; }
.buildlog .b-err { color: var(--red); }
.ticker { display: flex; align-items: center; gap: .55rem; color: var(--faint); font-size: 11.5px; margin: .35rem 0; }
.ticker .spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.ticker.done .spinner { animation: none; border-color: var(--green); background: var(--green); }
.err-box { margin: .5rem 0; padding: .7rem .85rem; border-radius: 6px; border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fecaca; font: 13px/1.5 var(--sans); }

/* The diagram stage */
.stage { flex: 1; min-height: 0; position: relative; }
#stage-svg { position: absolute; inset: .6rem .9rem .2rem; width: calc(100% - 1.8rem); height: calc(100% - .8rem); overflow: visible; }
.caption { padding: .9rem 1.4rem 1.2rem; border-top: 1px solid var(--line); }
.caption h3 { font-size: 19px; font-weight: 600; margin-bottom: .35rem; }
.caption p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 70ch; }
.caption p code { color: var(--gold); font-size: .92em; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .8rem 0 0; }
.facts div { display: flex; gap: .45rem; align-items: baseline; }
.facts dt { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; font: 600 12px/1.3 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }

/* SVG drawing vocabulary, shared by every figure */
.fig-enter { animation: fig-in .55s var(--ease) both; }
@keyframes fig-in { from { opacity: 0; transform: translateY(8px); } }
svg .ln { fill: none; stroke: rgba(237, 202, 112, .55); stroke-width: 1.2; }
svg .ln-soft { fill: none; stroke: rgba(237, 202, 112, .2); stroke-width: 1; }
svg .ln-dash { fill: none; stroke: rgba(237, 202, 112, .35); stroke-width: 1; stroke-dasharray: 3 4; }
svg .ln-amber { fill: none; stroke: var(--amber); stroke-width: 1.6; }
svg .ln-indigo { fill: none; stroke: var(--indigo); stroke-width: 1.6; }
svg .ln-coral { fill: none; stroke: var(--coral); stroke-width: 1.4; }
svg .ln-green { fill: none; stroke: var(--green); stroke-width: 1.6; }
svg .face { fill: #18181c; stroke: rgba(237, 202, 112, .5); stroke-width: 1.1; stroke-linejoin: round; }
svg .face-l { fill: #141417; stroke: rgba(237, 202, 112, .5); stroke-width: 1.1; stroke-linejoin: round; }
svg .face-r { fill: #0f0f12; stroke: rgba(237, 202, 112, .5); stroke-width: 1.1; stroke-linejoin: round; }
svg .face.hot, svg .face-l.hot, svg .face-r.hot { stroke: var(--amber); }
svg .face.hot { fill: #241d10; }
svg .face.cool { stroke: var(--indigo); fill: #17172a; }
svg .face-l.cool, svg .face-r.cool { stroke: var(--indigo); }
svg .card { fill: rgba(16, 16, 19, .92); stroke: rgba(237, 202, 112, .4); stroke-width: 1; }
svg .card.hot { stroke: var(--amber); fill: rgba(40, 30, 12, .92); }
svg .card.cool { stroke: var(--indigo); fill: rgba(22, 22, 44, .92); }
svg .card.ok { stroke: var(--green); fill: rgba(14, 36, 27, .92); }
svg .card.ghost { stroke: rgba(237, 202, 112, .18); fill: rgba(16, 16, 19, .6); }
svg text { font-family: var(--mono); fill: var(--text); }
svg .lbl { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--coral); }
svg .lbl-gold { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--gold); }
svg .lbl-faint { font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--faint); }
svg .t { font: 500 11px var(--mono); fill: #e7e7ec; }
svg .t-sm { font: 400 9.5px var(--mono); fill: var(--muted); }
svg .t-big { font: 700 17px var(--display); fill: var(--text); letter-spacing: -0.01em; }
svg .t-huge { font: 700 30px var(--display); fill: var(--text); letter-spacing: -0.02em; }
svg .t-amber { fill: var(--amber); }
svg .t-indigo { fill: #a9aaf7; }
svg .t-green { fill: var(--green); }
svg .t-coral { fill: var(--coral); }
svg .t-faint { fill: var(--faint); }
svg .dotc { fill: var(--coral); }
svg .dot-amber { fill: var(--amber); }
svg .dot-indigo { fill: var(--indigo); }
svg .dot-green { fill: var(--green); }
svg .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 1.1s var(--ease) forwards; animation-delay: var(--delay, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
svg .fade { opacity: 0; animation: fade .6s var(--ease) forwards; animation-delay: var(--delay, 0s); }
@keyframes fade { to { opacity: 1; } }
svg .flow { stroke-dasharray: 2 7; animation: flow 1s linear infinite; }
svg .flow-slow { stroke-dasharray: 2 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
svg .glow-amber { filter: drop-shadow(0 0 6px rgba(246, 183, 60, .65)); }
svg .glow-indigo { filter: drop-shadow(0 0 6px rgba(117, 119, 240, .7)); }
svg .glow-green { filter: drop-shadow(0 0 6px rgba(61, 220, 151, .6)); }
svg .throb { animation: throb 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes throb { 50% { opacity: .45; } }
svg .spin-slow { animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
svg .hl { fill: rgba(246, 183, 60, .12); }
svg .scan { animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--scan, 180px)); opacity: 0; } }

/* Telemetry strip */
.telemetry {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}
.telemetry > div { padding: .7rem 1rem; border-left: 1px solid var(--line); min-width: 0; }
.telemetry > div:first-child { border-left: 0; }
.telemetry span { display: block; font: 500 9.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.telemetry b { display: block; margin-top: .2rem; font: 600 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telemetry b.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { color: var(--amber); text-shadow: 0 0 12px rgba(246, 183, 60, .7); } }

/* ──────────────────────────────────────────────── live */

.live { max-width: 1440px; margin: 0 auto; padding: 3rem clamp(1rem, 2.5vw, 2rem) 2rem; scroll-margin-top: 64px; }
.live-head { text-align: center; margin-bottom: 2.2rem; }
.live-head h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.live-sub { margin: 1rem auto 0; max-width: 760px; color: var(--muted); font-size: 16px; }
.live-sub a { font-family: var(--mono); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.6rem; align-items: start; }
.browser { overflow: visible; }
.browser-bar { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; }
.dots i:nth-child(1) { background: #db526e; }
.dots i:nth-child(2) { background: #edca70; }
.dots i:nth-child(3) { background: #3ddc97; }
.browser-url {
  flex: 1;
  min-width: 0;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--text);
  font: 500 12.5px/1 var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url::before { content: "🔒 "; filter: grayscale(1) brightness(1.6); font-size: 11px; }
.chip-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--muted); }
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
#live-frame { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; background: #0a0a0c; }
.live-side { display: flex; flex-direction: column; gap: .9rem; }
.qr { padding: 1.1rem; text-align: center; }
.qr-code { display: grid; place-items: center; }
.qr-code svg { width: 100%; max-width: 220px; height: auto; }
.qr p { margin: .7rem 0 0; color: var(--faint); font: 500 11px/1.5 var(--mono); }
.live-stats { margin: .4rem 0 0; display: grid; gap: .1rem; }
.live-stats div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.live-stats dt { font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.live-stats dd { margin: 0; font: 600 12px/1.4 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ──────────────────────────────────────────────── your turn */

.yours { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; text-align: center; }
.yours h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.035em; margin: .8rem 0 2.2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; text-align: left; }
.card { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.card .num { font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--coral); }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.copybox { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 6px; background: var(--code-bg); overflow: hidden; }
.copybox code { flex: 1; padding: .7rem .8rem; font-size: 11.5px; line-height: 1.55; color: #e7e7ec; word-break: break-word; }
.copybox button { border: 0; border-left: 1px solid var(--line); background: rgba(237, 202, 112, .06); color: var(--gold); font: 600 11px/1 var(--mono); padding: 0 .9rem; cursor: pointer; }
.copybox button:hover { background: rgba(237, 202, 112, .12); }

/* ──────────────────────────────────────────────── plan, pads, details */

.sheet-section { max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.25rem 1rem; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.035em; margin: .7rem 0 .8rem; }
.section-head p:not(.fig) { color: var(--muted); margin: 0; font-size: 15.5px; }

.flight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.flight li { display: grid; grid-template-columns: 38px 1fr; gap: .9rem; padding: 1.15rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flight li:nth-child(3n) { border-right: 0; }
.flight li:nth-child(n+7) { border-bottom: 0; }
.flight .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--coral); color: var(--coral); font: 600 11px/1 var(--mono); }
.flight h3 { font-size: 16px; font-weight: 600; }
.flight code { display: inline-block; margin: .25rem 0 .35rem; font-size: 11px; color: var(--gold); }
.flight p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pad { position: relative; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); min-height: 132px; display: flex; flex-direction: column; gap: .35rem; overflow: hidden; }
.pad::after { content: ""; position: absolute; right: -28px; top: -28px; width: 86px; height: 86px; border-radius: 50%; border: 1px dashed var(--line); }
.pad .pad-star { display: flex; align-items: center; gap: .5rem; font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pad .pad-star i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pad.live .pad-star i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pad.deploying .pad-star i, .pad.reserved .pad-star i { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: throb 1.2s infinite; }
.pad h3 { font-size: 16px; font-weight: 600; line-height: 1.25; margin-top: .2rem; }
.pad p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pad .pad-foot { margin-top: auto; display: flex; justify-content: space-between; gap: .5rem; font: 500 10.5px/1.3 var(--mono); color: var(--faint); }
.pad.free h3 { color: var(--faint); font-weight: 500; }
.pad a.pad-link { position: absolute; inset: 0; z-index: 1; }
.pad:has(a.pad-link):hover { border-color: var(--line-strong); background: rgba(30, 28, 22, .9); }

.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.details article { padding: 1.3rem 1.3rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details article:nth-child(3n) { border-right: 0; }
.details article:nth-child(n+4) { border-bottom: 0; }
.details .num { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.details h3 { font-size: 17px; font-weight: 600; margin: .6rem 0 .45rem; }
.details p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.details code { color: var(--gold); font-size: 12px; }

.footer { max-width: 1200px; margin: 4rem auto 0; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; color: var(--faint); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: .55rem; }
#footer-mark { width: 30px; display: inline-flex; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font: 500 12px/1 var(--mono); }
.footer nav a { color: var(--muted); }

/* ──────────────────────────────────────────────── smaller screens */

@media (max-width: 1180px) {
  .titleblock { display: none; }
  .mission-grid { grid-template-columns: 1fr; height: auto; }
  .stage-panel { order: -1; }
  .stage { aspect-ratio: 16 / 10; }
  .log-panel { height: 520px; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .live-side { display: grid; grid-template-columns: 220px 1fr; align-items: start; }
  .live-side .qr { grid-row: span 4; }
}
@media (max-width: 900px) {
  .mission-head { grid-template-columns: 1fr auto; }
  .mission-about { grid-column: 1 / -1; grid-row: 2; }
  .rail { grid-template-columns: repeat(9, 92px); overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
  .telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .telemetry > div:nth-child(4) { border-left: 0; }
  .telemetry > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cards, .flight, .details { grid-template-columns: 1fr; }
  .flight li, .details article { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .flight li:last-child, .details article:last-child { border-bottom: 0 !important; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toplinks a:first-child { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .tag, .by, .console-model, .eyebrow .wide { display: none; }
  .console-body { padding: 1.1rem 1rem .5rem; gap: .6rem; }
  .ideas { padding-left: 1rem; }
  .console-foot { flex-direction: column; align-items: stretch; }
  .launch { width: 100%; }
  .live-side { grid-template-columns: 1fr; }
  #live-frame { aspect-ratio: 9 / 15; }
  .pads { grid-template-columns: 1fr; }
  .clock { font-size: 20px; }
  .mission-mark { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  svg .draw { stroke-dashoffset: 0; }
  svg .fade { opacity: 1; }
}
