.by-tijs-loader {
  --ink: #f5f0e8;
  --by-tijs-logo-width: clamp(220px, 52vw, 760px);
  --by-tijs-safe-x: clamp(16px, 4vw, 48px);
  --by-tijs-safe-y: clamp(40px, 12svh, 96px);
  --by-tijs-offset-y: clamp(-12px, -1svh, -4px);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: rgba(13, 13, 11, var(--by-tijs-bg-alpha, 1));
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  visibility: hidden;
  pointer-events: none;
}

.by-tijs-loader.is-loader-ready {
  visibility: visible;
  pointer-events: auto;
}

.by-tijs-loader-inner {
  width: var(--by-tijs-logo-width);
  max-width: calc(100vw - (var(--by-tijs-safe-x) * 2));
  aspect-ratio: 1574 / 814;
  transform: translate3d(0, var(--by-tijs-offset-y), 0);
  position: relative;
  z-index: 3;
}

.by-tijs-loader-word {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  filter: none;
}

.by-tijs-loader.is-portal .by-tijs-loader-word {
  overflow: hidden;
  filter: none;
}

.by-tijs-portal-u {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.by-tijs-loader.is-portal .by-tijs-portal-u {
  visibility: visible;
}

.by-tijs-portal-u-inner {
  width: var(--by-tijs-logo-width);
  max-width: calc(100vw - (var(--by-tijs-safe-x) * 2));
  aspect-ratio: 1574 / 814;
  transform: translate3d(
      0,
      calc(var(--by-tijs-offset-y) + var(--by-tijs-portal-nudge-y, 0px)),
      0
    )
    scale(var(--by-tijs-portal-scale, 1));
  transform-origin: 50.54% 55.5897%;
  will-change: transform;
}

.by-tijs-portal-u-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  color: var(--ink);
}

.by-tijs-mark-piece {
  will-change: transform;
}

.by-tijs-piece-entrance {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.by-tijs-loader.is-loader-ready .by-tijs-piece-entrance {
  animation: byTijsLogoEntrance 820ms cubic-bezier(0.22, 1, 0.36, 1)
    var(--entrance-delay) forwards;
}

.by-tijs-loader-letter {
  fill: var(--ink);
}

@keyframes byTijsLogoEntrance {
  0% {
    opacity: 0;
    transform: translateY(120%) rotate(0.001deg);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0%) rotate(0.001deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .by-tijs-loader,
  .by-tijs-loader.is-loader-ready .by-tijs-piece-entrance {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}

@supports not (height: 100svh) {
  .by-tijs-loader {
    --by-tijs-safe-y: clamp(40px, 12vh, 96px);
    --by-tijs-offset-y: clamp(-12px, -1vh, -4px);
  }
}

@media (max-width: 420px) {
  .by-tijs-loader {
    --by-tijs-logo-width: clamp(210px, 82vw, 340px);
    --by-tijs-safe-x: clamp(12px, 5vw, 24px);
  }
}

@media (max-height: 520px) {
  .by-tijs-loader {
    --by-tijs-logo-width: clamp(220px, 62vw, 760px);
    --by-tijs-safe-y: clamp(24px, 10svh, 56px);
    --by-tijs-offset-y: 0;
  }
}
