:root {
  --sal-bg: #040916;
  --sal-bg-soft: #091325;
  --sal-panel: rgba(8, 18, 34, 0.68);
  --sal-panel-strong: rgba(10, 23, 42, 0.86);
  --sal-line: rgba(127, 210, 255, 0.18);
  --sal-line-strong: rgba(127, 210, 255, 0.26);
  --sal-blue: #79d7ff;
  --sal-blue-soft: #b8ecff;
  --sal-text: rgba(246, 249, 255, 0.96);
  --sal-text-soft: rgba(225, 234, 246, 0.9);
  --sal-text-faint: rgba(187, 199, 216, 0.78);
  --sal-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sal-bg);
  color: var(--sal-text);
}

body.intro-lock {
  overflow: hidden;
}

button {
  font: inherit;
}

.intro-prelude {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(126, 223, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #f9fcff 0%, #edf4fb 52%, #e8f0f8 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.72s var(--ease-premium),
    visibility 0s linear 0.72s;
}

.intro-prelude::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(109, 215, 255, 0.16), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92), transparent 42%);
  pointer-events: none;
}

.intro-prelude::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(255, 255, 255, 0) 0deg,
      rgba(123, 226, 255, 0.12) 66deg,
      rgba(22, 54, 92, 0.2) 128deg,
      rgba(7, 16, 29, 0.74) 220deg,
      rgba(255, 255, 255, 0) 360deg
    );
  opacity: 0;
  transform: scale(1.08) rotate(-4deg);
  filter: blur(28px);
  pointer-events: none;
  transition:
    opacity 0.9s var(--ease-premium),
    transform 1.2s var(--ease-premium);
}

.intro-prelude__aurora,
.intro-prelude__wash {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.intro-prelude__aurora {
  background:
    radial-gradient(circle at 50% 38%, rgba(68, 205, 255, 0.22), transparent 16%),
    radial-gradient(circle at 48% 50%, rgba(255, 255, 255, 0.92), transparent 28%);
  filter: blur(18px);
  opacity: 0.86;
  transform: scale(0.94);
  transition:
    transform 1.28s var(--ease-premium),
    opacity 0.95s var(--ease-premium),
    filter 1s var(--ease-premium);
}

.intro-prelude__wash {
  background: linear-gradient(
    114deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(220, 247, 255, 0.18) 18%,
    rgba(118, 229, 255, 0.58) 36%,
    rgba(61, 157, 255, 0.34) 52%,
    rgba(15, 33, 58, 0.88) 74%,
    rgba(4, 9, 22, 1) 100%
  );
  transform: translateX(-132%) skewX(-18deg) scaleX(1.04);
  box-shadow:
    0 0 80px rgba(112, 229, 255, 0.16),
    inset 0 0 40px rgba(255, 255, 255, 0.08);
  transition:
    transform 1.08s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s var(--ease-premium);
}

.intro-prelude__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  justify-items: center;
  text-align: center;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.95s var(--ease-premium),
    opacity 0.8s var(--ease-premium);
}

.intro-prelude__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0;
  line-height: 1;
  text-shadow: 0 14px 34px rgba(72, 204, 255, 0.14);
  width: min(640px, 88vw);
  max-width: 100%;
  transition:
    transform 0.9s var(--ease-premium),
    filter 0.9s var(--ease-premium),
    opacity 0.7s var(--ease-premium);
}

.intro-prelude__logo {
  display: block;
  width: min(560px, 84vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(72, 204, 255, 0.42)) brightness(1.16) contrast(1.06);
}

.intro-prelude__phrase {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  color: rgba(164, 174, 188, 0.96);
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.18;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    transform 0.9s var(--ease-premium),
    opacity 0.75s var(--ease-premium),
    color 0.75s var(--ease-premium);
}

.intro-prelude__word {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.intro-prelude__word + .intro-prelude__word::before {
  content: ".";
  margin-right: 0.65rem;
  color: rgba(128, 137, 150, 0.56);
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-0.08em);
}

