/* The two masks follow the Czech line breaks, including the separate mobile emphasis. */
.title-mask,
.title-line {
  display: block;
}

.title-mask {
  overflow: clip;
  padding-block: .1em .16em;
  margin-block: -.1em -.16em;
}

.title-line em {
  position: relative;
  isolation: isolate;
}

.title-stroke {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: .035em;
  width: 100%;
  height: .13em;
  color: var(--lime);
  pointer-events: none;
  transform-origin: left center;
}

.film-stage {
  margin-top: clamp(28px, 2.8vw, 46px);
}

.film-stage .showreel {
  margin-top: 0;
}

.film-shelf .reel-video {
  z-index: 2;
  transform-origin: center 92%;
}

.ow-proof-check { display: inline-block; }

@media (max-width: 680px) {
  .film-stage { margin-top: 24px; }
}

@media (max-width: 520px) {
  .opening h1 em {
    display: table;
    margin-inline: auto;
  }
}

/* Enable the extra travel only when the local scroll engine is actually running. */
@media (min-width: 861px) and (min-height: 590px) and (prefers-reduced-motion: no-preference) {
  .film-stage.has-film-motion::after {
    content: "";
    display: block;
    height: clamp(190px, 36svh, 390px);
  }
  .has-film-motion .film-shelf {
    position: sticky;
    top: clamp(135px, 25svh, 250px);
  }
}

@keyframes title-in {
  from { opacity: .35; transform: translateY(.7em); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arrive {
  from { opacity: .22; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes shelf-arrival {
  from { opacity: .25; translate: var(--entry-x, 0px) 16px; scale: .975; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes stroke-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes dash-in {
  from { opacity: .18; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .opening-arrival { --entry-ease: cubic-bezier(.22,.82,.24,1); }
  .opening-arrival .mast-inner {
    animation: arrive 480ms var(--entry-ease) backwards;
  }
  .opening-arrival .offer-time { animation: arrive 550ms var(--entry-ease) 40ms backwards; }
  .opening-arrival .offer-time svg path {
    animation: dash-in 320ms var(--entry-ease) backwards;
  }
  .opening-arrival .offer-time svg path:nth-child(2) { animation-delay: 65ms; }
  .opening-arrival .offer-time svg path:nth-child(3) { animation-delay: 130ms; }
  .opening-arrival .title-line {
    animation: title-in 780ms var(--entry-ease) 85ms backwards;
  }
  .opening-arrival .title-mask:nth-of-type(2) .title-line { animation-delay: 155ms; }
  .opening-arrival .title-stroke { animation: stroke-in 650ms var(--entry-ease) 315ms backwards; }
  .opening-arrival .offer-note { animation: arrive 590ms var(--entry-ease) 220ms backwards; }
  .opening-arrival .offer-actions { animation: arrive 590ms var(--entry-ease) 275ms backwards; }
  .opening-arrival .showreel > :is(.reel-side, .reel-video) {
    animation: shelf-arrival 780ms var(--entry-ease) 325ms backwards;
  }
  .opening-arrival .reel-desktop { --entry-x: clamp(-34px,-2vw,-10px); }
  .opening-arrival .reel-mobile { --entry-x: clamp(10px,2vw,34px); }
  .opening-arrival .showreel > .reel-side { animation-delay: 380ms; }
  .opening-arrival .hero-credentials > * { animation: arrive 610ms var(--entry-ease) 450ms backwards; }

  .film-label .play-chip svg,
  .case-heading i,
  .mast-book span {
    transition: translate 220ms cubic-bezier(.2,.75,.2,1);
  }
  .film-cover:is(:hover, :focus-visible) .play-chip svg { translate: 2px 0; }
  .reel-side:is(:hover, :focus-visible) .case-heading i,
  .mast-book:is(:hover, :focus-visible) span { translate: 2px -2px; }
}

.reading-line { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .reading-line {
      display: block;
      position: fixed;
      z-index: 40;
      inset: 0 0 auto;
      height: 2px;
      pointer-events: none;
      background: linear-gradient(90deg, var(--green), var(--lime));
      transform-origin: left center;
      animation: stroke-in 1s linear both;
      animation-timeline: scroll(root block);
    }
  }
}

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html.section-navigation { scroll-behavior: smooth; }
}
