/* HERO-EFFEKTE · the structural styles each effect needs. Colours and fonts stay with the site using them. */
.fx-wd { display: inline-block; white-space: nowrap; }
.fx-ch { display: inline-block; }

/* glow lines: a soft band of light behind the headline; --fx-glow (0..1) is animated by effects.js */
.fx-glow { position: relative; isolation: isolate; --fx-glow: 0.45; --fx-glow-color: 120, 150, 255; }
.fx-glow::before { content: ''; position: absolute; z-index: -1; left: -10%; right: -10%; top: 30%; height: 70%;
  background: radial-gradient(60% 55% at 50% 60%, rgba(var(--fx-glow-color), calc(var(--fx-glow) * .55)), transparent 70%); filter: blur(20px); pointer-events: none; }
.fx-glow .fx-line { display: block; }

/* marquee window: the line runs behind a fixed picture in the middle */
.fx-marquee { position: relative; overflow: hidden; display: grid; place-items: center; }
.fx-marquee-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.fx-marquee-track > * { padding-right: .35em; }
.fx-marquee-window { position: absolute; margin: 0; width: clamp(140px, 16vw, 260px); aspect-ratio: 4 / 3; overflow: hidden; z-index: 1; }
.fx-marquee-window img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* fog title: picture, giant title, fog canvas on top */
.fx-fog { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.fx-fog-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fx-fog-title { margin: 0; will-change: filter, opacity, transform; }
.fx-fog-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(18px); }

/* frame to full: an empty frame holds the layout; the box with the film is placed over it by effects.js */
.fx-ftf { position: relative; min-height: 100svh; }
.fx-ftf-box { position: absolute; overflow: hidden; z-index: 1; }
.fx-ftf-box video, .fx-ftf-box canvas, .fx-ftf-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .fx-marquee-track { transform: none !important; } }
