/* Waliv brand splash, the same on every site: the large bird sharpens into place, the small one glides in
   beside it, the name settles from wide tracking, and a thin bar beneath fills with the loading percentage.
   Each entry page draws it before any script runs; public/splash-progress.js fills the bar from the real
   loading work and src/lib/splash.js flies the birds into the header logo when the page is ready. */
html.splash-on, html.splash-on body { overflow: hidden; }
.wv-splash { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: #ffffff; color: #14213d;
  font-family: 'Schibsted Grotesk Variable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: wv-sp-timeout .5s 6s both; } /* safety net: never trap the page if the script fails (it hands over by 4 s) */
.wv-splash__in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.wv-splash__mark { display: block; width: 112px; height: auto; overflow: visible; }
.wv-splash__big { transform-box: fill-box; transform-origin: 50% 70%; animation: wv-sp-big .7s cubic-bezier(.22, 1, .36, 1) both; }
.wv-splash__small { transform-box: fill-box; transform-origin: 50% 50%; animation: wv-sp-fly .85s .15s cubic-bezier(.22, 1, .36, 1) both; }
.wv-splash__name { font-size: 19px; line-height: 1; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; animation: wv-sp-name .75s .22s cubic-bezier(.22, 1, .36, 1) both; }
/* The bar stays centred under the name; the percentage hangs off its right end. */
/* Shown from the first frame: on a fast load the whole fill takes well under a second. */
.wv-splash__bar { position: relative; display: block; }
.wv-splash__line { display: block; width: 180px; height: 4px; border-radius: 4px; overflow: hidden; background: rgb(31 95 168 / 0.16); }
.wv-splash__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38ade6, #2a5caf);
  transform: scaleX(0); transform-origin: left center; will-change: transform; }
.wv-splash__pct { position: absolute; top: 50%; left: calc(100% + 12px); transform: translateY(-50%); min-width: 4ch;
  font-size: 13px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: #2a5caf; }
/* A later page in the same visit (html.splash-quick, set in each page's head): the brand already drawn, no entrance. */
.splash-quick :is(.wv-splash__big, .wv-splash__small, .wv-splash__name) { animation: none; }
@keyframes wv-sp-big { from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wv-sp-fly { from { opacity: 0; transform: translate(-30px, 16px) rotate(-10deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes wv-sp-name { from { opacity: 0; letter-spacing: .32em; filter: blur(4px); } to { opacity: 1; letter-spacing: -.01em; filter: none; } }
@keyframes wv-sp-fade { from { opacity: 0; } }
@keyframes wv-sp-timeout { to { opacity: 0; visibility: hidden; } }

/* Hand-off: the birds fly into the header logo (script) while the ground and the rest dissolve. */
.wv-splash.is-handoff { pointer-events: none; animation: wv-sp-reveal .62s .12s cubic-bezier(.4, 0, .2, 1) both; }
.wv-splash.is-handoff :is(.wv-splash__name, .wv-splash__bar) { animation: wv-sp-drop .32s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes wv-sp-reveal { to { background-color: transparent; } }
@keyframes wv-sp-drop { to { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
html.splash-on :is(.hdr-mark, .mh-mark) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .wv-splash, .wv-splash * { animation: none !important; }
}
