/* ====== Ignition · Shared Components ======
   Prefix-free `lp-` components any Ignition page can use. Every rule is scoped
   under body.lp-ignition and reads from tokens.css (load that first).

   Contents
     1. Base: font, focus ring, reduced motion
     2. Buttons: .lp-btn + --cta | --sec | --go | --lg
     3. Page badge: .lp-page-badge
     4. Header bar: .lp-header-bar > .lp-header > .lp-header-left + .lp-header-right
     5. Sidebar: moved to nav.css (Phase 0), which is linked on every page
     6. Utilities: .lp-sr-only, .lp-dot, .lp-mono-pill
     7. Section head: .lp-section-head (--split) > .lp-section-title + .lp-section-sub
     8. Cards: .lp-card + --live | --prelaunch | --flagship, .lp-tile (--off), .lp-badge
     9. Filter pills: .lp-pills > .lp-pill (.active)
    9b. Page kit: .lp-page-hero (+ --space), .lp-panel + .lp-panel-title, .lp-stat-grid > .lp-stat
    10. CTA band: rendered by /src/cta/cta.js into #lp-cta
    11. Footer: rendered by /src/footer/footer.js
    12. Ambient sky: .lp-ambient, a fixed layer of pulsing stars, satellites, and
        shooting stars behind a page's sections (filled by ignition.js)
   12b. Space backdrop: .lp-deepspace, .lp-grid-patch--left/--right, .lp-glow--* (homepage + pages)
    13. Keyframes shared by the hero, CTA band, and ambient sky (transform + opacity only)
   Department color on cards, tiles, and dots comes from data-dept (see tokens.css).
*/

/* ── 1. Base ── */
body.lp-ignition {
  font-family: var(--lp-font);
  background: var(--lp-bg);
}
/* `overflow-x: hidden` on html/body (most pages' reset) turns <body> into a scroll
   container that never scrolls, which breaks scroll-driven animations and
   position: sticky. `clip` hides sideways overflow without creating one. */
html:has(> body.lp-ignition),
body.lp-ignition {
  overflow-x: clip;
}
/* No rubber-band bounce past the page ends (macOS/iOS): the fixed sidebar would stay put
   while the page springs, pulling the footer out of line with the sidebar's bottom bar. */
html:has(> body.lp-ignition) {
  overscroll-behavior-y: none;
}
/* The page ends at the footer: decorative layers that drift past it (e.g. the homepage's
   scroll-driven deep space) must not add scroll length. `clip` keeps sticky working. */
body.lp-ignition .lp-content {
  overflow-y: clip;
}
/* Legacy token bridge (directive §2.2): pages adopting Ignition built their tool UI from
   the shared legacy variables; redefining them on body re-skins that UI without editing
   it (body beats each page's :root for everything inside). --accent-orange and
   --accent-purple stay per page: orange meant Marketing on some pages and a CTA on others. */
body.lp-ignition {
  --bg: var(--lp-bg);
  --surface: var(--lp-surface);
  --surface-2: var(--lp-surface-2);
  --border: var(--lp-surface-live-border);
  --text-dim: var(--lp-text-muted);            /* #6b7a82 was under AA; --text (#f0f2f5) already reads fine */
  --accent-green: var(--lp-green);
  --accent-blue: var(--lp-dept-blue);
  --accent-cyan: var(--lp-dept-cyan);
  --accent-amber: var(--lp-amber);
}
body.lp-ignition a:focus-visible,
body.lp-ignition button:focus-visible,
body.lp-ignition [tabindex]:focus-visible {
  outline: var(--lp-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.lp-ignition *,
  body.lp-ignition *::before,
  body.lp-ignition *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Page-load reveals start at opacity 0; with animation off they must start visible.
     Every page names its reveal class <prefix>-animate (mc-, cj-, faq-, nc-, nw-, sg-, sp-, cgs-). */
  body.lp-ignition [class*="-animate"],
  body.lp-ignition .lp-footer {
    opacity: 1;
    transform: none;
  }
}

/* ── 2. Buttons ──
   Text only, never icons. 10px corners, never pills.
   --cta (orange) is for primary CTAs only. */
body.lp-ignition .lp-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--lp-radius-btn);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--lp-ease), box-shadow .28s var(--lp-ease), border-color .28s, color .28s;
}
body.lp-ignition .lp-btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}
body.lp-ignition .lp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body.lp-ignition .lp-btn:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}

/* Primary: orange gradient + diagonal light sweep */
body.lp-ignition .lp-btn--cta {
  color: var(--lp-cta-ink);
  background: var(--lp-cta-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 200, .55),
    inset 0 0 0 1px rgba(255, 200, 140, .25),
    0 0 0 0 rgba(var(--lp-cta-rgb), 0),
    0 8px 22px -8px rgba(var(--lp-cta-rgb), .8);
}
/* Hover keeps the signature gradient; only the text turns white (Scott, 2026-11-14).
   White on the gradient is 2.8–4.0:1, so a soft shadow helps it read. */
body.lp-ignition .lp-btn--cta:hover,
body.lp-ignition .lp-btn--cta:focus-visible {
  color: var(--lp-cta-ink-hover);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: var(--lp-cta-grad);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 200, .7),
    inset 0 0 0 1px rgba(255, 200, 140, .4),
    0 0 0 5px rgba(var(--lp-cta-rgb), .22),
    0 16px 32px -10px rgba(var(--lp-cta-rgb), 1);
}

/* Green: Flight Crew only. Same sweep as primary. */
body.lp-ignition .lp-btn--go {
  color: #061003;
  background: var(--lp-green-grad);
  box-shadow:
    inset 0 1px 0 rgba(230, 255, 210, .7),
    0 0 0 0 rgba(var(--lp-green-rgb), 0),
    0 8px 22px -8px rgba(var(--lp-green-rgb), .65);
}
body.lp-ignition .lp-btn--go:hover,
body.lp-ignition .lp-btn--go:focus-visible {
  color: #061003;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(230, 255, 210, .85),
    0 0 0 5px rgba(var(--lp-green-rgb), .2),
    0 16px 32px -10px rgba(var(--lp-green-rgb), .85);
}

