/* scenes.css — living header backgrounds + image CTAs (2026-10-08).
   Pairs with scene-fx.js, which injects .scene-layer into [data-scene]. */

/* ── header plates ──────────────────────────────────────────────── */
[data-scene] { position: relative; overflow: hidden; isolation: isolate; }
[data-scene] > .scene-layer {
  position: absolute !important; inset: 0; z-index: 0 !important;
  pointer-events: none; overflow: hidden;
}
[data-scene] > *:not(.scene-layer) { position: relative; z-index: 1; }
/* Plates are static (owner, 2026-10-08): only the light drawn over them moves.
   --scene-img-op on the host dims a plate that should sit back. */
.scene-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene-layer.is-ready .scene-img { opacity: var(--scene-img-op, 1); }
.scene-fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene-layer.is-ready .scene-fx { opacity: 1; }
/* Headline legibility + a soft hand-off into the section below. */
.scene-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(6, 12, 26, 0.55), rgba(6, 12, 26, 0) 70%),
    linear-gradient(180deg, rgba(6, 12, 26, 0.35) 0%, rgba(6, 12, 26, 0) 28%, rgba(6, 12, 26, 0) 72%, var(--scene-fade, #090F1E) 100%);
}
/* Left-aligned headers keep the left side darker instead of the middle. */
[data-scene-align="left"] .scene-scrim {
  background:
    linear-gradient(90deg, rgba(6, 12, 26, 0.82) 0%, rgba(6, 12, 26, 0.5) 42%, rgba(6, 12, 26, 0) 72%),
    linear-gradient(180deg, rgba(6, 12, 26, 0.35) 0%, rgba(6, 12, 26, 0) 28%, rgba(6, 12, 26, 0) 72%, var(--scene-fade, #090F1E) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .scene-img, .scene-fx { transition: none; }
}

/* ── image CTA card (shop COA band + COA-library catalog band) ── */
.scene-cta-wrap { padding: 5rem 1.5rem; }
.scene-cta {
  position: relative; max-width: 1100px; margin: 0 auto; min-height: 300px;
  display: flex; align-items: center;
  border-radius: 20px; overflow: hidden;
  background: #060C1A;
  border: 1px solid rgba(74, 144, 226, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
              0 24px 60px -24px rgba(26, 86, 160, 0.45),
              0 8px 24px -12px rgba(4, 8, 18, 0.6);
}
.scene-cta > .scene-layer .scene-img { object-position: right center; }
.scene-cta .scene-scrim {
  background: linear-gradient(90deg, #060C1A 0%, rgba(6, 12, 26, 0.92) 30%, rgba(6, 12, 26, 0.35) 58%, rgba(6, 12, 26, 0) 80%);
}
.scene-cta-body { padding: 3.25rem 3.5rem; max-width: 560px; }
.scene-cta-eyebrow {
  display: block; margin: 0 0 0.85rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #4A90E2;
}
.scene-cta h2 {
  margin: 0 0 0.85rem; color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12;
}
.scene-cta p {
  margin: 0 0 1.9rem; color: rgba(255, 255, 255, 0.62); font-size: 0.97rem; line-height: 1.7; max-width: 440px;
}
.scene-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.6rem; border-radius: 10px;
  background: #1A56A0; color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -10px rgba(26, 86, 160, 0.9);
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scene-cta-btn:hover { background: #2A6BC0; transform: translateY(-2px); }
.scene-cta-btn:active { transform: translateY(0) scale(0.98); }
.scene-cta-btn:focus-visible { outline: 2px solid #4A90E2; outline-offset: 3px; }
.scene-cta-btn svg { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.scene-cta-btn:hover svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .scene-cta-wrap { padding: 3rem 1rem; }
  .scene-cta { min-height: 380px; align-items: flex-end; }
  .scene-cta > .scene-layer .scene-img { object-position: 78% center; }
  .scene-cta .scene-scrim {
    background: linear-gradient(0deg, #060C1A 0%, rgba(6, 12, 26, 0.9) 45%, rgba(6, 12, 26, 0.25) 100%);
  }
  .scene-cta-body { padding: 2rem 1.5rem; }
}
