#sia-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbf4;
  /* Must stay in sync with --font-brand in styles/tailwindcss/theme.css,
     which is what the in-app lockup uses so both render identically. */
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.scheme-dark #sia-splash {
  background: #0e0d0b;
}
#sia-splash.sia-splash--hide {
  opacity: 0;
  pointer-events: none;
}

.sia-splash__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  animation: sia-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sia-splash__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* Colors are driven by the .scheme-dark class (set from localStorage by the
   inline script in index.html), not by a media query, so an explicit user
   choice wins over the OS setting. */
.sia-splash__mark-accent {
  stroke: #d97706;
}
.sia-splash__mark-neutral {
  stroke: #6e6a63;
}
.scheme-dark .sia-splash__mark-accent {
  stroke: #ef9a32;
}
.scheme-dark .sia-splash__mark-neutral {
  stroke: #c7c2ba;
}
/* The official brand amber. The in-app lockup reaches the same color
   through the primary-9 token, which is the configured seed itself. */
.sia-splash__word {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #d97706;
}
.scheme-dark .sia-splash__word {
  color: #f59e0b;
}

.sia-splash__sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #71717a;
}
.scheme-dark .sia-splash__sub {
  color: #8a8d8f;
}

.sia-splash__bar {
  position: relative;
  width: 148px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120, 120, 130, 0.16);
}
.sia-splash__bar > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    #d97706,
    #f8b24a,
    transparent
  );
  animation: sia-slide 1.25s ease-in-out infinite;
}

@keyframes sia-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sia-slide {
  0% {
    left: -45%;
  }
  100% {
    left: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sia-splash__stage {
    animation: none;
  }
  .sia-splash__bar > span {
    animation-duration: 2s;
  }
}