body.lp-ignition .lp-btn--cta::before,
body.lp-ignition .lp-btn--go::before {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .7s var(--lp-ease);
}
body.lp-ignition .lp-btn--cta:hover::before,
body.lp-ignition .lp-btn--cta:focus-visible::before,
body.lp-ignition .lp-btn--go:hover::before,
body.lp-ignition .lp-btn--go:focus-visible::before {
  transform: translateX(130%);
}

/* Secondary: outline + green wipe from the left */
body.lp-ignition .lp-btn--sec {
  color: #f1ece9;
  font-weight: 700;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .18);
}
body.lp-ignition .lp-btn--sec::before {
  background: linear-gradient(90deg, rgba(var(--lp-green-rgb), .16), rgba(var(--lp-green-rgb), .08));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .38s var(--lp-ease);
}
body.lp-ignition .lp-btn--sec:hover,
body.lp-ignition .lp-btn--sec:focus-visible {
  color: #ffffff;
  border-color: rgba(var(--lp-green-rgb), .65);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px rgba(var(--lp-green-rgb), .1),
    0 12px 26px -12px rgba(var(--lp-green-rgb), .55);
}
body.lp-ignition .lp-btn--sec:hover::before,
body.lp-ignition .lp-btn--sec:focus-visible::before {
  transform: scaleX(1);
}

/* ── 3. Page badge ──
   Reusable: <span class="lp-page-badge">Page Name</span> */
body.lp-ignition .lp-page-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  max-width: 240px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--lp-green-soft);
  background: rgba(var(--lp-green-rgb), .1);
  box-shadow: inset 0 0 0 1px rgba(var(--lp-green-rgb), .35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The badge is the page's H1 on tool pages (keeps each page's heading for SEO) */
body.lp-ignition h1.lp-page-badge { margin: 0; font-family: var(--lp-font); }

/* ── 4. Header bar ──
   Markup:
     <header class="lp-header-bar">
       <div class="lp-header">
         <div class="lp-header-left"><span class="lp-header-title">…</span><span class="lp-page-badge">…</span></div>
         <div class="lp-header-right">…buttons…</div>
       </div>
     </header>
   Height includes the 1px green line (--lp-bar-h) so it meets the sidebar logo bar. */
/* Sticky at every width so the key CTAs (and a future search field) stay in reach. */
body.lp-ignition .lp-header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  height: var(--lp-bar-h);
  box-sizing: border-box;
  background: rgba(6, 6, 12, .38);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--lp-green);
  box-shadow: var(--lp-glow-line);
}
/* Scroll backing: see-through over the hero, then a dark layer fades in over the
   first ~220px of scroll so the header stays legible over content (opacity only). */
body.lp-ignition .lp-header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(8, 8, 14, .62);
  opacity: .6;
}
@supports (animation-timeline: scroll()) {
  body.lp-ignition .lp-header-bar::before {
    opacity: 0;
    animation: lp-header-solid linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 220px;
  }
}
@keyframes lp-header-solid { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body.lp-ignition .lp-header-bar::before { opacity: .6; }
}
/* Header scale (51px bar): buttons, title, and badge are ~15% smaller than page-level ones */
body.lp-ignition .lp-header-right .lp-btn { height: 32px; padding: 0 16px; font-size: 13px; border-radius: 9px; }
body.lp-ignition .lp-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
}
body.lp-ignition .lp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
body.lp-ignition .lp-header-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--lp-text);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.lp-ignition .lp-header-right {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Sidebar-injected mobile logo + hamburger sit in the flex row, not absolutely positioned */
body.lp-ignition .lp-header .lp-mobile-logo {
  position: static;
  transform: none;
}
body.lp-ignition .lp-header-right .lp-hamburger {
  margin-left: 0;
}

@media (max-width: 768px) {
  body.lp-ignition .lp-header { padding: 0 18px; gap: 10px; }
  /* Phones/tablets: header sticks to the top so the menu button is always reachable,
     and the menu button moves to the far left: [menu] [logo] Title ... [CTA]. The right
     group dissolves (display: contents) so its children can be reordered in the header row. */
  body.lp-ignition .lp-header-right { display: contents; }
  body.lp-ignition .lp-header .lp-hamburger { order: -2; margin: 0; }
  body.lp-ignition .lp-header .lp-mobile-logo { order: -1; }
  body.lp-ignition .lp-header .lp-btn { order: 1; }
  /* Menu open: the header sits above the drawer and backdrop as a solid app bar, so the
     ✕ stays top-left and only the small round S4 mark shows. The drawer's own wordmark
     bar is hidden underneath, and the drawer reads as hanging from the header. */
  body.lp-ignition.lp-mobile-menu-open .lp-header-bar {
    z-index: 2002;
    background: var(--lp-sidebar-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.lp-ignition #lp-sidebar .lp-sidebar-logo { visibility: hidden; }
  /* Scroll lock that works: sidebar.js sets body { overflow: hidden }, which makes <body>
     a scroll container (unsticking the header) without stopping the page from scrolling.
     Lock the root instead and keep body unscrollable-but-not-a-container. */
  html:has(> body.lp-ignition.lp-mobile-menu-open) { overflow: hidden; }
  body.lp-ignition.lp-mobile-menu-open { overflow: clip !important; }
}
@media (max-width: 640px) {
  body.lp-ignition .lp-header { padding: 0 16px; gap: 10px; }
  body.lp-ignition .lp-header-title { font-size: 14px; }
  body.lp-ignition .lp-header-right .lp-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
  body.lp-ignition .lp-header-right .lp-header-secondary { display: none; }
}
@media (max-width: 480px) {
  body.lp-ignition .lp-header { gap: 8px; }
  body.lp-ignition .lp-header-left { gap: 8px; }
  body.lp-ignition .lp-header-left .lp-page-badge { display: none; }
  body.lp-ignition .lp-header-title { font-size: 13px; }
  body.lp-ignition .lp-header-right { gap: 8px; }
  body.lp-ignition .lp-header-right .lp-btn { padding: 0 10px; }
}

/* ── 6. Utilities ── */
/* Page-width container: max --lp-wrap, centered, with responsive gutters */
body.lp-ignition .lp-wrap {
  width: 100%;
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
  box-sizing: border-box;
}
body.lp-ignition .lp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.lp-ignition .lp-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dept, var(--lp-green));
}
body.lp-ignition .lp-mono-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--lp-green-rgb), .4);
  background: rgba(var(--lp-green-rgb), .07);
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lp-green);
}
body.lp-ignition .lp-mono-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 7. Section head ── */
body.lp-ignition .lp-section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
body.lp-ignition .lp-section-title {
  margin: 0;
  font-size: clamp(26px, 2.2vw + 10px, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
body.lp-ignition .lp-section-sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-text-2);
}

