/* ICOF CSF — Premium institutional preloader (elegant motion only) */
html.icof-booting {
  overflow: hidden;
}
.icof-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(185, 148, 62, 0.28), transparent 58%),
    radial-gradient(820px 480px at 92% 108%, rgba(217, 119, 6, 0.2), transparent 52%),
    radial-gradient(700px 400px at 50% 40%, rgba(23, 59, 105, 0.35), transparent 60%),
    linear-gradient(155deg, #071627 0%, #0b2340 38%, #173b69 68%, #693f05 100%);
  color: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.icof-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(185,148,62,0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.04) 0 1px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 90px 90px;
  pointer-events: none;
  opacity: 0.7;
}
.icof-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.icof-preloader__inner {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100vw - 2.5rem));
  text-align: center;
}
.icof-preloader__mark {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0 auto 1.45rem;
}
.icof-preloader__halo {
  position: absolute;
  inset: -0.85rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185, 148, 62, 0.35), transparent 68%);
  filter: blur(2px);
  animation: icof-halo 2.4s ease-in-out infinite;
}
.icof-preloader__orbit {
  position: absolute;
  inset: -0.35rem;
  border-radius: 999px;
  border: 1px dashed rgba(185, 148, 62, 0.35);
  animation: icof-spin 12s linear infinite;
}
.icof-preloader__orbit > i {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}
.icof-preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #d97706;
  border-right-color: rgba(185, 148, 62, 0.55);
  animation: icof-spin 1.05s cubic-bezier(0.55, 0.1, 0.35, 0.95) infinite;
  box-shadow:
    0 0 0 1px rgba(185, 148, 62, 0.12),
    0 0 34px rgba(185, 148, 62, 0.35);
}
.icof-preloader__ring--soft {
  inset: 0.5rem;
  border-top-color: #b2943e;
  border-right-color: transparent;
  border-left-color: rgba(245, 158, 11, 0.25);
  animation-duration: 1.7s;
  animation-direction: reverse;
  box-shadow: none;
}
.icof-preloader__ring--scholarship {
  inset: -0.2rem;
  border: 2px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.35);
  border-left-color: #f59e0b;
  animation-duration: 2.2s;
  box-shadow: none;
}
.icof-preloader__logo {
  position: absolute;
  inset: 1.05rem;
  width: calc(100% - 2.1rem);
  height: calc(100% - 2.1rem);
  border-radius: 999px;
  background: #ffffff;
  object-fit: contain;
  padding: 0.4rem;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(185, 148, 62, 0.25);
  animation: icof-pulse 1.9s ease-in-out infinite;
}
.icof-preloader__stripe {
  height: 3px;
  width: 100%;
  margin: 0 auto 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #693f05, #b2943e, #d97706, #f59e0b, #b2943e, #693f05);
  background-size: 220% 100%;
  animation: icof-stripe 2s linear infinite;
  box-shadow: 0 0 16px rgba(185, 148, 62, 0.35);
}
.icof-preloader__brand {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b2943e;
  margin: 0 0 0.45rem;
}
.icof-preloader__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: #ffffff;
}
.icof-preloader__sub {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.icof-preloader__bar {
  margin-top: 1.4rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(185, 148, 62, 0.15);
}
.icof-preloader__bar > span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #693f05, #b2943e, #d97706, #f59e0b);
  animation: icof-bar 1.25s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.45);
}
.icof-preloader__meta {
  margin-top: 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.9);
}
@keyframes icof-spin {
  to { transform: rotate(360deg); }
}
@keyframes icof-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes icof-stripe {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@keyframes icof-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}
@keyframes icof-halo {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .icof-preloader__ring,
  .icof-preloader__ring--soft,
  .icof-preloader__ring--scholarship,
  .icof-preloader__logo,
  .icof-preloader__stripe,
  .icof-preloader__bar > span,
  .icof-preloader__orbit,
  .icof-preloader__halo {
    animation: none;
  }
}
