/* v35: the living Hijazi frieze (frieze.js). The band keeps its place, margins and look at
   rest; the .5 opacity moves from the band onto its layers, so one panel can rise above it. */
.pattern-hijazi.fz-on { opacity: 1; pointer-events: none; }
.pattern-hijazi.fz-on > svg.fz-rules { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
/* the row fades in and out at the band's ends instead of being cut, so the slide reads as
   a carving passing behind a frame; the box reaches 28px above and below for the lift's
   shadow, which a mask would otherwise clip */
.fz-view {
  position: absolute; inset: -28px 0; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.fz-track { position: absolute; left: 0; right: 0; top: 28px; bottom: 28px; perspective: 520px; will-change: transform; direction: ltr; }
.fz-tile { position: absolute; opacity: .5; pointer-events: auto; transform-style: preserve-3d;
  transform: translateZ(0) rotateX(0) rotateY(0);
  transition: transform .7s var(--ease-light), opacity .7s var(--ease-light), filter .7s var(--ease-light); }
.fz-tile svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
/* the star turns about the panel's centre; frieze.js writes the angle. The frame, its
   rays and the lozenge stay still (v40) */

/* the raised strap: hidden on the flat board, embossed when the panel is up */
.fz-raised { opacity: 0; transition: opacity .7s var(--ease-light); }
.fz-strap { fill: currentColor; stroke: none; }
.fz-cut { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
/* v40 (Anis: "exaggerated"): a softer lift. 18px to 7px, shadow 7px/.55 to 3px/.3 */
.fz-base.is-up { opacity: .82;
  transform: translateZ(7px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: drop-shadow(-1px 3px 4px rgba(4, 18, 15, .3)); }
.fz-base.is-up .fz-raised { opacity: 1; filter: url(#fz-emboss); }

/* the light: a brighter copy of the line work, seen through a 300px soft window. It lies
   over the board in screen blend, so it only ever brightens the lines it crosses.
   frieze.js moves the window (.fz-spot) and shifts its content back by the same amount
   (.fz-counter), both by transform, so the copy stays registered on the carving. */
.fz-light { pointer-events: none; mix-blend-mode: screen; }
.fz-spot { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 150px 90px at 50% 50%, rgba(0,0,0,.9) 0, rgba(0,0,0,.35) 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 150px 90px at 50% 50%, rgba(0,0,0,.9) 0, rgba(0,0,0,.35) 45%, transparent 100%); }
.fz-counter { position: absolute; left: 0; top: 0; bottom: 0; width: 100vw; will-change: transform; }
.fz-light .fz-tile { opacity: .75; pointer-events: none; color: var(--gold-text); }
.fz-light .fl { display: none; }
.fz-light .fz-tile.is-up { opacity: 0; }
.fz-light { opacity: 0; transition: opacity 2.4s var(--ease-light) 2.8s; }
.pattern-hijazi.is-drawn .fz-light { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fz-tile, .fz-base.is-up { transform: none; transition: opacity .4s; filter: none; }
}