/* ── 8. Cards ── */
body.lp-ignition .lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  box-sizing: border-box;
  border-radius: var(--lp-radius-card);
  color: inherit;
  text-decoration: none;
}
body.lp-ignition .lp-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--lp-text);
}
body.lp-ignition .lp-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-text-body);
}

/* Live: gradient surface, department border, lift + department glow on hover */
body.lp-ignition .lp-card--live {
  background: var(--lp-surface-live);
  border: 1px solid rgba(var(--dept-rgb, 42, 37, 48), .32);
  box-shadow: var(--lp-inset-hi), 0 10px 30px -18px rgba(0, 0, 0, .8);
  transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease), border-color .25s;
}
body.lp-ignition .lp-card--live:hover,
body.lp-ignition .lp-card--live:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--dept-rgb), .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 28px 50px -24px rgba(var(--dept-rgb), .55);
}
body.lp-ignition .lp-card--live:focus-visible { outline: var(--lp-focus); outline-offset: 3px; }

/* Pre-launch: dark dashed, desaturated, not clickable */
body.lp-ignition .lp-card--prelaunch {
  background: var(--lp-surface-pre);
  border: 1px dashed var(--lp-surface-pre-border);
}
body.lp-ignition .lp-card--prelaunch .lp-card-title { font-weight: 700; color: var(--lp-text-muted); }
body.lp-ignition .lp-card--prelaunch .lp-card-text { color: var(--lp-text-faint); }
body.lp-ignition .lp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Flagship: inset thumbnail, larger title, "Launch →" in the department tint */
body.lp-ignition .lp-card--flagship { padding: 0; gap: 0; overflow: hidden; }
body.lp-ignition .lp-card-thumb { padding: 14px 14px 0; }
body.lp-ignition .lp-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 331 / 180;            /* the reference's 180px-tall crop, scaled with card width */
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 12px;
  transition: object-position 3s ease-in-out;
}
/* Hover/focus pans the full-page screenshot from top to bottom (restored from the
   pre-Ignition homepage). Animates object-position on three small images; off for reduced motion. */
body.lp-ignition .lp-card--flagship:hover .lp-card-thumb img,
body.lp-ignition .lp-card--flagship:focus-visible .lp-card-thumb img { object-position: 50% 100%; }
@media (prefers-reduced-motion: reduce) {
  body.lp-ignition .lp-card--flagship:hover .lp-card-thumb img,
  body.lp-ignition .lp-card--flagship:focus-visible .lp-card-thumb img { object-position: 50% 0%; }
}
body.lp-ignition .lp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}
body.lp-ignition .lp-card--flagship .lp-card-title { font-size: 24px; }
body.lp-ignition .lp-card--flagship .lp-card-text { font-size: 15px; }
body.lp-ignition .lp-card-launch {
  margin-top: 2px;
  font-weight: 700;
  color: var(--dept-tint);
}
body.lp-ignition .lp-card-launch span { display: inline-block; transition: transform .25s var(--lp-ease); }
body.lp-ignition .lp-card--live:hover .lp-card-launch span { transform: translateX(3px); }

/* Tile: 48px department icon block */
body.lp-ignition .lp-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--lp-radius-tile);
  color: var(--dept-ink);
  background: var(--dept);
  box-shadow: 0 12px 26px -8px rgba(var(--dept-rgb), .75);
}
body.lp-ignition .lp-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.lp-ignition .lp-tile--off {
  color: var(--dept);
  background: #151216;
  border: 1px solid currentColor;
  box-shadow: none;
  box-sizing: border-box;
  filter: saturate(.2);
  opacity: .6;
}
/* Solid blue is too dark as a thin outline; use its tint */
body.lp-ignition [data-dept="blue"] .lp-tile--off { color: var(--lp-dept-blue-tint); }

body.lp-ignition .lp-badge {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #221e22;
  background: #131114;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #a39b9d;
}

