.cinema {
  position: relative;
  background: #000;
  color: #f4f4f0;
}

.cinema__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.cinema__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  z-index: 0;
  /* pełny ekran — bez rozmycia z CSS scale */
  image-rendering: auto;
  transform: translateZ(0);
}

.cinema__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.55) 100%);
}

.cinema__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 4.5rem;
  display: grid;
  align-items: center;
  pointer-events: none;
}

.cinema__top-inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

.cinema__top .brand-mark {
  justify-self: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f4f4f0;
}

.cinema__top .brand-mark span {
  color: var(--accent);
}

.cinema__nav-left,
.cinema__nav-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.86rem;
  color: rgba(244, 244, 240, 0.62);
}

.cinema__nav-left {
  justify-content: flex-start;
}

.cinema__nav-right {
  justify-content: flex-end;
}

.cinema__nav-left a:hover,
.cinema__nav-right a:hover {
  color: #fff;
}

.cinema__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #12150e;
  font-weight: 700;
  font-size: 0.86rem;
}

.cinema__cta:hover {
  filter: brightness(1.05);
}

.cinema__copy {
  position: absolute;
  z-index: 3;
  left: max(1.25rem, calc((100% - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 420px);
  min-height: 16rem;
}

.scene-text {
  position: relative;
  width: 100%;
  will-change: transform, opacity, filter;
}

.scene-text .eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.scene-text h2 {
  margin: 0;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 10ch;
  text-wrap: balance;
}

.scene-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.scene-text p {
  margin: 1rem 0 0;
  max-width: 32ch;
  color: rgba(244, 244, 240, 0.72);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.6;
}

.scene-text__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.scene-text__list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.65rem;
  color: rgba(244, 244, 240, 0.7);
  font-size: 0.95rem;
}

.scene-text__list b {
  display: block;
  color: #fff;
  font-weight: 650;
  margin-bottom: 0.1rem;
}

.scene-text__list span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.cinema__counter {
  position: absolute;
  left: max(1.25rem, calc((100% - 1180px) / 2));
  bottom: 1.5rem;
  z-index: 4;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 240, 0.4);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.cinema__hint {
  position: absolute;
  right: max(1.25rem, calc((100% - 1180px) / 2));
  bottom: 1.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 240, 0.4);
  pointer-events: none;
}

.cinema__hint i {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  display: block;
  animation: hint 2.2s var(--ease) infinite;
}

@keyframes hint {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* długi scrub = gęste klatki wideo; tekstów tylko kilka */
.cinema__scrub {
  height: 900vh;
}

@media (max-width: 900px) {
  .cinema__pin {
    height: 100svh;
    height: 100dvh;
  }

  .cinema__nav-left,
  .cinema__nav-right a:not(.cinema__cta) {
    display: none;
  }

  .cinema__top {
    height: auto;
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0 0.55rem;
  }

  .cinema__top-inner {
    width: min(100% - 1.25rem, 1180px);
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
  }

  .cinema__top .brand-mark {
    justify-self: start;
    font-size: 0.98rem;
  }

  .cinema__nav-right {
    justify-self: end;
  }

  .cinema__cta {
    min-height: 2.2rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .cinema__copy {
    left: 1rem;
    right: 1rem;
    width: auto;
    top: auto;
    bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    min-height: 0;
    max-width: none;
  }

  .scene-text .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
  }

  .scene-text h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    line-height: 1.05;
  }

  .scene-text p {
    margin-top: 0.7rem;
    max-width: 36ch;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .cinema__veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.88) 100%);
  }

  .cinema__hint {
    display: none;
  }

  .cinema__counter {
    left: 1rem;
    right: auto;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .cinema__scrub {
    height: 900vh;
  }
}

@media (max-width: 560px) {
  .cinema__copy {
    bottom: calc(3.1rem + env(safe-area-inset-bottom, 0px));
  }

  .scene-text h2 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
    max-width: 13ch;
  }

  .scene-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .scene-text h2 {
    font-size: clamp(1.7rem, 7vh, 2.2rem);
  }

  .scene-text p {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .cinema__copy {
    bottom: calc(2.7rem + env(safe-area-inset-bottom, 0px));
  }
}