/* Pagina principală — logo animat (assets/logo-motion.js construiește straturile din ACEEAȘI imagine).
   Geometrie măsurată în PNG (1914×621): glob centru (812, 249), rază 222; decupaj la 226 → 42.42% / 40.1%, rx 11.81% · ry 36.39%.
   Doar transform / opacity; activ doar în modul complet (html.lm-on), pe ecran. */
@media screen {
  .hero { position: relative; }
  .lm-stage { position: absolute; pointer-events: none; filter: drop-shadow(0 10px 28px rgba(0,0,0,.28)); }
  html:not(.lm-on) .lm-stage { display: none; }
  html.lm-on .hero .logo { opacity: 0; } /* <img>-ul rămâne în pagină (accesibil), straturile îl redau identic */
  /* În repaus (după intrare, fără înclinare) se vede chiar <img>-ul original → pixel-identic; straturile-copie se ascund. */
  html.lm-on.lm-rest .hero .logo { opacity: 1; }
  html.lm-rest .lm-part { opacity: 0; }

  .lm-part, .lm-rig, .lm-globe-in, .lm-orbit, .lm-shine-clip { position: absolute; inset: 0; }
  .lm-part { background-repeat: no-repeat; background-size: 100% 100%; }
  .lm-gl  { clip-path: inset(0 57.58% 20% 0); }
  .lm-bal { clip-path: inset(0 0 20% 42.42%); }
  /* Literele nu conțin globul (decupat cu o mască): în jurul lui e un inel gol de ~8px în PNG,
     deci decupajul nu taie niciun pixel, iar suma straturilor redă exact imaginea originală. */
  .lm-gl, .lm-bal {
    -webkit-mask-image: radial-gradient(ellipse 11.81% 36.39% at 42.42% 40.1%, transparent 99.6%, #000 100%);
            mask-image: radial-gradient(ellipse 11.81% 36.39% at 42.42% 40.1%, transparent 99.6%, #000 100%); }
  .lm-text { clip-path: inset(80% 0 0 0); transform-origin: 50% 90%; }
  .lm-globe, .lm-shine-clip { clip-path: ellipse(11.81% 36.39% at 42.42% 40.1%); }
  .lm-rig, .lm-globe-in { transform-origin: 42.42% 40.1%; }
  .lm-rig { will-change: transform; }
  .lm-orbit { width: 100%; height: 100%; overflow: visible; opacity: 0; }
  .lm-halo { position: absolute; left: 42.42%; top: 40.1%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(125,189,255,.6) 0%, rgba(125,189,255,.24) 38%, transparent 68%);
    transition: opacity .35s ease, transform .35s ease; }
  .lm-shine { position: absolute; left: 30.6%; top: 2%; width: 7%; height: 77%; opacity: .5; transform: translateX(-170%) skewX(-16deg);
    background: linear-gradient(90deg, transparent, rgba(214,236,255,.75) 50%, transparent); }

  .lm-paused, .lm-paused * { animation-play-state: paused !important; }

  /* 1) Intrare (~1.6s) — înlocuiește hm-drop pe antet, ca logo-ul să nu fie animat de două ori */
  html.hm-full.hm-go.lm-on .hero { animation: none; }
  html.hm-full.hm-go.lm-on .hero-copy { animation: hm-drop .7s cubic-bezier(.2,.75,.25,1) .25s backwards; }
  html.hm-go.lm-on .lm-gl  { animation: lm-from-left .85s cubic-bezier(.2,.75,.25,1) .18s backwards; }
  html.hm-go.lm-on .lm-bal { animation: lm-from-right .85s cubic-bezier(.2,.75,.25,1) .18s backwards; }
  html.hm-go.lm-on .lm-globe-in { animation: lm-globe .95s cubic-bezier(.25,1.25,.4,1) backwards; }
  html.hm-go.lm-on .lm-halo { animation: lm-halo 1.6s ease-out backwards; }
  html.hm-go.lm-on .lm-text { animation: lm-text .85s cubic-bezier(.2,.75,.25,1) .7s backwards; }
  /* 2) Orbită + 3) reflexie pornesc după intrare */
  html.hm-go.lm-on .lm-orbit { animation: lm-fade .6s ease-out 1.15s both; }
  html.hm-go.lm-on .lm-shine { animation: lm-shine 9s cubic-bezier(.45,.05,.3,1) 2.4s infinite; }
  /* 4) Mouse deasupra logo-ului: haloul crește discret */
  html.lm-on .lm-stage.lm-hover .lm-halo { opacity: .55; transform: scale(1.08); }

  /* Redus: doar fade simplu al logo-ului original */
  html.hm-reduced.hm-go:not(.lm-on) .hero .logo { animation: lm-fade .5s ease-out backwards; }

  @keyframes lm-from-left  { from { opacity: 0; transform: translateX(-16%); } to { opacity: 1; transform: none; } }
  @keyframes lm-from-right { from { opacity: 0; transform: translateX(16%); }  to { opacity: 1; transform: none; } }
  @keyframes lm-globe { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes lm-halo { 0% { opacity: 0; transform: scale(.6); } 38% { opacity: .95; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1); } }
  @keyframes lm-text { from { opacity: 0; transform: scaleX(1.55); } to { opacity: 1; transform: none; } }
  @keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes lm-shine { 0% { transform: translateX(-170%) skewX(-16deg); } 15%, 100% { transform: translateX(520%) skewX(-16deg); } }
}
@media print { .lm-stage { display: none !important; } }
