/* frontier charts · launches, ai compute, base buildout, appendix · baa.business */
:root {
  --moon: #dcdce8;
  --mars: #f0a07a;
  --mars-deep: #b4532d;
}

.fx-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}
.fx-jump a {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, color 0.2s;
}
.fx-jump a:hover { border-color: rgba(168, 85, 247, 0.45); color: var(--purple-bright); }
.fx-jump a.new::after {
  content: "new";
  margin-left: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--purple-bright);
}

.fx-section { margin-top: 64px; scroll-margin-top: calc(var(--nav-h) + 16px); }
#starlink { scroll-margin-top: calc(var(--nav-h) + 16px); }

.fx-head { margin-bottom: 18px; max-width: 760px; }
.fx-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--purple-bright);
  margin-bottom: 8px;
}
.fx-title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-transform: lowercase;
}
.fx-dek {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.fx-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 160, 122, 0.4);
  color: var(--mars);
  background: rgba(240, 160, 122, 0.06);
}
.fx-tag.dev {
  border-color: rgba(192, 132, 252, 0.5);
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.1);
  animation: fx-pulse 2.8s ease-in-out infinite;
}
@keyframes fx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12); }
}

/* card glow variants */
.fx-card.moonmars::after,
.fx-card.compute::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 160, 122, 0.08), transparent);
}
.fx-card.compute::after { background: radial-gradient(closest-side, rgba(168, 85, 247, 0.12), transparent); }

