/* Bethlehem Artworks — Progressive 3-Segment Chapter Rail, Corner Marks & Film Dialog */

.cinematic-scroll-hero .hero-frame-lines {
  pointer-events: none;
  position: absolute;
  z-index: 3;
  inset: calc(var(--header-h) + 4px) clamp(12px, 1.5vw, 26px) clamp(10px, 1.4vh, 22px);
}

.hero-frame-lines span {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.45;
  border: 1px solid var(--gold);
}

.hero-frame-lines span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame-lines span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame-lines span:nth-child(3) { bottom: 0; left: 0; border-top: 0; border-right: 0; }
.hero-frame-lines span:nth-child(4) { bottom: 0; right: 0; border-top: 0; border-left: 0; }

/* 3-Segment Progressive Chapter Timeline */
.cinematic-scroll-hero .hero-act-nav {
  grid-area: nav;
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.hero-act-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(244, 239, 228, 0.72);
  border: 0;
  border-bottom: 1px solid rgba(248, 236, 213, 0.25);
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.25rem 0.65rem 0;
  min-width: 78px;
  min-height: 44px;
  white-space: nowrap;
  transition: color var(--fast) ease, border-color var(--fast) ease;
}

.hero-act-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold-bright);
  transform-origin: left center;
  transform: scaleX(0);
}

.hero-act-button[data-target-act="1"]::after {
  transform: scaleX(var(--act-1-p, 1));
}

.hero-act-button[data-target-act="2"]::after {
  transform: scaleX(var(--act-2-p, 0));
}

.hero-act-button[data-target-act="3"]::after {
  transform: scaleX(var(--act-3-p, 0));
}

.cinematic-scroll-hero.is-reduced-motion .hero-act-button::after {
  transform: scaleX(0);
  transition: transform 240ms var(--curve);
}

.cinematic-scroll-hero.is-reduced-motion .hero-act-button[aria-current="true"]::after {
  transform: scaleX(1);
}

.hero-act-button > span:first-child {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hero-act-button[aria-current="true"],
.hero-act-button:hover,
.hero-act-button:focus-visible {
  color: #ffffff;
}

.cinematic-scroll-hero .scroll-hero-phase {
  grid-area: phase;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  white-space: nowrap;
}

.cinematic-scroll-hero .phase-index {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cinematic-scroll-hero .phase-text {
  font-family: var(--display);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-style: italic;
  color: #f8f3e8;
}

.cinematic-scroll-hero .hero-interactions {
  grid-area: watch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.hero-watch-film {
  border: 1px solid rgba(240, 215, 172, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(11, 24, 16, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  text-align: left;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  min-width: 228px;
  min-height: 48px;
  transition: transform 240ms var(--curve), background var(--fast) ease, border-color var(--fast) ease;
}

.hero-watch-film:hover,
.hero-watch-film:focus-visible {
  color: #ffffff;
  background: rgba(20, 41, 28, 0.92);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-watch-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.78rem;
  padding-left: 2px;
  flex: none;
  transition: background var(--fast) ease, color var(--fast) ease;
}

.hero-watch-film:hover .hero-watch-icon {
  background: var(--gold);
  color: var(--obsidian);
}

.hero-watch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-watch-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-watch-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(248, 243, 232, 0.76);
}

.cinematic-scroll-hero .scroll-hero-progress {
  grid-area: progress;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: #efe8d8;
  font-weight: 700;
  white-space: nowrap;
}

.cinematic-scroll-hero .scroll-hero-track {
  display: block;
  width: clamp(86px, 10vw, 160px);
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.cinematic-scroll-hero .scroll-hero-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fff0cb);
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left center;
}

.cinematic-scroll-hero .scroll-hero-percent {
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
  color: var(--gold-bright);
}

.cinematic-scroll-hero.is-reduced-motion .scroll-hero-progress {
  display: none;
}

.cinematic-scroll-hero.is-reduced-motion .scroll-hero-stage {
  position: relative;
  height: auto;
  min-height: min(740px, 92svh);
}

.cinematic-scroll-hero.is-reduced-motion {
  height: auto !important;
  min-height: min(740px, 92svh);
}

.cinematic-scroll-hero.is-reduced-motion .scroll-hero-video {
  display: none !important;
}

.cinematic-scroll-hero.is-reduced-motion .scroll-hero-poster {
  transform: none !important;
}

.cinematic-scroll-hero.is-reduced-motion .scroll-hero-chapter {
  clip-path: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-scroll-hero .scroll-hero-progress {
    display: none;
  }
  .hero-watch-film {
    transition: none;
  }
}

.heritage-film-dialog {
  width: min(1080px, 95vw);
  max-width: 95vw;
  max-height: 95dvh;
  padding: clamp(16px, 2.8vw, 34px);
  background: var(--obsidian);
  border: 1px solid rgba(223, 190, 136, 0.45);
  color: #f8f3e8;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.72);
}

.heritage-film-dialog::backdrop {
  background: rgba(3, 10, 6, 0.9);
  backdrop-filter: blur(8px);
}

.heritage-film-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(12px, 1.8vw, 22px);
}

.heritage-film-top h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0.25rem 0 0;
}

.heritage-film-top h2 em {
  color: var(--gold-bright);
}

.film-modal-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
}

