/* Decorative motion is independent of responsive layout transforms. */
.motion-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.motion-control {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  padding: 12px 0;
  white-space: nowrap;
}
.motion-control:hover { color: var(--green); }
.motion-paused { display: none; }
.motion-toggle:focus-visible ~ .header .motion-control {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}
.motion-toggle:checked ~ .header .motion-running { display: none; }
.motion-toggle:checked ~ .header .motion-paused { display: inline; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.product-actions .product-link {
  flex: 1 1 140px;
  border-top: 0;
  padding-top: 0;
  min-height: 44px;
}
.product-pricing {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #56614e;
  border-radius: 4px;
  font-size: 13px;
  color: var(--green);
  transition: background .2s, border-color .2s;
}
.product-pricing:hover { background: #c2d4ad12; border-color: var(--green); }
.product { transition: border-color .3s, translate .3s, box-shadow .3s; }
.product:hover, .product:focus-within {
  border-color: #758565;
  translate: 0 -5px;
  box-shadow: 0 18px 36px #0002;
}
.product-link span, .button span, .nav-cta span {
  display: inline-block;
  transition: translate .25s;
}
.product-link:hover span, .button:hover span, .nav-cta:hover span { translate: 3px -3px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: arrive .85s cubic-bezier(.2,.7,.3,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .orb { animation: float 9s ease-in-out infinite; }
  .orb::after { animation: surface-drift 36s linear infinite; }
  .orbit-one { animation: precess 65s linear infinite; }
  .orbit-two { animation: precess 90s linear infinite reverse; }
  .orbit-three { animation: precess 110s linear infinite; }
  .art-cross { animation: turn 28s linear infinite; }
  .cross-two { animation-direction: reverse; }
  .ticker .star, .closing-star { animation: turn 70s linear infinite; }
  .sun { animation: sunrise 7s ease-in-out infinite; }
  .sun-rays { animation: ray-glow 7s ease-in-out infinite; }
  .kalvex-art svg path:last-child { stroke-dasharray: 800; animation: trace 3s ease-out both; }
  .kalvex-art::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -30%;
    width: 25%;
    background: linear-gradient(90deg, transparent, #a6bdf00b, transparent);
    animation: scan 10s ease-in-out infinite;
    pointer-events: none;
  }
  @supports (animation-timeline: view()) {
    .section-top, .product, .about, .closing {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    .kalvex-art svg path:last-child {
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes arrive { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes precess { to { rotate: 360deg; } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes surface-drift { to { rotate: 360deg; } }
@keyframes sunrise {
  0%, 100% { translate: 0 0; opacity: .85; }
  50% { translate: 0 -5px; opacity: 1; }
}
@keyframes ray-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes trace { from { stroke-dashoffset: 800; } to { stroke-dashoffset: 0; } }
@keyframes scan { 0%, 15% { translate: 0 0; } 85%, 100% { translate: 650% 0; } }
/* Stop rather than freeze entrances so every section remains readable. */
.motion-toggle:checked ~ main *,
.motion-toggle:checked ~ main *::before,
.motion-toggle:checked ~ main *::after { animation: none !important; transition: none !important; }
.motion-toggle:checked ~ main .product:hover,
.motion-toggle:checked ~ main .product:focus-within { translate: none; }
@media (max-width: 700px) {
  .header { height: auto; min-height: 116px; flex-wrap: wrap; gap: 12px; padding-block: 18px; }
  .header nav { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 480px) {
  .header nav { flex-wrap: wrap; }
  .header .motion-control { order: 1; flex-basis: 100%; padding: 0; text-align: right; }
  .header .nav-cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .product:hover, .product:focus-within { translate: none; }
  .motion-toggle, .motion-control { display: none; }
}
