/* Fuse Creative — 30+ models grid (black panel, even tiles, live signal) */
.mgrid-wrap { margin-top: 56px; }
.mgrid { position: relative; overflow: hidden; border-radius: 30px; background: #070707; color: #f4f4f0; isolation: isolate; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.mgrid-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 148px; padding: 22px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.mcell:nth-child(5n) { border-right: 0; }
.mcell:nth-last-child(-n+5) { border-bottom: 0; }
.mcell b { font-weight: 650; font-size: clamp(17px, 1.75vw, 26px); letter-spacing: -.02em; line-height: 1.1; transition: transform .5s var(--ease, cubic-bezier(.22,1,.36,1)), text-shadow .5s ease; }
.mcell small { font: 500 10.5px/1 ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,244,240,.42); transition: color .4s ease; }
.mcell::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(70% 90% at 50% 50%, var(--glow, rgba(244,119,33,.32)), transparent 70%); transition: opacity .6s ease; }
.mcell.is-hot::before, .mcell:hover::before { opacity: 1; }
.mcell.is-hot b, .mcell:hover b { transform: translateY(-2px) scale(1.04); text-shadow: 0 0 22px var(--glow, rgba(244,119,33,.6)); }
.mcell.is-hot small, .mcell:hover small { color: rgba(244,244,240,.85); }
/* tiles rise in one after another */
.mgrid-cells .mcell { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .9s var(--ease, cubic-bezier(.22,1,.36,1)); transition-delay: calc(var(--i) * 35ms); }
.mgrid.is-in .mcell { opacity: 1; transform: none; }
/* a slow beam of light sweeping across the panel */
.mgrid::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.06) 45%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.06) 55%, transparent); animation: mgrid-sweep 7s ease-in-out infinite; }
@keyframes mgrid-sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.mgrid-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 13px; color: var(--ink-faint); }
.mgrid-foot strong { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) {
  .mgrid-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mcell:nth-child(5n) { border-right: 1px solid rgba(255,255,255,.08); }
  .mcell:nth-child(4n) { border-right: 0; }
  .mcell:nth-last-child(-n+5) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .mcell:nth-last-child(-n+4) { border-bottom: 0; }
  .mcell { min-height: 120px; }
}
@media (max-width: 560px) {
  .mgrid { border-radius: 22px; }
  .mgrid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcell:nth-child(4n) { border-right: 1px solid rgba(255,255,255,.08); }
  .mcell:nth-child(2n) { border-right: 0; }
  .mcell:nth-last-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .mcell:nth-last-child(-n+2) { border-bottom: 0; }
  .mcell { min-height: 78px; padding: 14px 6px; gap: 6px; }
  .mcell small { font-size: 9.5px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) { .mgrid::after { animation: none; display: none; } .mgrid-cells .mcell { opacity: 1; transform: none; transition: none; } }

/* ---------- More-models marquee ---------- */
.mgrid-more { position: relative; overflow: hidden; margin-top: 12px; border-radius: 999px; background: #070707; color: rgba(244,244,240,.78); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mgrid-more-track { display: flex; width: max-content; gap: 0; padding: 14px 0; animation: mgrid-marquee 46s linear infinite; }
.mgrid-more:hover .mgrid-more-track { animation-play-state: paused; }
.mgrid-more span { display: inline-flex; align-items: center; gap: 22px; padding: 0 11px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mgrid-more span::after { content: "✦"; font-size: 10px; color: var(--accent, #f47721); }
@keyframes mgrid-marquee { to { transform: translateX(-50%); } }

/* ---------- Hero workflow: Phygital+-style live flow ---------- */
.creative-canvas > svg path { stroke-width: 1.4; stroke-dasharray: 5 7; animation: cf-dash 1.1s linear infinite; }
.creative-canvas > svg circle { animation: cf-dash 3.5s linear infinite reverse; }
@keyframes cf-dash { to { stroke-dashoffset: -24; } }
.creative-canvas > svg .cf-pulse { fill: var(--product-tint); stroke: none; filter: drop-shadow(0 0 4px var(--product-tint)); animation: none; }
.creative-frame { animation: cf-drift 7s ease-in-out infinite; transition: border-color .4s ease, box-shadow .4s ease; }
.frame-generate { animation-delay: -1.7s; } .frame-refine { animation-delay: -3.4s; } .frame-output { animation-delay: -5.1s; }
@keyframes cf-drift { 0%, 100% { translate: 0 0; } 30% { translate: -6px 4px; } 60% { translate: 4px -5px; } }
.creative-frame.cf-on { border-color: var(--product-tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--product-tint) 16%, transparent), 0 18px 40px color-mix(in srgb, var(--product-tint) 22%, transparent); }
.cf-cursor { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; transition: transform 1.05s cubic-bezier(.65,0,.25,1); will-change: transform; }
.cf-cursor svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); transition: transform .18s ease; }
.cf-cursor.cf-click svg { transform: scale(.82); }
.cf-cursor em { position: absolute; left: 18px; top: 18px; padding: 4px 9px; border-radius: 999px; background: #ffd54a; color: #1a1600; font: 700 10.5px/1.2 Inter, ui-sans-serif, sans-serif; font-style: normal; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: opacity .25s ease; }
.cf-cursor em.cf-swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .creative-canvas > svg path, .creative-canvas > svg circle, .creative-frame, .mgrid-more-track { animation: none; } .cf-cursor { display: none; } }
