/* Committee E — entrances per kind of phenomenon (entrances.js) and hand-drawn marks on the photos (marks.js).
   Everything here is scoped to classes the two scripts add; nothing restyles the main page. */

/* While an entrance owns the reveal of a photo, the page's own rectangle mask on that photo is switched off
   (the entrance's canvas hides the photo instead). .fxE-on is added to the layer by Entrances.play and removed at the end. */
.L.fxE-on .ph, .L.fxE-on .frame, .L.fxE-on .full, .L.fxE-on .strip, .L.fxE-on [data-media] {
  clip-path: none !important;
  transition: none !important;
}

/* canvases and flat overlays that an entrance puts on top of the page */
.fxE-cv { position: absolute; z-index: 6; pointer-events: none; display: block; }
.fxE-layer-cv { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; display: block; }
.fxE-flat { position: absolute; z-index: 6; pointer-events: none; }

/* a copy of the photo laid over it, masked to the transient (lightning): .lit lights the jet / the sprites */
.fxE-wrap { position: absolute; pointer-events: none; z-index: 2; overflow: hidden; }
.fxE-drift { position: absolute; }
.fxE-pic { position: absolute; }
.fxE-glow img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: plus-lighter; opacity: 1; }
@supports not (mix-blend-mode: plus-lighter) { .fxE-glow img { mix-blend-mode: screen; } }
.fxE-glow img.lit { filter: brightness(1.25) saturate(1.2); }

/* tornado: the things blown off the previous page fly in their own layer above the stage */
.fxE-storm { position: absolute; inset: 0; z-index: 31; pointer-events: none; overflow: hidden; }
.fxE-piece { position: absolute; margin: 0; box-sizing: border-box; will-change: transform; backface-visibility: visible; }
.fxE-line { white-space: pre; overflow: visible; }
.fxE-line b { font-weight: 700; }
.fxE-haze { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(150, 122, 88, .9), rgba(120, 112, 100, .55) 60%, rgba(120, 112, 100, .25)); }

/* ---------- marks ---------- */
.fxE-marks { z-index: 3; }
.fxE-marks svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fxE-marks path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fxE-marks .under { stroke: rgba(14, 34, 51, .38); }
.fxE-lbl {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 700 13px/1 "Inter", "Noto Sans SC", system-ui, sans-serif; letter-spacing: .02em;
  padding: 5px 7px 5px; color: #0e2233; background: #9ccce4;
  opacity: 0; transform: translate(var(--tx, -50%), calc(var(--ty, -50%) + 5px));
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .1, 1);
}
.fxE-lbl.on { opacity: 1; transform: translate(var(--tx, -50%), var(--ty, -50%)); }
.fxE-lbl.c-sun { background: #e4b448; color: #0e2233; }
.fxE-lbl.c-blue { background: #306c90; color: #f4f3ef; }
.fxE-lbl.c-paper { background: #f4f3ef; color: #0e2233; }
.fxE-lbl small { font-weight: 400; font-size: 11px; margin-left: 5px; opacity: .8; }
/* the new arrows (marks.js) fly in about their own tip: transform-origin is set per arrow in the SVG's own units */
.fxE-marks g { transform-box: view-box; }
@media (max-width: 820px) {
  .fxE-lbl { font-size: 11.5px; padding: 4px 6px; }
  .fxE-lbl small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fxE-lbl { transition: none; }
}
