/* F4GE hero sequence (assets/hero.js). Fills its parent; when the parent has no height it keeps 16:9.
   Colours and the corner inset are the custom properties on .f4h. The script keeps the gradient centred
   on the image box (--f4h-cx/cy/rx/ry). If you change the gradient, change BG in scripts/build-hero.mjs too. */
.f4h{--f4h-navy:#0A1F44;--f4h-cobalt:#1F50C8;--f4h-ink:rgba(245,244,239,.68);--f4h-inset:22px;--f4h-fit:contain;
  --f4h-bg:radial-gradient(ellipse var(--f4h-rx,75%) var(--f4h-ry,70%) at var(--f4h-cx,50%) var(--f4h-cy,48%),#14326B 0%,#0E2754 42%,#0A1F44 72%,#08193A 100%);
  position:relative;display:block;width:100%;height:100%;aspect-ratio:16/9;overflow:hidden;isolation:isolate;
  container-type:inline-size;background:var(--f4h-bg),var(--f4h-navy);color:var(--f4h-ink)}
.f4h-stage,.f4h-slide,.f4h-frame,.f4h-scan{position:absolute;inset:0}
.f4h-slide{visibility:hidden;z-index:0;background:var(--f4h-bg),var(--f4h-navy)}
.f4h-slide.is-on{visibility:visible;z-index:1}.f4h-slide.is-in{visibility:visible;z-index:2}
.f4h-frame--b{clip-path:inset(0 100% 0 0);background:var(--f4h-bg),var(--f4h-navy)}
.f4h-frame picture{display:contents}
.f4h-media{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:var(--f4h-fit);transform-origin:50% 50%;backface-visibility:hidden;user-select:none;-webkit-user-drag:none}
.f4h-video{opacity:0}

/* Scan line: thin cobalt line, soft glow, faint trail over the revealed side. */
.f4h-scan{z-index:3;pointer-events:none;opacity:0;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent)}
.f4h-line{position:absolute;top:0;bottom:0;left:-1px;width:2px;background:var(--f4h-cobalt);
  box-shadow:0 0 6px 1px rgba(31,80,200,.9),0 0 22px 4px rgba(31,80,200,.55),0 0 60px 10px rgba(31,80,200,.25)}
.f4h-line:after{content:'';position:absolute;top:0;bottom:0;left:.5px;width:1px;background:rgba(214,226,255,.55)}
.f4h-line:before{content:'';position:absolute;top:0;bottom:0;right:2px;width:min(140px,18cqw);background:linear-gradient(270deg,rgba(31,80,200,.16),rgba(31,80,200,0))}

/* Corner overlay */
.f4h-ui{position:absolute;z-index:5;display:flex;align-items:center;gap:10px;pointer-events:none;white-space:nowrap;
  font-family:var(--mono,'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace);font-size:11px;line-height:1;letter-spacing:.14em;text-transform:uppercase;
  color:var(--f4h-ink);text-shadow:0 0 10px rgba(10,31,68,.85),0 1px 2px rgba(10,31,68,.9)}
.f4h-ui--tr{top:var(--f4h-inset);right:var(--f4h-inset)}
.f4h-ui--bl{bottom:var(--f4h-inset);left:var(--f4h-inset)}
.f4h-swap{display:inline-grid}.f4h-swap>*{grid-area:1/1;justify-self:end}
.f4h-rule{width:1px;height:10px;background:currentColor;opacity:.45}
.f4h-square{width:7px;height:7px;background:var(--f4h-cobalt);box-shadow:0 0 0 1px rgba(110,150,255,.35)}
@container (max-width:560px){.f4h-ui{--f4h-inset:12px;gap:8px;font-size:10px;letter-spacing:.12em}}
