/* Copied from gemboss-www assets/engine.css (the gemboss.ai hero "field of pages", 20/11/2026), rules .hm-stage,
   .hm-plane, .hm-grid, .hm-card, the sheen and their keyframes, verbatim except where marked GEMTWIN:
   - GEMTWIN: cards are phone pages (aspect 9/16) without the browser-bar strip, on a light sky instead of navy;
   - GEMTWIN: the agent, strings and tags are GemBoss's own and are left out. */
.hm-stage{position:relative;height:clamp(400px,42vw,580px);margin-top:16px;pointer-events:none}
.hm-plane{position:absolute;inset:0;perspective:1000px;perspective-origin:50% 10%;overflow:hidden;
  -webkit-mask-image:radial-gradient(110% 120% at 50% 100%,#000 50%,transparent 82%);mask-image:radial-gradient(110% 120% at 50% 100%,#000 50%,transparent 82%)}
.hm-grid{position:absolute;left:50%;bottom:-12%;width:min(1640px,150vw);display:grid;grid-template-columns:repeat(8,1fr);gap:16px;
  transform:translateX(-50%) rotateX(58deg);transform-origin:50% 100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.3,1)}
/* GEMTWIN: aspect 9/16, light border and shadow */
.hm-card{position:relative;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#eef1f6;
  border:1px solid rgba(22,22,26,.08);box-shadow:0 10px 30px -12px rgba(22,22,26,.35);opacity:0;animation:hmIn .9s cubic-bezier(.2,.8,.3,1) forwards}
/* GEMTWIN: the image fills the card (no 12px browser bar) */
.hm-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;display:block;transition:opacity .35s}
.hm-card .sheen{position:absolute;inset:0;z-index:2;pointer-events:none;transform:translateX(-120%);
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%)}
.hm-card.gen{border-color:rgba(238,77,45,.6)}
.hm-card.gen .sheen{animation:hmSheen 1.1s cubic-bezier(.4,0,.2,1)}
.hm-card.swap img{opacity:.15}
@keyframes hmSheen{to{transform:translateX(120%)}}
@keyframes hmIn{from{opacity:0;transform:translateZ(-60px)}to{opacity:1;transform:none}}
.hm-paused .hm-card{animation-play-state:paused}
@media(max-width:860px){
  .hm-grid{grid-template-columns:repeat(5,1fr);gap:12px;width:170vw}
  .hm-grid .hm-card:nth-child(n+36){display:none}
}
@media(max-width:560px){
  .hm-stage{height:380px;margin-top:16px}
  .hm-grid{width:220vw}
}
/* GEMTWIN: under reduced motion the entrance stops, the sheen stays (light, not travel). */
@media(prefers-reduced-motion:reduce){
  .hm-card{animation:none;opacity:1}
}
