:root {
  --bg: #111d33;
  --fg: #ffffff;
  --font-display: "Manrope", system-ui, -apple-system, sans-serif;
  --brand-splash: #111d33;
  --splash-deep: #0a1220;
  --splash-mid: #111d33;
  --splash-soft: #1a2d4a;
  --splash-edge: #0e1829;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
}

body.preloader-active {
  overflow: hidden;
}

@keyframes preloader-logo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

@keyframes splash-mesh {
  0% {
    background-position: 12% 48%;
  }
  33% {
    background-position: 88% 38%;
  }
  66% {
    background-position: 42% 92%;
  }
  100% {
    background-position: 12% 48%;
  }
}

#qodef-page-spinner {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--brand-splash);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#qodef-page-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      ellipse 90% 75% at 22% 28%,
      rgba(55, 78, 118, 0.42) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 85% 80% at 82% 68%,
      rgba(6, 10, 20, 0.55) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 100% 55% at 50% 100%,
      rgba(30, 48, 78, 0.28) 0%,
      transparent 52%
    ),
    linear-gradient(
      198deg,
      var(--splash-deep) 0%,
      var(--splash-mid) 42%,
      var(--splash-soft) 100%
    );
  background-size: 240% 240%;
  animation: splash-mesh 28s ease-in-out infinite;
}

#qodef-page-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 140% 100% at 50% 0%,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 48%
  );
  pointer-events: none;
  mix-blend-mode: soft-light;
}

#qodef-page-spinner.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qodef-m-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.qodef-m-halstein {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qodef-m-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  display: block;
  width: clamp(72px, 18vw, 120px);
  height: auto;
  flex-shrink: 0;
  animation: preloader-logo-breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.25));
}

.qodef-m-title--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.qodef-m-title .brand-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
  font-feature-settings: "kern" 1;
}

.qodef-m-title .qodef-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qodef-m-title.qodef--appeared .qodef-letter {
  opacity: 1;
  transform: translate(0, 0);
}

.site-content.is-hidden {
  visibility: hidden;
}

.site-content {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 90% 70% at 50% 45%,
      rgba(17, 29, 51, 0.25) 0%,
      rgba(17, 29, 51, 0.55) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(17, 29, 51, 0.45) 100%
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__logo {
  display: block;
  width: clamp(88px, 20vw, 160px);
  height: auto;
  max-width: min(90vw, 320px);
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero__line {
  display: block;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    animation: none;
  }

  #qodef-page-spinner::before,
  #qodef-page-spinner::after {
    animation: none;
  }

  #qodef-page-spinner::before {
    background-size: 100% 100%;
    background-position: center;
  }

}