/* ── 9. Filter pills ── */
body.lp-ignition .lp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: var(--lp-radius-pills);
  border: 1px solid var(--lp-line);
  background: #110f12;
}
body.lp-ignition .lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--lp-radius-pill);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: #bdb3b4;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
body.lp-ignition .lp-pill:hover { background: rgba(255, 255, 255, .07); color: var(--lp-text); border-color: transparent; }
body.lp-ignition .lp-pill.active { background: #f6f1ec; color: #0b0705; }
body.lp-ignition .lp-pill.active:hover { background: #ffffff; }

/* ── 9b. Page kit: hero, panel, stat (tool and content pages) ──
   Shared so every remaining page adopts the same look by class, not by copying CSS.
   Hero:   <div class="lp-page-hero"><h2 class="lp-page-hero__title">… <b>Green Words</b>?</h2>
             <p class="lp-page-hero__lede">…</p></div>
           A step under Mission Control's homepage hero (52px cap), soft green glow behind it.
   Panel:  <section class="lp-panel" style="--tint: var(--lp-dept-blue)"> + <h2 class="lp-panel-title">
           Solid surface (the sky never shows through) with an optional tint from the left.
   Stats:  <ul class="lp-stat-grid"><li class="lp-stat"><strong>1.4x</strong><span>…</span><a|cite>Source</a|cite></li></ul>
           or richer: .lp-stat > .lp-stat__value + .lp-stat__label + .lp-stat__note (Salary Guide) */
body.lp-ignition .lp-page-hero { position: relative; text-align: center; }
body.lp-ignition .lp-page-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 100%);
  height: 260px;
  translate: -50% -55%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--lp-green-rgb), .10), rgba(var(--lp-green-rgb), .03) 55%, transparent 100%);
}
body.lp-ignition .lp-page-hero__title {
  margin: 0;
  font-family: var(--lp-font);
  font-size: clamp(30px, 2.6vw + 12px, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--lp-text);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55);
}
body.lp-ignition .lp-page-hero__title :is(b, span) { color: var(--lp-green); font-weight: 900; }
/* Title glow sweep (homepage "Mission Control", 2026-11-14; shared 2026-11-16): a band of
   green glow sweeps across the highlighted words left to right (~2.2s), rests, and repeats
   every 5s. Opt in with <b|span data-glow="Same Words">Same Words</b|span> on any hero title.
   The glow is a copy of the words behind them, revealed through a moving mask; the "/ ''"
   alt text keeps screen readers from reading it twice. inline-block so the mask sweeps the
   words' own box (long phrases still wrap inside it). Reduced motion: no sweep, no glow. */
body.lp-ignition [data-glow] { position: relative; z-index: 0; isolation: isolate; display: inline-block; }
body.lp-ignition [data-glow]::after {
  content: attr(data-glow);
  content: attr(data-glow) / '';
  position: absolute;
  inset: -40px -60px;        /* room for the glow; the padding keeps the copy on the words */
  padding: 40px 60px;
  z-index: -1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: none;
  text-shadow: 0 0 12px rgba(var(--lp-green-rgb), 1), 0 0 30px rgba(var(--lp-green-rgb), .75), 0 0 64px rgba(var(--lp-green-rgb), .45);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%);
  -webkit-mask-size: 40% 100%;
  mask-size: 40% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: -70% 0;
  mask-position: -70% 0;            /* parked off the left edge */
  animation: lp-title-sweep 5s cubic-bezier(.45, .05, .55, .95) 1.2s infinite;
}
@media (prefers-reduced-motion: reduce) {
  body.lp-ignition [data-glow]::after { display: none; }
}
body.lp-ignition .lp-page-hero__lede {
  margin: 14px auto 0;
  max-width: 680px;
  font-size: clamp(15px, .3vw + 13px, 17px);
  line-height: 1.6;
  color: #d4ccca;
  text-wrap: balance;
}
/* Space hero (opt-in): the homepage hero's sky, star layers, grid, and grid wave, a step smaller and
   without the Earth. Full-bleed, so it sits outside the page's width container:
     <section class="lp-page-hero lp-page-hero--space">
       <div class="lp-page-hero__space" aria-hidden="true">
         <div class="lp-page-hero__sky lp-page-hero__sky--far"></div><div class="lp-page-hero__grid"></div>
         <div class="lp-page-hero__wave"><div class="lp-page-hero__wave-band"><div class="lp-page-hero__wave-lines"></div></div></div>
         <div class="lp-page-hero__sky lp-page-hero__sky--near"></div></div>
       <div class="lp-wrap lp-page-hero__copy">title + lede</div>
     </section>
   It slides under the see-through header like the homepage hero, and the sky fades out at
   the bottom into the page's ambient sky (§12). Star images wait for .lp-stars-ready
   (ignition.js) and drift like the homepage's; reduced motion holds them still. */
body.lp-ignition .lp-page-hero--space {
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--lp-bar-h));
  padding: calc(var(--lp-bar-h) + 88px) 0 96px;   /* homepage: 160px above the title, scaled for an inner page */
}
body.lp-ignition .lp-page-hero--space::before { z-index: 0; }   /* glow above the sky, under the copy */
body.lp-ignition .lp-page-hero__copy { position: relative; z-index: 1; }
body.lp-ignition .lp-page-hero__space {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  background: var(--lp-sky);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent);
}
body.lp-ignition .lp-page-hero__sky {
  position: absolute;
  left: -100px;             /* overscan so the drift never exposes an empty strip */
  right: -100px;
  top: -40px;
  bottom: -40px;
  background-position: center top;
  background-repeat: repeat-x;
  background-size: 1700px auto;
  opacity: 0;
  transition: opacity 1.2s ease, translate 1s var(--lp-ease);   /* translate = mouse parallax (ignition.js) */
  will-change: transform;
}
body.lp-ignition .lp-page-hero__sky--far { background-size: max(1700px, 100%) auto; background-repeat: no-repeat; }
body.lp-ignition.lp-stars-ready .lp-page-hero__sky { opacity: 1; }
body.lp-ignition.lp-stars-ready .lp-page-hero__sky--far {
  background-image: url(/assets/ignition/stars-far.webp);
  animation: lp-par-far 120s ease-in-out infinite alternate;
}
body.lp-ignition.lp-stars-ready .lp-page-hero__sky--near {
  background-image: url(/assets/ignition/stars-near.webp);
  animation: lp-par-near 80s ease-in-out infinite alternate;
}
body.lp-ignition .lp-page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 180, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 -1px;              /* left-anchored so the wave's grid lines up exactly */
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 15%, transparent 78%);
}
/* Grid wave: the homepage's green/orange pulse (home.css §2), same timing, inside the grid's fade.
   The grid above is left-anchored so the wave's bright lines land exactly on it. Reduced motion
   leaves the band parked off-screen. */
