/* Cinematic Overhaul Layout */

.cinematic-scroll {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-alt) !important;
  color: var(--fg);
  padding: 40px 0;
  transition: background-color 0.4s ease, color 0.4s ease;
  width: 100%;
}

@media (min-width: 900px) {
  .cinematic-scroll {
    flex-direction: row;
    position: relative;
    padding: 100px 0;
  }
}

.cinematic-sticky {
  position: sticky;
  top: 120px;
  height: calc(100vh - 160px);
  width: 50%;
  display: none;
  padding: 0 40px;
}

@media (min-width: 900px) {
  .cinematic-sticky {
    display: block;
  }
}

.cinematic-sticky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transition: opacity 0.6s ease;
}

[data-theme="dark"] .cinematic-sticky img {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cinematic-content {
  width: 100%;
  padding: 40px 20px;
}

@media (min-width: 900px) {
  .cinematic-content {
    width: 50%;
    padding: 0 60px 0 20px;
  }
}

.cinematic-block {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(30px);
  margin-bottom: 60px;
}

@media (max-width: 899px) {
  .cinematic-block {
    min-height: auto;
    opacity: 1 !important; /* Force visible on mobile */
    transform: translateY(0) !important;
    margin-bottom: 80px;
  }
  .cinematic-block::before {
    content: '';
    display: block;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  }
  [data-theme="dark"] .cinematic-block::before {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  
  /* Mobile cinematic block images are shown inline via the data-image attribute */
}

.cinematic-block.active {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-block h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--fg-head);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cinematic-block p {
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--fg-body);
  max-width: 520px;
  margin-bottom: 32px;
}

.cinematic-stat {
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 900;
  color: #09f;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.cinematic-stat span {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
}

/* Mobile Background Fix Override */
.product-hero, .product-section, .product-cta-section {
  background-color: var(--bg) !important;
  transition: background-color 0.4s ease;
}
