/* byos-act.css — "The Connection Journey" principal act (cloud-storage page).
 * Pinned scroll cinema: photographic backdrop, JS-first (hidden until live),
 * transform/opacity animation only. All classes namespaced .bact-*. */
#byos-act { position: relative; background: #0a0f16; color: #fff; overflow: clip; }
.bact-bg { position: absolute; inset: 0; z-index: 0; }
.bact-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bact-bg-scrim { position: absolute; inset: 0; background: rgba(6, 10, 16, 0.80); }
.bact-pin { position: relative; z-index: 1; height: 100vh; height: 100svh; overflow: hidden; }
.bact-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 76px clamp(16px, 4vw, 64px) clamp(12px, 3vh, 36px); visibility: hidden; }
#byos-act.bact-live .bact-inner { visibility: visible; }
#byos-act.bact-dead { display: none; }

#byos-act h2, #byos-act h3, #byos-act p { opacity: 1; }
#byos-act h2.in, #byos-act h3.in, #byos-act p.in,
#byos-act h2.done, #byos-act h3.done, #byos-act p.done { animation: none; opacity: 1; }

.bact-head { position: relative; z-index: 5; max-width: 1200px; margin: 0 auto 1vh; width: 100%; }
.bact-chapters { position: relative; min-height: clamp(170px, 28vh, 240px); }
/* same fixed-box fix as canvas-act: tallest chapter content + entrance
   dip must stay above the progress bar at any parked scroll offset. */
.bact-ch { position: absolute; inset: 0; opacity: 0; visibility: hidden; max-width: 680px; }
.bact-ch.is-on { opacity: 1; visibility: visible; }
.bact-kicker { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: #8fd6ff; margin: 0 0 10px; font-weight: 700; }
.bact-ctitle { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.bact-ctitle .bact-cw { display: inline-block; }
.bact-cdesc { font-size: clamp(14px, 1.5vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 50ch; }
.bact-progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.bact-pbar { position: relative; width: min(320px, 40vw); height: 3px; background: rgba(255, 255, 255, 0.18); border-radius: 3px; overflow: hidden; }
.bact-pbar i { position: absolute; inset: 0; width: 100%; background: #8fd6ff; border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; }
.bact-dots { display: flex; gap: 7px; }
.bact-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.bact-dots i.is-on { background: #8fd6ff; }

.bact-stage { position: relative; z-index: 4; width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; min-height: 0; }
.bact-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.bact-link { opacity: 0; }
.bact-dot { opacity: 0; }
.bact-hub { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 190px; height: 190px; border-radius: 50%; background: rgba(56, 189, 248, 0.10); border: 2px solid rgba(143, 214, 255, 0.55); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; box-shadow: 0 0 60px rgba(56, 189, 248, 0.25); }
.bact-hub-logo { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.bact-hub-sub { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.bact-hub-status { margin-top: 8px; font-size: 12px; font-weight: 700; color: #8fd6ff; background: rgba(143, 214, 255, 0.12); border: 1px solid rgba(143, 214, 255, 0.35); padding: 5px 12px; border-radius: 999px; }
.bact-cards { position: absolute; inset: 0; }
.bact-card { position: absolute; width: 210px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: grab; touch-action: none; }
.bact-card:active { cursor: grabbing; }
.bact-card-n { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: #38bdf8; color: #06121c; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bact-card-name { font-weight: 800; font-size: 15.5px; }
.bact-scope { font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.66); }
.bact-pill { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.75); }
.bact-pill.connecting { background: rgba(255, 217, 138, 0.16); border-color: #ffd98a; color: #ffd98a; }
.bact-pill.connected { background: rgba(52, 211, 153, 0.16); border-color: #34d399; color: #34d399; }
.bact-card[data-bact-card="drive"] { left: 4%; top: 6%; }
.bact-card[data-bact-card="dropbox"] { right: 4%; top: 6%; }
.bact-card[data-bact-card="onedrive"] { left: 4%; bottom: 8%; }
.bact-card[data-bact-card="box"] { right: 4%; bottom: 8%; }
.bact-log { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); max-width: 640px; text-align: center; }
.bact-log p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.75); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 1.6em; }

.bact-hint { position: relative; z-index: 5; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.62); margin: 1vh 0 0; opacity: 0; }
.bact-cta { position: relative; z-index: 5; display: flex; gap: 12px; justify-content: center; margin-top: 1.4vh; opacity: 0; }
.bact-btn { appearance: none; border: 0; cursor: pointer; padding: 13px 30px; border-radius: 999px; background: #38bdf8; color: #06121c; font-weight: 800; font-size: 15px; text-decoration: none; display: inline-block; }
.bact-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

@media (max-width: 900px) {
  .bact-card { width: 160px; padding: 10px; }
  .bact-scope { display: none; }
  .bact-hub { width: 140px; height: 140px; }
}

/* prefers-reduced-motion: static readable layout - no pin, no scrub,
   every chapter + provider stage visible in normal flow. */
@media (prefers-reduced-motion: reduce) {
  #byos-act .bact-pin { height: auto; overflow: visible; }
  #byos-act .bact-inner { position: static; visibility: visible; }
  #byos-act .bact-chapters { min-height: 0; }
  #byos-act .bact-ch { position: static; opacity: 1; visibility: visible; max-width: none; margin-bottom: 2rem; }
  #byos-act .bact-hint { opacity: 1; }
  #byos-act .bact-cta { opacity: 1; }
  #byos-act .bact-pbar, #byos-act .bact-dots, #byos-act .bact-link, #byos-act .bact-dot { display: none; }
}
