/* Bethlehem Artworks — Scroll-Directed Three-Act Heritage Film
   Works seamlessly beneath the fixed transparent-to-compact global header. */

.page-home .hero.cinematic-scroll-hero {
  display: block;
  position: relative;
  isolation: isolate;
  width: calc(100% + 2 * var(--edge));
  margin: 0 calc(-1 * var(--edge));
  padding: 0;
  height: 320svh;
  min-height: 0;
  background: var(--obsidian);
  color: #f8f3e8;
  overflow: clip;
}

.cinematic-scroll-hero .scroll-hero-stage {
  width: 100%;
  height: 100svh;
  min-height: 620px;
  position: sticky;
  top: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 1.5vh, 22px);
  padding: calc(var(--header-h) + clamp(8px, 1.4vh, 18px)) var(--edge) clamp(18px, 2.4vh, 32px);
  overflow: hidden;
  --act-slide: clamp(22px, 4vw, 56px);
}

.cinematic-scroll-hero .scroll-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0d1d14;
}

.cinematic-scroll-hero .scroll-hero-poster,
.cinematic-scroll-hero .scroll-hero-video {
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(var(--hero-scale, 1.03));
  transform-origin: 62% 50%;
  will-change: transform;
}

.cinematic-scroll-hero .scroll-hero-poster {
  filter: saturate(0.9) contrast(1.06);
}

.cinematic-scroll-hero .scroll-hero-video {
  opacity: 0;
  transition: opacity 280ms ease;
  filter: saturate(0.92) contrast(1.08);
}

.cinematic-scroll-hero.is-video-ready .scroll-hero-video {
  opacity: 1;
}

.cinematic-scroll-hero .scroll-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 420ms var(--curve);
  background:
    linear-gradient(90deg, rgba(6, 17, 11, 0.92) 0%, rgba(6, 17, 11, 0.76) 28%, rgba(6, 17, 11, 0.34) 54%, rgba(6, 17, 11, 0.05) 82%),
    linear-gradient(0deg, rgba(6, 15, 10, 0.84) 0%, transparent 28%, transparent 74%, rgba(6, 15, 10, 0.56) 100%);
}

.cinematic-scroll-hero[data-act="2"] .scroll-hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 18, 12, 0.89) 0%, rgba(8, 18, 12, 0.68) 31%, rgba(8, 18, 12, 0.14) 68%, rgba(8, 18, 12, 0.04) 100%),
    linear-gradient(0deg, rgba(6, 15, 10, 0.78) 0%, transparent 32%, transparent 74%, rgba(6, 15, 10, 0.44) 100%);
}

.cinematic-scroll-hero[data-act="3"] .scroll-hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 17, 11, 0.88) 0%, rgba(6, 17, 11, 0.62) 30%, rgba(6, 17, 11, 0.10) 64%, rgba(6, 17, 11, 0.03) 100%),
    linear-gradient(0deg, rgba(6, 15, 10, 0.82) 0%, transparent 34%, transparent 74%, rgba(6, 15, 10, 0.45) 100%);
}

.cinematic-scroll-hero .scroll-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: soft-light;
}

.cinematic-scroll-hero .scroll-hero-topline {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(240, 215, 172, 0.34);
  padding-top: 0.85rem;
}

.cinematic-scroll-hero .scroll-hero-label {
  color: #efe4ce;
  font-size: clamp(0.62rem, 0.72vw, 0.74rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.cinematic-scroll-hero .hero-art-note {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 234, 216, 0.78);
  white-space: nowrap;
}

.cinematic-scroll-hero .scroll-hero-chapters {
  position: relative;
  z-index: 4;
  display: grid;
  align-items: center;
  min-height: 0;
}

.cinematic-scroll-hero .scroll-hero-chapter {
  grid-area: 1 / 1;
  max-width: min(580px, 48vw);
  width: 100%;
  margin: 0;
  padding: 0.4rem 0;
  will-change: clip-path, transform;
}

.cinematic-scroll-hero .scroll-hero-chapter-1 {
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

.cinematic-scroll-hero .scroll-hero-chapter-2,
.cinematic-scroll-hero .scroll-hero-chapter-3 {
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
  transform: translate3d(var(--act-slide), 0, 0);
}

.cinematic-scroll-hero .scroll-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--gold-bright);
  font-size: clamp(0.66rem, 0.78vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: clamp(14px, 2vh, 24px);
}

.cinematic-scroll-hero .scroll-hero-kicker-rule {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.page-home .cinematic-scroll-hero h1,
.page-home .cinematic-scroll-hero .scroll-hero-giant {
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.5vw, 6.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #faf6ed;
  margin: 0 0 clamp(14px, 2vh, 24px);
  max-width: 10.5ch;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(3, 12, 6, 0.35);
}

.page-home .cinematic-scroll-hero h1 em,
.page-home .cinematic-scroll-hero .scroll-hero-giant em {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 400;
}

.page-home .cinematic-scroll-hero .lead,
.cinematic-scroll-hero .scroll-hero-description {
  max-width: 42ch;
  color: #e4e9dc;
  font-size: clamp(0.96rem, 1.15vw, 1.18rem);
  line-height: 1.68;
  margin: 0;
}

.cinematic-scroll-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: clamp(18px, 2.6vh, 32px);
}

.cinematic-scroll-hero .action.primary {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  padding: 0.92em 1.45em;
}

.cinematic-scroll-hero .action.primary:hover,
.cinematic-scroll-hero .action.primary:focus-visible {
  background: #ffffff;
  color: var(--obsidian);
  border-color: #ffffff;
}

.cinematic-scroll-hero .action.scroll-hero-secondary {
  color: #f8f3e8;
  border: 1px solid rgba(240, 215, 172, 0.58);
  padding: 0.92em 1.45em;
  background: rgba(13, 27, 19, 0.32);
  backdrop-filter: blur(6px);
}

.cinematic-scroll-hero .action.scroll-hero-secondary:hover,
.cinematic-scroll-hero .action.scroll-hero-secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}

