.stable-cinema {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: visible;
  background: #090a08;
  color: #fff;
}

.cinema-ready .stable-cinema { height: 520svh; }

.stable-cinema-stage {
  position: relative;
  height: 100svh;
  min-height: 35rem;
  overflow: hidden;
  isolation: isolate;
  background: #090a08;
}

.cinema-ready .stable-cinema-stage {
  position: sticky;
  top: 0;
}

.stable-cinema-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #090a08;
}

.stable-cinema-picture,
.stable-cinema-picture img,
.stable-cinema-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.stable-cinema-picture {
  z-index: 1;
  opacity: 1;
  transition: opacity 300ms ease;
}

.stable-cinema-video {
  z-index: 2;
  opacity: 0;
  background: #090a08;
  transition: opacity 300ms ease;
  will-change: opacity;
}

.cinema-video-ready .stable-cinema-picture { opacity: 0; }
.cinema-video-ready .stable-cinema-video { opacity: 1; }

.stable-cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(4, 5, 4, 0.72) 0%, rgba(4, 5, 4, 0.11) 43%, rgba(4, 5, 4, 0.08) 65%, rgba(4, 5, 4, 0.44) 100%), linear-gradient(0deg, rgba(4, 5, 4, 0.78) 0%, transparent 50%, rgba(4, 5, 4, 0.24) 100%);
  pointer-events: none;
}

.stable-cinema-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.stable-cinema-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 9vh, 7rem);
  pointer-events: none;
}

.stable-cinema-beat {
  position: absolute;
  bottom: clamp(3.5rem, 10vh, 7rem);
  width: min(39rem, calc(100% - 3rem));
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition: opacity 500ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.stable-cinema-beat[data-align="left"] { left: clamp(1.5rem, 5vw, 4rem); }
.stable-cinema-beat[data-align="right"] { right: clamp(1.5rem, 5vw, 4rem); }

.stable-cinema-beat.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.stable-cinema-beat h1,
.stable-cinema-beat h2,
.stable-cinema-heading {
  margin: 0 0 0.85rem;
  max-width: 12em;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 350;
  font-variation-settings: 'opsz' 72;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0.12rem 1.2rem rgba(0, 0, 0, 0.62);
}

.stable-cinema-beat p:not(.stable-cinema-eyebrow) {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.5;
  text-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.78);
}

.stable-cinema-eyebrow {
  margin: 0 0 0.8rem;
  color: #d8b473;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.7);
}

.stable-cinema-button {
  display: inline-flex;
  align-items: center;
  margin-top: 1.45rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(20, 28, 21, 0.68);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(0.7rem);
  transition: background 180ms ease, border-color 180ms ease;
}

.stable-cinema-button:hover {
  border-color: #fff;
  background: rgba(20, 28, 21, 0.88);
}

.stable-cinema-skip {
  position: absolute;
  top: clamp(5.4rem, 10vh, 7rem);
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 6;
  padding: 0.35rem 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 0.1rem 0.6rem #000;
}

.stable-cinema-skip:hover { color: #fff; }

.stable-cinema-scroll {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(2rem, 5vh, 3.5rem);
  z-index: 6;
  margin: 0;
  padding-right: 2.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0.1rem 0.6rem #000;
  transition: opacity 300ms ease;
}

.stable-cinema-scroll::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  transform-origin: right center;
  animation: cinema-scroll-line 1.8s ease-in-out infinite;
}

.stable-cinema[data-cinema-started="true"] .stable-cinema-scroll { opacity: 0; }

@keyframes cinema-scroll-line {
  0%, 100% { transform: scaleX(0.4); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.stable-cinema-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  height: 0.18rem;
  background: rgba(255, 255, 255, 0.16);
  transform: translateZ(0);
}

.stable-cinema-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #d8b473;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

nav.cinematic-nav,
nav.cinematic-nav.scrolled {
  padding: 1.5rem 4vw;
  background: linear-gradient(180deg, rgba(4, 5, 4, 0.66), transparent);
  box-shadow: none;
  backdrop-filter: none;
}

nav.cinematic-nav .nav-logo,
nav.cinematic-nav .nav-links a:not(.nav-cta) {
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.78);
}

nav.cinematic-nav .nav-logo em { color: #d8b473; }

nav.cinematic-nav .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(29, 44, 34, 0.72);
  color: #fff;
  backdrop-filter: blur(0.7rem);
}

#na-de-stal,
#after-stable { scroll-margin-top: 5rem; }

@media (max-width: 700px) {
  .cinema-ready .stable-cinema { height: 480svh; }
  .stable-cinema-stage { min-height: 31rem; }
  .stable-cinema-vignette { background: linear-gradient(0deg, rgba(4, 5, 4, 0.9) 0%, rgba(4, 5, 4, 0.05) 61%, rgba(4, 5, 4, 0.3) 100%); }
  .stable-cinema-beat,
  .stable-cinema-beat[data-align="left"],
  .stable-cinema-beat[data-align="right"] { right: auto; left: 1.5rem; bottom: clamp(3.2rem, 8vh, 5rem); width: calc(100% - 3rem); }
  .stable-cinema-beat h1, .stable-cinema-beat h2, .stable-cinema-heading { max-width: 9.5em; font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .stable-cinema-skip { top: 5.2rem; }
  .stable-cinema-scroll { right: 1rem; bottom: 1.4rem; padding-right: 0; font-size: 0.64rem; }
  .stable-cinema-scroll::after { display: none; }
  nav.cinematic-nav, nav.cinematic-nav.scrolled { padding: 1rem 4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-ready .stable-cinema { height: auto; }
  .cinema-ready .stable-cinema-stage { position: relative; top: auto; }
  .stable-cinema-video { display: none; }
  .stable-cinema-picture { opacity: 1; }
  .stable-cinema-beat { transition: none; }
  .stable-cinema-progress, .stable-cinema-scroll { display: none; }
}
