/* sys: the site-wide layer (lane SYSTEM, 2026-11-10), section 1 only: hero edge + hero life, render-blocking from
   includes/fx_head.html. 2 band: sys-band.css (forged_cta.html). 3 stroke + buttons + 4 cards: sys-late.css (fx_foot).
   Opt out: data-sys-off on any block (or an ancestor). Only transform / opacity / filter animate. Doc: kits/KIT_SYSTEM.md. */

/* ---------- 1. the burning hero edge (markup: partials/ink_separator.html, art: EDGES kit dvd.css) ---------- */
.sys-he{position:relative;line-height:0}
.sys-ems{position:absolute;inset:0;pointer-events:none}
/* embers that leave the edge and climb into the hero: each on its own clock, dark most of its cycle */
.sys-em{position:absolute;left:var(--x,50%);bottom:40px;width:3px;height:3px;border-radius:50%;background:#ffe9bd;box-shadow:0 0 3px 1px rgba(255,170,80,.9),0 0 10px 3px rgba(230,73,37,.4);opacity:0;animation:sys-rise var(--t,11s) linear var(--d,0s) infinite}
.sys-em:nth-child(3n){width:2px;height:2px}
@keyframes sys-rise{
  0%{opacity:0;transform:translate3d(0,0,0)}
  3%{opacity:1}
  14%{transform:translate3d(calc(var(--dx)*.3 + 5px),calc(var(--r)*-.42),0);filter:none}
  27%{opacity:.8;transform:translate3d(calc(var(--dx)*.62 - 4px),calc(var(--r)*-.74),0) scale(.85);filter:hue-rotate(-16deg) saturate(1.5)}
  40%{opacity:0;transform:translate3d(var(--dx),calc(var(--r)*-1),0) scale(.5);filter:hue-rotate(-26deg) brightness(.7)}
  100%{opacity:0;transform:translate3d(var(--dx),calc(var(--r)*-1),0) scale(.5)}
}
@media (max-width:640px){.sys-em:nth-child(n+5){display:none}}

/* hero life: the ink art drifts very slowly; eyebrow and headline set like wet ink (once, never hidden) */
@keyframes sys-drift{from{transform:scale(1.07) translate3d(-1.3%,.4%,0)}to{transform:scale(1.07) translate3d(1.3%,-.9%,0)}}
@keyframes sys-ink{from{opacity:.3;filter:blur(7px);transform:translate3d(-16px,0,0)}}
@media (prefers-reduced-motion:no-preference){
  section:has(.sys-he):not([data-sys-off])>.absolute:first-child>:is(img,video){animation:sys-drift 53s ease-in-out infinite alternate}
  section:has(.sys-he):not([data-sys-off]) h1:not([data-sys-off]){animation:sys-ink 1s cubic-bezier(.2,.7,.2,1) both}
  section:has(.sys-he):not([data-sys-off]) :is(span,p):has(+h1){animation:sys-ink .7s cubic-bezier(.2,.7,.2,1) both}
  section:has(.sys-he):not([data-sys-off]) span:has(+h1){display:inline-block}
}
.a11ym-paused .sys-em{animation:none}
/* offscreen: the closing band stops ticking (sys.js marks it .sys-off) */
.sys-off .sys-em,.sys-off .sys-cta-glow,.sys-off .sys-cta-list::after,.sys-off .sys-iron::before{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.sys-em{animation:none}}
@media (forced-colors:active){.sys-he,.sys-ems{display:none}}