.heritage-film-close {
  border: 1px solid rgba(248, 243, 232, 0.36);
  color: #f8f3e8;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.6em 1em;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.heritage-film-close:hover {
  color: var(--obsidian);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.heritage-film-dialog :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

.heritage-film-player {
  display: block;
  background: #060f0a;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 60dvh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.heritage-film-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 1rem;
}

.heritage-film-chapter {
  border: 1px solid rgba(223, 190, 136, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: #e6decb;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: border-color var(--fast) ease, background var(--fast) ease, color var(--fast) ease;
}

.heritage-film-chapter small {
  font-size: 0.64rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.heritage-film-chapter:hover,
.heritage-film-chapter[aria-current="true"] {
  border-color: var(--gold);
  background: rgba(223, 190, 136, 0.14);
  color: #ffffff;
}

.heritage-film-note {
  font-size: 0.76rem;
  color: rgba(246, 241, 228, 0.7);
  margin: 0.9rem 0 0;
}

@media (max-width: 900px) and (min-width: 761px) {
  .cinematic-scroll-hero .hero-act-nav {
    gap: 0.8rem;
    flex-wrap: nowrap;
  }
  .hero-act-button {
    min-width: 0;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 760px) {
  .cinematic-scroll-hero .hero-frame-lines {
    inset: calc(var(--header-h) + 2px) 10px 8px;
  }
  .hero-frame-lines span {
    width: 14px;
    height: 14px;
  }
  .cinematic-scroll-hero .hero-interactions {
    align-items: flex-start;
  }
  .hero-watch-film {
    min-width: 0;
    padding: 0.45rem 0.95rem 0.45rem 0.5rem;
    min-height: 44px;
  }
  .hero-watch-icon {
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }
  .hero-watch-copy strong {
    font-size: 0.76rem;
  }
  .hero-watch-copy small {
    display: none;
  }
  .cinematic-scroll-hero .hero-act-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }
  .hero-act-button {
    min-width: 0;
    justify-content: center;
    font-size: 0.59rem;
    padding: 0.45rem 0.2rem;
    min-height: 40px;
  }
  .cinematic-scroll-hero .scroll-hero-progress {
    width: 100%;
    justify-content: space-between;
    font-size: 0.56rem;
  }
  .cinematic-scroll-hero .scroll-hero-track {
    flex: 1;
    min-width: 40px;
  }
  .heritage-film-dialog {
    padding: 14px;
  }
  .heritage-film-close span {
    display: none;
  }
  .heritage-film-footer {
    grid-template-columns: 1fr;
  }
}
