/* Site motion · 2026-11-15
   Three behaviours, all opt-in from JS so that nothing is ever hidden when the
   script does not run: a stagger on groups of cards, the experience rail, and a
   pointer tilt. Each one is off under prefers-reduced-motion. */

/* ---------- 1. cards arrive one after another ---------- */
.m-stagger > .m-item {
  opacity: 0;
  transform: translate3d(0, 26px, -40px) rotateX(6deg);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.m-stagger { perspective: 1000px; }
.m-stagger > .m-item.m-in { opacity: 1; transform: none; }

/* ---------- 2. the experience rail ---------- */
.m-railed { padding-left: 36px; }
.m-rail { position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: #E6E4E2; border-radius: 2px; }
.m-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: #202126; border-radius: 2px; }
.m-dot {
  position: absolute; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #FBF8F2; border: 2px solid #E6E4E2; transform: translateY(-50%) scale(.8);
  transition: background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.m-dot.on { background: #202126; border-color: #202126; transform: translateY(-50%) scale(1.15); }
.m-railed { position: relative; }
@media (max-width: 900px) { .m-rail, .m-dot { display: none; } .m-railed { padding-left: 0; } }

/* ---------- 3. the pointer tilt ---------- */
.m-tilt { transform-style: preserve-3d; will-change: transform; }
.m-tilt .project-img, .m-tilt > * { transform: translateZ(0.01px); }

@media (prefers-reduced-motion: reduce) {
  .m-stagger > .m-item { opacity: 1 !important; transform: none !important; transition: none; }
  .m-rail i { transition: none; }
  .m-dot { transition: none; }
  .m-tilt { transform: none !important; }
}

/* ---------- 4. the project filter rearranges instead of jumping ---------- */
.project-card.m-out { opacity: 0; transform: scale(.96); transition: opacity .17s ease, transform .17s ease; pointer-events: none; }
.m-flip { transition: transform .42s cubic-bezier(.22,.61,.36,1); }
.m-enter { animation: m-enter .42s cubic-bezier(.22,.61,.36,1) both; }
@keyframes m-enter { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 5. the four steps of the approach, as stages ---------- */
.m-step { position: relative; padding-left: 64px; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.m-step .m-step-n { position: absolute; left: 20px; top: 20px; font-size: 30px; font-weight: 800; line-height: 1; color: #E6E4E2; transition: color .35s ease; }
.m-step.on { transform: translateY(-3px); box-shadow: 0 14px 34px #0f172a12; }
.m-step.on .m-step-n { color: #202126; }
@media (max-width: 700px) { .m-step { padding-left: 54px; } .m-step .m-step-n { left: 16px; font-size: 26px; } }

/* ---------- 6. reading progress ---------- */
.m-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: transparent; pointer-events: none; }
.m-progress i { display: block; height: 100%; width: 0; background: #202126; transition: width .12s linear; }
nav a.m-here { color: #15171B; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .m-flip, .project-card.m-out, .m-step, .m-progress i { transition: none; }
  .m-enter { animation: none; }
}

/* ---------- the Q&A box: full-width band, 860px of content ---------- */
.profile-qa { padding: 72px 20px; }
.profile-qa > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.assistant-head { margin-bottom: 18px; }
.assistant-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; margin: 0 0 6px; }
.assistant-kicker { margin: 0; font-size: 13px; color: #686D76; }
@media (max-width: 700px) { .profile-qa { padding: 48px 16px; } }

/* ---------- About: the timeline ---------- */
.about-timeline { list-style: none; margin: 0; padding: 0; }
.about-timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid #E6E4E2; }
.about-timeline li:first-child { border-top: 0; }
.at-year { font-size: 13px; font-weight: 700; color: #686D76; letter-spacing: .04em; padding-top: 3px; }
.about-timeline h3 { font-size: 16px; font-weight: 700; margin: 0 0 5px; line-height: 1.35; }
.about-timeline p { margin: 0; font-size: 14px; line-height: 1.6; color: #5e6670; }
@media (max-width: 640px) { .about-timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- About: the photo beside the opening ---------- */
.about-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.about-photo { margin: 0; border-radius: 18px; overflow: hidden; background: #FBF8F2; box-shadow: 0 10px 30px #0f172a0f; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .about-hero { grid-template-columns: 1fr; gap: 24px; } .about-photo { max-width: 260px; } }
