/* Animated service heroes (Hero style: Animated graphic, or ?hero=animation&anim=...).
   Loaded only on a service page that uses one, with assets/js/hero-anim.js.
   Same treatment as the rolling domain hero: the photo under a dark overlay with the purple glow,
   clusters of the lime contour lines breaking in from the edges and one or two brand-colour
   gradients (different for each animation, set in hero-anim.js), a dark spot and a soft lime glow
   behind the animation so it reads clearly over the photo, smaller than the mockups
   and further right, no slot lines and no pause button. Under 1100px it sits in a band below the text. */

/* Fonts used only by these animations (SIL Open Font Licence, see assets/fonts/licences). */
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.hero--anim .hero__content { z-index: 2; }
.hero--anim .hero__shade--anim { background: radial-gradient(55% 70% at 6% 8%, rgba(122, 31, 84, .5), transparent 70%), linear-gradient(rgba(13, 13, 13, .68), rgba(13, 13, 13, .68)); pointer-events: none; }
.hero--anim .hero__shade--anim-text { background: linear-gradient(90deg, rgba(13, 13, 13, .9) 0%, rgba(13, 13, 13, .6) 35%, rgba(13, 13, 13, 0) 62%); pointer-events: none; }

.hero-anim { position: absolute; inset: 0; pointer-events: none; }
.hero-anim-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-anim-bg__glow { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero-anim-bg__lines { position: absolute; background: url("../img/hero-contours-strong.svg") center / 1300px auto no-repeat; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.hero-anim__stage { position: absolute; left: 62%; top: 50%; transform-origin: 0 50%; color: #fff; }
.hero-anim__spot { position: absolute; left: -30%; top: -55%; width: 160%; height: 210%; background: radial-gradient(closest-side, rgba(13, 13, 13, .78), rgba(13, 13, 13, .4) 60%, transparent); }
.hero-anim__glow { position: absolute; left: -25%; top: -40%; width: 150%; height: 180%; background: radial-gradient(closest-side, rgba(189, 219, 8, .16), rgba(189, 219, 8, .05) 55%, transparent); }
.hero-anim__board { position: relative; overflow: hidden; isolation: isolate; }
.hero-anim__el { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hero-anim__words { position: relative; }
.hero-anim__mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

@media (min-width: 1100px) { .hero--anim .hero__content > * { max-width: min(860px, 44vw); } }
@media (max-width: 1099px) {
  .hero--anim.hero--tall { min-height: 0; }
  .hero-anim { position: relative; order: 2; inset: auto; padding: 0 var(--pad); }
  .hero-anim__stage { top: 20px; left: var(--pad); transform-origin: 0 0; }
  .hero-anim.is-graphic .hero-anim__stage { left: 50%; transform-origin: 50% 0; }
  .hero--anim .hero__shade--anim-text { background: linear-gradient(180deg, rgba(13, 13, 13, .6) 0%, rgba(13, 13, 13, 0) 60%); }
}