body.lp-ignition .lp-page-hero__wave {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 15%, transparent 78%);
}
body.lp-ignition .lp-page-hero__wave-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 320px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  transform: translate3d(-340px, 0, 0);
  animation: lp-wave-band 7s cubic-bezier(.45, .05, .55, .95) 1.5s infinite;
  will-change: transform;
}
body.lp-ignition .lp-page-hero__wave-lines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  transform: translate3d(340px, 0, 0);
  animation: lp-wave-lines 7s cubic-bezier(.45, .05, .55, .95) 1.5s infinite;
  will-change: transform;
}
body.lp-ignition .lp-page-hero__wave-lines::before,
body.lp-ignition .lp-page-hero__wave-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--wave-rgb), var(--wave-a)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--wave-rgb), var(--wave-a)) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 -1px;
}
body.lp-ignition .lp-page-hero__wave-lines::before { --wave-rgb: var(--lp-green-rgb); --wave-a: .28; animation: lp-wave-green 14s step-end 1.5s infinite; }
body.lp-ignition .lp-page-hero__wave-lines::after  { --wave-rgb: var(--lp-cta-rgb);   --wave-a: .34; opacity: 0; animation: lp-wave-orange 14s step-end 1.5s infinite; }
/* Type: a step under the homepage's (74px title, 19px lede, 22px apart) */
body.lp-ignition .lp-page-hero--space .lp-page-hero__title {
  font-size: clamp(32px, 3.4vw + 10px, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
}
body.lp-ignition .lp-page-hero--space .lp-page-hero__lede {
  margin-top: 18px;
  max-width: 640px;
  font-size: clamp(16px, .35vw + 13px, 18px);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
}
@media (max-width: 768px) {
  body.lp-ignition .lp-page-hero--space { padding: calc(var(--lp-bar-h) + 68px) 0 72px; }
}
@media (max-width: 640px) {
  body.lp-ignition .lp-page-hero--space { padding: calc(var(--lp-bar-h) + 44px) 0 56px; }
  body.lp-ignition .lp-page-hero--space .lp-page-hero__lede { margin-top: 14px; }
}

body.lp-ignition .lp-panel {
  border-radius: var(--lp-radius-card);
  border: 1px solid color-mix(in srgb, var(--tint, var(--lp-surface-live-border)) 32%, var(--lp-surface-live-border));
  background: linear-gradient(to right, color-mix(in srgb, var(--tint, transparent) 6%, transparent), transparent 70%), var(--lp-surface);
  box-shadow: var(--lp-inset-hi);
}
body.lp-ignition .lp-panel-title {
  margin: 0;
  font-family: var(--lp-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

body.lp-ignition .lp-stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
body.lp-ignition .lp-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px 14px;
  border-radius: var(--lp-radius-tile);
  border: 1px solid var(--lp-surface-live-border);
  background: var(--lp-surface-live);
  box-shadow: var(--lp-inset-hi);
}
body.lp-ignition .lp-stat > strong { font-family: var(--lp-font); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--lp-text); white-space: nowrap; }
body.lp-ignition .lp-stat > span { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--lp-text-muted); }
body.lp-ignition .lp-stat > :is(a, cite) { font-family: var(--lp-mono); font-size: 11px; font-style: normal; color: var(--lp-text-faint); text-decoration: none; }
body.lp-ignition .lp-stat > a:hover { color: var(--lp-text); text-decoration: underline; }
/* Class-based parts for richer stats (value, label, note). The value takes no color of its own,
   so a page's data colors (e.g. Salary Guide's) still apply. */
body.lp-ignition .lp-stat { color: var(--lp-text); }
body.lp-ignition .lp-stat__value { font-family: var(--lp-font); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
body.lp-ignition .lp-stat__label { font-size: 13px; font-weight: 700; color: var(--lp-text); }
body.lp-ignition .lp-stat__note { font-size: 12.5px; line-height: 1.5; color: var(--lp-text-muted); }

/* ── 10. CTA band (#lp-cta) ──
   Layers bottom to top: far stars, grid, near stars, Earth, fade, content.
   The Earth is anchored to the band's bottom so it stays under the launch
   panel however tall the copy wraps. */
body.lp-ignition .lp-cta-zone { padding-bottom: 72px; }
body.lp-ignition .lp-cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 440px;
  border-radius: var(--lp-radius-band);
  background: var(--lp-sky);
  /* Orange outline + soft glow for contrast against the page (Scott, 2026-11-14: approved
     exception to "orange on CTAs only", since this band is the primary CTA). An outer ring,
     because the star and Earth layers would cover an inset one. */
  box-shadow:
    0 0 0 1px rgba(var(--lp-cta-rgb), .5),
    0 0 36px -10px rgba(var(--lp-cta-rgb), .35),
    0 30px 80px -40px rgba(var(--lp-cta-rgb), .35);   /* orange drop glow, same as the crew band's green one */
}
/* Overscan: layers extend 40px past the top/bottom and 110px past the sides, so the
   drift (up to 70px × 18px) plus mouse offset (up to 22px × 12px) never exposes an
   empty strip at any edge. Fixed px, not %, so narrow screens get the same margin. */
body.lp-ignition .lp-cta-sky {
  position: absolute;
  left: -110px;
  right: -110px;
  top: -40px;
  bottom: -40px;
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 1500px auto;
  pointer-events: none;
  will-change: transform;
}
/* Mouse parallax: cta.js sets --lp-mx / --lp-my (-1…1) while the pointer is over the
   band; layers shift opposite the cursor, near more than far, eased by the transition. */
