/* ==========================================================================
   GymForge — motion layer
   Loaded after styles.css on every page. Everything here is enhancement:
   remove this file and js/motion.js and the site works exactly as before.
   Motion is switched off for visitors who ask for reduced motion.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Registered so the progress ring can animate its fill smoothly */
@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ---------------------------------------------------------- page transitions
   Cross-document view transitions (Chromium/Safari). Other browsers just
   navigate normally. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: mo-page-out 0.18s var(--ease-in-out) both; }
::view-transition-new(root) { animation: mo-page-in 0.32s var(--ease-out) both; }

.site-header { view-transition-name: site-header; }

@keyframes mo-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes mo-page-in { from { opacity: 0; transform: translateY(10px); } }

/* -------------------------------------------------------- ambient background */
.mo-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mo-ambient i {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  will-change: transform;
}
.mo-ambient i:nth-child(1) {
  background: var(--lime);
  top: -18vmax;
  left: -12vmax;
  animation: mo-drift-a 26s var(--ease-in-out) infinite alternate;
}
.mo-ambient i:nth-child(2) {
  background: var(--cyan);
  top: 10vmax;
  right: -20vmax;
  opacity: 0.07;
  animation: mo-drift-b 32s var(--ease-in-out) infinite alternate;
}
.mo-ambient i:nth-child(3) {
  background: var(--violet);
  bottom: -26vmax;
  left: 30vw;
  opacity: 0.06;
  animation: mo-drift-a 38s var(--ease-in-out) infinite alternate-reverse;
}
@keyframes mo-drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes mo-drift-b { to { transform: translate(-12vmax, 14vmax) scale(0.9); } }

/* Scroll progress bar under the header */
.mo-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  pointer-events: none;
}

/* ------------------------------------------------------------ scroll reveal */
.mo-pending {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}
.mo-in {
  animation: mo-rise 0.7s var(--ease-out) both;
  animation-delay: var(--mo-delay, 0ms);
}
@keyframes mo-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Headline lines slide up out of a mask */
.mo-lines > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.mo-lines > span > span {
  display: inline-block;
  animation: mo-line-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
@keyframes mo-line-up {
  from { transform: translateY(105%) rotate(2deg); }
  to { transform: none; }
}

/* Lime text with a sweeping shine */
.mo-shine {
  background: linear-gradient(100deg, var(--lime) 0 40%, #f4ffd6 50%, var(--lime) 60% 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: mo-shine 5s var(--ease-in-out) 1.2s infinite;
}
@keyframes mo-shine {
  0% { background-position: 100% 0; }
  40%, 100% { background-position: 0 0; }
}

/* ------------------------------------------------------- 3D tilt + spotlight
   JS sets --rx/--ry (degrees) and --mx/--my (px) on hover-capable devices. */
.mo-tilt {
  transition: transform 0.5s var(--ease-out), border-color 0.18s, background 0.18s,
    box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
}
.mo-tilt.is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
  transition: transform 0.08s linear, border-color 0.18s, background 0.18s,
    box-shadow 0.4s var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(201, 255, 51, 0.08);
}

.mo-glow { isolation: isolate; }
.mo-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 255, 51, 0.09),
    transparent 45%
  );
}
.mo-glow:hover::before { opacity: 1; }
/* Border light that follows the cursor */
.mo-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 255, 51, 0.55),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.mo-glow:hover::after { opacity: 1; }
/* .hero already draws stripes with ::after — keep those */
.hero.mo-glow::after { display: none; }

/* -------------------------------------------------------------- buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(201, 255, 51, 0.55); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 0.08s; }

.mo-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: currentColor;
  opacity: 0.22;
  animation: mo-ripple 0.6s var(--ease-out) forwards;
}
@keyframes mo-ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Magnetic CTA: JS sets --tx/--ty */
.mo-magnet {
  translate: var(--tx, 0) var(--ty, 0);
  transition: translate 0.4s var(--ease-out), transform 0.15s, background 0.18s,
    border-color 0.18s, box-shadow 0.18s;
}

/* ------------------------------------------------------------- header */
.brand-mark { transition: transform 0.6s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-18deg) scale(1.08); }
.brand:hover .brand-mark svg { animation: mo-curl 0.9s var(--ease-in-out); }
@keyframes mo-curl {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px) rotate(10deg); }
}

.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(0.5); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header { transition: background 0.3s, box-shadow 0.3s; }
body.mo-scrolled .site-header { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }

