/* brickcase splash: "brick" and "case" laid letter by letter, the mortar line
   running under each word and the beacon arcs lighting up over the "i".
   Taken from the brickcase sign-in page (white lettering on the electric blue). */
@import url("orbitron.css");
html, body { margin: 0; height: 100%; }

.bc-splash {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 88%, rgba(0, 0, 0, 0.26), transparent 46%),
    linear-gradient(180deg, #1a5cff 0%, #0044fd 46%, #002bb5 100%);
  background-attachment: fixed;
  transition: opacity 650ms ease;
}
.bc-splash.is-hidden { opacity: 0; pointer-events: none; }
.bc-splash-word {
  color: #000; font-family: "Orbitron", Arial, sans-serif; font-weight: 800;
  font-size: clamp(48px, 12vw, 132px); line-height: 0.9; white-space: nowrap;
  display: inline-flex; align-items: flex-end;
}
.bc-splash .bc-word { position: relative; display: inline-flex; }
.bc-splash .bc-letter { display: inline-block; opacity: 0; transform-origin: bottom center; }
.bc-splash.is-playing .bc-letter { animation: bcLay 360ms cubic-bezier(0.3,1.2,0.4,1) both; animation-delay: var(--d, 0ms); }
.bc-splash .bc-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 0.09em;
  background: #0044fd; transform: scaleX(0); transform-origin: left center;
}
.bc-splash.is-playing .bc-word-brick::after { animation: bcMortar 1650ms ease 300ms both; }
.bc-splash.is-playing .bc-word-case::after { animation: bcMortar 1650ms ease 3150ms both; }
@keyframes bcLay {
  0% { opacity: 0; transform: translateY(-70px) scaleY(1.08); }
  55% { opacity: 1; }
  70% { transform: translateY(0) scaleY(0.82); }
  85% { transform: translateY(0) scaleY(1.05); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes bcMortar { 0% { transform: scaleX(0); } 46% { transform: scaleX(1); } 49% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
/* The logo's "i": a round blue dot with the beacon arcs above it (taken from the
   brickcase logo). The dot lands with the letter; the arcs then light up. */
.bc-splash .bc-i { position: relative; }
.bc-splash .bc-beacon { position: absolute; left: 0.1095em; bottom: 0.668em; width: 0; height: 0; }
.bc-splash .bc-idot{
  position: absolute; left: -0.076em; bottom: 0.044em; width: 0.152em; height: 0.152em;
  border-radius: 50%; background: #0043fc;
}
/* The logo's "." before "se" (brickca.se): a round dot on the baseline */
.bc-splash .bc-dot{
  width: 0.154em; height: 0.154em; margin: 0 0.035em 0.074em 0.065em; align-self: flex-end;   /* sits on the baseline */
  border-radius: 50%; background: #0043fc;
}
/* the logo's small TM, top right of the final "e" (lands with the e) */
.bc-splash .bc-e { position: relative; }
.bc-splash .bc-tmark{
  position: absolute; left: calc(100% - 0.093em); bottom: 0.821em; height: 0.133em; width: auto;   /* up and right, as on the logo */
}
.bc-splash .bc-arc { position: absolute; height: auto; opacity: 0; }
.bc-splash .bc-arc-small { left: -0.150em; bottom: 0.207em; width: 0.314em; }
.bc-splash .bc-arc-big { left: -0.224em; bottom: 0.347em; width: 0.461em; }
.bc-splash.is-playing .bc-arc-small { animation: bcSignal 420ms ease-out 1000ms both; }
.bc-splash.is-playing .bc-arc-big { animation: bcSignal 420ms ease-out 1250ms both; }
@keyframes bcSignal {
  0% { opacity: 0; transform: translateY(0.06em) scale(0.7); }
  60% { opacity: 1; transform: translateY(-0.02em) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .bc-splash .bc-arc { animation: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bc-splash.is-playing .bc-letter { animation: none; opacity: 1; }
}

/* Colours on the electric blue: white letters, black mortar lines and dots,
   white beacon arcs (the arc images are blue, so they are inverted) */
.bc-splash-word { color: #ffffff; }
.bc-splash .bc-word::after { background: #000000; }
.bc-splash .bc-idot, .bc-splash .bc-dot { background: #000000; }
.bc-splash .bc-arc { filter: invert(1); }
