@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0C0C11;
  --ink: #F2F2F2;
  --muted: #9A9A9A;
  --dim: #6A6A6A;
  --cyan: #00E5FF;
  --amber: #FFB000;
  --teal: #5EEAD4;
  --line: rgba(0, 229, 255, 0.16);
  --card: #121218;
  --well: rgba(0, 229, 255, 0.04);
  --warm: #14141c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(0, 229, 255, 0.05), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 176, 0, 0.035), transparent 55%),
    var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { width: min(1180px, calc(100% - 8vw)); margin: 0 auto; }
.wrap-wide { width: min(1360px, calc(100% - 5vw)); margin: 0 auto; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}
header.top .combo { height: 36px; width: auto; }
nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
nav a { transition: color 0.15s ease; }
nav a:hover { color: var(--teal); }
nav a.active { color: var(--ink); }

.kicker {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; margin: 0 0 16px; }
h1 em, .lede-em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 38em;
  margin: 0 0 28px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn-amber { background: var(--amber); color: #111; }
.btn-amber:hover { filter: brightness(1.06); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--teal);
  background: transparent;
  height: 42px;
  padding: 0 18px;
  font-weight: 500;
}

.wordmark { height: 24px; width: auto; }
footer.site {
  border-top: 1px solid #1A1A1A;
  margin-top: 88px;
  padding: 28px 0 48px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: start;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--cyan); }
footer.site .tag { color: var(--dim); margin: 4px 0 0; }

/* marketplace — Look lock (x.ai scaffolding) */
.mkt-search {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #000;
  color: #F2F2F2;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 20px;
  padding: 14px 20px;
  margin: 0 0 14px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mkt-search::placeholder { color: #6A6A6A; }
.mkt-search:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.32), 0 0 0 1px #00E5FF;
}
.mkt-empty {
  color: #5EEAD4;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  margin: 8px 0 28px;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

/* soft aisle chips (ghost idle / cyan wash on) */
.aisles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.aisle {
  border: 1px solid #2A2A2A;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.aisle:hover { color: var(--ink); border-color: rgba(0, 229, 255, 0.4); }
.aisle.on {
  color: rgba(0, 229, 255, 0.9);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.45);
}

/* hero */
.mkt-hero { padding: 48px 0 28px; }
.mkt-hero .mkt-kicker,
.mkt-hero .kicker {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(94, 234, 212, 0.7);
  margin: 0 0 14px;
  font-weight: 400;
}
.mkt-hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 16ch;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
.mkt-hero .lede {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.mkt-hero-cta { margin: 0 0 22px; }
.mkt-stats {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0;
}

/* sticky filter row */
.mkt-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 16px;
  margin: 0 0 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  scroll-margin-top: 12px;
}

/* aisle sections — Look exact */
.aisle-block {
  margin: 48px 0 0;
  scroll-margin-top: 100px;
}
.aisle-block.hidden { display: none; }
.aisle-block__h {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 18px;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .skill-grid { grid-template-columns: 1fr; }
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 20px 20px 18px;
  background: #121212;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.skill-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: #141414;
}
.skill-card.hidden { display: none; }
.skill-card__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  color: #F2F2F2;
}
.skill-card__by {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: #5EEAD4;
}
.skill-card__by-link {
  color: inherit;
  text-decoration: none;
}
.skill-card__by-link:hover { color: #00E5FF; }
.skill-card__desc {
  margin: 0;
  flex: 1;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #9A9A9A;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-card__cta {
  margin-top: 6px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFB000;
}

.cta-row { margin: 12px 0 0; }

/* legacy receipt / when / stop — skill detail pages */
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--teal);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.count-badge b { color: var(--ink); font-weight: 600; }

.tape {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 12px;
}
.tape span { color: rgba(0, 229, 255, 0.55); letter-spacing: 0.08em; font-weight: 500; }

.when-well {
  background: var(--well);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  color: #C8C8D0;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.when-well .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
  font-weight: 600;
}

.stop-rule {
  border-left: 2px solid var(--amber);
  padding: 2px 0 2px 12px;
  color: #E8D4A4;
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.45;
}
.stop-rule .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2px;
  font-weight: 600;
}

