/* ============================================
   Homepage cinematic treatment (deck imagery)
   Layers under existing .hero / .final-cta rules
   ============================================ */

/* --- Cinematic hero --- */
.hero--cinematic {
  min-height: 88vh;
}

.hero--cinematic .hero-bg-grid { display: none; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep heads in frame — truncate bottom, never the top */
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.08) 30%, rgba(10, 14, 26, 0.18) 72%, var(--bg-primary) 100%),
    linear-gradient(90deg, rgba(10, 14, 26, 0.78) 0%, rgba(10, 14, 26, 0.42) 42%, rgba(10, 14, 26, 0.02) 68%);
}

.hero--cinematic .container { position: relative; z-index: 2; }

.hero--cinematic .hero-content {
  text-align: left;
  margin: 0;
  max-width: 620px;
}

.hero--cinematic .hero-subtitle { margin: 0 0 2.5rem; }

.hero--cinematic .hero-actions { justify-content: flex-start; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.hero--cinematic .hero-title,
.hero--cinematic .hero-subtitle {
  text-shadow: 0 2px 24px rgba(10, 14, 26, 0.8);
}

/* --- In-section imagery --- */
.home-section-image {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.home-section-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.section-footnote {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 640px;
  margin: 2.5rem auto 0;
}

/* --- Chat example (deck slide 4) --- */
.chat-example {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-example-row { display: flex; }

.chat-example-row--user { justify-content: flex-end; }

.chat-example-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.65;
  box-shadow: var(--shadow-md);
}

.chat-example-bubble--user {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12));
  border-color: rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-sm);
}

/* --- Final CTA with skyline --- */
.final-cta--skyline {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.cta-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
  /* full composition, faded — never a cover-crop of a figure */
  -webkit-mask-image: radial-gradient(105% 92% at 85% 55%, #000 35%, transparent 92%);
  mask-image: radial-gradient(105% 92% at 85% 55%, #000 35%, transparent 92%);
}

.cta-media picture,
.cta-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-media img {
  object-fit: contain;
  object-position: right center;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 14, 26, 0.35) 35%, rgba(10, 14, 26, 0.5) 100%);
}

.final-cta--skyline .container { position: relative; z-index: 2; }

.final-cta--skyline .cta-title,
.final-cta--skyline .cta-subtitle {
  text-shadow: 0 2px 20px rgba(10, 14, 26, 0.9);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero--cinematic { min-height: 72vh; }
  .hero-media img { object-position: 62% top; }
  .chat-example-bubble { max-width: 92%; }
}
