/* Shared motion. Static HTML is always readable; JavaScript is enhancement. */
.motion-scroll-progress {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #81e8ff, #91b9ff 65%, #be9cff);
  box-shadow: 0 0 13px #72d9ff66;
}

[data-motion-toggle] { touch-action: manipulation; }
[data-motion-toggle] [data-motion-icon] { display: inline-block; min-width: 1em; text-align: center; }
[data-motion-toggle] [data-motion-label] { white-space: nowrap; }
[data-motion-toggle][aria-disabled="true"] { cursor: default; }
[data-motion-toggle]:focus-visible { outline: 2px solid var(--lime, #80e5ff); outline-offset: 4px; }
.motion-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #97caff45;
  border-radius: 100px;
  color: #d7e8ff;
  background: #0c1524;
  font: 500 10px/1.4 var(--body, sans-serif);
}
.motion-control:hover { background: #17263d; border-color: #9fdaff88; }

.motion-divider {
  position: relative;
  height: 22px;
  overflow: hidden;
  background: #060a12;
  pointer-events: none;
}
.motion-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 1px;
  background: #91bfff22;
}
.motion-divider-line {
  position: absolute;
  left: -24%;
  top: 10px;
  width: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a3e8ff 70%, #bfa4ff, transparent);
  box-shadow: 0 0 11px #9adfff88;
}
.motion-divider-node {
  position: absolute;
  top: 7px;
  left: 20%;
  width: 7px;
  height: 7px;
  border: 1px solid #86caff80;
  border-radius: 50%;
  background: #0c1726;
}
.motion-divider-node:nth-of-type(3) { left: 50%; }
.motion-divider-node:nth-of-type(4) { left: 80%; }

/* New loops require successful JavaScript initialisation, so pause controls
   and viewport observation are present before continuous motion begins. */
.motion-ready .motion-divider-line { animation: amarine-transfer 6s linear infinite; }
.motion-ready .motion-divider-node { animation: amarine-node-glow 6s ease-in-out infinite; }
.motion-ready .motion-divider-node:nth-of-type(3) { animation-delay: 1.8s; }
.motion-ready .motion-divider-node:nth-of-type(4) { animation-delay: 3.6s; }
.motion-ready .technology-strip i { animation: amarine-star-turn 12s linear infinite; }
.motion-ready .intelligence-connections path {
  stroke-dasharray: 8 10;
  animation: amarine-connection-flow 6s linear infinite;
}
.motion-ready .intelligence-connections path.is-selected { animation-duration: 2.8s; }
.motion-ready .route-diagram svg g[fill="none"] > path:first-child {
  stroke-dasharray: 13 9;
  animation: amarine-route-flow 5s linear infinite;
}
.motion-ready .booking-time .time-orbit {
  --motion-orbit-start: -25deg;
  animation: amarine-orbit 32s linear infinite;
}
.motion-ready .booking-time .time-orbit-two {
  --motion-orbit-start: -28deg;
  animation-duration: 26s;
  animation-direction: reverse;
}
.motion-ready .booking-time .time-orbit-three {
  --motion-orbit-start: 35deg;
  animation-duration: 38s;
}
.motion-ready .time-spark { animation: amarine-spark 5s ease-in-out infinite; }
.motion-ready .scale-orbit { --motion-orbit-start: -22deg; animation: amarine-orbit 44s linear infinite; }
.motion-ready .scale-orbit.orbit-two { --motion-orbit-start: 43deg; animation-duration: 34s; animation-direction: reverse; }
.motion-ready .scale-orbit.orbit-three { --motion-orbit-start: 20deg; animation-duration: 52s; }
.motion-ready .signal-line i { transform-origin: center; animation: amarine-signal 1.3s ease-in-out infinite alternate; }
.motion-ready .signal-line i:nth-child(2n) { animation-delay: -.7s; animation-duration: 1.5s; }
.motion-ready .signal-line i:nth-child(3n) { animation-delay: -.35s; animation-duration: 1.1s; }
.motion-ready .signal-line i:nth-child(4n) { animation-delay: -.9s; animation-duration: 1.7s; }
.motion-ready .continuity-path > i { background-size: 200% 100%; animation: amarine-line-flow 3s linear infinite; }

/* The previous reveal stylesheet can coexist during rollout. WAAPI entrances
   above handle motion without leaving any content permanently transparent. */
.motion-ready .reveal { opacity: 1; transform: none; transition: none; }
.motion-ready .motion-scope:not(.is-motion-visible),
.motion-ready .motion-scope:not(.is-motion-visible) *,
.motion-ready .motion-scope:not(.is-motion-visible)::before,
.motion-ready .motion-scope:not(.is-motion-visible)::after,
.motion-ready .motion-scope:not(.is-motion-visible) *::before,
.motion-ready .motion-scope:not(.is-motion-visible) *::after {
  animation-play-state: paused !important;
}

@media (hover: hover) and (pointer: fine) {
  .motion-ready [data-tilt] {
    transform: perspective(1100px) rotateX(var(--motion-tilt-x, 0deg)) rotateY(var(--motion-tilt-y, 0deg));
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  }
  .motion-ready [data-tilt].motion-tilting { transition-duration: .12s, .25s, .25s; }
  .motion-ready [data-tilt]:hover { border-color: #94d7ff70; box-shadow: 0 14px 50px #4b87ce14; }
  .motion-ready .page-card .card-arrow,
  .motion-ready [data-hover-arrow] { transition: translate .25s; }
  .motion-ready .page-card:hover .card-arrow,
  .motion-ready a:hover [data-hover-arrow] { translate: 4px -4px; }
}

body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after,
body.motion-document-hidden *,
body.motion-document-hidden *::before,
body.motion-document-hidden *::after { animation-play-state: paused !important; }
body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after { transition-duration: 0s !important; }
body.motion-paused [data-tilt] { transform: none !important; }
html:has(body.motion-paused) { scroll-behavior: auto; }

@keyframes amarine-transfer { to { transform: translateX(520%); } }
@keyframes amarine-node-glow {
  0%, 72%, 100% { background: #0c1726; box-shadow: 0 0 0 transparent; }
  18%, 30% { background: #addcff; box-shadow: 0 0 15px #96dfff99; }
}
@keyframes amarine-connection-flow { to { stroke-dashoffset: -180; } }
@keyframes amarine-route-flow { to { stroke-dashoffset: -220; } }
@keyframes amarine-star-turn { to { transform: rotate(360deg); } }
@keyframes amarine-orbit {
  from { transform: rotate(var(--motion-orbit-start, 0deg)); }
  to { transform: rotate(calc(var(--motion-orbit-start, 0deg) + 360deg)); }
}
@keyframes amarine-spark {
  0%, 100% { transform: translate(0, 0); opacity: .7; }
  50% { transform: translate(-16px, 22px); opacity: 1; }
}
@keyframes amarine-signal { from { transform: scaleY(.3); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
@keyframes amarine-line-flow { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-tilt] { transform: none !important; }
  .motion-divider-line { left: 38%; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