/* ---------------------------------------------------------- data motion */
.ring { animation: mo-ring 1.4s var(--ease-out) 0.2s both; }
@keyframes mo-ring { from { --p: 0; } }
.ring-wrap { position: relative; overflow: hidden; }
.ring-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(201, 255, 51, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: mo-sweep 4s var(--ease-in-out) 1.6s infinite;
  pointer-events: none;
}
@keyframes mo-sweep { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

.chart .bar,
.chart .bar-idle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mo-bar 0.9s var(--ease-spring) both;
}
.chart rect:nth-of-type(1) { animation-delay: 0.05s; }
.chart rect:nth-of-type(2) { animation-delay: 0.1s; }
.chart rect:nth-of-type(3) { animation-delay: 0.15s; }
.chart rect:nth-of-type(4) { animation-delay: 0.2s; }
.chart rect:nth-of-type(5) { animation-delay: 0.25s; }
.chart rect:nth-of-type(6) { animation-delay: 0.3s; }
.chart rect:nth-of-type(7) { animation-delay: 0.35s; }
.chart rect:nth-of-type(8) { animation-delay: 0.4s; }
.chart rect:nth-of-type(n + 9) { animation-delay: 0.45s; }
@keyframes mo-bar { from { transform: scaleY(0); } }
.chart .bar { transition: filter 0.2s; }
.chart .bar:hover { filter: brightness(1.25) drop-shadow(0 0 8px rgba(201, 255, 51, 0.5)); }

.chart .line[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: mo-draw 1.6s var(--ease-out) 0.2s both;
}
@keyframes mo-draw { from { stroke-dashoffset: 1; } }
.chart .area { animation: fade-in 1.2s ease 0.6s both; }
.chart .point { animation: mo-pop 0.5s var(--ease-spring) both; animation-delay: 1.2s; transform-box: fill-box; transform-origin: center; }
@keyframes mo-pop { from { transform: scale(0); } }

.stat-value.mo-counting { font-variant-numeric: tabular-nums; }

/* Today pill breathes */
.daypill.is-today { animation: mo-breathe 3.2s var(--ease-in-out) infinite; }
@keyframes mo-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 255, 51, 0); }
  50% { box-shadow: 0 0 0 5px rgba(201, 255, 51, 0.08), 0 0 26px -6px rgba(201, 255, 51, 0.4); }
}
.daypill.is-done::after { animation: mo-pop 0.5s var(--ease-spring) 0.4s both; }

/* ------------------------------------------------------------- workout */
.set-row { transition: transform 0.3s var(--ease-out); }
.set-row.is-done .set-check { animation: mo-check 0.5s var(--ease-spring); }
.set-row.is-done .set-check svg { animation: mo-tick 0.45s var(--ease-out) both; }
@keyframes mo-check {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes mo-tick {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.set-row.mo-flash { animation: mo-flash 0.7s var(--ease-out); }
@keyframes mo-flash {
  0% { background: rgba(201, 255, 51, 0.16); }
  100% { background: transparent; }
}

.mo-burst {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 200;
  animation: mo-burst 0.75s var(--ease-out) forwards;
}
@keyframes mo-burst {
  from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.4);
    opacity: 0;
  }
}

