
main.page-enter:has(.lux) { display: flex !important; flex-direction: column !important; position: relative !important; }
main.page-enter:has(.lux) > .lux { display: contents !important; }
.m-pack { display: contents !important; }
html[data-m] .lux > .cine-hero { order: 0 !important; z-index: 2 !important; background: transparent !important; }
html[data-m] .cine-stage { opacity: 0 !important; }
.cine-shade { opacity: 0.55 !important; }
.m-hero-overlay {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  clip-path: none !important;
  border-radius: 0 !important;
}
.m-thumbs, .m-grid, .m-extra { display: none !important; }
.m-stage { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block !important; }
.m-stage figure {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
}
.m-stage figure:nth-child(n+6) { display: none !important; }
.m-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
html[data-m="0"] .m-stage figure, html[data-m="4"] .m-stage figure { animation: m-fade var(--m-dur) infinite; }
html[data-m="0"] .m-stage img, html[data-m="4"] .m-stage img { animation: m-zin var(--m-dur) infinite; }
html[data-m="1"] .m-stage figure, html[data-m="5"] .m-stage figure { animation: m-fade var(--m-dur) infinite; }
html[data-m="1"] .m-stage img, html[data-m="5"] .m-stage img { animation: m-zout var(--m-dur) infinite; }
html[data-m="2"] .m-stage figure, html[data-m="6"] .m-stage figure { opacity: 1; animation: m-left var(--m-dur) infinite backwards; }
html[data-m="3"] .m-stage figure, html[data-m="7"] .m-stage figure { opacity: 1; animation: m-right var(--m-dur) infinite backwards; }
html[data-m] .m-stage figure:nth-child(2), html[data-m] .m-stage figure:nth-child(2) img { animation-delay: var(--m-step) !important; }
html[data-m] .m-stage figure:nth-child(3), html[data-m] .m-stage figure:nth-child(3) img { animation-delay: calc(var(--m-step) * 2) !important; }
html[data-m] .m-stage figure:nth-child(4), html[data-m] .m-stage figure:nth-child(4) img { animation-delay: calc(var(--m-step) * 3) !important; }
html[data-m] .m-stage figure:nth-child(5), html[data-m] .m-stage figure:nth-child(5) img { animation-delay: calc(var(--m-step) * 4) !important; }

html[data-slot="0"] .m-extra { order: 3 !important; }
html[data-slot="0"] .m-lane { order: 8 !important; }
html[data-slot="0"] .m-codes { order: 14 !important; }
html[data-slot="1"] .m-extra { order: 1 !important; }
html[data-slot="1"] .m-lane { order: 5 !important; }
html[data-slot="1"] .m-codes { order: 10 !important; }
html[data-slot="2"] .m-extra { order: 6 !important; }
html[data-slot="2"] .m-lane { order: 2 !important; }
html[data-slot="2"] .m-codes { order: 12 !important; }
html[data-slot="3"] .m-extra { order: 13 !important; }
html[data-slot="3"] .m-lane { order: 4 !important; }
html[data-slot="3"] .m-codes { order: 7 !important; }

.m-extra, .m-lane, .m-codes { padding: 72px 22px; background: var(--m-paper); color: var(--m-ink); }
.m-extra h2, .m-lane h2, .m-codes h2 {
  margin: 0 0 22px; max-width: 16ch; font-size: clamp(36px, 4vw, 64px); line-height: 0.95;
}
.m-kicker { margin: 0 0 8px; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; color: var(--m-accent); }
.m-lane { background: var(--m-ink); color: var(--m-paper); }
.m-lane-grid, .m-code-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.m-lane article, .m-code-grid a {
  margin: 0; padding: 22px; background: transparent; border: 2px solid var(--m-accent); color: inherit; text-decoration: none;
}
.m-lane h3 { margin: 0 0 8px; font-size: 28px; }
.m-lane p, .m-code-grid a { line-height: 1.5; }
.m-code-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-code-grid a { display: block; background: #fff; color: var(--m-ink); font-weight: 700; }
.m-code-grid a span { display: block; font-weight: 500; color: var(--m-accent); font-size: 13px; margin-top: 6px; }
html[data-layout="1"] .m-lane article, html[data-layout="1"] .m-code-grid a { border-radius: 999px; }
html[data-layout="3"] .m-lane article, html[data-layout="3"] .m-code-grid a { border-radius: 28px 6px; }
html[data-layout="4"] .m-lane article { transform: skewX(-6deg); }

@keyframes m-fade { 0% { opacity: 0; } 3% { opacity: 1; } 17% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@keyframes m-zin { 0% { transform: scale(1); } 20% { transform: scale(1.16); } 100% { transform: scale(1.16); } }
@keyframes m-zout { 0% { transform: scale(1.18); } 20% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes m-flash {
  0%, 15% { opacity: 0; } 18%, 20% { opacity: .72; } 23%, 35% { opacity: 0; }
  38%, 40% { opacity: .72; } 43%, 55% { opacity: 0; } 58%, 60% { opacity: .72; }
  63%, 75% { opacity: 0; } 78%, 80% { opacity: .72; } 83%, 100% { opacity: 0; }
}
@keyframes m-left {
  0% { transform: translateX(100%); }
  4% { transform: translateX(0); }
  20% { transform: translateX(0); }
  24% { transform: translateX(-100%); }
  24.01% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes m-right {
  0% { transform: translateX(-100%); }
  4% { transform: translateX(0); }
  20% { transform: translateX(0); }
  24% { transform: translateX(100%); }
  24.01% { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 800px) {
  .m-lane-grid, .m-code-grid { grid-template-columns: 1fr 1fr; }
  html[data-layout="4"] .m-lane article { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .m-stage, .m-stage figure, .m-stage img { animation: none !important; transform: none !important; }
  .m-stage figure { opacity: 0 !important; }
  .m-stage figure:first-child { opacity: 1 !important; }
}
.yard-find {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--m-accent, #111); color: var(--m-on, #fff);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.site-header { top: var(--find-h, 78px) !important; }
.yard-find span {
  flex: none; font-size: 13px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.yard-find input {
  flex: 1; min-width: 0; height: 56px;
  border: 3px solid #fff; border-radius: 8px;
  padding: 0 16px; font-size: 18px;
  background: #fff !important; color: #141210 !important;
}
.yard-find input:focus { outline: 3px solid #141210; outline-offset: 2px; }
.yard-find button {
  flex: none; height: 56px; padding: 0 28px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: #141210 !important; color: #fff !important;
  font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 700px) {
  .yard-find { flex-wrap: wrap; }
  .yard-find input, .yard-find button { flex: 1 1 100%; width: 100%; }
}