body.lp-ignition .lp-cta-grid { transition: translate .9s var(--lp-ease); }
/* Star layers are deferred like the hero's (ignition.js adds .lp-stars-ready) and fade in */
body.lp-ignition .lp-cta-sky { opacity: 0; transition: translate .9s var(--lp-ease), opacity 1.2s ease; }
body.lp-ignition.lp-stars-ready .lp-cta-sky { opacity: 1; }
body.lp-ignition .lp-cta-sky--far  { translate: calc(var(--lp-mx, 0) * -10px) calc(var(--lp-my, 0) * -6px); }
body.lp-ignition .lp-cta-grid      { translate: calc(var(--lp-mx, 0) * -5px)  calc(var(--lp-my, 0) * -3px); }
body.lp-ignition .lp-cta-sky--near { translate: calc(var(--lp-mx, 0) * -22px) calc(var(--lp-my, 0) * -12px); }
body.lp-ignition.lp-stars-ready .lp-cta-sky--far {
  background-image: url(/assets/ignition/stars-far.webp);
  animation: lp-par-far 120s ease-in-out infinite alternate;
}
body.lp-ignition.lp-stars-ready .lp-cta-sky--near {
  background-image: url(/assets/ignition/stars-near.webp);
  animation: lp-par-near 80s ease-in-out infinite alternate;
}
body.lp-ignition .lp-cta-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150, 180, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 15%, transparent 75%);
}
body.lp-ignition .lp-cta-earth {
  position: absolute;
  left: 50%;
  bottom: -269px;          /* = top: 140px in the 440px reference band */
  width: 1640px;
  max-width: none;
  height: auto;
  margin-left: -820px;
  pointer-events: none;
  user-select: none;
  animation: lp-drift-earth 40s ease-in-out infinite alternate;
  will-change: transform;
}
/* Scroll reveal: the Earth rises from the band's bottom as the band scrolls into view
   (from first entry until the band is half covered). Composes with the drift via `translate`. */
@supports (animation-timeline: view()) {
  body.lp-ignition .lp-cta-band { view-timeline: --lp-cta-band block; }
  body.lp-ignition .lp-cta-earth {
    animation-name: lp-drift-earth, lp-cta-earth-rise;
    animation-duration: 40s, auto;
    animation-timing-function: ease-in-out, cubic-bezier(.25, .8, .3, 1);
    animation-iteration-count: infinite, 1;
    animation-direction: alternate, normal;
    animation-fill-mode: none, both;
    animation-timeline: auto, --lp-cta-band;
    animation-range: normal, entry 10% cover 55%;
  }
}
body.lp-ignition .lp-cta-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0), rgba(10, 14, 22, .7));
}
body.lp-ignition .lp-cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 32px 56px;
  text-align: center;
}
body.lp-ignition .lp-cta-content .lp-mono-pill { align-self: center; }
body.lp-ignition .lp-cta-title {
  margin: 0;
  font-size: clamp(34px, 3vw + 12px, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--lp-text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
}
body.lp-ignition .lp-cta-title .lp-cta-hash { color: var(--lp-hashtag); }
/* A page's own highlight word in the band title (e.g. Build Your Crew's "Flight Crew"): brand green */
body.lp-ignition .lp-cta-title .lp-cta-accent { color: var(--lp-green); }   /* "#" orange, "ExitVelocity" white */
body.lp-ignition .lp-cta-sub {
  max-width: 560px;
  margin: 0 auto 8px;
  font-size: clamp(15px, .3vw + 13px, 17px);
  line-height: 1.6;
  color: #d4ccca;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
}
/* Frosted launch panel: sits on the planet's edge so it glows up around it */
body.lp-ignition .lp-launch-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(10, 12, 20, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -20px rgba(0, 0, 0, .8);
  transform: translateY(18px);
}

/* ── 11. Footer (.lp-footer) ──
   --lp-foot-h + 1px gray hairline, matching the sidebar's bottom bar. */
body.lp-ignition .lp-footer {
  position: relative;
  flex-shrink: 0;            /* never squeezed by the content column (was in the legacy footer.css) */
  margin-top: auto;
  padding: 0;
  border-top: 1px solid var(--lp-line);
  background: linear-gradient(180deg, #0b0a0e, var(--lp-bg));
  font-family: var(--lp-font);
  font-size: 13px;
  color: var(--lp-text-muted);
}
body.lp-ignition .lp-footer-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--lp-foot-h);
}
body.lp-ignition .lp-footer-copy { white-space: nowrap; }
body.lp-ignition .lp-footer-links { display: flex; align-items: center; gap: 8px; }
body.lp-ignition .lp-footer-link {
  margin-right: 8px;
  font-size: 13px;
  color: #c9c1c3;
  text-decoration: none;
  transition: color .15s;
}
body.lp-ignition .lp-footer-link:hover { color: var(--lp-text); }
body.lp-ignition .lp-footer-sep { width: 1px; height: 20px; margin-right: 8px; background: var(--lp-surface-live-border); }
body.lp-ignition .lp-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;            /* = the sidebar toggle, so both bars read as one system */
  height: 30px;
  border-radius: 8px;
  color: #d6cdcb;
  background: #151318;
  box-shadow: inset 0 0 0 1px var(--lp-surface-live-border);
  transition: color .15s, box-shadow .15s, transform .15s;
}
body.lp-ignition .lp-footer-social:hover {
  color: var(--lp-green);
  box-shadow: inset 0 0 0 1px rgba(var(--lp-green-rgb), .5);
  transform: translateY(-2px);
}
body.lp-ignition .lp-footer-social svg { width: 14px; height: 14px; fill: currentColor; }
body.lp-ignition .lp-footer-social .lp-footer-globe {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 640px) {
  body.lp-ignition .lp-cta-zone { padding-bottom: 40px; }
  body.lp-ignition .lp-cta-band { border-radius: 20px; }
  /* Phones: buttons stand on their own (no frosted panel) and the band leaves room
     below them so the horizon glows under the buttons instead of behind the panel. */
  body.lp-ignition .lp-cta-content { padding: 40px 20px 132px; }
  body.lp-ignition .lp-launch-panel {
    flex-direction: column;
    align-self: stretch;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
  }
  /* Footer stacks and centers; the bar-height alignment only matters beside the desktop sidebar */
  body.lp-ignition .lp-footer-bar {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 14px;
    height: auto;
    padding-top: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }
  body.lp-ignition .lp-footer-copy { white-space: normal; }
  body.lp-ignition .lp-footer-rights { display: inline; }
}

