/* MindMarket-direction prototype (2026-11-21, Claude): structure and motion
   from MindMarket, look from Double Tap'd (red / ink / cream, restrained).
   Everything is scoped to .mm-panel and .route-mm, so removing this file
   and those two classes restores the previous design. */

/* ---- "what we are": a full-bleed red panel ------------------------------ */
.home-about.mm-panel {
  background: var(--brand-red, #c8321c);
  color: #fff;
  border-radius: clamp(28px, 4vw, 56px);
  margin: clamp(1rem, 3vw, 2.5rem) clamp(10px, 1.6vw, 24px) 0;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.home-about.mm-panel .eyebrow { color: #fff; }
.home-about.mm-panel .eyebrow::before { background: #fff; }
.home-about.mm-panel h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  max-width: 18ch;
  margin: .4rem 0 1.4rem;
}
.home-about.mm-panel p:not(.eyebrow) { color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 44rem; }
.home-about.mm-panel .text-link { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ---- the route: a cream panel that slides up over the section above ---- */
.route-journey.route-mm {
  background: #faf5ec;
  border-radius: clamp(28px, 4vw, 56px);
  margin: clamp(1rem, 3vw, 2.5rem) clamp(10px, 1.6vw, 24px);
  position: relative;
  z-index: 2;
}
.route-mm .route-head h2 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 1;
}
.route-mm .route-head .route-dek { font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* The road: real asphalt, about 3x the old ribbon, with a concrete
   sidewalk, curbs, white edge lines and a yellow dashed centre line that
   is painted in as the car drives down it. Widths are screen px
   (non-scaling-stroke), so the road keeps its width on any screen. */
.route-mm .thread-layer { --road: clamp(120px, 14vw, 210px); }
.route-mm .thread-base { display: none; }
.route-mm .thread-svg {
  overflow: visible;
  filter: drop-shadow(0 22px 22px rgba(70, 35, 15, .22));
}
.route-mm .road use { stroke-linecap: round; }
.route-mm .road-walk { stroke: #efe4d2; stroke-width: calc(var(--road) + 54px); }
.route-mm .road-curb { stroke: #d9cbb3; stroke-width: calc(var(--road) + 16px); }
.route-mm .road-asphalt { stroke: #35322f; stroke-width: var(--road); }
.route-mm .road-edge { stroke: #f4efe6; stroke-width: calc(var(--road) - 18px); }
.route-mm .road-asphalt-inner { stroke: #3a3734; stroke-width: calc(var(--road) - 26px); }
.route-mm .road-sheen { display: none; }
.route-mm .thread-draw {
  stroke: #f2c14e;
  stroke-width: 5;
  stroke-dasharray: 26 20;
  stroke-linecap: butt;
}

/* LA: palms in two depth layers, a street sign, and the car. */
.route-mm .route-palm,
.route-mm .route-sign,
.route-mm .route-car {
  position: absolute;
  pointer-events: none;
}
.route-mm .route-palm {
  aspect-ratio: 140 / 232;
  transform: translate(-50%, calc(-100% + var(--py, 0px)));
  z-index: 1;
  filter: drop-shadow(0 14px 10px rgba(70, 35, 15, .18));
}
.route-mm .route-palm--far {
  z-index: 0;
  opacity: .72;
  filter: saturate(.8) blur(.4px);
}
.route-mm .route-palm svg,
.route-mm .route-sign svg,
.route-mm .route-car svg { display: block; width: 100%; height: 100%; }
.route-mm .route-sign {
  width: clamp(96px, 9vw, 130px);
  aspect-ratio: 1;
  transform: translate(-50%, var(--py, 0px));
  z-index: 1;
}
.route-mm .route-car {
  width: clamp(34px, 3.4vw, 50px);
  aspect-ratio: 60 / 104;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: left, top, transform;
}
.route-journey:not(.route-live) .route-car { display: none; }
@media (max-width: 860px) {
  .route-mm .route-palm,
  .route-mm .route-sign { display: none; }
  .route-mm .thread-layer { --road: clamp(58px, 14vw, 104px); }
  .route-mm .road-walk { stroke-width: calc(var(--road) + 22px); }
  .route-mm .road-curb { stroke-width: calc(var(--road) + 8px); }
  .route-mm .road-edge { stroke-width: calc(var(--road) - 10px); }
  .route-mm .road-asphalt-inner { stroke-width: calc(var(--road) - 15px); }
  .route-mm .thread-draw { stroke-width: 3; stroke-dasharray: 14 12; }
}

/* Narrow screens keep the drive (Avery 2026-11-21): the road runs down a
   left lane (see NARROW_D in home-motion.ts) and the cards sit to its
   right, spaced so the car has road to cover between stops. */
@media (max-width: 860px) {
  .route-journey.route-live .route-cards { padding: 0 4vw 0 0; }
  .route-journey.route-live .route-card,
  .route-journey.route-live .route-card--r,
  .route-journey.route-live .route-card--l {
    width: auto;
    align-self: stretch;
    margin-left: 27vw;
    margin-right: 0;
  }
  .route-journey.route-live .route-card:first-child { margin-top: 6vh; }
  .route-journey.route-live .route-card + .route-card { margin-top: 24vh; }
  .route-mm .route-card { padding: 1.35rem; border-radius: 22px; }
  .route-mm .route-card h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* Sunset: the panel warms from cream toward dusk as the night goes on. */
.route-journey.route-mm {
  background: linear-gradient(180deg, #faf5ec 0%, #fbefe2 30%, #f9e0cf 62%, #f3c9b7 88%, #eebcae 100%);
}

/* Stops: an original line-art scene sitting on the path. */
.route-mm .thread-node--scene {
  width: clamp(120px, 11vw, 168px);
  height: clamp(120px, 11vw, 168px);
  margin: calc(clamp(120px, 11vw, 168px) / -2) 0 0 calc(clamp(120px, 11vw, 168px) / -2);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 40px -18px rgba(29, 27, 24, .35);
  transform: scale(.88);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.route-mm .thread-node--scene svg { width: 72%; height: 72%; }
.route-mm .thread-node--scene.is-on {
  background: #fff;
  color: inherit;
  transform: scale(1);
  box-shadow: 0 0 0 6px var(--brand-red, #c8321c), 0 24px 50px -18px rgba(29, 27, 24, .4);
}

/* Cards: bigger type, softer, no hairline border. */
.route-mm .route-card {
  background: #fff;
  border: 0;
  border-radius: 28px;
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  box-shadow: 0 30px 60px -32px rgba(29, 27, 24, .28);
}
.route-mm .route-card h3 {
  font-size: clamp(1.9rem, 2.7vw, 2.7rem);
  line-height: 1.05;
}
.route-mm .route-card p { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .route-mm .thread-node--scene { transition: none; transform: none; }
}
.route-mm .thread-node--scene { z-index: 3; }
