/* PCdelics landing page.
   Layer stack (back to front):
   0 #fractal — WebGL Julia-set background
   1 #binary  — 2D canvas binary particles, outer side bands
   2 .vignette
   3 h1 logo  — static image, screen-blended over the animation
   4 .grain
   5 .about-link */

:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  isolation: isolate;
}

#fractal,
#binary {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#fractal { z-index: 0; }

#binary {
  z-index: 1;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, .32) 78%, rgba(0, 0, 0, .62) 100%);
}

h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  line-height: 0;
  /* blend must sit on the element that owns the stacking context,
     otherwise it only blends against h1's own transparent backdrop */
  mix-blend-mode: screen;
}

h1 img {
  max-width: min(88vw, 1000px);
  max-height: 82vh;
  width: auto;
  height: auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: .025;
  pointer-events: none;
  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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* bottom nav: Institute (humans) and Consume (doses); hover colors follow
   the brand axis — purple for Institute, cyan for Consume.
   Mobile: links sit in the corners. Desktop: centered, pipe-separated. */
.footer-links {
  position: fixed;
  z-index: 5;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3c4450;
}

.footer-links span { display: none; }

.footer-links a {
  color: #4a5260;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:first-of-type:hover { color: #d26bff; }
.footer-links a:last-of-type:hover { color: #4fd9ff; }

@media (min-width: 768px) {
  .footer-links {
    justify-content: center;
    gap: 0.75rem;
  }
  .footer-links span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  #binary { display: none; }
}
