/* v34: the arabesque behind the stone (dia-motif.js). It lies over the sunset sky
   (.dia-stage::before) in soft-light, so it carries no colour of its own: it takes the
   hour's light, faint green in the afternoon, warm in the corona, gone into the dusk
   above. The stone (.dia-gl) stays above it. A halo around the stone (--dia-x/--dia-y
   follow it down); with a fine pointer the torch (--tx/--ty) lifts the carving. */
.dia-stage > .dia-gl { z-index: 1; }
.dia-motif {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  color: var(--cream); mix-blend-mode: soft-light; opacity: 0; transition: opacity 2.4s var(--ease-light);
  -webkit-mask-image: radial-gradient(ellipse 24vmax 30vmax at var(--dia-x, 25%) var(--dia-y, 50%), #000 0, rgba(0,0,0,.55) 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 24vmax 30vmax at var(--dia-x, 25%) var(--dia-y, 50%), #000 0, rgba(0,0,0,.55) 50%, transparent 100%);
}
.dia-motif.has-torch {
  -webkit-mask-image: radial-gradient(ellipse 24vmax 30vmax at var(--dia-x, 25%) var(--dia-y, 50%), rgba(0,0,0,.75) 0, rgba(0,0,0,.4) 50%, transparent 100%), radial-gradient(circle 280px at var(--tx, -999px) var(--ty, -999px), #000 0, rgba(0,0,0,.4) 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 24vmax 30vmax at var(--dia-x, 25%) var(--dia-y, 50%), rgba(0,0,0,.75) 0, rgba(0,0,0,.4) 50%, transparent 100%), radial-gradient(circle 280px at var(--tx, -999px) var(--ty, -999px), #000 0, rgba(0,0,0,.4) 50%, transparent 100%);
}
.dia-motif.is-on { opacity: .5; }
.dia-motif svg { display: block; }
.dia-motif path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* phones: the copy runs under the stone, so the halo stays around the stone and stops
   above the headline (a fresh-eyes review found it busy behind the text at 390) */
@media (max-width: 900px) {
  .dia-motif.is-on { opacity: .32; }
  .dia-motif, .dia-motif.has-torch {
    -webkit-mask-image: radial-gradient(ellipse 62vw 20vh at 50% var(--dia-y, 28%), #000 0, rgba(0,0,0,.5) 50%, transparent 100%);
            mask-image: radial-gradient(ellipse 62vw 20vh at 50% var(--dia-y, 28%), #000 0, rgba(0,0,0,.5) 50%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .dia-motif { transition: none; } }