.intro-prelude__word-accent {
  color: #1299d0;
}

.intro-prelude.is-ready .intro-prelude__content {
  transform: none;
  opacity: 1;
}

.intro-prelude.is-sweep .intro-prelude__aurora {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(26px);
}

.intro-prelude.is-sweep .intro-prelude__wash {
  transform: translateX(0) skewX(-18deg);
}

.intro-prelude.is-sweep::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.intro-prelude.is-sweep .intro-prelude__mark {
  transform: translateY(-4px) scale(1.015);
  filter: blur(0.2px);
}

.intro-prelude.is-sweep .intro-prelude__phrase {
  transform: translateY(2px);
  color: rgba(178, 184, 194, 0.96);
}

.intro-prelude.is-exit {
  opacity: 0;
  visibility: hidden;
}

.intro-prelude.is-exit .intro-prelude__content {
  transform: translateY(-10px) scale(0.985);
  opacity: 0;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(104, 188, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #040916 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition:
    opacity 0.7s var(--ease-premium),
    transform 0.8s var(--ease-premium),
    visibility 0s linear 0.7s;
}

.intro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(145, 224, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(4, 9, 22, 0.18) 0%, rgba(4, 9, 22, 0.78) 100%);
  pointer-events: none;
}

.intro-overlay.is-exit {
  opacity: 0;
}

.intro-overlay.is-ready {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s, 0s, 0s;
}

.intro-overlay.is-primed {
  opacity: 0.22;
  visibility: visible;
  transform: scale(1.006);
  transition-delay: 0s, 0s, 0s;
}

.intro-backdrop,
.intro-layer,
.intro-halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-backdrop {
  inset: -4%;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transform: scale(1.14);
  filter: saturate(0.96) contrast(1.08) brightness(0.58);
  transition:
    opacity 1.1s var(--ease-premium),
    transform 2.2s var(--ease-premium),
    filter 1.1s var(--ease-premium);
}

.intro-overlay.is-active .intro-video {
  opacity: 0.34;
  transform: scale(1.03);
  filter: saturate(1) contrast(1.1) brightness(0.66);
}

.intro-overlay.is-exit .intro-video {
  opacity: 0.14;
  transform: scale(1);
  filter: saturate(0.82) contrast(1.02) brightness(0.42);
}

.intro-layer--veil {
  background:
    linear-gradient(90deg, rgba(4, 10, 22, 0.8) 0%, rgba(4, 10, 22, 0.58) 42%, rgba(4, 10, 22, 0.74) 100%),
    radial-gradient(circle at 50% 36%, rgba(112, 201, 255, 0.18), transparent 30%);
}

.intro-layer--grid {
  background-image:
    linear-gradient(rgba(138, 216, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 216, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.18));
  transform: perspective(1200px) rotateX(74deg) translateY(22%);
  transform-origin: center bottom;
}

.intro-layer--noise {
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.24;
  mix-blend-mode: screen;
}

.intro-halo {
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.42;
}

.intro-halo--left {
  inset: auto auto 10% 6%;
  width: min(32vw, 460px);
  height: min(32vw, 460px);
  background: radial-gradient(circle, rgba(50, 161, 255, 0.22), transparent 70%);
  animation: introFloatLeft 8.4s ease-in-out infinite alternate;
}

.intro-halo--right {
  inset: 6% 7% auto auto;
  width: min(28vw, 380px);
  height: min(28vw, 380px);
  background: radial-gradient(circle, rgba(73, 206, 255, 0.18), transparent 70%);
  animation: introFloatRight 9.2s ease-in-out infinite alternate;
}