.mo-confetti {
  position: fixed;
  top: -20px;
  width: 9px;
  height: 14px;
  pointer-events: none;
  z-index: 300;
  animation: mo-fall var(--dur, 2.6s) cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
@keyframes mo-fall {
  to {
    transform: translate3d(var(--dx, 0), 110vh, 0) rotateX(var(--rx, 720deg)) rotateZ(var(--rot, 360deg));
    opacity: 0.4;
  }
}

.rest-timer { box-shadow: 0 20px 50px -20px #000, 0 0 0 0 rgba(201, 255, 51, 0.4); }
.rest-timer.over { animation: pop-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.4), mo-alarm 1.1s ease-in-out 0.3s infinite; }
@keyframes mo-alarm {
  0%, 100% { box-shadow: 0 20px 50px -20px #000, 0 0 0 0 rgba(255, 106, 61, 0.45); }
  50% { box-shadow: 0 20px 50px -20px #000, 0 0 0 10px rgba(255, 106, 61, 0); }
}
.rest-time { font-variant-numeric: tabular-nums; }
.timer:not(.is-paused)::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--danger);
  animation: mo-rec 1.4s ease-in-out infinite;
}
@keyframes mo-rec { 50% { opacity: 0.25; transform: scale(0.8); } }

.work-body { animation: mo-rise 0.4s var(--ease-out); }
.history-item.is-open .history-body { animation: mo-rise 0.35s var(--ease-out); }

/* Modals: springier, with 3D flip-in */
.modal { animation: mo-modal 0.5s var(--ease-spring); transform-origin: 50% 80%; }
@keyframes mo-modal {
  from { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(12deg) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.modal-backdrop { backdrop-filter: blur(6px); }

.chip, .segmented button, .tab { transition: all 0.2s var(--ease-out); }
.chip[aria-pressed="true"] { animation: mo-check 0.35s var(--ease-spring); }

.empty svg { animation: mo-float 3.4s var(--ease-in-out) infinite; }
@keyframes mo-float { 50% { transform: translateY(-6px) rotate(-6deg); } }

/* Barbell loading spinner replaces the plain ring */
.spinner {
  border: 0 !important;
  width: 34px !important;
  height: 14px !important;
  border-radius: 0 !important;
  animation: mo-lift 0.9s var(--ease-in-out) infinite !important;
  background:
    linear-gradient(var(--lime), var(--lime)) center / 100% 2px no-repeat,
    linear-gradient(var(--lime), var(--lime)) 3px 50% / 4px 14px no-repeat,
    linear-gradient(var(--lime), var(--lime)) calc(100% - 3px) 50% / 4px 14px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 0 50% / 3px 9px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 100% 50% / 3px 9px no-repeat;
}
@keyframes mo-lift { 50% { transform: translateY(-6px); } }

/* ==========================================================================
   Landing — 3D stage, lifters, ticker
   ========================================================================== */

.mo-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.mo-stage canvas.mo-3d {
  position: absolute;
  inset: -40px -20px;
  width: calc(100% + 40px) !important;
  height: calc(100% + 80px) !important;
  cursor: grab;
  touch-action: pan-y;
}
.mo-stage canvas.mo-3d:active { cursor: grabbing; }
.mo-stage .landing-hero-card {
  position: relative;
  z-index: 2;
  width: min(320px, 74%);
  justify-self: start;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(-1deg) translateY(120px);
  animation: mo-card-float 7s var(--ease-in-out) infinite;
  background:
    linear-gradient(160deg, rgba(201, 255, 51, 0.1), transparent 46%),
    rgba(18, 22, 28, 0.78);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
@keyframes mo-card-float {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-1deg) translateY(120px); }
  50% { transform: rotateY(-10deg) rotateX(4deg) rotateZ(0deg) translateY(106px); }
}
.mo-stage .mock-row { animation: mo-rise 0.6s var(--ease-out) both; }
.mo-stage .mock-row:nth-child(2) { animation-delay: 0.5s; }
.mo-stage .mock-row:nth-child(3) { animation-delay: 0.65s; }
.mo-stage .mock-row:nth-child(4) { animation-delay: 0.8s; }
.mo-stage .mock-dot.is-done { animation: mo-breathe 2.4s infinite; }

.mo-stage-hint {
  position: absolute;
  bottom: 6px;
  right: 8px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: fade-in 1s ease 2s both;
}
.mo-stage-hint::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  border-left-color: transparent;
  animation: spin 2.4s linear infinite;
}

/* Floating stat chips around the 3D model */
.mo-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 28, 0.82);
  backdrop-filter: blur(10px);
  font-size: 12px;
  box-shadow: var(--shadow);
  pointer-events: none;
  animation: mo-chip-float 6s var(--ease-in-out) infinite;
}
.mo-chip strong { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1; }
.mo-chip.c1 { top: 2%; left: 0; animation-delay: -1s; }
.mo-chip.c1 strong { color: var(--lime); }
.mo-chip.c2 { top: auto; bottom: 18%; right: 0; animation-delay: -3s; }
.mo-chip.c2 strong { color: var(--orange); }
@keyframes mo-chip-float { 50% { transform: translateY(-12px); } }

