/* Artifis cinematic intro — full-screen overlay, lands on static page beneath */
.cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.1s;
  pointer-events: auto;
}
.cinema-overlay.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.artifis-cinema-lock {
  overflow: hidden;
}

.cinema-letterbox::before,
.cinema-letterbox::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11vh;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
}
.cinema-letterbox::after {
  top: auto;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
}

.cinema-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cinema-theme-charcoal .cinema-veil {
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(237, 28, 36, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(26, 26, 26, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%);
}
.cinema-theme-green .cinema-veil {
  background:
    radial-gradient(ellipse 85% 65% at 70% 15%, rgba(0, 166, 81, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(0, 20, 10, 0.4) 0%, rgba(0, 40, 22, 0.75) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.cinema-grain {
  position: absolute;
  inset: -50%;
  z-index: 3;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cinemaGrain 8s steps(6) infinite;
}
@keyframes cinemaGrain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

.cinema-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinema-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.35s cubic-bezier(0.45, 0, 0.15, 1);
  will-change: opacity, transform;
}
.cinema-slide.is-active {
  opacity: 1;
}
.cinema-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translate3d(0, 0, 0);
  filter: saturate(1.05) contrast(1.04);
  animation: cinemaKenBurns 7s ease-in-out infinite alternate;
}
.cinema-slide.is-active img {
  animation-duration: var(--cinema-kb, 7s);
}
@keyframes cinemaKenBurns {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-2.5%, -1.5%, 0); }
}

.cinema-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 24px 20vh;
  pointer-events: none;
}
.cinema-brand {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.cinema-logo {
  width: min(220px, 52vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.cinema-logo.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cinema-lines {
  position: relative;
  flex: 0 0 auto;
  width: min(920px, 100%);
  min-height: 4.25rem;
  margin-top: clamp(2.75rem, 7vh, 4.5rem);
  padding-top: clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cinema-theme-charcoal .cinema-lines {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.cinema-theme-green .cinema-lines {
  border-top-color: rgba(125, 255, 176, 0.22);
}
.cinema-line {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(1.75rem, 4vh, 2.5rem);
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.45rem, 4.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.cinema-line.is-active {
  opacity: 1;
  transform: translateY(0);
}
.cinema-theme-green .cinema-line {
  color: #f4fff8;
  text-shadow: 0 4px 36px rgba(0, 80, 40, 0.8);
}
.cinema-theme-green .cinema-line em {
  font-style: normal;
  color: #7dffb0;
}

.cinema-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  z-index: 6;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.cinema-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3db8e8, #ED1C24);
  transition: width 0.12s linear;
}
.cinema-theme-green .cinema-progress > span {
  background: linear-gradient(90deg, #00A651, #7dffb0);
}

.cinema-skip {
  position: absolute;
  z-index: 7;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font: 600 0.82rem/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.cinema-skip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .cinema-slide img,
  .cinema-grain {
    animation: none !important;
  }
  .cinema-slide,
  .cinema-line,
  .cinema-logo,
  .cinema-overlay {
    transition-duration: 0.01ms !important;
  }
}
