.hero.cover { container: cover / inline-size; background: var(--coal); color: var(--white); }
.cover-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050505;
}
/* Dissolve the film and its raster together into the gallery background. */
.cover-visual .signal-stage {
  mask-image: linear-gradient(to bottom, black 79%, #000d 87%, #0005 96%, transparent);
}
.cover-visual .signal-stage::after {
  content: "";
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #050505fa 0%, #050505eb 23%, #050505b3 37%, #05050524 57%, transparent 72%),
    linear-gradient(0deg, #05050599, transparent 17%);
}
.cover-visual > .film-pause { position: absolute; z-index: 3; top: clamp(5.4rem,10svh,7.5rem); right: max(var(--gutter), calc((100% - 80rem)/2)); }
.film-pause {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #ffffff4d; background: #111111c7; color: white; cursor: pointer;
}
.film-pause i { display: block; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.film-pause[data-playing="false"] i { border: 0; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.film-pause:hover { background: #292929; }
.cover-layout {
  position: relative; z-index: 1;
  min-height: max(36rem, 100svh);
  display: grid; align-content: center; padding-block: clamp(5rem, 7vw, 8rem);
}
.cover-copy { width: min(56%, 47rem); min-width: 0; container-type: inline-size; --hero-fit: 8.65cqi; }
.cover-copy:lang(ru) { --hero-fit: 7.8cqi; }
.cover-copy:lang(en) {
  --title-room: min(3rem, calc(var(--gutter) - 2px));
  box-sizing: content-box; padding-inline-end: var(--title-room);
}
.cover-copy:lang(en) #hero-title { width: calc(100% + var(--title-room)); text-wrap: balance; }
@container cover (width >= 46em) {
  .cover-copy:lang(en) { --hero-fit: 7.15cqi; }
}
.cover #hero-title {
  margin: 0 0 clamp(1.3rem, 2.1vw, 2.2rem);
  font-family: var(--display); font-weight: 700;
  font-size: min(clamp(3.2rem, 6.15vw, 6.8rem), var(--hero-fit)); line-height: .97;
  text-transform: uppercase; letter-spacing: -.012em; overflow-wrap: anywhere; text-wrap: initial;
}
.cover #hero-title .type-accent {
  display: block; width: fit-content; max-width: 100%; color: var(--white);
  letter-spacing: .01em;
}
.cover .cover-lead {
  max-width: 25em; color: #dedede;
  font-size: clamp(1rem, 1.24vw, 1.19rem); line-height: 1.52;
}
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(1rem, 2vw, 1.7rem); margin-top: clamp(1.4rem, 2.2vw, 2.25rem); }
.cover-actions a { gap: 1.3rem; }
@container cover (width < 57em) {
  .cover-layout { min-height: max(32rem, 100svh); }
  .cover-copy { width: 57%; }
  .cover #hero-title { font-size: min(clamp(2.7rem, 6.5vw, 4rem), var(--hero-fit)); }
}
@container cover (width < 46em) {
  .cover-visual { --portrait-lead-in: clamp(15rem, 38svh, 29rem); }
  .cover-visual .signal-stage {
    --camera-x: .46; --camera-y: .48;
    inset: 0; height: 100%;
  }
  .cover-visual .signal-stage::after {
    background: linear-gradient(0deg, #050505f5 0%, #070707e0 23%, #080808c2 39%, #08080852 52%, transparent 68%);
  }
  .cover-layout { min-height: 100svh; align-content: end; padding-top: var(--portrait-lead-in); padding-bottom: clamp(2.3rem, 7svh, 4.4rem); }
  .cover-copy { width: 100%; }
  .cover #hero-title { font-size: min(clamp(2.18rem, 7.8vw, 3.5rem), var(--hero-fit)); margin-bottom: 1.05rem; line-height: 1; }
  .cover .cover-lead { max-width: 32em; }
  .cover-actions { margin-top: 1.15rem; }
  .cover-visual > .film-pause { top: max(4.5rem, calc(env(safe-area-inset-top) + 4rem)); }
}
@media (orientation: portrait) and (max-height: 44rem) and (max-width: 28rem) {
  .cover-visual { --portrait-lead-in: calc(var(--sticky-offset, var(--header-height)) + 1.75rem); }
}
@media (orientation: portrait) and (max-height: 34rem) and (max-width: 28rem) {
  .cover-layout { padding-bottom: 1rem; }
  .cover #hero-title { margin-bottom: .65rem; }
  .cover .cover-lead { line-height: 1.38; }
  .cover-actions { margin-top: .45rem; row-gap: 0; }
}

@media (orientation: landscape) and (max-height: 34rem) and (min-width: 30rem) {
  .cover-layout {
    min-height: 100svh; align-content: center;
    padding-block: max(3.9rem, calc(env(safe-area-inset-top) + 3.5rem)) 1.1rem;
  }
  .cover-copy { width: min(76%, 43rem); }
  .cover #hero-title { font-size: min(clamp(2rem, 4.1vw, 3.6rem), var(--hero-fit)); margin-bottom: .55rem; }
  .cover .cover-lead { font-size: .93rem; line-height: 1.35; max-width: 32em; }
  .cover-actions { margin-top: .7rem; }
  .cover-actions .btn { min-height: 44px; padding: .5rem 1rem; }
  .cover-visual > .film-pause { top: calc(var(--sticky-offset, calc(var(--header-height) + env(safe-area-inset-top))) + .5rem); }
  .cover-visual .signal-stage::after {
    background: linear-gradient(90deg, #050505f5 0%, #050505e6 33%, #050505c2 55%, #05050550 67%, transparent 78%);
  }
}

@media (orientation: landscape) and (max-height: 24rem) and (min-width: 30rem) and (max-width: 43rem) {
  .cover-copy { width: 90%; }
  .cover #hero-title { font-size: clamp(1.6rem, 4.85vw, 1.9rem); }
  .cover:lang(en) .cover-visual > .film-pause { right: max(.75rem, env(safe-area-inset-right)); }
}

.film-credits { flex-basis: 100%; color: var(--muted); font: .8rem/1.55 var(--mono); }
.film-credits summary { width: fit-content; padding-block: .65rem; }
.film-credits ul { padding-block: .25rem; }
.film-credits a { text-decoration: underline; text-underline-offset: .2em; }
.film-credits li + li { margin-top: .3em; }
@media screen and (prefers-reduced-motion: no-preference) {
  .scroll-scenes-ready .header-inner { animation: nav-arrive .48s var(--motion-ease) backwards; }
  .scroll-scenes-ready .cover #hero-title { animation: title-arrive .72s var(--motion-ease) backwards; }
  .scroll-scenes-ready .cover-lead { animation: panel-arrive .55s var(--motion-ease) .08s backwards; }
  .scroll-scenes-ready .cover-actions { animation: panel-arrive .55s var(--motion-ease) .15s backwards; }
  @keyframes nav-arrive {
    from { opacity: .78; translate: 0 -.45rem; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes title-arrive {
    from { opacity: .68; translate: 0 .22em; clip-path: inset(-.16em -.16em .38em); }
    to { opacity: 1; translate: 0 0; clip-path: inset(-.16em); }
  }
}
