/* ==========================================================================
   BIG SKY FPV 2.0 — Fleet Module (v2, compact tabbed)
   Feedback-driven rebuild: one module, tabs per aircraft, auto-rotate,
   edges dissolved into the page background (no "video boxes").
   ========================================================================== */

.fleet-module {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-4);
  align-items: center;
  min-height: 0;
}
@media (max-width: 960px) { .fleet-module { grid-template-columns: 1fr; } }

/* ---- Tabs -------------------------------------------------------------- */
.fleet-tabs {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}
.fleet-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--mono-label);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.fleet-tab:hover { color: var(--text-secondary); }
.fleet-tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }
.fleet-tab .num { color: var(--accent); margin-right: 6px; }
@media (max-width: 700px) { .fleet-tab { padding: 10px 10px; } .fleet-tab .name { display: none; } }

/* ---- Stage: seamless, no box ------------------------------------------- */
.fleet-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
}
/* unified backdrop — page-colored radial glow ties every aircraft together */
.fleet-stage::before {
  content: "";
  position: absolute; inset: -12%;
  background: radial-gradient(55% 50% at 50% 55%,
              color-mix(in srgb, var(--accent) 7%, transparent) 0%,
              transparent 70%);
  pointer-events: none;
}
.fleet-stage__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y;
  /* the de-boxing: edges dissolve into --ink-950 regardless of frame bg */
  -webkit-mask-image: radial-gradient(115% 105% at 50% 48%, #000 52%, transparent 96%);
          mask-image: radial-gradient(115% 105% at 50% 48%, #000 52%, transparent 96%);
  filter: brightness(0.96) contrast(1.04); /* nudges frame bg toward page black */
}
.fleet-stage__canvas:active { cursor: grabbing; }
.fleet-stage__status {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: opacity var(--t-standard) var(--ease);
}

/* ---- Info panel ---------------------------------------------------------- */
.fleet-panel { min-width: 0; }
.fleet-panel__pane { display: none; }
.fleet-panel__pane.is-active { display: block; animation: pane-in var(--t-reveal) var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fleet-panel__pane.is-active { animation: none; } }

/* ---- Scroll-drone background layer (Nike-style) ---------------------------- */
.scroll-drone-zone { position: relative; }
.scroll-drone {
  position: sticky; top: 0; height: 0; z-index: 0;
  pointer-events: none;
}
.scroll-drone canvas {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw); height: auto;
  opacity: 0.09;               /* ambient layer — dialed back to focus the eye (v1.9.18) */
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 38%, transparent 70%);
          mask-image: radial-gradient(80% 80% at 50% 50%, #000 38%, transparent 70%);
}
.scroll-drone-zone > .section { position: relative; z-index: 1; }
