/* motion.css — styles for assets/js/motion.js. Everything is scoped to html.m-on, which motion.js sets only
   when motion is allowed, so reduced-motion and no-JS visitors get the plain site.css look. */

/* Page progress hairline */
.m-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--gold-bright, #ddb468), var(--gold, #c99a4a));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Ledger rows: the existing bottom border is replaced by a rule that draws itself */
html.m-on .ptype-item,
html.m-on .why-row { position: relative; border-bottom-color: transparent; }
html.m-on .why-row { --m-rule-c: rgba(13, 27, 42, 0.14); }
.m-rule {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--m-rule-c, var(--atmo-line));
  transform-origin: 0 50%; pointer-events: none;
}

/* Ascent: elevator-glass light sweep */
.m-sweep {
  position: absolute; inset: -20% 0; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 236, 200, 0) 38%, rgba(255, 236, 200, 0.16) 49%,
    rgba(255, 255, 255, 0.28) 50%, rgba(255, 236, 200, 0.14) 51%, rgba(255, 236, 200, 0) 62%, transparent 100%);
  mix-blend-mode: screen;
}

/* Hotspots: dot pops, hairline draws, tag wipes in (replaces the plain fade) */
html.m-on .hotspot-dot { transform: scale(0); transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1) 80ms; }
html.m-on .hotspot-line { transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms cubic-bezier(.16, 1, .3, 1) 220ms; }
html.m-on .hotspot-tag { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 700ms cubic-bezier(.16, 1, .3, 1) 420ms; }
html.m-on .is-settled .hotspot-dot { transform: scale(1); }
html.m-on .is-settled .hotspot-line { transform: scaleX(1); }
html.m-on .is-settled .hotspot-tag { clip-path: inset(0 0% 0 0 round 999px); }

/* Level rail marker and rolling label land with a soft overshoot */
html.m-on .rail-marker,
html.m-on .am-rail-marker { transition: transform 650ms cubic-bezier(.34, 1.45, .64, 1); }
html.m-on .stop-roller-track { transition: transform 750ms cubic-bezier(.65, 0, .2, 1); }

/* Curtain deck (desktop): sections stack like cards; the incoming one carries a soft top shadow and an
   opaque background, the covered one dims under .m-shade */
html.m-on .m-deck { position: relative; box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, 0.55); }
html.m-on #projects.m-deck { background-color: var(--paper); }
html.m-on #why.m-deck { background-color: var(--sand); }
.m-shade {
  position: absolute; inset: 0; z-index: 50; pointer-events: none; opacity: 0;
  background: #050b13;
}
