/* Layout: a calm directory set against a night sky. Neutral ink surfaces, one soft-blue accent, the tools' own logos carry the colour.
   Single deliberate dark theme: the starfield only works on a dark ground.
   Hero = intro + orbit, then the big three, tasks, and every tool grouped by work area. */
:root {
  color-scheme: dark;
  --bg: #06070b;
  --surface: #121319;
  --surface-2: #1a1b23;
  --ink: #ececf1;
  --muted: #9e9eab;
  --line: #262733;
  --line-strong: #363846;
  --accent: #8aa2ff;
  --accent-ink: #0c1030;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
#sky {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; display: block;
  background: radial-gradient(60vmax 40vmax at 80% 15%, rgba(70,90,170,.10), transparent 70%),
              radial-gradient(55vmax 40vmax at 12% 88%, rgba(90,70,140,.07), transparent 70%);
}
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-inline: 16px; padding-block: 0 64px;
}
.wrap { max-width: 1200px; margin: 0 auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.kicker, .live, .task-group .lbl, .site-footer h3, .king-card .by {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}

/* Hero */
header.hero {
  position: relative; padding-block: 72px 112px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.live { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 {
  font-family: var(--font-display); font-weight: 700; margin: 0;
  font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.04em;
  font-variation-settings: "opsz" 96;
}
h1 .l1, h1 .line2 { display: block; white-space: nowrap; }
h1 .n { font-variant-numeric: tabular-nums; }
h1 .w { color: var(--accent); }
h1 .caret { display: inline-block; width: .06em; height: .75em; margin-left: .06em; vertical-align: -.02em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { max-width: 38ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin: 0; }

.prompt {
  display: grid; gap: 12px; max-width: 500px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.prompt-line { font-family: var(--font-mono); font-size: 14.5px; min-height: 1.5em; overflow-wrap: anywhere; }
.prompt-line .who { color: var(--muted); }
.prompt-line .cur { display: inline-block; width: 7px; height: 1.05em; vertical-align: -.18em; background: var(--ink); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.prompt-answer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.prompt-answer.on { opacity: 1; transform: none; }
.prompt-answer .arrow { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.prompt-answer .chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.prompt-answer .chip img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.prompt-answer .show { margin-left: auto; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--accent); background: none; border: 0; padding: 6px 4px; text-decoration: underline; text-underline-offset: 4px; }

.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 999px; padding: 13px 22px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }

.orbit { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orbit-hit { position: absolute; transform: translate(-50%, -50%); border-radius: 30%; cursor: pointer; }
.orbit-hit span {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--surface); background: var(--ink);
  border-radius: 6px; padding: 4px 9px; pointer-events: none;
}
.orbit-hit span::after { content: " ↗"; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; cursor: pointer; transition: color .2s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue span { width: 20px; height: 32px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Logo strip */
.marquee { margin-inline: -16px; padding-block: 28px; display: grid; gap: 12px; overflow: hidden; border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; gap: 12px; width: max-content; animation: mq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: 15px; transition: border-color .2s;
}
.mq-item:hover { border-color: var(--ink); }
.mq-item img { width: 28px; height: 28px; border-radius: 8px; background: #fff; }

/* Finder */
.finder {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
  margin-inline: -16px; padding: 12px 16px;
}
.finder-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 280px; position: relative; min-width: 0; }
.search input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 44px 10px 42px; transition: border-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill svg { width: 14px; height: 14px; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill .count { font-family: var(--font-mono); font-size: 12px; opacity: .7; }

/* Section heads */
section.tasks { padding-block: 112px 24px; scroll-margin-top: 60px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.kicker { display: block; color: var(--accent); margin-bottom: 10px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -.03em; text-wrap: balance; }
.hint { color: var(--muted); font-size: 15px; max-width: 36ch; }

/* Task picker */
.task-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px 48px; }
.task-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-content: start; min-width: 0; }
.task-group .lbl { color: var(--muted); width: 100%; margin-bottom: 4px; }
.task {
  font: inherit; font-size: 14.5px; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; transition: background-color .2s, border-color .2s, color .2s;
}
.task:hover { border-color: var(--ink); }
.task[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Status */
.browse-head { padding-block: 112px 0; }
.browse-head .section-head { margin-bottom: 8px; }
.status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 0 20px; min-height: 40px; scroll-margin-top: 90px; }
.status p { margin: 0; color: var(--muted); font-size: 15px; }
.status p b { color: var(--ink); font-weight: 600; }
.clear { font: inherit; font-size: 14px; cursor: pointer; color: var(--accent); background: none; border: 0; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Work-area groups */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); gap: 56px 40px; padding-top: 16px; }
.board > .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
.panel { min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.badge svg { width: 20px; height: 20px; color: var(--muted); }
.tagline { color: var(--muted); font-size: 14.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.results .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }

/* Tool card */
.tool {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  text-decoration: none; cursor: pointer; min-width: 0;
  transition: border-color .2s, transform .2s ease-out, box-shadow .2s;
}
.tool:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.mono {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--muted); background: var(--surface-2);
  position: relative; overflow: hidden; border: 1px solid var(--line);
}
.mono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #ffffff; }
.tool-body { min-width: 0; display: grid; gap: 2px; }
.tool-name { font-weight: 600; font-size: 16px; line-height: 1.25; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-blurb { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tool-url { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); opacity: .85; overflow-wrap: anywhere; }
.tool-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.go { width: 18px; height: 18px; color: var(--muted); transition: color .2s, transform .2s; }
.tool:hover .go { color: var(--ink); transform: translate(2px, -2px); }
.star {
  position: relative; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); transition: color .2s, background-color .2s;
}
.star:hover { color: var(--ink); background: var(--surface-2); }
.star[aria-pressed="true"] { color: var(--accent); }
.star svg { width: 18px; height: 18px; }
.star[aria-pressed="true"] svg { fill: currentColor; }
.pick { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 2px 7px; }
.cat-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.tool.first { border-color: var(--accent); }

.empty { border: 1px dashed var(--line-strong); border-radius: 18px; padding: 32px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 20px; margin: 0 0 6px; }
.empty p { margin: 0; }
.empty .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* The big three */
.kings { padding-block: 72px 0; scroll-margin-top: 110px; }
.kings-frame { display: grid; gap: 28px; }
.kings-head { display: flex; align-items: end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.kings-head .badge { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.kings-head .badge svg { display: none; }
.kings-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 48ch; }
.king-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; perspective: 1200px; }
.king-card {
  --kc: var(--accent);
  position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border-radius: 20px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--kc);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow .25s, border-color .25s, transform .35s ease-out;
}
.king-card:hover { box-shadow: var(--shadow); }
.king-card.tilting { transition: box-shadow .25s, border-color .25s, transform .08s linear; }
.k-top { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; }
.k-logo { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #ffffff; display: block; border: 1px solid var(--line); }
.k-logo img { width: 100%; height: 100%; display: block; }
.k-title { display: grid; gap: 2px; min-width: 0; }
.king-card .by { color: var(--muted); font-size: 11px; }
.k-name { text-decoration: none; font-size: clamp(28px, 3vw, 36px); line-height: 1; color: var(--ink); }
.k-name:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.k-blurb { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.k-links { display: flex; flex-wrap: wrap; gap: 8px; }
.k-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 999px; padding: 8px 14px; color: var(--ink); border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.k-link:hover { border-color: var(--ink); }
.k-link svg { width: 15px; height: 15px; }
.k-link.main { background: var(--kc); color: #ffffff; border-color: var(--kc); }
.k-link.main:hover { background: color-mix(in srgb, var(--kc) 85%, #000); border-color: color-mix(in srgb, var(--kc) 85%, #000); }
/* Each of the three keeps one brand cue: its colour on the top rule and main button, and its type */
.k-claude { --kc: #c96442; }
.k-claude .k-name { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(32px, 3.4vw, 40px); }
.k-chatgpt { --kc: #e8e8e8; }
.k-chatgpt .k-link.main { color: #111; }
.k-chatgpt .k-name { font-weight: 700; letter-spacing: -.04em; }
.k-chatgpt .k-link { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
.k-gemini { --kc: #3b6fe0; }
.k-gemini .k-name { font-weight: 500; letter-spacing: -.03em; }
.k-gemini .k-link { border-radius: 10px; }
.king-card .star[aria-pressed="true"] { color: var(--kc); }

/* Footer */
.site-footer {
  margin-top: 140px; padding-block: 48px 0; border-top: 1px solid var(--line-strong);
  display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.site-footer h3 { color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; max-width: 40ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a, .site-footer li button { font: inherit; font-size: 14.5px; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.site-footer li a:hover, .site-footer li button:hover { color: var(--accent); }
.site-footer .brand-line { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.built {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}
.built a.ranbot { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.built a.ranbot:hover { color: var(--accent); }
.built .mono-txt { font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 900px) {
  header.hero { grid-template-columns: 1fr; padding-block: 32px 96px; gap: 24px; }
  .orbit { max-width: 420px; order: -1; }
}
@media (max-width: 520px) {
  .search kbd { display: none; }
  .search input { padding-right: 16px; }
  .finder .cats { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .finder .cats .pill { flex: 0 0 auto; }
  .orbit { max-width: 330px; }
  .prompt-answer .show { margin-left: 0; }
  .scroll-cue { display: none; }
  header.hero { padding-bottom: 56px; }
}

/* Motion: scroll reveal where supported; everything is readable without it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes reveal { from { opacity: .3; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  }
  .results .tool { animation: rise .4s ease-out both; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  h1 .caret, .prompt-line .cur, .mq-row, .scroll-cue span::after { animation: none !important; }
  .marquee { overflow-x: auto; }
}
