.rise-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3f0e9;
  color: #14201b;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform .82s cubic-bezier(.7, 0, .25, 1),
    opacity .62s ease;
  animation: riseLoaderFailsafe 0s 4s forwards;
}

.rise-loader::before,
.rise-loader::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.rise-loader::before {
  inset: 24px 24px auto auto;
  width: clamp(76px, 12vw, 124px);
  height: clamp(76px, 12vw, 124px);
  border-top: 1px solid rgba(19, 85, 58, .32);
  border-right: 1px solid rgba(19, 85, 58, .32);
}

.rise-loader::after {
  inset: auto auto 24px 24px;
  width: clamp(76px, 12vw, 124px);
  height: clamp(76px, 12vw, 124px);
  border-bottom: 1px solid rgba(145, 20, 73, .28);
  border-left: 1px solid rgba(145, 20, 73, .28);
}

.rise-loader.is-leaving {
  opacity: 0;
  transform: translateY(-101%);
}

.rise-loader-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 34px;
}

.rise-loader-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  animation: riseLoaderIn .68s .1s cubic-bezier(.2, .9, .3, 1.2) both;
}

.rise-loader-boundlearn {
  display: block;
  width: 112px;
  height: auto;
}

.rise-loader-program {
  display: block;
  width: 104px;
  height: auto;
}

.rise-loader-divider {
  width: 1px;
  height: 38px;
  background: #d4af37;
}

.rise-loader-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 10px;
  animation: riseLoaderIn .68s .22s ease both;
}

.rise-loader-progress span {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  animation: riseLoaderPulse 1s ease-in-out infinite;
}

.rise-loader-progress span:nth-child(1) {
  background: #13553a;
}

.rise-loader-progress span:nth-child(2) {
  background: #d4af37;
  animation-delay: .14s;
}

.rise-loader-progress span:nth-child(3) {
  background: #911449;
  animation-delay: .28s;
}

@keyframes riseLoaderIn {
  0% {
    opacity: 0;
    transform: scale(.74);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes riseLoaderPulse {
  0%,
  100% {
    opacity: .38;
    transform: scaleX(.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes riseLoaderFailsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

html.rise-loader-active,
html.rise-loader-active body {
  overflow: hidden;
}

/*
 * Legacy RISE reveal scripts hid entire sections until a scroll event or a
 * 2.5-second fallback. Keep content immediately readable while preserving
 * ordinary hover and menu transitions once those scripts release the styles.
 */
body.rise-product-page section[style*="opacity:0"],
body.rise-product-page section[style*="opacity: 0"],
body.rise-product-page .r-hero[style*="opacity:0"],
body.rise-product-page .r-hero[style*="opacity: 0"],
body.rise-product-page .r-cards > [style*="opacity:0"],
body.rise-product-page .r-cards > [style*="opacity: 0"],
body.rise-product-page .r-stats > [style*="opacity:0"],
body.rise-product-page .r-stats > [style*="opacity: 0"],
body.rise-product-page .r-out > [style*="opacity:0"],
body.rise-product-page .r-out > [style*="opacity: 0"],
body.rise-product-page .r-venues > [style*="opacity:0"],
body.rise-product-page .r-venues > [style*="opacity: 0"],
body.rise-product-page .p-grid > [style*="opacity:0"],
body.rise-product-page .p-grid > [style*="opacity: 0"],
body.rise-product-page .v-grid > [style*="opacity:0"],
body.rise-product-page .v-grid > [style*="opacity: 0"],
body.rise-product-page .mg-grid > [style*="opacity:0"],
body.rise-product-page .mg-grid > [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 520px) {
  .rise-loader-logos {
    gap: 13px;
  }

  .rise-loader-boundlearn {
    width: 98px;
  }

  .rise-loader-program {
    width: 90px;
  }

  .rise-loader-divider {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise-loader,
  .rise-loader-logos,
  .rise-loader-progress,
  .rise-loader-progress span {
    animation: none;
    transition-duration: 1ms;
  }
}
