/* Hollywood hero loop — climate story over static page */
.hero-cinema-loop {
  background: #000;
}
.hero-cinema-loop:not(.is-playing) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.35s;
}
.hero-cinema-loop.is-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1.15s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0s;
}
.hero-cinema-loop.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-cinema-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 12vh;
  z-index: 6;
  pointer-events: none;
  background: #000;
}
.hero-cinema-bars span:first-child { top: 0; }
.hero-cinema-bars span:last-child { bottom: 0; }

/* ── Climate layers (heatwave / snow) ── */
.hero-climate {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-climate-act {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.75s;
}
.hero-climate-act.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.hero-climate-act.is-leaving {
  opacity: 0;
  visibility: visible;
  transition: opacity 1.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.85s;
}

/* Heatwave / armageddon horizon */
.hero-heatwave-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(255, 80, 0, 0.55), transparent 58%),
    radial-gradient(circle at 72% 18%, rgba(255, 210, 80, 0.45), transparent 32%),
    linear-gradient(180deg, #120508 0%, #4a1208 22%, #c43a10 48%, #ff8c2a 62%, #ffd166 72%, #2a0800 100%);
  animation: heroHeatwavePulse 3.8s ease-in-out infinite alternate;
}
.hero-heatwave-haze {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    rgba(255, 120, 40, 0.04) 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
  animation: heroHeatHaze 2.4s linear infinite;
}
.hero-heatwave-sun {
  position: absolute;
  top: 14%;
  right: 18%;
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #ffb347 35%, rgba(255, 100, 0, 0.4) 70%, transparent 72%);
  box-shadow: 0 0 80px rgba(255, 140, 0, 0.75), 0 0 160px rgba(255, 60, 0, 0.45);
  animation: heroSunPulse 2.2s ease-in-out infinite alternate;
}
.hero-heatwave-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 120, 0.9), rgba(255, 120, 0, 0.95), rgba(255, 220, 120, 0.9), transparent);
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.8), 0 0 120px rgba(255, 80, 0, 0.5);
  animation: heroHorizonFlicker 1.8s ease-in-out infinite alternate;
}
.hero-heatwave-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(20, 5, 0, 0.85) 18%, #0a0300 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 8%, rgba(255, 80, 0, 0.06) 8.5%, transparent 9%);
  clip-path: polygon(0 35%, 8% 28%, 16% 32%, 24% 24%, 34% 30%, 44% 22%, 54% 28%, 64% 20%, 74% 26%, 84% 18%, 92% 24%, 100% 20%, 100% 100%, 0 100%);
}
.hero-heatwave-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 200, 100, 0.12) 50%, transparent 60%);
  animation: heroHeatShimmer 2.8s ease-in-out infinite;
  mix-blend-mode: overlay;
}

@keyframes heroHeatwavePulse {
  0% { filter: brightness(0.92) saturate(1.1); }
  100% { filter: brightness(1.08) saturate(1.35); }
}
@keyframes heroHeatHaze {
  0% { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(-8%); opacity: 0.85; }
}
@keyframes heroSunPulse {
  0% { transform: scale(1); opacity: 0.92; }
  100% { transform: scale(1.06); opacity: 1; }
}
@keyframes heroHorizonFlicker {
  0% { opacity: 0.75; transform: scaleX(0.98); }
  100% { opacity: 1; transform: scaleX(1.02); }
}
@keyframes heroHeatShimmer {
  0%, 100% { transform: translateX(-20%) skewX(-4deg); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateX(20%) skewX(-4deg); }
}

/* Snow — Just Cool It ice sky + aurora (canvas frost layered separately) */
.hero-snow-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(61, 184, 232, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(14, 90, 130, 0.35), transparent 50%),
    linear-gradient(165deg, #031018 0%, #0a2f44 48%, #041825 100%);
}
.hero-snow-aurora {
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(120deg, transparent 30%, rgba(61, 184, 232, 0.12) 48%, transparent 62%),
    linear-gradient(240deg, transparent 35%, rgba(158, 215, 242, 0.08) 52%, transparent 68%);
  animation: heroAuroraDrift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroAuroraDrift {
  from { transform: translateX(-4%) rotate(-2deg); opacity: 0.7; }
  to { transform: translateX(4%) rotate(2deg); opacity: 1; }
}
.hero-snow-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 55% at 50% 100%, rgba(232, 246, 255, 0.18), transparent 52%);
  pointer-events: none;
}

