/* Storm And Me Studios — the real animated studio ident, before Polyfox. */
.sam-studio-intro {
  position: fixed; inset: 0; z-index: 210; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(36px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 48%, #273049 0%, #121726 44%, #060811 90%);
  color: #fff; isolation: isolate; font-family: 'Outfit', system-ui, sans-serif;
}
.sam-studio-sky {
  position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 10deg at 50% 50%, transparent 0deg, rgba(124,145,188,.18) 20deg, transparent 46deg, rgba(246,202,130,.16) 100deg, transparent 145deg, rgba(124,145,188,.12) 210deg, transparent 280deg);
  filter: blur(16px); animation: samClouds 3.6s ease-out both;
}
.sam-studio-intro::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: #fff; opacity: 0; animation: samFlash 3.5s linear both;
}
.sam-studio-emblem {
  width: min(24vw, 105px); height: min(30vw, 125px); min-width: 70px; min-height: 86px;
  display: grid; place-items: center; color: #f5cd83;
  filter: drop-shadow(0 0 22px rgba(245,196,108,.75));
  animation: samBolt 3.5s cubic-bezier(.16,.73,.32,1) both;
}
.sam-studio-emblem svg { width: 100%; height: 100%; }
.sam-studio-brand {
  margin-top: 18px; font-weight: 900; font-size: clamp(29px, 8vw, 60px);
  letter-spacing: .08em; line-height: 1.05; text-shadow: 0 2px 30px rgba(255,216,137,.32);
  animation: samTitle 3.5s cubic-bezier(.23,.7,.35,1) both;
}
.sam-studio-brand span { color: #f0ca84; font-size: .52em; vertical-align: 13%; }
.sam-studio-label {
  margin-top: 8px; font-weight: 600; letter-spacing: .66em; padding-left: .66em;
  font-size: clamp(12px, 3.5vw, 19px); color: #e5ebf2; animation: samSubtitle 3.5s ease both;
}
.sam-studio-tagline {
  margin-top: 24px; font-size: clamp(12px, 3vw, 16px); letter-spacing: .035em;
  color: #c2cad7; animation: samTagline 3.5s ease both;
}
.sam-studio-skip {
  position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(12,18,30,.7); color: #fff; font: inherit; font-size: 14px; padding: 11px 18px; cursor: pointer;
}
.sam-studio-skip:focus-visible { outline: 3px solid #f5cd83; outline-offset: 3px; }
@keyframes samClouds {
  0% { transform: rotate(-22deg) scale(.85); opacity: 0; }
  28% { opacity: 1; } 100% { transform: rotate(13deg) scale(1.25); opacity: .5; }
}
@keyframes samFlash { 0%, 13%, 16%, 23%, 100% { opacity: 0; } 14%, 22% { opacity: .5; } }
@keyframes samBolt {
  0%, 12% { transform: translateY(-80px) scale(.58); opacity: 0; }
  22% { transform: translateY(3px) scale(1.18); opacity: 1; }
  30%, 85% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(1.02); opacity: 0; }
}
@keyframes samTitle {
  0%, 22% { opacity: 0; letter-spacing: .32em; transform: translateY(20px); }
  43%, 86% { opacity: 1; letter-spacing: .08em; transform: translateY(0); }
  100% { opacity: 0; }
}
@keyframes samSubtitle {
  0%, 30% { opacity: 0; transform: translateY(15px); }
  50%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes samTagline {
  0%, 53% { opacity: 0; } 67%, 86% { opacity: 1; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sam-studio-intro *, .sam-studio-intro::before { animation: none !important; }
}
body.reduce-motion .sam-studio-intro *, body.reduce-motion .sam-studio-intro::before { animation: none !important; }
