/* SIM TECH motion layer. Most rules apply only when html.mo is set
   (set by an inline script, never for visitors who prefer reduced motion). */

:root { --ease: cubic-bezier(.2, .8, .2, 1); }
html.mo { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ================= scroll progress bar ================= */
.mo-bar { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, #32DCF8, #1F57AC); transform-origin: 0 50%; transform: scaleX(0); }

/* ================= sticky header ================= */
html.mo header { position: sticky; top: 0; z-index: 60; transition: background-color .35s ease, box-shadow .35s ease; }
html.mo header.stuck { background: rgba(255, 255, 255, .97) !important; box-shadow: 0 4px 16px rgba(26, 30, 35, .08); }
html.mo header.stuck img { transition: width .35s var(--ease); }

/* ================= hero ================= */
html.mo .mo-ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
html.mo .mo-ln > span { display: block; transform: translateY(112%);
  animation: mo-up 1.05s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .13s); }
html.mo .mo-fu { opacity: 0; transform: translateY(22px);
  animation: mo-fu .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
html.mo .mo-kb-off { scale: 1.16; opacity: 0; animation: mo-kb 2.8s var(--ease) forwards;
  translate: 0 var(--py, 0px); will-change: scale, translate; }
.mo-beam { position: absolute; top: 0; bottom: 0; left: -30%; width: 24%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(50, 220, 248, .22), transparent);
  animation: mo-beam 7.5s ease-in-out 2.6s infinite; }
html.mo [data-layers] > div { opacity: 0; transform: translateY(100%);
  animation: mo-fu .8s var(--ease) forwards; animation-delay: calc(.9s + var(--i, 0) * .11s);
  transition: background-color .5s ease, box-shadow .5s ease; }
html.mo [data-layers] > div.on { background-color: rgba(50, 220, 248, .18); box-shadow: inset 0 3px 0 #32DCF8; }
html.mo [data-layers] > div.on .lbl { color: #32DCF8 !important; }
html.mo [data-layers] .lbl { transition: color .5s ease; }

@keyframes mo-up { to { transform: translateY(0); } }
@keyframes mo-fu { to { opacity: 1; transform: none; } }
@keyframes mo-kb { to { scale: 1; opacity: 1; } }
@keyframes mo-beam { 0% { left: -30%; } 38%, 100% { left: 125%; } }
@keyframes mo-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ================= marquee ================= */
.mq { background: #0E1116; border-bottom: 1px solid #1A1E23; overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; }
.mq-t { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; animation: mq 38s linear infinite;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(34px, 5.4vw, 78px); line-height: 1; letter-spacing: -1.5px;
  text-transform: uppercase; white-space: nowrap; }
.mq-t span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .42); }
.mq-t span.f { color: #32DCF8; -webkit-text-stroke: 0; }
.mq-t i { width: clamp(10px, 1.2vw, 16px); height: clamp(10px, 1.2vw, 16px); background: #1F57AC; flex: none; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-t { animation: none; } }

/* ================= cinema (aurora on a large display) ================= */
#cinema { background: #070A0F; color: #FFFFFF; border-bottom: 1px solid #1A1E23; overflow: hidden; }
.cin-wrap { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 56px) clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 52px); text-align: center; }
.cin-copy { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cin-copy .h2 { color: #FFFFFF; }
.cin-lead { margin: 0; font-size: 16px; line-height: 1.85; color: #AAB3BB; max-width: 520px; }
.cin-screen { position: relative; width: min(100%, 1120px); aspect-ratio: 16 / 9; background: #03050A; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65); }
.cin-cv { display: block; width: 100%; height: 100%; object-fit: cover; background: #03050A; }
.cin-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 80px rgba(7, 10, 15, .55); }
.cin-tags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px;
  font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #6F7882; }
.cin-tags i { width: 4px; height: 4px; background: #1F57AC; }

/* ================= scroll reveals ================= */
html.mo [data-rv] { opacity: 0; transition: opacity .6s ease, transform .6s var(--ease), clip-path .8s var(--ease), scale .8s var(--ease);
  transition-delay: var(--d, 0ms); will-change: opacity, transform; }
html.mo [data-rv="up"] { transform: translateY(14px); }
html.mo [data-rv="wipe"] { opacity: 0; }
html.mo [data-rv="zoom"] { scale: 1.03; }
html.mo [data-rv].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); scale: 1; }

/* headline mask reveal */
html.mo .mo-split .mo-hl { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
html.mo .mo-split .mo-hl > span { display: block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .12s); }
html.mo .mo-split.go .mo-hl > span { transform: none; }

/* ================= hover and pointer effects ================= */
.mo-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 50%), rgba(50, 220, 248, .15), transparent 62%); z-index: 1; }
.mo-spot.on { opacity: 1; }
#company { position: relative; }
.mo-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 62%); }
.mo-mag { transition: translate .35s var(--ease); }
#process ol { position: relative; }
.mo-pline { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: linear-gradient(90deg, #1F57AC, #32DCF8); pointer-events: none; }
#process ol li span[aria-hidden] { transition: transform .45s var(--ease), box-shadow .45s ease; }
#process ol li span[aria-hidden].hit { transform: scale(1.7); box-shadow: 0 0 0 6px rgba(50, 220, 248, .28); }

@media (hover: hover) {
  #products a[href*="/products/"] > div:first-child { position: relative; }
  #products a[href*="/products/"] img { transition: scale .7s var(--ease); }
  #products a[href*="/products/"]:hover img { scale: 1.05; }
  #products a[href*="/products/"]:hover .mo-glow { opacity: 1; }
  #products a[href*="/products/"] svg { transition: transform .35s var(--ease); }
  #products a[href*="/products/"]:hover svg { transform: translate(4px, -4px); }
  #products a[href*="/products/"] h3 { transition: color .3s ease; }
  #products a[href*="/products/"]:hover h3 { color: #1F57AC; }
  #products a[href="#contact"] svg { transition: transform .35s var(--ease); }
  #products a[href="#contact"]:hover svg { transform: translateX(6px); }

  main a > svg, section a > svg, header nav a > svg { transition: transform .35s var(--ease); }
  main a:hover > svg, section a:hover > svg, header nav a:hover > svg { transform: translateX(5px); }
  a[download]:hover > svg { transform: translateY(3px) !important; }

  #media li > a { transition: transform .4s var(--ease), color .3s ease; }
  #media li > a:hover { transform: translateX(8px); }
  #company li { transition: padding-left .4s var(--ease), color .3s ease; }
  #company li:hover { padding-left: 12px !important; color: #32DCF8; }

  header nav a:not(:last-child) { position: relative; }
  header nav a:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 0; height: 2px;
    background: #1F57AC; transform: translateX(-50%); transition: width .35s var(--ease); }
  header nav a:not(:last-child):hover::after { width: 26px; }

  #ir img, main figure img { transition: scale 1s var(--ease); }
  #ir:hover img, main figure:hover img { scale: 1.03; }
}
html.mo header nav a[href$="#contact"] { transition: background-color .3s ease; }
html.mo header nav a[href$="#contact"]:hover { background-color: #17458A; }

@media (max-width: 899px) {
  html.mo header { position: static; }
  html.mo { scroll-padding-top: 12px; }
  html.mo [data-rv="up"] { transform: translateY(10px); }
  html.mo .mo-kb-off { translate: 0 0; }
  .mq-t { animation-duration: 26s; }
}