.receipt {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  counter-reset: step;
  flex: 1;
}
.receipt li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.receipt li:last-child { border-bottom: 0; }
.receipt li::before {
  counter-increment: step;
  content: counter(step);
  font-size: 11px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.load-line {
  font-size: 12px;
  color: var(--dim);
  margin-top: 10px;
}
.load-line b { color: var(--teal); font-weight: 600; }

/* skill spec sheet */
.spec-page { padding: 40px 0 24px; }
.back {
  font-size: 13px;
  color: var(--teal);
  margin: 0 0 28px;
  display: inline-flex;
  gap: 8px;
}
.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px 28px;
}
.spec h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 22px; }
.spec .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.load-box, .source-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--warm);
  font-size: 14px;
  color: var(--muted);
}
.load-box .lbl, .source-box .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 600;
}
.source-box a { color: var(--cyan); }

.skillmd {
  margin-top: 22px;
  background: #09090e;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
}
.skillmd .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.skillmd .bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skillmd .raw-skill {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skillmd .raw-skill:hover { color: var(--cyan); }
.skillmd .bar button {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.skillmd pre {
  margin: 0;
  padding: 18px 18px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #D4D4DC;
  overflow: auto;
  white-space: pre-wrap;
}
.skillmd .cmt { color: var(--cyan); opacity: 0.7; }
.skillmd .key { color: var(--teal); }
.skillmd .str { color: #E8E8E8; }

/* map */
.map-hero { padding: 18px 0 4px; }
.map-hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin: 0 0 10px; }
.map-hero .sub {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 8px;
  font-size: 17px;
}
.map-hero .brandline { color: var(--teal); font-size: 13px; margin: 0 0 24px; }
.map-hero .kicker {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0, 229, 255, 0.7);
}

.story-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.story-bar .dot-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.legend-swatch i.hollow { border: 2px solid var(--cyan); background: transparent; width: 9px; height: 9px; }
.legend-swatch i.filled { background: var(--amber); }

.line-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}
.line-pill {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #2A2A2A;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.line-pill.inbound { color: var(--cyan); border-color: rgba(0, 229, 255, 0.32); }
.line-pill.decide, .line-pill.grow { color: var(--amber); border-color: rgba(255, 176, 0, 0.32); }
.line-pill.outbound { color: var(--teal); border-color: rgba(94, 234, 212, 0.32); }
.line-pill.keep { color: var(--cyan); border-color: rgba(0, 229, 255, 0.32); }
.line-pill:not(.on) { opacity: 0.55; }
.line-pill.on {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: currentColor;
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 50%, transparent);
}

.metro-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: stretch;
}
.metro-canvas {
  background: #0B0B0B;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.metro-canvas svg {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 250px);
  display: block;
}

