/* Inside my fleet: namespaced so it can drop into v2/index.html beside the ring hero. */
.fleet-section {
  --ink: #0c1018;
  --paper: #f4f6fb;
  --signal: #2459ef;
  --ember: #6396ff;
  --signal-soft: #dce6ff;
  --fleet-muted: #9aa4b8;
  --fleet-faint: #6d7890;
  --fleet-rule: #ffffff14;
  --fleet-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(88px, 10vw, 160px) var(--pad, clamp(24px, 4.3vw, 88px)) clamp(72px, 8vw, 128px);
  background:
    radial-gradient(ellipse 70% 45% at 62% 38%, #2459ef1f, transparent 70%),
    var(--ink);
  color: var(--paper);
  font-family: Manrope, sans-serif;
  scroll-margin-top: 96px;
}
.fleet-section *, .fleet-section *::before, .fleet-section *::after { box-sizing: border-box; }
.fleet-section [hidden] { display: none !important; }
.fleet-section button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fleet-section button:focus-visible, .fleet-section summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.fleet-header, .fleet-tabs, .fleet-panel, .fleet-directory { max-width: 1440px; margin-inline: auto; }

/* Mono micro-labels, matching the site's letter-spaced labels. */
.fleet-eyebrow, .fleet-tab-index, .fleet-system-label, .fleet-status, .fleet-render-status,
.fleet-note, .fleet-feed-label, .fleet-ticker, .fleet-empty, .fleet-directory summary, .fleet-sequence {
  font-family: var(--fleet-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fleet-eyebrow { margin: 0 0 26px; color: var(--signal-soft); letter-spacing: 1.8px; }
.fleet-heading {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(46px, 7vw, 124px);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.fleet-heading em { font-style: normal; color: var(--ember); }
.fleet-description { max-width: 640px; margin: 30px 0 52px; color: var(--fleet-muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.75; }

.fleet-tabs { display: flex; flex-wrap: wrap; gap: 0 30px; border-bottom: 1px solid var(--fleet-rule); }
.fleet-tab {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 10px;
  min-height: 52px; padding: 14px 0 12px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--fleet-muted); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.fleet-tab-index { color: var(--fleet-faint); letter-spacing: .08em; }
.fleet-tab:hover { color: var(--paper); }
.fleet-tab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--ember); }
.fleet-tab[aria-selected="true"] .fleet-tab-index { color: var(--ember); }
.fleet-section:not(.fleet-mounted) .fleet-tabs { display: none; }

/* Auto-tour fill bar: reuses the active tab's own underline position and color. */
.fleet-section.is-touring .fleet-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ember); transform-origin: 0 50%; transform: scaleX(0);
  animation: fleet-tour var(--tour-dwell, 8s) linear forwards;
}
.fleet-section.tour-paused .fleet-tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes fleet-tour { to { transform: scaleX(1); } }
.fleet-still .fleet-tab::after { display: none; }
@media (prefers-reduced-motion: reduce) { .fleet-tab::after { display: none; } }

.fleet-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 3.5vw, 56px); padding-top: 32px; }
.fleet-visual, .fleet-sidebar { min-width: 0; }

