html {
  scroll-padding-top: 84px;
}

body.loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.page-loader__logo {
  width: min(34vw, 360px);
  max-width: 75vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(10, 74, 140, 0.08));
}

.page-loader__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.page-loader__dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #0A4A8C;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.page-loader__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.page-loader__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.35;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .page-loader__logo {
    width: min(62vw, 260px);
  }
}

.max-w-7xl,
.max-w-6xl {
  max-width: 1400px !important;
}

.max-w-4xl {
  max-width: 980px !important;
}

.site-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {

  .site-container,
  .max-w-7xl.px-5,
  .max-w-6xl.px-5 {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (min-width: 1024px) {

  .site-container,
  .max-w-7xl.px-5,
  .max-w-6xl.px-5,
  nav.max-w-7xl {
    padding-left: 100px !important;
    padding-right: 100px !important;
  }
}

.animated-gradient {
  background: radial-gradient(circle at 18% 38%, rgba(64, 192, 255, .20), transparent 34%),
    linear-gradient(115deg, rgba(10, 74, 140, .10), transparent 42%, rgba(64, 192, 255, .12));
  animation: ruviraGradient 12s ease-in-out infinite alternate;
}

#home img[data-parallax] {
  animation: oceanDrift 28s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes ruviraGradient {
  from {
    opacity: .35;
    transform: translate3d(-1%, 0, 0);
  }

  to {
    opacity: .62;
    transform: translate3d(1.5%, -1%, 0);
  }
}

@keyframes oceanDrift {
  from {
    transform: scale(1.04) translate3d(-1.5%, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(1.5%, -1%, 0);
  }
}

@media (min-width: 768px) {
  .timeline-line:before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(64, 192, 255, .85), transparent);
    box-shadow: 0 0 24px rgba(64, 192, 255, .35);
  }
}

/* Full Bleed Right Side Training Section Image */
#training-right-col {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 66.666667%;
  z-index: 10;
}

@media (min-width: 1400px) {
  #training-right-col {
    left: calc(50vw + 233px);
  }
}

/* Blueprint Grid & Timeline styles used in about pages */
.blueprint-grid {
  background-image: linear-gradient(rgba(46, 168, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 168, 255, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: blueprintDrift 18s linear infinite;
}

.compliance-timeline article:after {
  content: '↓';
  position: absolute;
  right: 50%;
  bottom: -27px;
  transform: translateX(50%);
  color: #2EA8FF;
  font-size: 18px;
}

.compliance-timeline article:last-child:after {
  display: none;
}

@media (min-width: 1024px) {
  .compliance-timeline article:after {
    content: '';
    right: -24px;
    top: 34px;
    bottom: auto;
    width: 24px;
    height: 1px;
    transform: none;
    background: linear-gradient(90deg, rgba(46, 168, 255, .8), rgba(46, 168, 255, .05));
  }
}

@keyframes blueprintDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 112px 56px;
  }
}

@media (max-width: 1023px) {
  #mobile-menu {
    top: 84px !important;
  }

  #mobile-menu:not(.hidden) {
    display: block !important;
  }
}

/* Footer Links Hover Styles */
#site-footer ul a {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

#site-footer ul a:hover {
  color: #0A4A8C !important;
  text-decoration: underline !important;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}