/* ============================================================
   APP — global page-shell chrome that wraps every section
   (skip link, ambient background layers, pointer glow) plus
   the cross-cutting accessibility/print overrides. Nothing in
   here belongs to a single content section.
   ============================================================ */

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  background: var(--gold);
  color: #05070F;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% -5%, rgba(246, 191, 59, .09), transparent 68%),
    var(--bg);
}
.bg__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(105% 75% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(105% 75% at 50% 0%, #000 20%, transparent 78%);
  animation: gridDrift 40s linear infinite;
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  will-change: transform;
}
.bg__blob--a { width: 46vw; height: 46vw; top: -14vw; inset-inline-start: -10vw; background: rgba(246, 191, 59, .12); animation: float1 26s ease-in-out infinite; }
.bg__blob--b { width: 40vw; height: 40vw; top: 40vh; inset-inline-end: -14vw; background: rgba(56, 106, 255, .14); animation: float2 32s ease-in-out infinite; }
.bg__blob--c { width: 34vw; height: 34vw; bottom: -12vw; inset-inline-start: 30vw; background: rgba(0, 210, 106, .08); animation: float1 38s ease-in-out infinite reverse; }
[data-theme="light"] .bg__blob { opacity: .35; }

.bg__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: .3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- Pointer glow ---------- */
.pointer-glow {
  position: fixed;
  z-index: -1;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(244, 196, 48, .1), transparent 62%);
  transition: opacity .5s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .pointer-glow { opacity: 1; }
}

/* ---------- Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee__track, .tape__track { animation: none; }
  .bg__particles, .pointer-glow, .hero__fx { display: none; }
}

@media print {
  .bg, .preloader, .nav, .tape, .pointer-glow { display: none !important; }
  body { background: #fff; color: #000; }
}