.cinematic-scroll-hero :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

.cinematic-scroll-hero .scroll-hero-dock {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "nav watch"
    "phase progress";
  align-items: end;
  gap: 0.9rem 2rem;
  border-bottom: 1px solid rgba(240, 215, 172, 0.34);
  padding-bottom: 0.9rem;
}

@media (max-width: 1120px) {
  .page-home .hero.cinematic-scroll-hero {
    height: 250svh;
  }
  .cinematic-scroll-hero .scroll-hero-chapter {
    max-width: min(560px, 68vw);
  }
}

@media (max-width: 760px) {
  .page-home .hero.cinematic-scroll-hero {
    height: 230svh;
  }
  .cinematic-scroll-hero .scroll-hero-stage {
    min-height: 540px;
    padding: calc(var(--header-h) + 6px) var(--edge) 16px;
    gap: 8px;
  }
  .cinematic-scroll-hero .scroll-hero-poster,
  .cinematic-scroll-hero .scroll-hero-video {
    object-position: 50% center;
  }
  .cinematic-scroll-hero .scroll-hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 11, 0.88) 0%, rgba(6, 17, 11, 0.68) 44%, rgba(6, 17, 11, 0.62) 72%, rgba(6, 17, 11, 0.90) 100%),
      linear-gradient(90deg, rgba(6, 17, 11, 0.38), transparent);
  }
  .cinematic-scroll-hero[data-act="2"] .scroll-hero-shade,
  .cinematic-scroll-hero[data-act="3"] .scroll-hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 11, 0.78) 0%, rgba(6, 17, 11, 0.56) 44%, rgba(6, 17, 11, 0.68) 76%, rgba(6, 17, 11, 0.92) 100%);
  }
  .cinematic-scroll-hero .scroll-hero-topline {
    padding-top: 0.55rem;
    gap: 0.25rem 0.75rem;
    flex-wrap: wrap;
  }
  .cinematic-scroll-hero .scroll-hero-label {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }
  .cinematic-scroll-hero .hero-art-note {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }
  .cinematic-scroll-hero .scroll-hero-chapter {
    max-width: 100%;
  }
  .page-home .cinematic-scroll-hero h1,
  .page-home .cinematic-scroll-hero .scroll-hero-giant {
    font-size: clamp(2.5rem, 10.8vw, 4rem);
    max-width: 11ch;
    margin-bottom: 0.65rem;
  }
  .page-home .cinematic-scroll-hero .lead,
  .cinematic-scroll-hero .scroll-hero-description {
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 34ch;
  }
  .cinematic-scroll-hero .actions {
    gap: 0.65rem;
    margin-top: 1rem;
  }
  .cinematic-scroll-hero .action.primary,
  .cinematic-scroll-hero .action.scroll-hero-secondary {
    font-size: 0.77rem;
    padding: 0.8em 1.1em;
    min-height: 44px;
  }
  .cinematic-scroll-hero .scroll-hero-dock {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "watch"
      "nav"
      "phase"
      "progress";
    gap: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

@media (max-height: 670px) and (min-width: 761px) {
  .cinematic-scroll-hero .scroll-hero-stage {
    min-height: 0;
  }
  .page-home .cinematic-scroll-hero h1,
  .page-home .cinematic-scroll-hero .scroll-hero-giant {
    font-size: clamp(2.5rem, 4.8vw, 4.4rem);
    margin-bottom: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero.cinematic-scroll-hero {
    height: auto !important;
    min-height: min(740px, 92svh);
  }
  .cinematic-scroll-hero .scroll-hero-stage {
    position: relative;
    height: auto;
    min-height: min(740px, 92svh);
  }
  .cinematic-scroll-hero .scroll-hero-video {
    display: none !important;
  }
  .cinematic-scroll-hero .scroll-hero-poster {
    transform: none !important;
  }
  .cinematic-scroll-hero .scroll-hero-chapter {
    clip-path: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-data: reduce) {
  .cinematic-scroll-hero .scroll-hero-video {
    display: none !important;
  }
}