.fleet-stage {
  position: relative;
  height: clamp(460px, 44vw, 700px);
  border: 1px solid var(--fleet-rule);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse 55% 50% at 50% 48%, #1a2c66 0, #111a33 38%, var(--ink) 72%);
}
.fleet-canvas-host { position: absolute; inset: 0; }
.fleet-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; }
@media (pointer: fine) {
  .fleet-canvas { cursor: grab; }
  .fleet-canvas.fleet-dragging { cursor: grabbing; }
}
.fleet-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fleet-node-label {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: 220px; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 8px;
  background: #0c1018b8;
  color: var(--paper); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-align: center;
  pointer-events: auto;
  transition: opacity .25s ease, background-color .2s ease, border-color .2s ease;
}
.fleet-node-label small {
  font-family: var(--fleet-mono); font-size: 8.5px; font-weight: 500; line-height: 1.45;
  letter-spacing: .13em; color: #9fb4e8;
}
.fleet-node-label:hover { border-color: #6396ff66; }
.fleet-node-label.fleet-selected { background: #2459efd9; border-color: var(--ember); }
.fleet-node-label.fleet-selected small { color: var(--signal-soft); }
.fleet-node-label.fleet-dimmed { opacity: .3; }
.fleet-family-label {
  flex-direction: row; gap: 7px; padding: 4px 8px;
  background: transparent;
  font-family: var(--fleet-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: #c7d2ee;
}
.fleet-family-label::before, .fleet-legend button::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fleet-dot, var(--ember)); box-shadow: 0 0 10px var(--fleet-dot, var(--ember));
}

.fleet-hud { position: absolute; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.fleet-hud-top { top: 14px; }
.fleet-hud-bottom { bottom: 12px; left: auto; }
.fleet-system-label, .fleet-status { margin: 0; color: var(--fleet-muted); }
.fleet-status { display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.fleet-status::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--fleet-faint); }
.fleet-status[data-live="true"] { color: var(--signal-soft); }
.fleet-status[data-live="true"]::before { background: #62e0a6; box-shadow: 0 0 0 0 #62e0a680; animation: fleet-live 2.4s ease-out infinite; }
@keyframes fleet-live { to { box-shadow: 0 0 0 8px #62e0a600; } }
.fleet-render-status {
  position: absolute; left: 18px; bottom: 20px; margin: 0; max-width: calc(100% - 200px);
  color: var(--fleet-faint); pointer-events: none;
}
.fleet-section:not(.fleet-ready) .fleet-render-status {
  inset: 0; max-width: none; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--fleet-muted);
}
.fleet-section:not(.fleet-ready) .fleet-hud-bottom { display: none; }
.fleet-view-controls { display: flex; gap: 6px; pointer-events: auto; }
.fleet-control {
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid #ffffff1f; border-radius: 22px;
  background: #0c1018cc; color: var(--paper); font-size: 16px; line-height: 1;
  transition: background-color .16s ease, border-color .16s ease;
}
.fleet-reset { font-family: var(--fleet-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.fleet-control:hover { background: var(--signal); border-color: var(--signal); }

.fleet-legend { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 12px 0 0; padding: 0; list-style: none; }
.fleet-legend button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--fleet-muted); font-size: 13px; font-weight: 500;
}
.fleet-legend button:hover, .fleet-legend button[aria-pressed="true"] { color: var(--paper); }
.fleet-section [data-family="hermes"] { --fleet-dot: #6396ff; }
.fleet-section [data-family="grok"] { --fleet-dot: #f0c27a; }
.fleet-section [data-family="claude"] { --fleet-dot: #c4b1ff; }
.fleet-section [data-family="codex"] { --fleet-dot: #7fd6c8; }
.fleet-section [data-family="chatgpt"] { --fleet-dot: #eef2fb; }

.fleet-sidebar { align-self: start; padding-top: 6px; }
.fleet-chapter-title { margin: 0 0 16px; font-size: clamp(26px, 2.3vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.fleet-chapter-body { margin: 0; color: var(--fleet-muted); font-size: 15px; line-height: 1.7; }
.fleet-stat { display: grid; gap: 6px; margin: 28px 0 0; padding: 22px 0; border-block: 1px solid var(--fleet-rule); }
.fleet-stat strong { font-size: clamp(30px, 2.8vw, 42px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.fleet-note { color: var(--fleet-faint); letter-spacing: .1em; }
.fleet-sequence { margin: 18px 0 0; color: var(--signal-soft); letter-spacing: .08em; line-height: 1.9; }
.fleet-sequence:empty { display: none; }
.fleet-detail { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--ember); background: #6396ff0d; border-radius: 0 12px 12px 0; }
.fleet-detail-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fleet-detail-body { margin: 0; color: #c3cadb; font-size: 14px; line-height: 1.65; }
.fleet-feed { margin-top: 26px; }
.fleet-feed-label { margin: 0 0 8px; color: var(--fleet-muted); }
.fleet-ticker { margin: 0; padding: 0; list-style: none; color: var(--signal-soft); letter-spacing: .08em; }
.fleet-ticker li { padding: 9px 0; border-bottom: 1px solid var(--fleet-rule); }
.fleet-empty { margin: 8px 0 0; color: var(--fleet-faint); letter-spacing: .08em; }
.fleet-empty:empty { display: none; }

.fleet-directory { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--fleet-rule); }
.fleet-directory summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--signal-soft); }
.fleet-directory-intro { max-width: 680px; margin: 6px 0 0; color: var(--fleet-muted); font-size: 14px; line-height: 1.7; }
.fleet-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; margin-top: 26px; }
.fleet-directory-group { min-width: 0; }
.fleet-directory-group h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.fleet-node-list { margin: 0; padding: 0; list-style: none; }
.fleet-node-list li { padding: 2px 0 12px; border-top: 1px solid var(--fleet-rule); }
.fleet-node-list button {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 6px 0;
  border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600;
}
.fleet-node-list li[data-family] button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fleet-dot); }
.fleet-node-list button:hover, .fleet-node-list button[aria-pressed="true"] { color: var(--ember); }
.fleet-node-description { display: block; color: var(--fleet-muted); font-size: 13px; line-height: 1.6; }
.fleet-current-node { border-top-color: #6396ff80 !important; }
.fleet-noscript { max-width: 800px; margin: 24px auto 0; color: var(--signal-soft); font-size: 14px; }

@media (max-width: 1000px) {
  .fleet-panel { grid-template-columns: minmax(0, 1fr); }
  .fleet-sidebar { max-width: 680px; }
}
@media (max-width: 700px) {
  .fleet-tabs { gap: 0 18px; }
  .fleet-tab { min-height: 44px; font-size: 13px; }
  .fleet-stage { height: clamp(460px, 124vw, 640px); border-radius: 16px; }
  .fleet-hud { left: 12px; right: 12px; }
  .fleet-hud-top { top: 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .fleet-system-label, .fleet-status { font-size: 8.5px; letter-spacing: .1em; text-align: left; }
  .fleet-render-status { left: 12px; bottom: 16px; max-width: calc(100% - 170px); font-size: 8.5px; letter-spacing: .1em; }
  .fleet-control { min-width: 40px; height: 40px; padding: 0 11px; }
  .fleet-node-label { max-width: 150px; padding: 4px 7px; font-size: 10.5px; }
  .fleet-node-label small { font-size: 7.5px; letter-spacing: .1em; }
  .fleet-family-label { font-size: 8.5px; letter-spacing: .12em; }
  .fleet-legend { gap: 0 16px; }
  .fleet-legend button { font-size: 12px; }
  .fleet-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-section *, .fleet-section *::before, .fleet-section *::after { animation: none !important; transition: none !important; }
}
.still-mode .fleet-section *, .still-mode .fleet-section *::before, .fleet-still *, .fleet-still *::before { animation: none !important; transition: none !important; }
