/* =====================================================================
   outbound-fx.css — SIGNATURE bright background + story-scroll for
   /outbound ONLY. This page holds an approved EXCEPTION to the three
   sitewide backgrounds. Concept: "Dawn Dispatch" — a Gottify teal/cyan
   perspective grid under a sky that wakes from bright-night to warm
   morning as Cashton works the leads. Canvas draws the living grid +
   signal particles; CSS paints the sky + dawn blooms (GPU-composited,
   driven by --wake / --warmth so the whole thing scrubs at 60fps).

   Self-contained. Loaded AFTER the page inline <style> and journey-core.css
   so it wins on equal specificity. Never edits the shared journey core.
   Degrade: html.no-js and prefers-reduced-motion both land on a static
   bright frame with every section fully visible.
   ===================================================================== */

:root{ --wake:.34; --warmth:0; }

/* ---------- FIXED BACKGROUND STACK (behind all content) ---------- */
#obfx{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#0a1420}
#obfx > *{position:absolute;inset:0}

/* Night sky base — teal, deliberately brighter/bluer than the dark pages
   (#0b0e14) but still deep enough behind the hero headline for white text. */
.ob-sky{
  background:
    linear-gradient(180deg,
      #0a1622 0%,
      #0c2131 38%,
      #0f3040 58%,
      #0b1c28 82%,
      #0a141d 100%);
}

/* Cool "wake" bloom — cyan/teal dawn rising at the horizon band.
   Opacity rides --wake (act 1 -> act 2). */
.ob-dawn-cool{
  opacity:var(--wake);
  background:
    radial-gradient(120% 64% at 50% 82%,
      rgba(88,240,214,.54) 0%,
      rgba(0,160,208,.40) 26%,
      rgba(24,84,208,.18) 50%,
      transparent 72%);
  mix-blend-mode:screen;
}

/* Warm "morning" bloom — flame-warm cream/amber, rising higher and fuller.
   Opacity rides --warmth (act 2 -> act 3): the booked-morning resolution. */
.ob-dawn-warm{
  opacity:var(--warmth);
  background:
    radial-gradient(135% 80% at 50% 88%,
      rgba(255,228,176,.58) 0%,
      rgba(255,184,104,.38) 24%,
      rgba(255,126,64,.15) 46%,
      transparent 70%);
  mix-blend-mode:screen;
}

#obGrid{width:100%;height:100%;display:block}

/* Text-protection vignette — darkens the very top (nav + hero headline) and
   the very bottom (footer) so text on the background clears WCAG AA, while the
   luminous dawn band stays visible mid-page behind the dark glass cards. */
.ob-veil{
  background:
    linear-gradient(180deg,
      rgba(6,12,20,.55) 0%,
      rgba(6,12,20,.16) 20%,
      transparent 42%,
      transparent 66%,
      rgba(6,12,20,.30) 88%,
      rgba(6,12,20,.52) 100%);
}

/* Content rides above the fixed stack (journey-core.css already promotes
   nav/header/section/footer to z-index:1; this is belt-and-suspenders). */
body>nav,body>header,body>section,body>footer{position:relative;z-index:1}

/* ---------- HEADINGS ON THE LIVE BACKGROUND ----------
   The dark glass cards protect body text; these are the elements that sit
   directly on the brightening sky and need a hair of extra legibility. */
.hero h1,.sec h2{text-shadow:0 1px 18px rgba(4,10,16,.55)}
.hero .lead{text-shadow:0 1px 12px rgba(4,10,16,.45)}
.eyebrow{color:#b7c6d6}
.sub{color:#b0bccb}
.cta-note{color:#93a3b5}

/* ---------- STORY-SCROLL: section entrances ----------
   Hidden ONLY once GSAP is confirmed loaded (html.fx-ready). No-JS or a
   failed vendor fetch leaves every section fully visible. */
.fx-ready .reveal{opacity:0;transform:translateY(26px)}
.fx-ready .reveal.is-in{opacity:1;transform:none;
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1)}

/* ---------- PINNED SCRUBBED MOMENT: How-it-works steps light up ---------- */
.step{position:relative;transition:border-color .4s ease,box-shadow .5s ease,transform .5s ease}
.fx-ready #how .step{opacity:.5;transform:translateY(10px) scale(.985)}
.fx-ready #how .step .step-num{
  position:absolute;top:14px;right:16px;font-family:'Share Tech Mono',monospace;
  font-size:12px;color:#5a6b7d;transition:color .4s ease}
.fx-ready #how .step.on{
  opacity:1;transform:none;border-color:rgba(69,216,192,.55);
  box-shadow:0 0 0 1px rgba(69,216,192,.18),0 14px 40px rgba(0,120,150,.22)}
.fx-ready #how .step.on .step-num{color:var(--cream)}
.fx-ready #how .step.on h3{color:var(--cream)}

/* A live "signal" tick that runs the pinned steps — a thin dawn-teal bar that
   fills as Cashton works down the list. */
.how-rail{height:3px;border-radius:3px;margin-top:26px;overflow:hidden;
  background:rgba(140,158,178,.14)}
.how-rail i{display:block;height:100%;width:0%;border-radius:3px;
  background:linear-gradient(90deg,#0090c0,#45d8c0 60%,var(--cream));
  box-shadow:0 0 14px rgba(69,216,192,.5)}
.no-js .how-rail,.no-js .step-num{display:none}

/* ---------- REDUCED MOTION / NO-JS: static bright frame, all visible ---------- */
@media(prefers-reduced-motion:reduce){
  :root{--wake:.6;--warmth:.72}
  .fx-ready .reveal{opacity:1;transform:none;transition:none}
  .fx-ready #how .step{opacity:1;transform:none}
}
.no-js #obGrid{display:none}          /* static CSS sky still shows */

/* =====================================================================
   LIVE SCHEMATIC (#circuit) — a restyled sibling of index.html #flowStage.
   Same SPECIES (corner fly-in entrance, wire-zip, then perpetual marching
   dashes + roaming packets, once-per-load), different PLUMAGE: bowed
   gradient-stroke wires, warm amber comet packets, numbered call-ticket
   cards with a left accent. All ob- prefixed so nothing collides with the
   index .node/.flowstage family. Mobile + no-JS fall back to a static
   numbered list.
   ===================================================================== */
.ob-stage{position:relative;border:1px solid var(--line);border-radius:20px;overflow:hidden;min-height:470px;
  margin-top:34px;
  background:
    linear-gradient(rgba(46,72,96,.10) 1px,transparent 1px) 0 0/34px 34px,
    linear-gradient(90deg,rgba(46,72,96,.10) 1px,transparent 1px) 0 0/34px 34px,
    linear-gradient(160deg,rgba(14,28,40,.66),rgba(10,20,30,.82));
  box-shadow:inset 0 0 90px rgba(0,70,92,.16)}
/* light sweep — a slow dawn-teal scan crossing the circuit */
.ob-scan{position:absolute;top:0;left:0;height:100%;width:34%;pointer-events:none;z-index:1;will-change:transform;
  background:linear-gradient(90deg,transparent,rgba(69,216,192,.06) 46%,rgba(254,243,218,.11) 50%,transparent);
  animation:obscan 7s linear infinite}
@keyframes obscan{0%{transform:translateX(-100%)}100%{transform:translateX(294%)}}
.ob-svg{position:absolute;inset:0;width:100%;height:100%;z-index:2}

/* numbered call-ticket card — the "stub" is a dotted perforation (a real ticket
   tear line), not a colored side-bar, so it reads as a ticket, not an accent card. */
.ob-node{position:absolute;z-index:3;width:212px;transform:translate(-50%,-50%);
  border:1px solid var(--line);
  border-radius:12px;background:var(--panel);backdrop-filter:blur(6px);
  padding:14px 16px 15px 22px;box-shadow:0 18px 44px -26px rgba(0,0,0,.9);
  transition:border-color .3s,box-shadow .3s,transform .3s}
.ob-node::before{content:"";position:absolute;left:11px;top:13px;bottom:13px;width:2px;
  background:repeating-linear-gradient(180deg,rgba(140,158,178,.34) 0 2px,transparent 2px 6px)}
.ob-node.hot{border-color:rgba(69,216,192,.55);
  box-shadow:0 0 0 1px rgba(69,216,192,.22),0 22px 50px -22px rgba(0,150,180,.55)}
.ob-node.hot::before{background:repeating-linear-gradient(180deg,rgba(254,243,218,.55) 0 2px,transparent 2px 6px)}
.ob-node .nh{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ob-node .badge{width:26px;height:26px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  font-family:'Share Tech Mono',monospace;font-size:12px;color:#0a141d;font-weight:700;
  background:linear-gradient(135deg,#45d8c0,#fef3da);box-shadow:0 0 12px rgba(69,216,192,.4)}
.ob-node.hot .badge{background:linear-gradient(135deg,#ffcf8a,#fef3da);box-shadow:0 0 16px rgba(255,190,110,.55)}
.ob-node .ico{width:24px;height:24px;border-radius:7px;flex:0 0 auto;display:grid;place-items:center;
  background:rgba(69,216,192,.10);border:1px solid rgba(69,216,192,.28)}
.ob-node .ico svg{width:14px;height:14px;stroke:#8fe6d4;fill:none;stroke-width:1.7}
.ob-node.hot .ico svg{stroke:var(--cream)}
.ob-node .ttl{font-size:13.5px;font-weight:700;color:var(--ink);line-height:1.2}
.ob-node .desc{font-size:11.5px;color:var(--mut);line-height:1.44;margin-top:2px}
.ob-node .stat{display:inline-flex;align-items:center;gap:6px;margin-top:9px;
  font-family:'Share Tech Mono',monospace;font-size:10px;color:var(--grn);letter-spacing:.06em}
.ob-node .stat .d{width:5px;height:5px;border-radius:50%;background:var(--grn);box-shadow:0 0 6px var(--grn)}
.ob-node.hot .stat{color:var(--cream)}
.ob-node.hot .stat .d{background:var(--cream);box-shadow:0 0 8px var(--cream)}

.ob-legend{display:flex;gap:22px;margin-top:22px;flex-wrap:wrap;
  font-family:'Share Tech Mono',monospace;font-size:11px;color:var(--mist)}
.ob-legend .lg{display:flex;align-items:center;gap:8px}
.ob-legend .swatch{width:22px;height:2px;border-radius:2px}

/* static numbered fallback (mobile + no-JS) — the same 5 moves as a list */
.ob-fallback{display:none;margin-top:34px;counter-reset:obstep}
.ob-fallback li{list-style:none;position:relative;padding:16px 18px 16px 60px;margin-top:12px;
  background:var(--panel);border:1px solid var(--line);border-radius:14px}
.ob-fallback li::after{content:"";position:absolute;left:52px;top:14px;bottom:14px;width:2px;
  background:repeating-linear-gradient(180deg,rgba(140,158,178,.3) 0 2px,transparent 2px 6px)}
.ob-fallback li::before{counter-increment:obstep;content:counter(obstep,decimal-leading-zero);
  position:absolute;left:16px;top:16px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  font-family:'Share Tech Mono',monospace;font-size:12px;font-weight:700;color:#0a141d;
  background:linear-gradient(135deg,#45d8c0,#fef3da)}
.ob-fallback li b{color:var(--ink);font-weight:700;display:block;font-size:14.5px;margin-bottom:3px}
.ob-fallback li span{font-size:13px;color:var(--mut)}

/* On phones the free-positioned nodes can't lay out — swap to the list. */
@media(max-width:720px){ .ob-stage,.ob-legend{display:none} .ob-fallback{display:block} }
.no-js .ob-stage,.no-js .ob-legend{display:none}
.no-js .ob-fallback{display:block}
