/* Cena inicial aprovada: preto, lettering pixel com faces de volume e céu contínuo. */
.scene-home{--scene-ink:#19181c;--scene-light:#d3c1f2;--sky-x:0;--sky-y:0}
.scene-home .header,.scene-home .header.is-scrolled{background:rgba(25,24,28,.92);color:var(--scene-light);border-bottom:1px solid #d3c1f230;backdrop-filter:blur(14px)}
.scene-home .header .brand img{filter:invert(1)}
.scene-home .header>.button.small{background:transparent;color:var(--scene-light);border-color:#d3c1f270}
.scene-home .header>.button.small:hover{background:var(--acid);color:var(--ink);border-color:var(--acid);box-shadow:0 3px 0 #d3c1f240}
.scene-home .hero{isolation:isolate;background:var(--scene-ink);color:var(--scene-light);padding-top:26px;overflow:hidden}
.scene-home .hero-top,.scene-home .hero-grid,.scene-home .hero-bottom{position:relative;z-index:1}
.scene-home .hero-top{color:#d3c1f2d9}
.scene-home .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(28px,4vw,64px);padding-block:36px 34px;min-height:650px;align-items:center}
.scene-home .hero-copy{position:relative;perspective:1000px;align-self:center}
.scene-home .hero-copy h1.pixel-title{display:flex;flex-direction:column;gap:0;width:100%;max-width:610px;font-size:clamp(38px,5.9vw,86px);line-height:1;letter-spacing:0;margin:0;padding:0;perspective:900px}
.scene-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scene-home .pixel-title .pixel-line{display:flex;align-items:center;gap:.045em;width:max-content;max-width:100%;color:inherit;-webkit-text-stroke:0;transform:translate3d(calc(var(--sky-x)*5px),calc(var(--sky-y)*3px),0) rotateY(calc(var(--sky-x)*-4deg)) rotateX(calc(var(--sky-y)*3deg));transform-origin:center;transition:transform .55s cubic-bezier(.2,.65,.3,1)}
.scene-home .pixel-title .pixel-line:nth-of-type(3){margin-left:.09em}
.pixel-letter{--letter-front:#d3c1f2;--letter-side:#8161b6;--letter-bottom:#4e3b6f;--letter-highlight:#ede6ff;display:block;flex:none;width:calc(var(--glyph-width)*.156em);height:1.5em;animation:letter-float 7.5s ease-in-out infinite;animation-delay:calc(var(--letter-index)*-.36s);transform-origin:center}
.pixel-letter-shape{display:block;width:100%;height:100%;overflow:visible;transition:transform .25s ease,filter .25s ease;filter:drop-shadow(0 5px 0 #00000035)}
.letter-front{fill:var(--letter-front)}.letter-side{fill:var(--letter-side)}.letter-depth{fill:var(--letter-bottom)}.letter-shine{fill:none;stroke:var(--letter-highlight);stroke-width:.055}
.pixel-line:last-child .pixel-letter{--letter-front:#d5fa3e;--letter-side:#839e25;--letter-bottom:#4c6515;--letter-highlight:#f0ffa6}
.pixel-space{display:block;flex:0 0 .29em;height:1em}
@media(hover:hover){.pixel-letter:hover .pixel-letter-shape{transform:translateY(-5px) rotate(-2deg);filter:drop-shadow(0 8px 0 #00000055) brightness(1.09)}}
@keyframes letter-float{0%,100%{transform:translate3d(0,1px,0)}50%{transform:translate3d(0,-4px,0)}}
.scene-home .hero-copy>p{font-size:18px;line-height:1.6;max-width:430px;margin-top:22px;color:#e1d7f1}
.scene-home .hero-actions{gap:28px;margin-top:28px}
.scene-home .hero-actions .button{border-color:var(--acid)}
.scene-home .hero-actions .button:hover{box-shadow:0 4px 0 #d3c1f255}
.scene-home .hero-actions .text-link{color:var(--scene-light);border-color:#d3c1f2a0}
.scene-home .hero-actions .text-link:hover{color:var(--acid);border-color:var(--acid)}
.scene-home .universe{position:relative;margin:0;width:100%;min-height:0;max-width:none;align-self:center;perspective:1000px}
.scene-home .hero .pixel-star{display:none}
.scene-home .world{max-height:540px;width:100%;max-width:100%;aspect-ratio:1.1;background:transparent;border:0;border-radius:0;animation:none;isolation:isolate}
.scene-home .world canvas{background:transparent}
.scene-home .world-animation,.scene-home .world-static{mix-blend-mode:lighten}
.scene-home .world.is-3d-ready .world-animation,.scene-home .world.is-3d-ready .world-static{display:none}
.scene-home .world-3d-toolbar{margin:2px 0 0;gap:8px;position:relative;z-index:2}
.scene-home .world-3d-toolbar button{background:transparent;color:var(--scene-light);border-color:#d3c1f25c;min-height:44px;font-size:13px}
.scene-home .world-3d-toolbar button:is(:hover,:focus-visible){background:var(--acid);border-color:var(--acid);color:var(--ink)}
.scene-home .world-3d-hint{color:#b8a5d4;font-size:12px;margin:12px 0 20px}
.scene-home .world-caption{padding-inline:0;margin-top:0;gap:16px}
.scene-home .world-caption .mono{color:#c5b0e3;font-size:10px}
.scene-home .world-caption button{color:var(--scene-light);border-color:#d3c1f280;font-size:13px}
.scene-home .hero-bottom{border-top-color:#d3c1f240;padding-block:20px 24px;color:#c5b0e3}
.scene-home .hero-bottom .mono{font-size:10px}
.hero-sky{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.sky-stars{position:absolute;inset:0;width:100%;height:100%;fill:#bda5db;opacity:.48;transform:translate3d(calc(var(--sky-x)*-3px),calc(var(--sky-y)*-2px),0);transition:transform .65s ease}
.sky-flock{position:absolute;left:0;width:100%;height:30px;display:flex;gap:24px;align-items:start;animation:bird-crossing 48s linear infinite;opacity:.43}
.sky-flock-one{top:12%;animation-delay:-17s}
.sky-flock-two{top:45%;animation-duration:67s;animation-delay:-39s;opacity:.3}
.sky-bird{width:25px;height:16px;overflow:visible;flex:none;fill:#c9b5e7;image-rendering:pixelated}
.sky-bird:nth-child(2){margin-top:12px;width:17px;height:12px}
.sky-flock-two .sky-bird{width:19px;height:12px}
.wing-up{animation:wing-up .9s steps(1) infinite}.wing-down{opacity:0;animation:wing-down .9s steps(1) infinite}
.sky-bird:nth-child(2) path{animation-delay:-.25s}
@keyframes bird-crossing{0%{transform:translate3d(-12%,-7px,0)}100%{transform:translate3d(112%,14px,0)}}
@keyframes wing-up{0%,100%{opacity:1}50%{opacity:0}}@keyframes wing-down{0%,100%{opacity:0}50%{opacity:1}}
.planet-paused .pixel-letter,.planet-paused .sky-flock,.planet-paused .sky-bird path,.scene-outside .pixel-letter,.scene-outside .sky-flock,.scene-outside .sky-bird path,.scene-hidden .pixel-letter,.scene-hidden .sky-flock,.scene-hidden .sky-bird path{animation-play-state:paused}
.scene-home .hero:focus-within{outline:0}
@media(min-width:1650px){.scene-home .hero-grid{min-height:700px}.scene-home .hero-copy h1.pixel-title{font-size:90px}}
@media(min-width:901px) and (max-width:1100px){.scene-home .hero-grid{gap:24px;min-height:610px;padding-top:32px}.scene-home .hero-copy h1.pixel-title{font-size:5.8vw}.scene-home .hero-copy>p{font-size:17px}.scene-home .hero-actions{gap:20px}.scene-home .world{aspect-ratio:.98}.scene-home .world-3d-toolbar button{font-size:12px;padding-inline:10px}.scene-home .world-3d-toolbar{gap:6px}}
@media(max-width:900px){.scene-home .hero-grid{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;padding-block:30px 24px}.scene-home .hero-copy{max-width:620px;margin-inline:auto;width:100%}.scene-home .hero-copy h1.pixel-title{font-size:clamp(44px,9.9vw,82px);max-width:600px}.scene-home .hero-copy>p{max-width:500px}.scene-home .universe{max-width:620px;margin-inline:auto}.scene-home .world{max-height:510px;aspect-ratio:1.25}.scene-home .world-caption{margin-top:0}.scene-home .sky-flock-one{top:6%}.scene-home .sky-flock-two{top:57%}.scene-home .hero-top{gap:24px}.scene-home .hero-top .mono{font-size:10px}}
@media(max-width:600px){.scene-home .hero{padding-top:20px}.scene-home .hero-copy h1.pixel-title{font-size:clamp(35px,11.1vw,64px)}.pixel-letter{height:1.48em}.scene-home .hero-grid{padding-top:22px;gap:8px}.scene-home .hero-copy>p{margin-top:19px;font-size:16px;line-height:1.65}.scene-home .hero-actions{gap:22px;margin-top:24px;flex-wrap:wrap}.scene-home .hero-actions .button{font-size:14px;min-height:52px}.scene-home .hero-actions .text-link{font-size:14px}.scene-home .world{aspect-ratio:1.05;max-height:440px}.scene-home .world-3d-toolbar{gap:6px;flex-wrap:wrap}.scene-home .world-3d-toolbar button{padding-inline:10px;font-size:12px}.scene-home .world-3d-hint{font-size:11px;margin-bottom:12px}.scene-home .world-caption .mono{font-size:9px;max-width:180px}.scene-home .world-caption button{font-size:12px}.scene-home .hero-bottom{gap:16px;flex-wrap:wrap}.scene-home .hero-bottom .mono{font-size:8px}.scene-home .hero-bottom>span:last-child{display:none}.scene-home .hero-top .mono{font-size:9px}.scene-home .sky-bird{width:18px}.scene-home .sky-flock{opacity:.3}}
@media(prefers-reduced-motion:reduce){.scene-home .pixel-letter,.scene-home .sky-flock,.scene-home .sky-bird path{animation:none!important}.scene-home .sky-flock{display:none}.scene-home .pixel-title .pixel-line,.scene-home .sky-stars{transform:none!important;transition:none}.scene-home .pixel-letter-shape{transition:none}.scene-home .pixel-letter:hover .pixel-letter-shape{transform:none}}
/* A cena solicitada tem controle próprio; as demais seções respeitam a preferência do sistema. */
@media(prefers-reduced-motion:reduce){
 .scene-home .hero.scene-motion-enabled .pixel-letter{animation:letter-float 7.5s ease-in-out infinite!important;animation-delay:calc(var(--letter-index)*-.36s)!important;animation-play-state:running!important}
 .scene-home .hero.scene-motion-enabled .sky-flock{display:flex;animation:bird-crossing 48s linear infinite!important;animation-delay:-17s!important;animation-play-state:running!important}
 .scene-home .hero.scene-motion-enabled .sky-flock-two{animation-duration:67s!important;animation-delay:-39s!important}
 .scene-home .hero.scene-motion-enabled .wing-up{animation:wing-up .9s steps(1) infinite!important;animation-play-state:running!important}
 .scene-home .hero.scene-motion-enabled .wing-down{animation:wing-down .9s steps(1) infinite!important;animation-play-state:running!important}
 .scene-home .hero.scene-motion-enabled .sky-bird:nth-child(2) path{animation-delay:-.25s!important}
 .scene-home .hero.scene-motion-enabled .pixel-title .pixel-line{transform:translate3d(calc(var(--sky-x)*5px),calc(var(--sky-y)*3px),0) rotateY(calc(var(--sky-x)*-4deg)) rotateX(calc(var(--sky-y)*3deg))!important;transition:transform .55s ease}
 .scene-home .hero.scene-motion-enabled .sky-stars{transform:translate3d(calc(var(--sky-x)*-3px),calc(var(--sky-y)*-2px),0)!important;transition:transform .65s ease!important}
 .scene-home .hero.scene-motion-enabled:is(.scene-outside,.scene-hidden) :is(.pixel-letter,.sky-flock,.sky-bird path){animation-play-state:paused!important}
}
@media(prefers-reduced-motion:reduce) and (hover:hover){
 .scene-home .hero.scene-motion-enabled .pixel-letter-shape{transition:transform .25s ease,filter .25s ease!important}
 .scene-home .hero.scene-motion-enabled .pixel-letter:hover .pixel-letter-shape{transform:translateY(-5px) rotate(-2deg)!important;filter:drop-shadow(0 8px 0 #00000055) brightness(1.09)}
}