.metro-line {
  opacity: 0.28;
  transition: opacity 0.2s ease;
}
.metro-line.line-dim { opacity: 0.28; }
.metro-line.line-lit { opacity: 1; }
.metro-line .track-glow { opacity: 0.18; }
.metro-line.line-lit .track-glow { opacity: 0.40; filter: url(#glow); }

.line-label { opacity: 0.28; transition: opacity 0.2s ease; }
.line-label.line-dim { opacity: 0.28; }
.line-label.line-lit { opacity: 1; }

.station { cursor: pointer; opacity: 0.28; transition: opacity 0.2s ease; }
.station.line-dim { opacity: 0.28; }
.station.line-lit { opacity: 1; }
.station:hover .st-ring { stroke-opacity: 1; }
.station text {
  font-size: 15px;
  fill: #F2F2F2;
  stroke: #0B0B0B;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  pointer-events: none;
}

.tick-pt { opacity: 0.28; transition: opacity 0.2s ease; cursor: pointer; }
.tick-pt.line-dim { opacity: 0.28; }
.tick-pt.line-lit { opacity: 1; }
.tick-pt text { opacity: 0; pointer-events: none; }
.metro-line.line-lit .tick-pt text,
.tick-pt.line-lit text { opacity: 0; }

.hub-glow { opacity: 0.85; }
.hub .hub-ring { opacity: 0.28; }

.dock {
  --dock-c: var(--cyan);
  background: #121212;
  border: 1px solid color-mix(in srgb, var(--dock-c) 28%, transparent);
  border-radius: 20px;
  padding: 22px 20px;
  position: sticky;
  top: 16px;
  min-height: 280px;
  transition: border-color 0.2s ease;
}
.dock.inbound,
.dock.keep { --dock-c: var(--cyan); }
.dock.decide,
.dock.grow { --dock-c: var(--amber); }
.dock.outbound { --dock-c: var(--teal); }
.dock .line-tag {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  margin: 0 0 10px;
}
.dock .line-tag.inbound { color: rgba(0, 229, 255, 0.7); }
.dock .line-tag.decide { color: rgba(255, 176, 0, 0.7); }
.dock .line-tag.outbound { color: rgba(94, 234, 212, 0.7); }
.dock .line-tag.grow { color: rgba(255, 176, 0, 0.7); }
.dock .line-tag.keep { color: rgba(0, 229, 255, 0.7); }
.dock h2 { font-size: 26px; margin: 0 0 12px; }
.dock .micros { list-style: none; margin: 14px 0 0; padding: 0; }
.dock .micros li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dock .micros li:last-child { border-bottom: 0; }
.tick {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--cyan);
  flex: 0 0 9px;
}
.tick.gate { background: var(--amber); border-color: var(--amber); }
.dock .hint { color: var(--dim); font-size: 13px; margin: 0; }

.metro-mobile { display: none; }
.district-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 12px;
  margin: 0 0 14px;
  background: #121212;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.district-col h3 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 14px;
  font-weight: 500;
}
.district-col.inbound h3 { color: rgba(0, 229, 255, 0.7); }
.district-col.decide h3 { color: rgba(255, 176, 0, 0.7); }
.district-col.outbound h3 { color: rgba(94, 234, 212, 0.7); }
.district-col.grow h3 { color: rgba(255, 176, 0, 0.7); }
.district-col.keep h3 { color: rgba(0, 229, 255, 0.7); }
.vline {
  border-left: 4px solid currentColor;
  margin-left: 7px;
  padding-left: 16px;
}
.district-col.inbound { color: var(--cyan); }
.district-col.decide { color: var(--amber); }
.district-col.outbound { color: var(--teal); }
.district-col.grow { color: var(--amber); }
.district-col.keep { color: var(--cyan); }
.district-col.dim { opacity: 0.42; }
.district-col.on {
  opacity: 1;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
}
.district-col.on.inbound { border-color: var(--cyan); }
.district-col.on.decide,
.district-col.on.grow { border-color: var(--amber); }
.district-col.on.outbound { border-color: var(--teal); }
.district-col.on.keep { border-color: var(--cyan); }
.vstop {
  position: relative;
  padding: 0 0 16px;
  color: var(--ink);
  cursor: pointer;
}
.vstop::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--bg);
}
.vstop.gate::before { background: var(--amber); border-color: var(--amber); }
.vstop .name {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-size: 16px;
  color: var(--ink);
}
.vstop .ms {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.bottom-cta {
  margin: 40px 0 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bottom-cta p { margin: 0; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .metro-line,
  .metro-line .track-glow,
  .line-label,
  .station,
  .tick-pt,
  .dock,
  .line-pill,
  .district-col {
    transition: none;
  }
  .metro-line.line-lit { filter: none; }
  .track-glow { filter: none; }
}

@media (max-width: 980px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .spec .grid2 { grid-template-columns: 1fr; }
  .metro-stage { grid-template-columns: 1fr; }
  .metro-canvas { display: none; }
  .metro-mobile { display: block; }
  .dock { position: static; }
}
@media (max-width: 640px) {
  nav { gap: 16px; font-size: 14px; }
  .spec { padding: 22px 18px; }
  .mkt-hero { padding: 28px 0 18px; }
  .mkt-filters { padding-top: 10px; }
}