/* Exercise ticker */
.mo-ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line-soft);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mo-ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: mo-marquee 60s linear infinite;
}
.mo-ticker:hover .mo-ticker-track { animation-play-state: paused; }
.mo-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.2s;
}
.mo-ticker-track span:hover { color: var(--lime); }
.mo-ticker-track span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  transform: rotate(45deg);
  opacity: 0.6;
}
@keyframes mo-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- lifter figures */
.mo-gym {
  display: grid;
  gap: 18px;
}
.mo-gym-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mo-lifters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mo-lifter {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.mo-lifter svg {
  width: 100%;
  height: 190px;
  overflow: visible;
}
.mo-lifter .floor { stroke: var(--line); stroke-width: 2; }
.mo-lifter .shadow { fill: rgba(0, 0, 0, 0.45); transform-box: fill-box; transform-origin: center; }
.mo-lifter .body { stroke: var(--text); stroke-width: 9; stroke-linecap: round; fill: none; }
.mo-lifter .head { fill: var(--text); }
.mo-lifter .iron { fill: var(--lime); }
.mo-lifter .iron-dark { fill: #6f8c1c; }
.mo-lifter .bar { stroke: #c7ced6; stroke-width: 4; stroke-linecap: round; }
.mo-lifter-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mo-lifter-foot h3 { font-size: 15px; }
.mo-reps {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mo-reps small { font-family: var(--font-sans); font-size: 11px; color: var(--faint); font-weight: 600; margin-left: 3px; }
.mo-reps.bump { animation: mo-check 0.35s var(--ease-spring); }
.mo-lifter-hint { font-size: 11.5px; color: var(--faint); }
.mo-lifter.is-paused svg * { animation-play-state: paused !important; }
.mo-lifter.is-paused .mo-lifter-hint { color: var(--lime); }

/* All parts share one rep cycle */
.mo-lifter svg { --rep: 2.4s; }
.mo-lifter .j { transform-box: view-box; animation-duration: var(--rep); animation-iteration-count: infinite; animation-timing-function: var(--ease-in-out); }

/* Squat (side view). Joints chain ankle -> knee -> hip, origins in viewBox units */
.squat .shin { transform-origin: 100px 186px; animation-name: sq-shin; }
.squat .thigh { transform-origin: 100px 148px; animation-name: sq-thigh; }
.squat .torso { transform-origin: 100px 112px; animation-name: sq-torso; }
.squat .shadow { animation: sq-shadow var(--rep) var(--ease-in-out) infinite; }
@keyframes sq-shin { 50% { transform: rotate(32deg); } }
@keyframes sq-thigh { 50% { transform: rotate(-104deg); } }
@keyframes sq-torso { 50% { transform: rotate(100deg); } }
@keyframes sq-shadow { 50% { transform: scaleX(1.2); } }

/* Curl (side view) */
svg.curl { --rep: 2s; }
.curl .forearm { transform-origin: 100px 106px; animation-name: cu-arm; }
.curl .torso { transform-origin: 100px 128px; animation-name: cu-sway; }
@keyframes cu-arm { 50% { transform: rotate(-140deg); } }
@keyframes cu-sway { 50% { transform: rotate(-3deg); } }

/* Overhead press (front view) */
svg.press { --rep: 2.8s; }
.press .upper-l { transform-origin: 80px 76px; animation-name: pr-up-l; }
.press .fore-l { transform-origin: 66px 96px; animation-name: pr-fore-l; }
.press .upper-r { transform-origin: 120px 76px; animation-name: pr-up-r; }
.press .fore-r { transform-origin: 134px 96px; animation-name: pr-fore-r; }
.press .bar-move { animation-name: pr-bar; }
@keyframes pr-up-l { 50% { transform: rotate(130deg); } }
@keyframes pr-fore-l { 50% { transform: rotate(-130deg); } }
@keyframes pr-up-r { 50% { transform: rotate(-130deg); } }
@keyframes pr-fore-r { 50% { transform: rotate(130deg); } }
@keyframes pr-bar { 50% { transform: translateY(-44px); } }

/* --------------------------------------------------------- feature icons */
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(201, 255, 51, 0.25);
  background: rgba(201, 255, 51, 0.07);
  transition: transform 0.5s var(--ease-spring), background 0.3s;
}
.feature:hover .feature-icon { transform: translateZ(30px) rotate(-8deg) scale(1.08); background: rgba(201, 255, 51, 0.16); }

.steps li { transition: transform 0.3s var(--ease-out); }
.steps li:hover { transform: translateX(6px); }
.steps li:hover .step-num { background: var(--lime); color: #10140a; }
.step-num { transition: background 0.25s, color 0.25s, transform 0.4s var(--ease-spring); }
.steps li:hover .step-num { transform: rotate(-10deg) scale(1.1); }

.board-row { transition: background 0.2s, transform 0.3s var(--ease-out); }
.board-row:hover { transform: translateX(4px); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .mo-stage { min-height: 530px; align-items: end; }
  .mo-stage .landing-hero-card { animation: none; transform: rotateX(6deg); justify-self: center; }
  .mo-stage canvas.mo-3d { inset: -20px 0 auto; width: 100% !important; height: 340px !important; }
  .mo-stage::before { top: 22%; }
  .mo-stage-hint { top: 4px; bottom: auto; }
}
@media (max-width: 720px) {
  .mo-lifters { grid-template-columns: 1fr; }
  .mo-lifter svg { height: 160px; }
  .mo-chip { display: none; }
}
@media (hover: none) {
  .mo-glow::before, .mo-glow::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mo-pending { opacity: 1; transform: none; }
  .mo-ambient, .mo-burst, .mo-confetti { display: none; }
  .mo-tilt.is-tilting { transform: none !important; }
  .mo-shine { animation: none; background: none; color: var(--lime) !important; }
  .mo-ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Landing headline: masked lines keep the base text colour; only the shine line is lime */
.landing { overflow-x: clip; }
.landing-title.mo-lines span { color: var(--text); }
.landing-title .mo-shine { font-style: normal; display: inline-block; }
.mo-stage::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 30%;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 255, 51, 0.22), transparent);
  filter: blur(18px);
  pointer-events: none;
}

#landing-status { margin-top: 12px; }