/* Just Cool It frost canvas */
.hero-frost-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-cinema-loop.hero-frost-on .hero-frost-canvas {
  opacity: var(--hero-frost-alpha, 0.85);
}
.hero-cinema-loop.hero-frost-soft .hero-frost-canvas {
  --hero-frost-alpha: 0.58;
}

/* Theme tint on veil during photo acts */
.hero-cinema-veil {
  transition: background 1.6s ease, opacity 1.4s ease;
}
.hero-cinema-loop.hero-theme-cool .hero-cinema-veil {
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(80, 160, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(5, 15, 35, 0.35) 0%, rgba(10, 20, 40, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%);
}
.hero-cinema-loop.hero-theme-warm .hero-cinema-veil {
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0, 166, 81, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(5, 20, 15, 0.35) 0%, rgba(10, 30, 22, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%);
}
.hero-cinema-loop.hero-theme-heatwave .hero-cinema-veil,
.hero-cinema-loop.hero-theme-snow .hero-cinema-veil {
  opacity: 0.15;
}

.hero-cinema-slides {
  z-index: 2;
}
.hero-cinema-slides .hero-cinema-slide {
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-cinema-slides .hero-cinema-slide.is-active {
  opacity: 1;
}
.hero-cinema-slides .hero-cinema-slide img {
  animation: cinemaKenBurns 8s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
  transition: filter 1.2s ease, transform 1.2s ease;
  transform: scale(1.04) translate3d(0, 0, 0);
}
.hero-cinema-loop.hero-theme-cool .hero-cinema-slide.is-active img {
  filter: saturate(1.12) contrast(1.08) brightness(0.94) hue-rotate(-8deg);
}
.hero-cinema-loop.hero-theme-warm .hero-cinema-slide.is-active img {
  filter: saturate(1.06) contrast(1.05) brightness(0.96) hue-rotate(6deg);
}
.hero-cinema-loop.is-playing .hero-cinema-slide.is-active img {
  animation-duration: var(--hero-kb, 5.5s);
}

.hero-cinema-copy {
  z-index: 7;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.hero-cinema-copy .hero-cinema-logo {
  filter: drop-shadow(0 0 24px rgba(61, 184, 232, 0.35)) drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.hero-cinema-loop.hero-theme-heatwave .hero-cinema-logo {
  filter: drop-shadow(0 0 28px rgba(255, 120, 0, 0.45)) drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}
.hero-cinema-loop.hero-act-outro .hero-cinema-logo,
.hero-cinema-loop.is-playing.hero-show-logo .hero-cinema-logo {
  opacity: 1;
  transform: scale(1);
}

.hero-cinema-lines {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.hero-cinema-tag {
  position: relative;
  top: auto;
  margin: 0 0 14px;
  font-family: 'Barlow Semi Condensed', 'Barlow', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9ed7f2;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease, color 0.45s ease;
}
.hero-cinema-tag.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-cinema-loop.hero-theme-heatwave .hero-cinema-tag.is-active {
  color: #ffb86a;
}
.hero-cinema-loop.hero-theme-cool .hero-cinema-tag.is-active,
.hero-cinema-loop.hero-theme-warm .hero-cinema-tag.is-active,
.hero-cinema-loop.hero-act-outro .hero-cinema-tag.is-active {
  color: #ED1C24;
}

.hero-cinema-line {
  position: relative;
  top: auto;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.65);
  min-height: 1.15em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cinema-line.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-cinema-loop.hero-theme-snow .hero-cinema-line.is-active {
  background: linear-gradient(180deg, #ffffff 10%, #9ed7f2 55%, #3db8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.55));
}

.hero-cinema-caption {
  margin: 16px 0 0;
  font-family: 'Lato', 'Montserrat', sans-serif;
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(232, 246, 255, 0.82);
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-cinema-loop.hero-theme-cool .hero-cinema-caption.is-visible,
.hero-cinema-loop.hero-theme-warm .hero-cinema-caption.is-visible {
  color: rgba(255, 255, 255, 0.78);
}
.hero-cinema-loop.is-playing .hero-cinema-caption.is-visible {
  opacity: 1;
}

.hero-cinema-skip {
  position: absolute;
  right: max(16px, 2vw);
  bottom: max(14px, 2vh);
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-cinema-loop.is-playing .hero-cinema-skip {
  opacity: 1;
  pointer-events: auto;
}
.hero-cinema-skip:hover,
.hero-cinema-skip:focus-visible {
  background: rgba(237, 28, 36, 0.35);
  border-color: rgba(237, 28, 36, 0.75);
  outline: none;
}

body.artifis-hero-cinema-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema-loop,
  #artifis-hero-cinema {
    display: none !important;
  }
}
