/* Mobile geometry fixes; desktop composition remains unchanged. */
.hero-picture,.preset-picture{display:contents}
@media(max-width:640px){
 .hero-media .hero-figure{width:100%;margin:18px 0 0;max-width:100%}
 .hero-figure .hero-joana{width:100%;height:auto;object-fit:contain;mask-image:none;-webkit-mask-image:none}
 .preset-card .preset-image{align-items:center;justify-content:center;height:178px;padding:12px 8px;border-bottom:0}
 .preset-card .preset-image .content-image{width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center}
 .palco-cast{height:clamp(145px,51vw,260px);gap:0}
 .palco-cast figure{min-width:0;flex:1 1 0}
 .palco-cast figure img{width:100%;max-width:100%;object-fit:contain;object-position:center bottom;flex-shrink:0}
 .method-card .passo-visual.passo-config{aspect-ratio:auto;height:auto;min-height:0;overflow:visible;padding:16px 12px;gap:12px}
 .passo-config>.arquivo{flex-shrink:0;max-width:100%;min-width:0}
 .passo-config .arquivo span{min-width:0;overflow-wrap:anywhere}
 .passo-config>.passo-mais{flex:none;line-height:1.25}
}
/* Text reveals preserve the complete text and its layout; no animation library. */
.hero h1 .motion-char,h2 .motion-char{display:inline;color:inherit;font:inherit;letter-spacing:inherit}
@media(prefers-reduced-motion:no-preference){
 .text-motion-ready .motion-char{opacity:0}
 .text-motion-ready.text-motion-visible{animation:ainett-title-rise 520ms cubic-bezier(.16,1,.3,1) both}
 .text-motion-visible .motion-char{animation:ainett-letter-reveal 180ms ease-out var(--letter-delay,0ms) both}
 @keyframes ainett-title-rise{from{transform:translateY(16px)}to{transform:translateY(0)}}
 @keyframes ainett-letter-reveal{from{opacity:0}to{opacity:1}}
}
@media(prefers-reduced-motion:reduce){.text-motion-ready,.text-motion-ready .motion-char{animation:none!important;opacity:1!important;transform:none!important}}

@media(max-width:640px){
 /* Each image receives its natural share of the row, so hands do not make one character smaller. */
 .palco-cast figure:nth-child(1){flex-grow:314.53}
 .palco-cast figure:nth-child(2){flex-grow:312.015}
 .palco-cast figure:nth-child(3){flex-grow:297.57}
 .palco-cast figure:nth-child(4){flex-grow:418.917}
 .palco-cast figure:nth-child(5){flex-grow:354.24}
}
