/* 10 Figure Agency — 05-transitions.css
   Page-transition colour panel and the first-load loader. */

/* ---------- transition panel + loader ---------- */
.tpanel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--route-color);
  color: var(--ink);
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
}
.tpanel.is-active {
  visibility: visible;
  pointer-events: auto;
}
.tpanel__mark {
  font-size: clamp(3.5rem, 13vw, 12rem);
  overflow: clip;
  padding: 0.05em 0.04em 0.12em;
}
.tpanel__label {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
}
.tpanel__count {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
}
/* Initial loader: SSR'd, removes itself with CSS if JS never runs (fail-open) */
.loader {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  animation: loader-failopen 0.7s var(--ease-in-out) 2.4s forwards;
}
.loader.is-done {
  display: none;
}
@keyframes loader-failopen {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}
.js-motion .loader.is-js {
  animation: none;
}