@media print {
  body.lp-ignition .lp-footer { display: none !important; }   /* footers never print */
}

/* ── 12. Ambient sky (.lp-ambient) ──
   Life in the dark background below the hero: fourteen color-pulsing stars and the
   odd shooting star (no satellites: those stay in the hero, Scott 2026-11-14). One empty element per page,
     <div class="lp-ambient" aria-hidden="true"></div>
   placed first inside the page's isolated main wrapper (z-index -1, so opaque section
   backgrounds, the hero, and the CTA band cover it); ignition.js fills it.
   It's pinned to the viewport (position: fixed), so the sky stays put while the page
   scrolls past, the way a real sky does. Everything is percentage-placed, so it works
   at any width. Reduced motion: stars hold still at rest, meteors hide. */
body.lp-ignition .lp-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
body.lp-ignition .lp-ambient-star {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--pulse-core, #ffffff);
  box-shadow: 0 0 8px 2px rgba(var(--pulse-rgb), .95), 0 0 22px 6px rgba(var(--pulse-rgb), .4);
  opacity: .2;
  will-change: opacity, transform;
}
body.lp-ignition .lp-ambient-star--amber  { --pulse-rgb: var(--lp-amber-rgb);     --pulse-core: #ffe2b0; }
body.lp-ignition .lp-ambient-star--blue   { --pulse-rgb: var(--lp-dept-blue-rgb); --pulse-core: #cfe0ff; }
body.lp-ignition .lp-ambient-star--orange { --pulse-rgb: var(--lp-cta-rgb);       --pulse-core: #ffc9ad; }
body.lp-ignition .lp-ambient-star--white  { --pulse-rgb: 200, 220, 255;           --pulse-core: #ffffff; }
/* Positions, colors, and rates: fades of ~2–6s on unrelated cycles, so they never sync */
body.lp-ignition .lp-ambient-star:nth-child(1) { left: 6%; top: 18%; animation: lp-star-pulse-slow 18.7s ease-in-out -3.1s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(2) { left: 24%; top: 72%; animation: lp-star-pulse      11.9s ease-in-out -9.4s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(3) { left: 44%; top: 12%; animation: lp-star-pulse-mid  15.1s ease-in-out -1.8s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(4) { left: 61%; top: 46%; animation: lp-star-pulse-slow 21.3s ease-in-out -12s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(5) { left: 83%; top: 21%; animation: lp-star-pulse      13.7s ease-in-out -6.2s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(6) { left: 93%; top: 74%; animation: lp-star-pulse-mid  16.9s ease-in-out -14.5s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(7) { left: 14%; top: 48%; animation: lp-star-pulse      12.3s ease-in-out -0.6s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(8) { left: 72%; top: 87%; animation: lp-star-pulse-slow 19.9s ease-in-out -7.7s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(9) { left: 35%; top: 35%; animation: lp-star-pulse-mid  17.7s ease-in-out -10.9s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(10) { left: 53%; top: 79%; animation: lp-star-pulse      10.7s ease-in-out -4.4s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(11) { left: 88%; top: 42%; animation: lp-star-pulse-slow 23.1s ease-in-out -17.6s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(12) { left: 3%; top: 88%; animation: lp-star-pulse-mid  14.3s ease-in-out -8.3s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(13) { left: 66%; top: 26%; animation: lp-star-pulse      12.9s ease-in-out -2.7s infinite; }
body.lp-ignition .lp-ambient-star:nth-child(14) { left: 40%; top: 60%; animation: lp-star-pulse-slow 20.5s ease-in-out -15.2s infinite; }

/* Shooting stars: brief streaks, far apart (one every ~20–30s on average) */
body.lp-ignition .lp-ambient-shoot {
  position: absolute;
  width: 140px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  opacity: 0;
  transform-origin: left center;
}
body.lp-ignition .lp-ambient-shoot--1 { right: 18%; top: 16%; animation: lp-shoot 23s ease-out 6s infinite; }
body.lp-ignition .lp-ambient-shoot--2 { right: 58%; top: 44%; animation: lp-shoot 31s ease-out 19s infinite; }
body.lp-ignition .lp-ambient-shoot--3 { right: 30%; top: 66%; animation: lp-shoot 37s ease-out 29s infinite; }

@media (prefers-reduced-motion: reduce) {
  body.lp-ignition .lp-ambient-shoot { display: none; }
  /* PB-004 (2026-11-17): the rest of the backdrop holds still too: the ambient star pulses,
     the section glows' breathing (12b), and the deep-space scroll drift (12b). */
  body.lp-ignition .lp-ambient-star,
  body.lp-ignition .lp-glow::after,
  body.lp-ignition .lp-deepspace { animation: none; }
}

/* ── 12b. Space backdrop (homepage below the hero; shared 2026-11-16) ──
   Three layers behind a page's sections, all decorative and behind solid panels:
   - .lp-deepspace: faint star dust drifting at ~0.85x scroll speed (scroll-driven; mouse
     parallax in ignition.js). Reuses stars-near.webp, applied after .lp-stars-ready.
     Place it first inside an isolated, position: relative page wrapper. Where it starts and
     ends: --lp-deepspace-top (default 520px, the homepage) and --lp-deepspace-bottom (-200px).
   - .lp-grid-patch--left / --right (::before): the hero's 64px grid in a soft ellipse.
   - .lp-glow .lp-glow--blue|purple|cyan|green (::after): one breathing department-colored
     nebula. Never orange: that stays reserved for the CTAs.
   Both masks use closest-side gradients that reach transparent inside their box, so no edge
   is ever cut off. Needs overflow-x: clip (not hidden) on html/body for the scroll drift. */
body.lp-ignition .lp-deepspace {
  position: absolute;
  inset: var(--lp-deepspace-top, 520px) 0 var(--lp-deepspace-bottom, -200px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-repeat: repeat, repeat;
  background-size: max(1600px, 45vw) auto, max(1100px, 30vw) auto;
  background-position: center top, 37% 420px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 360px, #000 calc(100% - 500px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 360px, #000 calc(100% - 500px), transparent 100%);
  transition: opacity 1.2s ease, transform 1.2s var(--lp-ease);   /* transform = mouse parallax (ignition.js) */
  will-change: transform;
}
body.lp-ignition.lp-stars-ready .lp-deepspace {
  opacity: .5;
  background-image: url(/assets/ignition/stars-near.webp), url(/assets/ignition/stars-near.webp);
}
@supports (animation-timeline: scroll()) {
  body.lp-ignition .lp-deepspace {
    animation: lp-deep-space linear both;
    animation-timeline: scroll(root block);
  }
}

body.lp-ignition .lp-grid-patch--left,
body.lp-ignition .lp-grid-patch--right { position: relative; }
body.lp-ignition .lp-grid-patch--left::before,
body.lp-ignition .lp-grid-patch--right::before {
  content: "";
  position: absolute;
  top: -120px;
  width: min(1100px, 80vw);
  height: calc(100% + 160px);
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150, 180, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
}
body.lp-ignition .lp-grid-patch--left::before  { left: -18%; }
body.lp-ignition .lp-grid-patch--right::before { right: -18%; }

body.lp-ignition .lp-glow { position: relative; }
body.lp-ignition .lp-glow::after {
  content: "";
  position: absolute;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  width: min(1100px, 90vw);
  height: 760px;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), .15), rgba(var(--glow-rgb), .06) 50%, transparent 100%);
  animation: lp-glow-breathe 14s ease-in-out infinite alternate;
}
body.lp-ignition .lp-glow--blue   { --glow-rgb: var(--lp-dept-blue-rgb);   --glow-x: 88%; --glow-y: 25%; }
body.lp-ignition .lp-glow--purple { --glow-rgb: var(--lp-dept-purple-rgb); --glow-x: 6%;  --glow-y: 50%; }
body.lp-ignition .lp-glow--cyan   { --glow-rgb: var(--lp-dept-cyan-rgb);   --glow-x: 10%; --glow-y: 80%; }
body.lp-ignition .lp-glow--green  { --glow-rgb: var(--lp-dept-green-rgb);  --glow-x: 92%; --glow-y: 55%; }
body.lp-ignition .lp-glow--purple::after { animation-delay: -4s; }
body.lp-ignition .lp-glow--cyan::after   { animation-delay: -8s; }
body.lp-ignition .lp-glow--green::after  { animation-delay: -11s; }

/* ── 13. Keyframes ── */
@keyframes lp-par-far   { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-28px, 8px, 0); } }
@keyframes lp-par-near  { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-70px, 18px, 0); } }
@keyframes lp-sat-path  { 0% { transform: translate3d(-4%, 70px, 0); } 100% { transform: translate3d(104%, -40px, 0); } }
@keyframes lp-blink     { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes lp-twinkle   { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes lp-rise      { from { opacity: 0; transform: translate3d(0, 90px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes lp-drift-earth { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-14px, -6px, 0) scale(1.025); } }
@keyframes lp-bar       { from { transform: translateX(-6%); } to { transform: translateX(4%); } }
@keyframes lp-shoot {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  1.5% { opacity: 1; }
  6%   { opacity: 0; transform: translate3d(-420px, 187px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-420px, 187px, 0) rotate(-24deg); }
}

/* Grid wave (homepage hero + .lp-page-hero--space): the band sweeps, the lines counter-move to stay on the grid,
   and the two color layers swap green/orange between passes */
@keyframes lp-wave-green  { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lp-wave-orange { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lp-wave-band  { 0% { transform: translate3d(-340px, 0, 0); } 36%, 100% { transform: translate3d(calc(100vw + 20px), 0, 0); } }
@keyframes lp-wave-lines { 0% { transform: translate3d(340px, 0, 0); }  36%, 100% { transform: translate3d(calc(-100vw - 20px), 0, 0); } }

/* Space backdrop (12b) */
@keyframes lp-deep-space { from { translate: 0 0; } to { translate: 0 calc(15% - 100px); } }
@keyframes lp-glow-breathe { from { opacity: .7; } to { opacity: 1; } }

/* Title glow sweep ([data-glow]): with a 40% mask, -70% = fully past the left edge, 170% = fully past the right */
@keyframes lp-title-sweep {
  0%        { -webkit-mask-position: -70% 0; mask-position: -70% 0; }
  44%, 100% { -webkit-mask-position: 170% 0; mask-position: 170% 0; }
}

@keyframes lp-cta-earth-rise { from { translate: 0 220px; opacity: .25; } to { translate: 0 0; opacity: 1; } }

/* Color star pulses: rest at .2, swell to full brightness, fade back. The fade lasts
   20% / 24% / 26% of the cycle, so per-star cycle lengths set each star's rate. */
@keyframes lp-star-pulse {        /* fade = 20% of the cycle */
  0%, 70%, 90%, 100% { opacity: .2; transform: scale(.8); }
  80%                { opacity: 1;  transform: scale(1.5); }
}
@keyframes lp-star-pulse-mid {    /* 24% */
  0%, 66%, 90%, 100% { opacity: .2; transform: scale(.8); }
  78%                { opacity: 1;  transform: scale(1.5); }
}
@keyframes lp-star-pulse-slow {   /* 26% */
  0%, 64%, 90%, 100% { opacity: .2; transform: scale(.8); }
  77%                { opacity: 1;  transform: scale(1.5); }
}
