/* Cinematic first screen: one aligned, opaque-to-technical image pair. */
.scene-opaque {opacity:0;clip-path:inset(0 0 0 100%);mask-image:radial-gradient(ellipse 32% 26% at 63% 45%,#000 70%,transparent);transition:none}
.scene-ready[data-step="0"] .scan-track i {animation:none}
.landing[data-step="0"] .engine-glow {opacity:.08;animation:none}
.hero-scan-grid {inset:25% 19% auto 38%;height:34%;opacity:0;background:linear-gradient(0deg,#ff586b50 1px,transparent 1px),linear-gradient(90deg,#ff586b50 1px,transparent 1px);background-size:8% 12%;mask-image:radial-gradient(ellipse 49% 39% at 50% 53%,#000 45%,transparent);mix-blend-mode:screen;clip-path:polygon(3% 30%,23% 16%,41% 5%,65% 8%,84% 20%,97% 56%,97% 83%,79% 87%,54% 91%,28% 96%,3% 96%)}
.scan-track i {position:absolute;inset:0;background:linear-gradient(90deg,transparent 81%,#ff3d4d22 94%,#ffccd8 99.3%,transparent);opacity:0;will-change:transform,opacity}
.scene.technical-ready.hero-cycle .scene-opaque {animation:hero-xray 12s linear infinite}
.scene.technical-ready.hero-cycle .hero-scan-grid {animation:hero-mesh 12s linear infinite}
.landing[data-step="0"] .scene.technical-ready.hero-cycle .scan-track i {animation:hero-beam 12s linear infinite}
.landing[data-step="1"] .scene.technical-ready .scene-opaque,.landing[data-step="2"] .scene.technical-ready .scene-opaque {animation:none;opacity:1;clip-path:inset(0)}
.landing[data-step="1"] .scene.technical-ready .hero-scan-grid,.landing[data-step="2"] .scene.technical-ready .hero-scan-grid {animation:none;opacity:.38}
.landing[data-step="3"] .scene.technical-ready .scene-opaque,.landing[data-step="3"] .scene.technical-ready .hero-scan-grid {animation:none;opacity:0}
@keyframes hero-xray {0%,23%{opacity:0;clip-path:inset(0 0 0 100%)}24%{opacity:1;clip-path:inset(0 0 0 100%)}49%,79%{opacity:1;clip-path:inset(0)}91%,100%{opacity:0;clip-path:inset(0)}}
@keyframes hero-mesh {0%,11%{opacity:0;transform:scale(.97)}21%,50%{opacity:.82;transform:none}65%,79%{opacity:.24;transform:none}91%,100%{opacity:0;transform:none}}
@keyframes hero-beam {0%,23%{transform:translateX(0);opacity:0}25%{opacity:.9}47%{opacity:1}49%,100%{transform:translateX(-100%);opacity:0}}
/* Replay the short editorial title entrance once per document, including reloads. */
.hero-intro .eyebrow,.hero-intro .landing-copy h1 span,.hero-intro .hero-description,.hero-intro .hero-actions {animation:hero-title-in .75s var(--ease) both}
.hero-intro .eyebrow {animation-delay:.06s}
.hero-intro .landing-copy h1 span:nth-child(1){animation-delay:.17s}
.hero-intro .landing-copy h1 span:nth-child(2){animation-delay:.31s}
.hero-intro .landing-copy h1 span:nth-child(3){animation-delay:.45s}
.hero-intro .hero-description{animation-delay:.61s}
.hero-intro .hero-actions{animation-delay:.76s}
.hero-intro .scene-source img {animation:hero-art-in 1.2s var(--ease) both}
@keyframes hero-title-in {from{opacity:0;transform:translateY(.55em);clip-path:inset(100% -12% -12% -12%)}to{opacity:1;transform:none;clip-path:inset(-12%)}}
@keyframes hero-art-in {from{opacity:.1;filter:brightness(.5)}to{opacity:1;filter:none}}
/* Auto-play has an explicit pause control and never takes keyboard focus. */
.carousel-auto {position:absolute;right:-42px;bottom:2px;z-index:5;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #6f7a82;border-radius:4px;background:#0b1115cc;color:#e4e9ec;font-size:16px;line-height:1}
.carousel-auto:hover {border-color:#ff6b76;color:#ff6b76}
.category-card.wrap-jump {transition:none!important}
@media (max-width:900px) {
  .landing {--hero-height:max(100svh,clamp(700px,187vw,990px));background:#0a1015}
  .landing-copy {min-height:calc(var(--hero-height) - var(--header) - 2.8vw);z-index:1}
  .scene {--hero-art-height:min(150vw,var(--hero-height));--hero-art-top:calc(var(--hero-height) - var(--hero-art-height));position:absolute;inset:0 0 auto;height:var(--hero-height);z-index:0;margin:0;background:radial-gradient(ellipse at 86% 54%,#50101830,transparent 48%),#0a1015}
  .scene picture {inset:auto 0 0;height:var(--hero-art-height);transform-origin:center 50%}
  .scene picture img {height:100%;width:100%;object-fit:contain;object-position:center bottom}
  .scene-source {mask-image:linear-gradient(to bottom,transparent,#000 22% 87%,transparent)}
  .scene-opaque {mask-image:radial-gradient(ellipse 53% 24% at 51% 53%,#000 73%,transparent)}
  .scene-shade {background:linear-gradient(180deg,#0a1015 0%,#0a1015df 23%,#0a101559 43%,transparent 57% 77%,#0a1015 100%)}
  .scene .ceiling {inset:calc(var(--hero-art-top) + var(--hero-art-height)*.24) 10% auto 8%;height:12%;opacity:.14}
  .scene .lamps,.scene .floor-glow,.scene .engine-glow,.scene .glass-glint,.scene .red-wall,.scene .motes {display:none}
  .scene .scan-track,.scene .hero-scan-grid {inset:calc(var(--hero-art-top) + var(--hero-art-height)*.40) 1% auto 1%;height:calc(var(--hero-art-height)*.28);clip-path:polygon(0 48%,13% 29%,31% 17%,45% 3%,70% 8%,89% 31%,100% 58%,96% 87%,4% 92%);mask-image:radial-gradient(ellipse 52% 47% at 50% 50%,#000 57%,transparent)}
  .scene-targets {inset:calc(var(--hero-art-top) + var(--hero-art-height)*.40) 10% auto 10%;height:calc(var(--hero-art-height)*.30)}
  .landing-stats {position:relative;z-index:1;margin-top:0}
  .carousel-auto {right:7vw;top:-8px;bottom:auto;min-width:44px;min-height:44px}
}
@media (max-width:370px) {.landing-copy {min-height:calc(var(--hero-height) - var(--header) - 2.4vw)}}
/* Scanner: acquisition grid, then an aligned right-to-left technical reveal. */
.scan-frame {--scan-duration:2800ms}
.scan-grid {background:linear-gradient(0deg,#fc526b42 1px,transparent 1px),linear-gradient(90deg,#fc526b42 1px,transparent 1px);background-size:5% 8%;mask-image:radial-gradient(ellipse 45% 43% at 50% 58%,#000 35%,transparent);mix-blend-mode:screen}
.scan-frame[data-phase=sweeping] .scan-grid {animation:scanner-mesh var(--scan-duration) linear both}
.scan-frame[data-phase=active] .scan-grid {opacity:.24}
.scan-frame[data-phase=sweeping] .scan-tech {animation-duration:var(--scan-duration)}
.scan-beam {inset:21% 0 auto auto;height:66%;mask-image:linear-gradient(transparent,#000 22% 78%,transparent)}
.scan-beam::before {content:'';position:absolute;inset:0 0 0 auto;width:8%;background:linear-gradient(90deg,transparent,#ff25313d,#ff7c915c);pointer-events:none}
.scan-beam::after {width:2px;box-shadow:0 0 9px 2px #ff5b73,0 0 25px 3px #f71529}
.scan-frame[data-phase=sweeping] .scan-beam {animation-duration:var(--scan-duration)}
@keyframes scanner-mesh {0%{opacity:0;transform:scale(.97)}18%,76%{opacity:.8;transform:none}100%{opacity:.24;transform:none}}
@keyframes scanner-uncover {0%,18%{clip-path:inset(0 0 0 100%)}88%,100%{clip-path:inset(0)}}
@keyframes scanner-beam {0%,18%{transform:translateX(0);opacity:0}22%{opacity:1}84%{opacity:1}88%,100%{transform:translateX(-100%);opacity:0}}
@media (prefers-reduced-motion:reduce) {
  .scene.technical-ready.hero-cycle .scene-opaque,.scene.technical-ready.hero-cycle .hero-scan-grid,.landing[data-step="0"] .scene.technical-ready.hero-cycle .scan-track i {animation:none}
  .hero-intro .eyebrow,.hero-intro .landing-copy h1 span,.hero-intro .hero-description,.hero-intro .hero-actions,.hero-intro .scene-source img{animation:none}
}

/* Use the complete aligned technical frame, including its matching reflections.
   No polygon or feathered mask may leave opaque islands behind the moving edge. */
.scan-frame {--scan-edge:100%}
.scan-frame[data-view] .scan-interior {clip-path:none;mask-image:none;-webkit-mask-image:none}
.scan-frame[data-phase=sweeping] .scan-tech {animation:none;transition:none;opacity:1;clip-path:inset(0 0 0 var(--scan-edge))}
.scan-frame[data-phase=sweeping] .scan-beam {animation:none;opacity:1;transform:translateX(calc(var(--scan-edge) - 100%))}
.scan-frame[data-phase=sweeping] .scan-beam::after {transform:translateX(50%)}
.scan-frame[data-phase=active] .scan-tech {transition:none}