.skip-intro {
  position: absolute;
  top: clamp(1.2rem, 2vw, 1.8rem);
  right: clamp(1.2rem, 2vw, 1.8rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(143, 216, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 18, 33, 0.72);
  color: rgba(247, 251, 255, 0.94);
  backdrop-filter: blur(16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.7s var(--ease-premium),
    transform 0.7s var(--ease-premium),
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.skip-intro:hover {
  border-color: rgba(173, 231, 255, 0.38);
  background: rgba(10, 23, 42, 0.74);
  color: rgba(248, 251, 255, 0.96);
}

.intro-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto auto;
  width: min(1120px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.intro-panel {
  align-self: center;
  justify-self: center;
  width: min(860px, 100%);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border: 1px solid rgba(145, 223, 255, 0.26);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(11, 23, 42, 0.78), rgba(7, 15, 29, 0.52)),
    rgba(4, 9, 22, 0.5);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.9s var(--ease-premium),
    transform 1s var(--ease-premium),
    box-shadow 1s var(--ease-premium),
    border-color 0.6s ease;
}

.intro-panel::before,
.intro-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-panel::before {
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.intro-panel::after {
  left: 50%;
  top: 0;
  width: min(220px, 44%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(182, 237, 255, 0.92), transparent);
  box-shadow: 0 0 24px rgba(101, 203, 255, 0.3);
}

.intro-kicker,
.intro-brand,
.intro-title,
.intro-subtitle,
.intro-meta,
.intro-status-row,
.intro-progress {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease-premium),
    transform 0.95s var(--ease-premium);
}

.intro-kicker {
  margin: 0 0 1rem;
  color: rgba(158, 223, 255, 0.96);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.intro-brand {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-bottom: 1.1rem;
}

.intro-brand-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.45vw, 1rem);
  font-size: clamp(4rem, 13vw, 7.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  color: rgba(252, 253, 255, 1);
  text-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    0 0 34px rgba(129, 214, 255, 0.16);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24));
}

.intro-brand-letter {
  display: inline-block;
}

.intro-brand-letter:nth-child(2) {
  margin-inline: clamp(0.08rem, 0.35vw, 0.24rem);
}

.intro-brand-line {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 242, 255, 0.98), transparent);
  box-shadow: 0 0 26px rgba(110, 205, 255, 0.28);
  transition: width 1.15s var(--ease-premium) 0.28s;
}

.intro-title {
  max-width: 14ch;
  margin: 0 auto 1rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
  color: rgba(250, 252, 255, 1);
  text-shadow: 0 12px 34px rgba(3, 10, 22, 0.32);
}

.intro-subtitle {
  max-width: 42rem;
  margin: 0 auto;
  color: rgba(229, 238, 248, 0.94);
  font-size: clamp(0.95rem, 1.45vw, 1.06rem);
  line-height: 1.82;
}

.intro-meta {
  align-self: end;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: min(960px, 100%);
  padding-top: clamp(1.5rem, 5vh, 2.25rem);
}

