/* The film invitation stays quiet until the visitor brings it to life. */
.fusion-hero .hero-bottom {
  justify-content: center;
  border-top-color: rgba(243, 245, 234, .14);
}
.fusion-hero #film-open {
  position: relative;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 52px;
  max-width: 100%;
  margin: 0;
  padding: 12px 20px;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #b5bbb0;
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .005em;
  text-align: center;
  text-shadow: 0 1px 10px #080b08;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.fusion-hero #film-open:hover,
.fusion-hero #film-open:focus-visible {
  background: transparent;
  border-color: transparent;
  color: #edf3d7;
}
.fusion-hero #film-open:focus-visible {
  outline: 2px solid #cfe95a;
  outline-offset: 4px;
}
/* Owner 01/11: scrolling writes the phrase over its typed letters, on its way to the place above the film screen.
   The pen's place arrives as --pen (0 to 1); the band below stays clear of the phrase at both ends. */
.fusion-hero #film-open {
  width: auto;
  min-height: 0;
  padding: 0 12px;
  color: #dfe2d9;
}
.fusion-hero .film-open-phrase {
  position: relative;
  display: block;
  padding: 8px 0 10px;
}
.fusion-hero .film-open-text {
  display: block;
  font-size: clamp(17px, 5.6vw, 24px);
  letter-spacing: -.012em;
  line-height: 1.25;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--pen, 0) * 116% - 16%), #000 calc(var(--pen, 0) * 116%));
  mask-image: linear-gradient(90deg, transparent calc(var(--pen, 0) * 116% - 16%), #000 calc(var(--pen, 0) * 116%));
}
.nivra-film-script {
  position: fixed;
  z-index: 24;
  pointer-events: none;
  opacity: 0;
  color: #d5ec82;
  filter: drop-shadow(0 1px 7px #10150c);
  transition: opacity .14s ease;
  transform: translate(-50%, -50%);
}
.nivra-film-script[data-active="true"] { opacity: 1; }
.nivra-film-script--scroll {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transition: none;
}
.nivra-film-script svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nivra-film-script path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.nivra-film-script .film-script-underline {
  stroke-width: 1.25;
  opacity: .85;
}
/* Keep the original pen drawings inside stage labels, with room for two lines.
   Regular text stays accessible; chosen stages keep their ink until another choice. */
.project-journey .project-tab-label {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 32px;
  width: 100%;
  line-height: 1.45;
}
.project-journey .project-tab-label[data-script-lines] { min-height: 54px; }
.project-journey [role="tab"][data-script-active="true"] .project-tab-label { color: transparent; }
.project-journey .nivra-film-script--stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #d5ec82;
  filter: none;
}
@media (max-width: 600px) {
  .fusion-hero #film-open { min-height: 52px; font-size: 13px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fusion-hero #film-open, .nivra-film-script { transition: none; }
}

/* B24 (owner 26/10): the demo's Estudio / Cliente switch writes its label like the five stages. */
[data-script-tabs] .script-tab-label { position: relative; display: grid; align-content: center; min-height: 32px; line-height: 1.45; }
[data-script-tabs] [role="tab"][data-script-active="true"] .script-tab-label { color: transparent; }
[data-script-tabs] .nivra-film-script--stage { position: absolute; z-index: 1; top: 50%; left: 0; transform: translateY(-50%); color: #d5ec82; filter: none; }
[data-script-tabs] [role="tab"][aria-selected="true"] .nivra-film-script--stage { color: #16181b; }
