/* 3D effects layer (see js/fx3d.js). */
.hero__dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.hero__dust.is-on { opacity: 1; }
.hero__grid, .hero__foot { z-index: 1; }

/* 3D stages: children keep their depth while the stage tilts */
[data-tilt].is-3d { transform-style: preserve-3d; will-change: transform; }
.hero__visual.is-3d .hero__main, .hero__visual.is-3d .hero__float { transform-style: preserve-3d; }
.cid__visual.is-3d { transform-style: preserve-3d; }
.hero__float, .hero__badge, .cid__frame { transition: translate .6s cubic-bezier(.22, .8, .2, 1); }
.hero__float { box-shadow: 0 40px 70px rgba(0, 0, 0, .45); }
.hero__main .media { box-shadow: 0 50px 90px rgba(0, 0, 0, .5); }

/* Light sweep that follows the pointer across the tilted image */
.tilt-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 240, 210, .28), rgba(255, 240, 210, 0) 45%); mix-blend-mode: soft-light; }
.tilt-glare.is-on { opacity: 1; }
.hero__main { position: relative; border-radius: 260px 260px 0 0; }
.cid__frame { position: absolute; }

/* Gallery plane needs a 3D context on its section */
.gallery-band .container { perspective: 1400px; }
.mosaic[data-plane3d] { transform-style: preserve-3d; }

/* Split headings fold up from their baseline */
.split-line { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .hero__dust { display: none; }
}