.intro-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.12rem;
  border: 1px solid rgba(128, 208, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 21, 39, 0.84), rgba(7, 14, 28, 0.56));
  color: rgba(240, 245, 251, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.intro-footer {
  align-self: end;
  justify-self: center;
  width: min(1080px, 100%);
  padding-top: 1.4rem;
  padding-bottom: clamp(1.4rem, 2vw, 2rem);
}

.intro-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--sal-text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-status {
  color: rgba(231, 240, 248, 0.86);
  letter-spacing: 0.14em;
}

.intro-progress {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.intro-progress-line {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(102, 197, 255, 0.08), rgba(196, 241, 255, 0.98), rgba(102, 197, 255, 0.1));
  box-shadow: 0 0 24px rgba(112, 206, 255, 0.34);
}

.intro-overlay.is-ready .skip-intro,
.intro-overlay.is-ready .intro-panel,
.intro-overlay.is-ready .intro-kicker,
.intro-overlay.is-ready .intro-brand,
.intro-overlay.is-ready .intro-title,
.intro-overlay.is-ready .intro-subtitle,
.intro-overlay.is-ready .intro-meta,
.intro-overlay.is-ready .intro-status-row,
.intro-overlay.is-ready .intro-progress {
  opacity: 1;
  transform: none;
}

.intro-overlay.is-ready .skip-intro {
  transition-delay: 0.08s;
}

.intro-overlay.is-ready .intro-panel {
  transition-delay: 0.1s;
}

.intro-overlay.is-ready .intro-kicker {
  transition-delay: 0.18s;
}

.intro-overlay.is-ready .intro-brand {
  transition-delay: 0.26s;
}

.intro-overlay.is-ready .intro-title {
  transition-delay: 0.34s;
}

.intro-overlay.is-ready .intro-subtitle {
  transition-delay: 0.42s;
}

.intro-overlay.is-ready .intro-meta {
  transition-delay: 0.5s;
}

.intro-overlay.is-ready .intro-status-row {
  transition-delay: 0.56s;
}

.intro-overlay.is-ready .intro-progress {
  transition-delay: 0.62s;
}

.intro-overlay.is-active .intro-brand-line {
  width: min(260px, 42vw);
}

.intro-overlay.is-active .intro-progress-line {
  transform: scaleX(1);
  transition: transform 3.1s linear;
}

.intro-overlay.is-settled .intro-panel {
  border-color: var(--sal-line-strong);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.32);
}

.intro-overlay.is-settled .intro-chip {
  border-color: rgba(149, 222, 255, 0.22);
}

.intro-overlay.is-exit .skip-intro,
.intro-overlay.is-exit .intro-panel,
.intro-overlay.is-exit .intro-meta,
.intro-overlay.is-exit .intro-footer {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  transition-duration: 0.42s;
}

@keyframes introFloatLeft {
  from {
    transform: translate3d(-12px, 0, 0);
  }

  to {
    transform: translate3d(16px, -18px, 0);
  }
}

@keyframes introFloatRight {
  from {
    transform: translate3d(10px, 0, 0);
  }

  to {
    transform: translate3d(-12px, 16px, 0);
  }
}

@media (max-width: 900px) {
  .intro-prelude__content {
    gap: 1rem;
  }

  .intro-prelude__phrase {
    max-width: 24rem;
    gap: 0.18rem 0;
  }

  .intro-shell {
    width: min(100%, calc(100% - 1.25rem));
    padding: 1.15rem;
  }

  .intro-panel {
    border-radius: 28px;
  }

  .intro-status-row {
    letter-spacing: 0.16em;
  }
}

@media (max-width: 640px) {
  .intro-prelude__mark {
    width: 100%;
  }

  .intro-prelude__logo {
    width: min(410px, 92vw);
  }

  .intro-prelude__phrase {
    max-width: 20rem;
    font-size: clamp(0.84rem, 3.8vw, 1rem);
    line-height: 1.18;
  }

  .intro-prelude__word {
    padding: 0 0.32rem;
  }

  .intro-prelude__word + .intro-prelude__word::before {
    margin-right: 0.42rem;
  }

  .intro-layer--grid {
    background-size: 54px 54px;
    opacity: 0.08;
  }

  .skip-intro {
    min-width: 76px;
    padding: 0.66rem 0.95rem;
    font-size: 0.64rem;
  }

  .intro-shell {
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 1rem;
  }

  .intro-panel {
    padding: 1.4rem 1.1rem 1.5rem;
    border-radius: 24px;
  }

  .intro-brand {
    gap: 0.85rem;
  }

  .intro-brand-word {
    gap: clamp(0.36rem, 1.8vw, 0.72rem);
  }

  .intro-title {
    max-width: 12ch;
  }

  .intro-subtitle {
    line-height: 1.72;
  }

  .intro-meta {
    gap: 0.55rem;
    padding-top: 0.4rem;
  }

  .intro-chip {
    width: 100%;
    padding-inline: 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .intro-footer {
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
  }

  .intro-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .intro-video {
    transform: none;
  }

  .intro-overlay.is-primed {
    opacity: 1;
    transform: none;
  }
}
