/* =============================================================================
   $FUPA — "Orb Field" redesign layer
   Loaded AFTER styles.css. Adds the starry F-orb background and turns every
   block of content into a dark glass box sitting on top of it.
   Nothing here changes wording; remove this file + orbs.js to undo the look.
   ============================================================================= */

:root {
  /* Glass boxes — raise --glass-a for more readability, lower it to see more orbs */
  --glass-a: 0.78;                 /* main tint opacity */
  --glass-a-top: 0.66;             /* slightly lighter at the top edge */
  --glass-blur: 14px;
  --glass-border: rgba(225, 232, 248, 0.14);
  --glass-radius: 22px;
  --glass-maxw: 1120px;

  /* Small text nudged brighter so it stays readable over a busier background */
  --text-2: #A3A39E;
  --text-3: #8C8C88;

  --bg-0: #05070D;
}

body { background-color: #05070D; }

/* ----------------------------------------------------------------------------
   Background: static picture (no-JS / reduced-motion fallback) + live canvas
   ---------------------------------------------------------------------------- */
.orbs-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-color: #05070D;
  background-image: url("bg-orbs.jpg");
  background-image: image-set(url("bg-orbs.webp") type("image/webp"), url("bg-orbs.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
}
.orbs-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;            /* never blocks a click */
  opacity: 0;
  transition: opacity 1.2s ease;
}
.orbs-live .orbs-canvas { opacity: 1; }
.orbs-live .orbs-bg { opacity: 0; transition-delay: 1.2s; }

/* Grain + vignette stay on top of the orbs, below content (z 1 in styles.css) */
.vignette { background: radial-gradient(120% 100% at 50% 40%, transparent 60%, rgba(0, 0, 0, 0.5) 100%); }

/* ----------------------------------------------------------------------------
   Glass boxes
   ---------------------------------------------------------------------------- */
.glass {
  background: linear-gradient(180deg,
              rgba(16, 20, 34, var(--glass-a-top)) 0%,
              rgba(8, 10, 18, var(--glass-a)) 40%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(8, 10, 18, 0.92); }
}
/* Set by orbs.js on devices that can't keep ~30 fps: solid-ish boxes, no live blur */
.orbs-lite .glass {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(8, 10, 18, 0.9);
}

/* Section boxes: a centred panel with breathing room on both sides */
.wrap.glass--panel {
  width: calc(100% - 24px);
  max-width: var(--glass-maxw);
  margin-inline: auto;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4.5vw, 56px);
}

/* Less empty space between boxes than the old ruled layout, no hairlines */
.section { border-top: 0; padding-block: clamp(40px, 7vh, 88px); }
.footer { border-top: 0; padding-block: clamp(24px, 5vh, 56px) clamp(24px, 5vh, 48px); }
.footer__seals { border-top-color: var(--line-1); }

/* Hero: logo, title, link chips, checklist and tagline sit in one card */
.hero__stage.glass--hero {
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(28px, 4vw, 48px);
  width: min(42rem, calc(100% - 24px));
  max-width: 100%;
}

/* Scroll cue gets a small pill so it stays legible over the orbs */
.scrollcue.glass--chip {
  padding: 10px 14px 8px;
  border-radius: 999px;
  position: static;
  transform: none;
}

/* Nav: a floating glass bar, always readable (it used to be transparent over the hero) */
.nav, .nav.is-solid {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav__inner.glass--nav {
  width: calc(100% - 24px);
  max-width: var(--glass-maxw);
  margin-top: 10px;
  padding: 9px 10px 9px 18px;
  border-radius: 16px;
  transition: background-color 250ms ease;
}
.nav.is-solid .nav__inner.glass--nav { --glass-a: 0.86; --glass-a-top: 0.8; }

/* ----------------------------------------------------------------------------
   Inner cards: lighter translucent tiles instead of solid black
   ---------------------------------------------------------------------------- */
.card, .ca {
  background: rgba(255, 255, 255, 0.035);
}
.card:hover { background: rgba(255, 255, 255, 0.065); }
.btn--ghost { background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ----------------------------------------------------------------------------
   Reduced motion: keep the static picture, never show the canvas
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .orbs-canvas { display: none; }
  .orbs-live .orbs-bg { opacity: 1; }
}
