/* Museum TN v8.8.15.21 — cinematic home v20.
   Loaded AFTER mtn-cinematic-home-v18.css (layout rules stay there; its reveal rules are dormant
   because v18.js is no longer loaded). Never hijacks scrolling; content is always in the DOM.
   Honors: prefers-reduced-motion (soft mode: opacity-only fades, no movement/blur), the museum's own "Μείωση κίνησης" toggle (html[data-motion="reduce"]), no-JS. */

#lobby{--mtn-ease:cubic-bezier(.19,.76,.23,1);--mtn-blur:10px}

/* ---- Hero: pure CSS on load (no JS dependency, no flash, always ends visible) ---- */
@keyframes mtn-hero-in{
  from{opacity:0;transform:translate3d(0,38px,0);filter:blur(var(--mtn-blur))}
  to{opacity:1;transform:none;filter:none}
}
#lobby .hero>h1{animation:mtn-hero-in 1.5s var(--mtn-ease) .1s backwards}
#lobby .hero>.museum-tagline{animation:mtn-hero-in 1.4s var(--mtn-ease) .55s backwards}
#lobby .hero>p:not(.museum-tagline){animation:mtn-hero-in 1.4s var(--mtn-ease) .85s backwards}

#lobby .hero>.mtn-hero-defer.mtn-rv{animation:none!important}

/* ---- Below the fold: JS adds .mtn-rv (hidden) only to elements that are still off-screen ---- */
#lobby .mtn-rv{
  /* no transition here: hiding is instant (it happens off-screen); only revealing animates */
  opacity:0;
  transform:translate3d(0,clamp(28px,5vh,60px),0);
  will-change:opacity,transform;
}
/* Blur only on text-sized elements; large blocks/cards just fade+rise (cheaper, no stacking surprises) */
#lobby .mtn-rv.mtn-rv-text{filter:blur(var(--mtn-blur))}
#lobby .mtn-rv.mtn-rv-in{
  opacity:1;transform:none;filter:none;will-change:auto;
  transition:
    opacity 1.2s var(--mtn-ease),
    transform 1.5s var(--mtn-ease),
    filter 1.2s var(--mtn-ease);
  transition-delay:var(--mtn-d,0s);
}
#lobby .mtn-rv.mtn-rv-instant{transition:none!important}

@media(max-width:760px){
  #lobby{--mtn-blur:6px}
  #lobby .mtn-rv{transform:translate3d(0,26px,0)}
}

/* ---- Reduced motion, OS level: SOFT mode = opacity-only fades (no movement, no blur) ---- */
@keyframes mtn-hero-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  #lobby .hero>h1{animation:mtn-hero-fade 1.2s ease .1s backwards!important}
  #lobby .hero>.museum-tagline{animation:mtn-hero-fade 1.2s ease .4s backwards!important}
  #lobby .hero>p:not(.museum-tagline){animation:mtn-hero-fade 1.2s ease .6s backwards!important}
  #lobby .mtn-rv{transform:none!important;filter:none!important;will-change:auto}
  #lobby .mtn-rv.mtn-rv-in{transition:opacity 1.4s ease!important;transition-delay:var(--mtn-d,0s)!important}
  #lobby .mtn-rv.mtn-rv-instant{transition:none!important}
  #lobby.mtn-cinema .facade svg{transform:none!important;will-change:auto!important}
}

/* ---- The museum's own "Μείωση κίνησης" toggle: everything off, content simply visible ---- */
html[data-motion="reduce"] #lobby .hero>h1,
html[data-motion="reduce"] #lobby .hero>.museum-tagline,
html[data-motion="reduce"] #lobby .hero>p:not(.museum-tagline){animation:none!important}
html[data-motion="reduce"] #lobby .mtn-rv{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
html[data-motion="reduce"] #lobby.mtn-cinema .facade svg{transform:none!important}
