/* MotionPath premium shell — tokens from premium-core.css */

.motionpath-page {
  --mp-bg: var(--bg, #010204);
  --mp-panel: rgba(8, 12, 17, .88);
  --mp-line: rgba(255, 255, 255, .1);
  --mp-text: #f2f5f8;
  --mp-muted: #93a0ae;
  --mp-accent: var(--accent, #ff7338);
  --font-display: "Archivo", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: var(--font-body);
}

.dvp-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

.dvp-orb-1 { width: 44rem; height: 44rem; top: -22rem; right: -12rem; opacity: .2; }
.dvp-orb-2 { width: 32rem; height: 32rem; top: 38%; left: -18rem; opacity: .12; }
.dvp-orb-3 { width: 28rem; height: 28rem; bottom: -14rem; right: 12%; opacity: .1; }

.motionpath-page main {
  position: relative;
  z-index: 1;
}

.motionpath-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 3rem) 7rem;
}

.motionpath-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .72fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: 26rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--mp-line);
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

.motionpath-hero-copy { min-width: 0; }

.motionpath-intro::after {
  content: none;
}

.motionpath-app input,
.motionpath-app select,
.motionpath-app textarea,
.motionpath-app button {
  max-width: 100%;
}

.motionpath-kicker {
  margin: 0 0 .7rem;
  color: var(--mp-accent);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.motionpath-intro h1 {
  margin: 0;
  max-width: none;
  color: var(--mp-text);
  font-family: var(--font-display);
  font-size: clamp(4.3rem, 10vw, 8.7rem);
  font-stretch: expanded;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .84;
  text-transform: uppercase;
}

.motionpath-intro h1 span {
  color: var(--mp-accent);
}

.motionpath-deck {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--mp-muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.motionpath-intro .btn-ghost,
.motionpath-guide .btn-primary,
.motionpath-guide .btn-ghost {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.4rem;
  border: 1px solid rgba(255, 115, 56, .45);
  border-radius: .35rem;
  color: var(--mp-accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  padding: .7rem 1rem;
}

.motionpath-hero-signal {
  height: 16rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  isolation: isolate;
}

.motionpath-orbit {
  position: absolute;
  inset: 18% 8%;
  border: 1px dashed rgba(255, 115, 56, .35);
  border-radius: 50%;
}

.motionpath-orbit-node {
  width: .78rem;
  height: .78rem;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: var(--mp-accent);
  box-shadow: 0 0 0 6px rgba(255, 115, 56, .1), 0 0 25px currentColor;
}

.motionpath-orbit-node:nth-child(3) { transform: translateY(-1.6rem); }
.motionpath-orbit-node:nth-child(4) { transform: translateY(1.2rem); }
.motionpath-orbit-node:nth-child(5) { transform: translateY(-.4rem); }

.motionpath-rail,
.motionpath-preview,
.motionpath-app #motionpath-output {
  border-color: var(--mp-line);
  background: var(--mp-panel);
  overflow-wrap: anywhere;
}

.motionpath-app #motionpath-output p,
.motionpath-app #motionpath-output button,
.motionpath-app #motionpath-output a {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.motionpath-app h2,
.motionpath-app h3,
.motionpath-guide h1,
.motionpath-guide h2 {
  font-family: var(--font-display);
  font-stretch: expanded;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.motionpath-rail > h2,
.motionpath-preview h2,
.motionpath-app #motionpath-output h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  overflow-wrap: anywhere;
}

body.motionpath-page .dvp-chrome-links .current {
  font-size: .78rem;
}

.motionpath-guide {
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 3rem) 7rem;
}

.motionpath-guide > header {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

.motionpath-guide h1 {
  max-width: 14ch;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
}

.motionpath-guide h1 span { color: var(--mp-accent); }

.mpg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 28rem;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--mp-line);
}

.mpg-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.mpg-phase-signal {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--mp-accent);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpg-phase-signal span {
  display: grid;
  place-items: center;
  width: 5.2rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 115, 56, .28);
}

.mpg-phase-signal i {
  flex: 1;
  min-width: 1.2rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.mpg-preview {
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  border: 1px solid var(--mp-line);
  background: var(--mp-panel);
  padding: .55rem;
}

.mpg-preview img { display: block; width: 100%; height: auto; }
.mpg-preview figcaption {
  padding: .75rem .5rem .25rem;
  color: var(--mp-muted);
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
}

.mpg-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--mp-line);
}

