/* ============================================================
   LITE MODE — adaptive styles for low-spec devices (< 6GB RAM)
   Applied via body.lite-mode, set by preloader.js detection.
   Normal mode is completely unaffected by this file.
   ============================================================ */


/* ── Nav ── */
body.lite-mode nav.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(7, 9, 26, 0.97);
}

/* ── Hero (index.html only) ── */
body.lite-mode #hero-canvas { display: none; }

/* ── Hero stats — vertically centred in lite mode ── */
body.lite-mode .hero-stats {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

#lite-hero-bg { display: none; }

body.lite-mode #lite-hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* ── FlowArt pages (fundraising.html, erp.html) ── */
/* Sections stack normally — no pinning, no rotation */
body.lite-mode [data-flow-section] {
  height: auto;
  min-height: 100svh;
}
body.lite-mode .flow-art-container {
  height: auto;
  min-height: 100svh;
  will-change: auto;
}
/* Hide snap-scroll UI only on FlowArt pages — index.html hero button still needed */
body.lite-mode:has([data-flow-section]) .scroll-indicator { display: none !important; }

/* ── team.html expanding cards — pin sections to viewport so height:100% chain works ── */
/* Restore fixed height only for these two sections; all other lite-mode sections remain auto */
body.lite-mode #flow-clevel,
body.lite-mode #flow-board {
  height: 100svh !important;
  overflow: hidden;
}
body.lite-mode #flow-clevel .flow-art-container,
body.lite-mode #flow-board .flow-art-container {
  height: 100% !important;
  min-height: unset;
}

/* ── Performance toggle nav pill — amber tint when lite mode is active ── */
body.lite-mode #perf-toggle {
  border-color: rgba(212,168,83,0.45);
  box-shadow: 0 0 14px rgba(212,168,83,0.18);
}
body.lite-mode #perf-toggle .pill-icon { color: rgba(212,168,83,0.9); }
@media (max-width: 768px) { #perf-wrap { display: none !important; } }

/* ── Active mode indicator — amber dot on the current item ── */
.drop-item[aria-current="true"]::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #D4A853;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(212,168,83,0.7);
}

/* ── Scroll reveal (story.html, team.html) ── */
body.lite-mode .lite-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
body.lite-mode .lite-reveal.in-view {
  opacity: 1;
  transform: none;
}
