/* The Call app-load intro. The original local movie is the artwork; the shell
   only adds a dusty-rose tint plus keyed studio/title marks. */

html.thecall-splash-armed .title-root {
  visibility: hidden;
}

.tc-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 52% at 50% 48%, rgba(186, 72, 92, 0.18), transparent 72%),
    #05040a;
  opacity: 1;
  transition: opacity 280ms ease;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.tc-splash.is-leaving {
  opacity: 0;
}

.tc-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.2), transparent 34%, rgba(5, 4, 10, 0.54)),
    radial-gradient(70% 52% at 50% 56%, transparent 38%, rgba(186, 72, 92, 0.28) 78%, rgba(5, 4, 10, 0.22)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: screen;
  opacity: 0.72;
}

.tc-splash-video,
.tc-splash-fallback,
.tc-splash-overlay {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.tc-splash-video {
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1.18) sepia(0.22) hue-rotate(336deg) brightness(0.7) contrast(1.14);
  transform: scale(1.015);
}

.tc-splash-fallback {
  position: relative;
  display: none;
  place-items: center;
  overflow: hidden;
}

.tc-splash.is-fallback .tc-splash-video {
  display: none;
}

.tc-splash.is-fallback .tc-splash-fallback {
  display: grid;
}

.tc-splash-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) sepia(0.22) hue-rotate(336deg) brightness(0.68) contrast(1.14);
  transform: scale(1.015);
}

.tc-splash-overlay {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  z-index: 1;
  width: 100%;
  height: auto;
  padding: max(2rem, env(safe-area-inset-top)) 1.2rem max(2.2rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: stretch;
  color: #f5edf1;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.tc-splash-studio {
  align-self: start;
  color: #f0b4c0;
  opacity: 0;
  animation: tc-splash-rise 720ms ease 120ms both;
}

.tc-splash-studio-mark {
  display: block;
  font-size: clamp(0.72rem, 3.2vw, 1rem);
  letter-spacing: 0.26em;
  text-shadow:
    0 0 16px rgba(178, 126, 132, 0.34),
    0 0 30px rgba(0, 0, 0, 0.82);
}

.tc-splash-title {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  opacity: 0;
  animation: tc-splash-rise 720ms ease 520ms both;
}

.tc-splash-title-wordmark {
  display: block;
  font-size: clamp(1.75rem, 7.4vw, 3.25rem);
  color: #f7f1f4;
  text-shadow:
    0 0 18px rgba(245, 237, 241, 0.12),
    0 0 30px rgba(186, 72, 92, 0.28),
    0 0 40px rgba(0, 0, 0, 0.86);
}

.tc-splash-callword {
  color: #e8a3af;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 4.2vw, 1.42rem);
  font-style: italic;
  letter-spacing: 0.26em;
}

@keyframes tc-splash-rise {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-splash {
    transition: none !important;
  }

  .tc-splash-fallback img {
    transform: none !important;
  }

  .tc-splash-video {
    transform: none !important;
  }

  .tc-splash-studio,
  .tc-splash-title {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}