.mpg-heading { max-width: 50rem; margin-bottom: 1.75rem; }
.mpg-heading h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .96; }

.mpg-steps,
.mpg-families,
.mpg-locks,
.mpg-views {
  display: grid;
  gap: 0;
  border: 1px solid var(--mp-line);
  background: var(--mp-panel);
}

.mpg-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mpg-families { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpg-locks, .mpg-views { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpg-views { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mpg-steps article,
.mpg-families article,
.mpg-locks article,
.mpg-views article {
  min-width: 0;
  padding: 1.1rem;
  border-right: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
}

.mpg-steps article:nth-child(5n),
.mpg-families article:nth-child(4n),
.mpg-locks article:nth-child(4n),
.mpg-views article:nth-child(3n) { border-right: 0; }

.mpg-steps span, .mpg-views b { color: var(--mp-accent); font-family: var(--font-mono); }
.mpg-views b { font-size: 2rem; }
.mpg-steps h3, .mpg-families h3, .mpg-locks h3, .mpg-views h3 {
  margin: .45rem 0 .35rem;
  font-size: 1rem;
}
.mpg-steps p, .mpg-families p, .mpg-locks p, .mpg-views p {
  margin: 0;
  color: var(--mp-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.mpg-families svg {
  width: 4rem;
  height: 2.5rem;
  color: var(--mp-accent);
}

.mpg-phases {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: .35rem;
  margin: 0 0 1.4rem;
}

.mpg-phases span {
  display: grid;
  place-items: center;
  min-height: 3.2rem;
  border: 1px solid var(--mp-line);
  color: var(--mp-text);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mpg-phases .is-entry { background: rgba(255, 115, 56, .12); }
.mpg-phases .is-travel { background: rgba(255, 115, 56, .28); }
.mpg-phases .is-settle { background: rgba(255, 115, 56, .12); }

.mpg-close {
  padding: clamp(4.5rem, 10vw, 8rem) 0 1rem;
  text-align: center;
}

.mpg-close h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.mpg-close p { max-width: 42rem; margin: 1rem auto 0; color: var(--mp-muted); }

@media (max-width: 900px) {
  .mpg-hero { grid-template-columns: 1fr; min-height: 0; }
  .mpg-phase-signal { display: none; }
  .mpg-steps, .mpg-families, .mpg-locks, .mpg-views { grid-template-columns: 1fr 1fr; }
  .mpg-steps article:nth-child(5n),
  .mpg-families article:nth-child(4n),
  .mpg-locks article:nth-child(4n),
  .mpg-views article:nth-child(3n) { border-right: 1px solid var(--mp-line); }
  .mpg-steps article:nth-child(2n),
  .mpg-families article:nth-child(2n),
  .mpg-locks article:nth-child(2n),
  .mpg-views article:nth-child(2n) { border-right: 0; }
}

@media (max-width: 640px) {
  .mpg-steps, .mpg-families, .mpg-locks, .mpg-views, .mpg-phases { grid-template-columns: 1fr; }
  .mpg-steps article, .mpg-families article, .mpg-locks article, .mpg-views article { border-right: 0; }
  .motionpath-guide h1 {
    font-size: clamp(1.7rem, 9.4vw, 2.4rem);
    max-width: none;
    overflow-wrap: anywhere;
  }
  .mpg-heading h2,
  .mpg-close h2 {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem);
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) {
  .motionpath-intro {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .72fr);
  }

  .motionpath-intro h1 {
    font-size: clamp(4.3rem, 10vw, 8.7rem);
  }

  .motionpath-hero-copy,
  .motionpath-hero-signal {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .motionpath-intro {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 4.5rem;
  }

  .motionpath-intro h1 {
    font-size: clamp(2.05rem, 11.5vw, 3.4rem);
    letter-spacing: -.08em;
    overflow-wrap: anywhere;
  }

  .motionpath-hero-signal,
  .dvp-orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motionpath-page *,
  .motionpath-page *::before,
  .motionpath-page *::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0s !important;
  }
}
