.hero-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    /* Infinite Green Background remains as the safety floor */
    background-color: #006400; 
    position: relative;
    aspect-ratio: 1920 / 660; 
    overflow: hidden;
    perspective: 3000px;
}

.hero-inner-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.hero-3d-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform-style: preserve-3d;
}

.hero-slice {
    flex: 1;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    animation: xAxisRotation linear infinite;
}

.slice-face {
    position: absolute;
    inset: 0;
    /* We hide the back side of each individual face so they don't bleed through */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* Image 1: Facing Front */
.face-front {
    transform: rotateX(0deg) translateZ(0.1px);
}

/* Image 2: Facing Back */
.face-back {
    /* Rotated 180 degrees so it's upright when the slice flips */
    transform: rotateX(180deg) translateZ(0.1px);
}

.slice-face img {
    position: absolute;
    top: 0;
    height: 100%;
    display: block;
    max-width: none;
    /* Adhering to the stretching instruction for 1920x660 */
    transform: translateZ(0);
}

@keyframes xAxisRotation {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}