/*!
 * fx.css — the interaction layer that fx.js switches on.
 *
 * Nothing here changes a page until fx.js adds its classes, so a page with the
 * script blocked renders exactly as before. Pointer effects are gated on
 * .fx-fine (a mouse), and everything that moves is switched off under
 * prefers-reduced-motion at the bottom of this file.
 */

:root {
  --fx-blue: #0071e3;
  --fx-blue-deep: #0040dd;
  --fx-violet: #b85db7;
  --fx-green: #34c759;
  --fx-ink: #1e0e62;
}

/* ------------------------------------------------------------------ scroll progress
   Sits on the bottom edge of the sticky header, so it travels with it. */
.fx-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  pointer-events: none; z-index: 5;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--fx-blue-deep), var(--fx-blue) 45%, var(--fx-violet));
  box-shadow: 0 0 10px rgba(0, 113, 227, .45);
}

/* ------------------------------------------------------------------ hero spotlight */
.fx-hero-spot {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(520px circle at var(--fx-x, 50%) var(--fx-y, 40%), var(--fx-spot, rgba(0, 113, 227, .16)), transparent 62%);
}
.fx-hero-spot.is-on { opacity: 1; }
.fx-hero--dark .fx-hero-spot { --fx-spot: rgba(255, 255, 255, .17); }
.fx-parallax { transition: translate .5s cubic-bezier(.2, .7, .2, 1); }

/* ------------------------------------------------------------------ card spotlight
   A glow that follows the pointer across the card, plus a lit edge. The card
   becomes its own stacking context so the layer can sit at z-index -1: above
   the card's background, below its content, without repositioning children. */
.fx-glow { isolation: isolate; }
.fx-glow-layer {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .35s ease;
  background:
    radial-gradient(360px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(0, 113, 227, .09), transparent 45%);
}
.fx-glow-layer::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(0, 113, 227, .55), rgba(184, 93, 183, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.fx-glow:hover > .fx-glow-layer { opacity: 1; }
.fx-dark-card .fx-glow-layer { background: radial-gradient(360px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(255, 255, 255, .10), transparent 45%); }

/* ------------------------------------------------------------------ count-up */
.fx-count { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ logo walls */
.fx-logo {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease, box-shadow .35s ease;
}
.fx-logo-wall.fx-armed .fx-logo { opacity: 0; transform: translateY(10px) scale(.92); }
.fx-logo-wall.fx-in .fx-logo {
  opacity: 1; transform: none;
  transition: opacity .5s ease var(--fx-d, 0ms), transform .5s cubic-bezier(.2, .7, .2, 1) var(--fx-d, 0ms);
}
.fx-fine .fx-logo-wall.fx-in .fx-logo:hover {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(30, 14, 98, .16));
  transition-delay: 0ms;
}

/* ------------------------------------------------------------------ buttons */
.fx-magnet { transition: translate .35s cubic-bezier(.2, .7, .2, 1); }
.fx-ripple-host { position: relative; overflow: hidden; }
.fx-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: rgba(255, 255, 255, .55);
  animation: fx-ripple .6s ease-out forwards;
}
@keyframes fx-ripple { to { transform: scale(28); opacity: 0; } }

/* ------------------------------------------------------------------ tabs */
.tab-pane.fx-pane-in { animation: fx-pane .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes fx-pane { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ zoomable images */
.fx-zoomable { cursor: zoom-in; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.fx-fine .fx-zoomable:hover { transform: scale(1.015); box-shadow: 0 18px 40px rgba(30, 14, 98, .16); }
.fx-zoom-wrap { position: relative; }
.fx-zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 'DM Sans', system-ui, sans-serif; color: #fff;
  background: rgba(15, 12, 45, .72); border-radius: 999px; padding: 7px 11px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
.fx-zoom-wrap:hover .fx-zoom-hint, .fx-zoomable:focus-visible + .fx-zoom-hint { opacity: 1; transform: none; }

.fx-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 4vh 4vw; background: rgba(9, 8, 30, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease; cursor: zoom-out;
}
.fx-lightbox.is-open { opacity: 1; }
.fx-lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 14px; background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transform: scale(.94); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.fx-lightbox.is-open img { transform: none; }
.fx-lightbox figcaption { color: rgba(255, 255, 255, .82); font: 500 14px/1.4 'DM Sans', system-ui, sans-serif; text-align: center; max-width: 720px; }
.fx-lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.fx-lightbox-close:hover, .fx-lightbox-close:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }

/* ------------------------------------------------------------------ section dots
   Wide screens only; the dots never cover content at >= 1280px. */
.fx-dots {
  position: fixed; right: 18px; top: 50%; z-index: 1030;
  display: none; flex-direction: column; gap: 12px;
  transform: translateY(-50%); margin: 0; padding: 10px 6px; list-style: none;
  opacity: 0; transition: opacity .4s ease;
}
.fx-dots.is-visible { opacity: 1; }
@media (min-width: 1280px) { .fx-dots { display: flex; } }
.fx-dots a {
  position: relative; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(30, 14, 98, .22); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8);
  transition: background .25s ease, transform .25s ease;
}
.fx-dots a:hover, .fx-dots a:focus-visible { background: var(--fx-blue); transform: scale(1.25); outline: none; }
.fx-dots a.is-active { background: var(--fx-blue); transform: scale(1.35); }
.fx-dots a span {
  position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; pointer-events: none;
  font: 600 12px/1 'DM Sans', system-ui, sans-serif; color: #fff;
  background: var(--fx-ink); border-radius: 8px; padding: 7px 10px;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.fx-dots a:hover span, .fx-dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-hero-spot, .fx-glow-layer, .fx-parallax, .fx-magnet, .fx-ripple, .fx-zoomable,
  .tab-pane.fx-pane-in, .fx-logo, .fx-lightbox, .fx-lightbox img {
    transition: none !important; animation: none !important;
  }
  .fx-logo-wall.fx-armed .fx-logo { opacity: 1 !important; transform: none !important; }
  .fx-progress { box-shadow: none; }
}
