/* NEXIFY STUDIO: phone-only layout changes (2026-11-20).
   Same query that gives phones the still hero instead of the film (index.html
   head script, js/film.js, css/style.css), so "mobile" means one thing
   everywhere. Desktop and laptop windows never match it and are unchanged.
   Loaded last. */
@media (max-aspect-ratio: 4/5), (max-width: 900px) and (pointer: coarse) {

  /* 1. The black film-chapter block (01 Services, 02 Gallery, 03 Club, 04 Visit)
     is gone from the phone layout: background, padding, borders, scroll height.
     The hero leads straight into the services section. The markup stays: it is
     the desktop film's chapter overlay. */
  html:not(.film-on) .chapters { display: none; }

  /* 2. The big decorative section words (menu, crew, work, shops, book, gold,
     learn, craft) run as a slow marquee: each enters from the left edge,
     crosses, leaves on the right, and enters again from the left, forever.
     Same font, size, colour and opacity as before; only the position moves,
     and only sideways. The section clips it (.sec { overflow: clip }), so the
     page never scrolls sideways, and it never takes a tap. */
  .sections .sec .sec__giant {
    left: 0;
    right: auto;
    pointer-events: none;
    animation: nx-giant-marquee 26s linear infinite;
    animation-delay: -9s;   /* already part-way in on first view */
    will-change: transform;
  }
  .sections .sec--about .sec__giant { animation-duration: 20s; }   /* the smaller "craft" */
}

/* from just off the left edge (its own width) to just off the right edge
   (the screen's width): the loop point has the word fully out of sight on
   both ends, so the restart can never be seen */
@keyframes nx-giant-marquee {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(100vw, 0, 0); }
}
