/* PAT-011: fallback has no false fixed-side extrusion. */
.comparison .phone{box-shadow:inset 0 0 0 1px #8b8c90,0 24px 36px -18px #0004}
.comparison .has-phone-3d,.hero-visual .has-phone-3d{background:transparent;box-shadow:none;border:0;isolation:auto}
.has-phone-3d>.phone-glass,.has-phone-3d>.device-keys,.has-phone-3d::before{visibility:hidden}
.phone-3d-canvas{position:absolute;left:calc(-50% - 32px);top:calc(-12.5% - 32px);width:calc(200% + 64px);height:calc(125% + 64px);max-width:none;pointer-events:none;cursor:grab;filter:drop-shadow(0 18px 14px #0003);touch-action:pan-y}
.phone-3d-canvas:active{cursor:grabbing}
.phone-3d-canvas:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:28px}
.phone-story.story-settled:has(.is-turning) .new-phones{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.phone-3d-canvas{display:none}}
@media print{.phone-3d-canvas{display:none}.has-phone-3d>.phone-glass,.has-phone-3d>.device-keys{visibility:visible}}

/* The hero is a live model: no additional CSS perspective on its canvas. */
.hero-visual{pointer-events:auto;overflow:visible;clip-path:inset(-200vh -100vw 0)}
body:has(.hero-phone){overflow-x:hidden}
.intro-with-mockup{clip-path:inset(-200vh -100vw 0);box-shadow:none;isolation:isolate}
.intro-with-mockup::before{content:"";position:absolute;inset:-200px calc((100% - 100vw)/2) 0;background:var(--case-accent);z-index:-1}
.header{position:relative;z-index:2;background:transparent;box-shadow:none;clip-path:none;border-bottom-color:transparent}
.hero-visual .hero-phone.has-phone-3d{transform:rotateZ(6deg);transform-origin:0% 40%}
.hero-phone.has-phone-3d .phone-3d-canvas{filter:drop-shadow(0 24px 18px #0003)}

.has-phone-3d{cursor:grab;touch-action:pan-y}.has-phone-3d:active{cursor:grabbing}

/* Suppress the static end pose while the module and original texture load. */
@media(prefers-reduced-motion:no-preference){html.phone-hero-pending body:not(.futuno-edit-mode) .hero-phone{visibility:hidden}}

/* Avoid rerasterizing the oversized soft shadow on every entrance frame. */
.hero-phone.is-entering-3d{will-change:transform}.hero-phone.is-entering-3d .phone-3d-canvas{filter:none}
