/* Preview-only actor geometry and weld rules; typography/surfaces have another owner. */
[data-cinematic-heading-band].cinematic-crew-band {
  position: relative;
  min-height: 88px;
  padding-block-end: 24px;
  isolation: isolate;
}

/* Only a genuinely narrow heading needs a source-sized lower row. */
[data-cinematic-heading-band].cinematic-crew-band[data-cinematic-crew-placement="below"] {
  min-height: 144px;
  padding-block-end: 84px;
}

[data-cinematic-heading-band] > .cinematic-crew-lane {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  z-index: 4;
}

.cinematic-crew {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.cinematic-crew[hidden] { display: none; }

/* Readable before, during and after JS, including the shared title-reveal lifecycle. */
html [data-cinematic-heading-band] :is(#hero-name, #build-title, #timeline-title, #contact-title)[data-cinematic-crew-heading] {
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

html [data-cinematic-heading-band] :is(#hero-name, #build-title, #timeline-title, #contact-title)[data-cinematic-crew-heading]::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: var(--cinematic-rule-top, calc(100% + 6px));
  bottom: auto;
  width: var(--cinematic-rule-width, 100%);
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, #b79b60, #e8dcc0 42%, #8ed4ce 85%, #30d8f8);
  box-shadow: 0 1px 0 rgb(7 24 30 / 70%);
  transform: scaleX(var(--cinematic-weld-progress, 1));
  transform-origin: left center;
  animation: none !important;
  transition: none;
  pointer-events: none;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-crew { display: none !important; }
  html [data-cinematic-heading-band] :is(#hero-name, #build-title, #timeline-title, #contact-title)[data-cinematic-crew-heading]::after {
    transform: none !important;
  }
}

@media print {
  .cinematic-crew, [data-cinematic-heading-band] > .cinematic-crew-lane { display: none !important; }
}
