/* PHONE hero swipe (≤920px): the five pages as still pictures in a native
   scroll-snap strip (lantern-hero-snap.js), replacing the JS-dragged live
   window. The finger scrolls the strip itself — no touchmove maths, no layout
   per frame — and the page copy follows once it settles. */
.m-snap { display: none; }
/* Feature copy occupies the same slot as Home's subtitle. */
html.m-ring body:is(.hero-p2, .hero-imm, .hero-p5, .hero-shelves) #hero .hero-copy .hh-sub {
  visibility: hidden;
}
/* one window size for every page and phone: the height follows the width
   (322×363 at 390px — the box hero-stills.mjs shoots every picture in) */
/* extra :not(#_) outrank ring-phone.css's per-page 410px / clamp() rows */
html.m-ring #hero:not(#_):not(#_):not(#_) .hero-inner {
  grid-template-rows: auto calc(var(--car-w) * 363 / 322) auto auto !important;
}
html.m-ring .m-snap {
  display: flex; gap: 12px;
  position: absolute; z-index: 3;
  /* full screen width, so the neighbours peek in past the window */
  top: -4px; bottom: -12px;
  left: calc(-1 * (var(--m-gut) + var(--m-peek))); width: 100vw;
  padding: 4px calc(var(--m-gut) + var(--m-peek)) 12px; box-sizing: border-box;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* sideways is the strip's, vertical stays the page's */
  touch-action: pan-x pan-y;
}
html.m-ring .m-snap::-webkit-scrollbar { display: none; }
.m-snap-slide {
  flex: 0 0 var(--car-w); position: relative; overflow: hidden;
  scroll-snap-align: center; scroll-snap-stop: always;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .14), 0 8px 16px -12px rgba(var(--ink-rgb), .3);
}
.m-snap-strip {
  height: var(--car-strip-h, 27px); background: #efe9dd;
  display: flex; align-items: center; gap: 6px; padding-left: 13px;
}
.m-snap-strip i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.m-snap-strip i:nth-child(1) { background: #ff5f57; }
.m-snap-strip i:nth-child(2) { background: #febc2e; }
.m-snap-strip i:nth-child(3) { background: #28c840; }
.m-snap-slide img {
  display: block; width: 100%; height: calc(100% - var(--car-strip-h, 27px));
  object-fit: cover; object-position: top; -webkit-user-drag: none; user-select: none;
}
/* the live window and its side pictures stay in the DOM (the scenes still run
   under them) but off screen, untouchable */
html.m-ring #hero .hero-stage > .float,
html.m-ring #hero .car-sides { visibility: hidden; pointer-events: none; }
