/* IFIP corporate hub — home landing: Courses-style wordmark splash + corner menu only. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap");

body.hub-home-splash {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  display: block;
  background: linear-gradient(
    135deg,
    var(--hub-bg1) 0%,
    var(--hub-bg2) 40%,
    var(--hub-bg3) 75%,
    var(--hub-bg4) 100%
  );
}

.hub-splash-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2100;
  padding: 16px 18px;
  opacity: 0;
  pointer-events: none;
}

body.hub-splash-menu-reveal .hub-splash-menu {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.65s ease;
}

body.hub-home-splash .corp-menu-btn {
  color: #fff;
}

body.hub-home-splash .corp-menu-btn:hover,
body.hub-home-splash .corp-menu-btn:focus-visible {
  color: #fff;
  outline-color: var(--hub-focus);
}

@media (prefers-reduced-motion: reduce) {
  body.hub-home-splash .hub-splash-menu {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}

#hub-splash-screen {
  position: fixed;
  inset: 0;
  --font-size: 10rem;
  --cap-height: 7.27rem;
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}

#hub-splash-screen .word-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: scale(0.9);
}

#hub-splash-screen .letter {
  font-size: var(--font-size);
  color: #fff;
  font-weight: 900;
  line-height: 0.73;
  margin: 0;
  padding: 0;
}

#hub-splash-screen .i-column {
  position: relative;
  width: 2.2rem;
  height: var(--cap-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

#hub-splash-screen .globe-dot {
  position: absolute;
  width: 3.3rem;
  height: auto;
  top: 0;
  object-fit: contain;
  opacity: 0;
  z-index: 10;
}

#hub-splash-screen .squash-i {
  display: block;
  font-size: var(--font-size);
  color: #fff;
  font-weight: 900;
  line-height: 0.73;
  transform-origin: bottom;
}

#hub-splash-screen .zing-flare {
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
}

#hub-splash-screen.splash-animate .word-container {
  animation: hubSplashMainZoom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hub-splash-screen.splash-animate .globe-dot {
  animation: hubSplashGravityJiggle 1.4s linear forwards 0.9s;
}

#hub-splash-screen.splash-animate .squash-i {
  animation: hubSplashJiggleSquash 1.2s ease-out forwards 1.08s;
}

#hub-splash-screen.splash-animate .zing-flare {
  animation: hubSplashMagicZing 0.4s ease-out forwards 1.08s;
}

@media (prefers-reduced-motion: reduce) {
  #hub-splash-screen .word-container,
  #hub-splash-screen .globe-dot,
  #hub-splash-screen .squash-i,
  #hub-splash-screen .zing-flare {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  #hub-splash-screen .squash-i {
    transform: scaleY(0.5);
  }
}

@keyframes hubSplashMainZoom {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes hubSplashGravityJiggle {
  0% {
    opacity: 0;
    transform: translateY(-150px);
  }
  5% {
    opacity: 1;
  }
  12% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    transform: translateY(-30px);
  }
  38% {
    transform: translateY(0);
  }
  52% {
    transform: translateY(-12px);
  }
  66% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-4px);
  }
  88% {
    transform: translateY(0);
  }
  95% {
    transform: translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hubSplashJiggleSquash {
  0% {
    transform: scaleY(1);
  }
  8% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(0.62);
  }
  35% {
    transform: scaleY(0.46);
  }
  50% {
    transform: scaleY(0.54);
  }
  65% {
    transform: scaleY(0.49);
  }
  100% {
    transform: scaleY(0.5);
  }
}

@keyframes hubSplashMagicZing {
  0% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 #fff;
  }
  30% {
    opacity: 1;
    transform: scale(2);
    box-shadow: 0 0 40px 20px #fff;
  }
  100% {
    opacity: 0;
    transform: scale(8);
    box-shadow: 0 0 80px 40px transparent;
  }
}

@media (max-width: 768px) {
  #hub-splash-screen {
    --font-size: 5rem;
    --cap-height: 3.63rem;
  }

  #hub-splash-screen .i-column {
    width: 1.1rem;
  }

  #hub-splash-screen .globe-dot {
    width: 1.6rem;
  }
}