.fx-chart { position: relative; width: 100%; min-height: 200px; }
.fx-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.fx-svg text { font-family: var(--font); }
.fx-tick { font-size: 10.5px; fill: var(--text-muted); letter-spacing: 0.02em; }
.fx-panel-label { font-size: 11.5px; letter-spacing: 0.06em; font-weight: 500; }
.fx-note { font-size: 10.5px; letter-spacing: 0.02em; paint-order: stroke; stroke: #08080e; stroke-width: 3px; stroke-linejoin: round; }
.fx-end { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.fx-hit rect { cursor: crosshair; }

/* bar grow */
.fx-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.fx-chart:not(.fx-in) .fx-bar { transform: scaleY(0); }
.fx-chart.fx-in .fx-bar { animation: fx-grow 0.8s var(--ease) both; }
.fx-chart.fx-in.fx-static .fx-bar { animation-duration: 0.35s; animation-delay: 0s !important; }
@keyframes fx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.fx-readout {
  margin-top: 10px;
  min-height: 2.6em;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.fx-readout strong { color: var(--text); font-weight: 500; }
.fx-dim { opacity: 0.7; }

.fx-list {
  margin: 6px 0 0 1.1em;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 95ch;
}
.fx-list li + li { margin-top: 2px; }
.fx-list li::marker { color: var(--purple); }

.bw-chip.moon strong { color: var(--moon); }
.bw-chip.marsc { border-color: rgba(240, 160, 122, 0.35); color: var(--mars); }
.bw-chip.marsc strong { color: var(--mars); }

/* ---------- base buildout ---------- */
.fx-build-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fx-year-big {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  background: linear-gradient(90deg, var(--moon), var(--purple-bright) 55%, var(--mars));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-build-controls .bw-scrub input[type="range"] {
  background: linear-gradient(90deg, var(--purple-bright) 0, var(--purple-bright) var(--fx-pct, 20%), rgba(255, 255, 255, 0.12) var(--fx-pct, 20%));
}
.fx-yticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.fx-build {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fx-base {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}
.fx-base-moon { box-shadow: inset 0 1px 0 rgba(220, 220, 232, 0.12); }
.fx-base-mars { box-shadow: inset 0 1px 0 rgba(240, 160, 122, 0.2); }
.fx-base-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 10px;
}
.fx-base-name { font-size: 1rem; font-weight: 500; text-transform: lowercase; }
.fx-base-moon .fx-base-name { color: var(--moon); }
.fx-base-mars .fx-base-name { color: var(--mars); }
.fx-base-site { font-size: 0.72rem; color: var(--text-muted); }
.fx-phase-pill {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.1);
  white-space: nowrap;
}
.fx-scene-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.fx-scene { width: 100%; height: auto; display: block; }
.fx-scene-year { font-size: 22px; font-weight: 300; fill: rgba(255, 255, 255, 0.35); font-family: var(--font); letter-spacing: -0.02em; }
.fx-scene-label { font-size: 9px; fill: rgba(255, 255, 255, 0.4); font-family: var(--font); }
.fx-asset {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fx-asset.on { opacity: 1; transform: none; }
.fx-glow-win { filter: drop-shadow(0 0 3px currentColor); }

.fx-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.fx-metric {
  padding: 8px 8px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  min-width: 0;
}
.fx-metric dt {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.25;
  min-height: 2.5em;
}
.fx-metric dd {
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-base-summary {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  min-height: 2.4em;
}

.fx-mini-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.fx-mini-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.fx-key { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.fx-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
#fx-mini { width: 100%; }

/* ---------- appendix ---------- */
.fx-appendix .bw-card { padding-top: 6px; }
.fx-ap + .fx-ap { margin-top: 28px; }
.fx-ap-title {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: lowercase;
  margin: 16px 0 10px;
}
.fx-ap-moon .fx-ap-title { color: var(--moon); }
.fx-ap-mars .fx-ap-title { color: var(--mars); }
.fx-ap-title span { margin-left: 8px; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  line-height: 1.45;
}
.fx-table th {
  text-align: left;
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.fx-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.fx-table tbody + tbody tr:first-child td { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.fx-td-ms { color: var(--text) !important; }
.fx-td-phase { color: var(--text) !important; white-space: nowrap; }
.fx-td-phase.fx-repeat { color: transparent !important; }
.fx-td-phase.fx-repeat * { visibility: hidden; }
.fx-ph-n {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  margin-right: 4px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: var(--purple-bright);
}
.fx-ph-yrs { display: block; font-size: 0.66rem; color: var(--text-muted); margin: 2px 0 0 26px; }
.fx-status {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.fx-st-next-up { border-color: rgba(250, 204, 21, 0.5); color: #fde68a; background: rgba(250, 204, 21, 0.08); }
.fx-st-planned { border-color: rgba(168, 85, 247, 0.5); color: var(--purple-bright); background: rgba(168, 85, 247, 0.1); }
.fx-st-concept { color: var(--text-muted); }
.fx-st-done { border-color: rgba(74, 222, 128, 0.5); color: #86efac; }
.fx-status-key { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 2px; font-size: 0.7rem; color: var(--text-muted); align-items: center; }
.fx-raw a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 2px; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-error { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 960px) {
  .fx-build { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .fx-section { margin-top: 48px; }
  .fx-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-phase-pill { margin-left: 0; }
  /* appendix tables become stacked cards */
  .fx-table thead { display: none; }
  .fx-table, .fx-table tbody, .fx-table tr, .fx-table td { display: block; width: 100%; }
  .fx-table tbody + tbody tr:first-child td { border-top: 0; }
  .fx-table tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
  }
  .fx-table td {
    border: 0;
    padding: 4px 0;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
  }
  .fx-table td::before {
    content: attr(data-label);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.8;
    padding-top: 2px;
  }
  .fx-td-phase { white-space: normal; }
  .fx-td-phase.fx-repeat { color: var(--text) !important; }
  .fx-td-phase.fx-repeat * { visibility: visible; }
  .fx-ph-yrs { display: inline; margin: 0 0 0 6px; }
  .fx-table td > .fx-status { justify-self: start; }
}
@media (max-width: 420px) {
  .fx-metric dt { min-height: 2.5em; font-size: 0.58rem; }
  .fx-metric dd { font-size: 0.9rem; }
  .fx-metric { padding: 7px 7px 6px; }
  .fx-table td { grid-template-columns: 78px 1fr; }
  .fx-base { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-chart:not(.fx-in) .fx-bar, .fx-bar { transform: none !important; }
  .fx-asset { transition: none; }
}
.bw-btn svg[hidden] { display: none; }
@media (max-width: 350px) {
  .fx-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-metric:last-child { grid-column: span 2; }
}

/* today markers (gentle) */
.fx-range-wrap { position: relative; display: flex; align-items: center; height: 16px; }
.fx-range-wrap input[type="range"] { width: 100%; }
.fx-today-tick {
  position: absolute;
  left: calc(8px + var(--p, 0) * (100% - 16px));
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: rgba(242, 242, 245, 0.5);
  pointer-events: none;
}
.fx-today-tick[hidden] { display: none; }

/* starlink callout: keep clear of the marker labels on small screens */
@media (max-width: 800px) {
  .bw-callout { top: auto; bottom: 56px; left: 40%; }
}
