/* The head entrypoint enables the curtain before paint; without JS it stays absent. */
.brand-intro { display: none; }
html.brand-intro-pending { overflow-x: clip; }
html.brand-intro-pending .brand-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  background: radial-gradient(ellipse at 50% 42%, #28375f, #1e2a52 68%);
  isolation: isolate;
  pointer-events: auto;
  touch-action: none;
  transform: translate3d(0, 0, 0);
  animation: brand-curtain-out 950ms cubic-bezier(.76, 0, .24, 1) 1100ms both,
    brand-intro-failsafe 1ms steps(1, end) 4s forwards;
}
.brand-intro::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: calc(100% - 1px);
  height: 16vh;
  background: #1e2a52;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform-origin: 50% 0;
  transform: scaleY(0);
  animation: brand-curtain-curve 950ms cubic-bezier(.76, 0, .24, 1) 1100ms both;
  pointer-events: none;
}
.brand-intro__mark {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 24px;
  transform-origin: center;
}
.brand-intro__mark img {
  display: block;
  width: 84px;
  height: 76px;
  object-fit: contain;
  animation: brand-logo-reveal 700ms cubic-bezier(.16, 1, .3, 1) both;
}
.brand-intro__wordmark {
  display: block;
  overflow: hidden;
  padding: .12em .06em .15em;
  margin: -.12em -.06em -.15em;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.brand-intro__letter {
  display: inline-block;
  animation: brand-letter-in 600ms cubic-bezier(.16, 1, .3, 1) calc(280ms + var(--letter, 0) * 40ms) both;
}
.brand-intro__skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / .06);
  font: 500 12px/1.4 "DM Sans", sans-serif;
  cursor: pointer;
}
.brand-intro__skip:hover { background: rgb(255 255 255 / .13); }
.brand-intro__skip:focus-visible { outline: 3px solid #76bfee; outline-offset: 5px; }
@keyframes brand-logo-reveal {
  from { clip-path: circle(0% at 50% 30%); }
  to { clip-path: circle(75% at 50% 50%); }
}
@keyframes brand-letter-in {
  from { transform: translate3d(0, 125%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes brand-curtain-out {
  from { transform: translate3d(0, 0, 0); }
  /* Clear the very last bit of the curved edge before removing the overlay. */
  to { transform: translate3d(0, calc(-100% - 3vh), 0); pointer-events: none; }
}
@keyframes brand-curtain-curve {
  0% { transform: scaleY(0); }
  40% { transform: scaleY(1); }
  100% { transform: scaleY(.1); }
}
@keyframes brand-intro-failsafe {
  to { visibility: hidden; pointer-events: none; }
}
html.motion-paused .brand-intro { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.brand-intro-pending .brand-intro { display: none; animation: none; }
  .brand-intro::after, .brand-intro__mark img, .brand-intro__letter { animation: none; }
}
@media (max-width: 600px) {
  .brand-intro__mark { gap: 15px; }
  .brand-intro__mark img { width: 67px; height: 61px; }
}
