/* ==========================================================
   HERO — Sigiriya, The Fortress in the Sky
   Full-bleed landing hero. Content is visible on load; a short
   scroll runway drives a gentle settle into the next section.
   ========================================================== */

.cinema-scroll,
.cinema-scroll * {
  box-sizing: border-box;
}

#cinema.cinema-scroll {
  position: relative;
  height: calc(100vh + 420px);
  background: #0b0c0a;
  color: #fdf1e1;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --gold: #c9a24d;
  --gold-soft: #e4c988;
  --sigiriya-scale: 1.06;
  --sigiriya-content-opacity: 1;
  --sigiriya-content-y: 0px;
  --sigiriya-pointer: auto;
}

/* ---------- Sticky Stage ---------- */
.cinema-scroll .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #0b0c0a;
}

/* ==========================================================
   REVEAL LAYER: SIGIRIYA ROCK FORTRESS (BEHIND THE DOORS)
   ========================================================== */
.cinema-scroll .sigiriya-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.cinema-scroll .sigiriya-reveal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(var(--sigiriya-scale, 1.08));
  will-change: transform;
}

.cinema-scroll .sigiriya-reveal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(11, 12, 10, 0.10) 0%, rgba(11, 12, 10, 0.68) 100%),
    linear-gradient(180deg, rgba(11, 12, 10, 0.58) 0%, transparent 28%, rgba(11, 12, 10, 0.84) 100%);
  pointer-events: none;
}

.cinema-scroll .sigiriya-reveal__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  /* Anchored towards the lower third so the rock fortress summit and cliff remain unobstructed */
  padding: 0 6% 96px;
  z-index: 2;
  opacity: var(--sigiriya-content-opacity, 0);
  transform: translate3d(0, var(--sigiriya-content-y, 35px), 0);
  pointer-events: var(--sigiriya-pointer, none);
  will-change: transform, opacity;
}

.cinema-scroll .reveal-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 1px;
}

.cinema-scroll .reveal-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.0vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fdf1e1;
  margin: 0 0 8px;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
}

.cinema-scroll .reveal-desc {
  max-width: 640px;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.45;
  color: #dfd9cc;
  margin: 0 auto 15px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}

.cinema-scroll .reveal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.cinema-scroll .reveal-actions .btn {
  margin: 0 auto;
}

/* Bottom scroll cue */
.cinema-scroll .hero-scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.cinema-scroll .scroll-indicator {
  width: 1px;
  height: 32px;
  background: rgba(244, 239, 228, 0.2);
  position: relative;
  overflow: hidden;
}

.cinema-scroll .scroll-indicator i {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0% { top: -40%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================== */
@media (max-width: 900px) {
  .cinema-scroll .reveal-title { font-size: clamp(2.4rem, 7vw, 3.8rem); }
  .cinema-scroll .reveal-desc { font-size: 0.98rem; }
}

@media (max-width: 600px) {
  .cinema-scroll .sigiriya-reveal__content { padding: 0 6% 96px; }
  .cinema-scroll .reveal-title { font-size: 2.2rem; }
  .cinema-scroll .reveal-desc { font-size: 0.92rem; line-height: 1.55; margin-bottom: 20px; }
  .cinema-scroll .reveal-actions { gap: 12px; }
  .cinema-scroll .reveal-actions .btn { padding: 14px 24px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-scroll .sigiriya-reveal__img,
  .cinema-scroll .sigiriya-reveal__content {
    transition: none !important;
    transform: none !important;
  }
  .cinema-scroll .scroll-indicator i { animation: none; }
}

/* --------------------------------------------------------
   Ghost button on the hero always sits on a dark photograph,
   so it must not follow the light-theme ink tokens (which
   render near-black on a dark image and disappear).
   -------------------------------------------------------- */
.cinema-scroll .reveal-actions .btn--ghost {
  color: #f4efe4;
  border-color: rgba(244, 239, 228, 0.42);
}
.cinema-scroll .reveal-actions .btn--ghost:hover {
  color: #e4c988;
  border-color: #c9a24d;
  background: rgba(201, 162, 77, 0.12);
}
