/* ConneryFilm — 3D camera sequence.
   The section is tall; the canvas sticks while you scroll through it. */

.cam-scene {
  position: relative;
  height: 500vh;                 /* scroll distance = length of the sequence */
  background: var(--obsidian);
}

.cam-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* A soft gold pool behind the camera so it isn't floating in flat black. */
.cam-sticky::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(195, 162, 100, .16), transparent 70%),
    radial-gradient(90% 90% at 50% 50%, rgba(10, 10, 11, 0), rgba(10, 10, 11, .9) 85%);
  pointer-events: none;
}

.cam-scene canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Shown instead of the scene on phones, reduced-motion, or no WebGL. */
.cam-fallback {
  display: none;
  max-width: min(70%, 620px);
  height: auto;
  position: relative; z-index: 1;
}
.cam-scene.is-static { height: 100svh; }
.cam-scene.is-static .cam-sticky { height: 100svh; }
.cam-scene.is-static .cam-fallback { display: block; }

.cam-caption {
  position: absolute; bottom: 8vh; left: 50%; translate: -50% 0; z-index: 2;
  font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--champagne); opacity: .8; pointer-events: none;
}
.cam-scene.is-static .cam-caption { display: none; }
