.personal-system .method-journey {
  width: min(100%, 61rem);
}

.method-walk {
  --header-offset: 5rem;
  --ruler-height: 5.45rem;
  --axis-height: 1.5rem;
  --station-color: var(--accent-dark);
  --reading-position: max(42vh, calc(var(--header-offset) + var(--label-height, 0px) + var(--ruler-height) + 1rem));
}

.method-dock { display: contents; }


@media (min-height: 50rem) {
  .method-walk[data-dock] .method-dock {
    display: block;
    position: sticky;
    top: calc(var(--header-offset) - var(--collapse-distance, 0px));
    z-index: 3;
    background: var(--canvas);
  }
  .method-walk[data-dock] .method-heading { margin-bottom: 0; }
  .method-walk[data-dock] .method-heading::after {
    content: "";
    display: block;
    height: clamp(1.4rem, 3vw, 2.2rem);
  }
  .method-walk[data-dock] .method-heading .eyebrow {
    position: sticky;
    top: var(--header-offset);
    z-index: 1;
    margin: 0;
    padding-block: clamp(.6rem, 1.6vh, 2rem) .75rem;
    background: var(--canvas);
  }
  .method-walk[data-dock] .method-ruler { position: relative; top: auto; }
}
@media (min-height: 50rem) and (prefers-reduced-motion: no-preference) {
  .method-heading h2 { opacity: var(--title-opacity, 1); }
}
@media (min-width: 52rem) and (min-height: 50rem) {
  .method-walk[data-dock] {
    --pinned-bottom: calc(var(--header-offset) + var(--label-height) + var(--ruler-height));
    --reading-position: clamp(calc(var(--pinned-bottom) + 1rem), 42vh, calc(var(--pinned-bottom) + 10rem));
  }
}

.method-ruler {
  --station-width: clamp(4rem, 21vw, 6rem);
  position: sticky;
  z-index: 3;
  top: var(--header-offset);
  height: var(--ruler-height);
  padding: 1rem calc(var(--station-width) / 2) 0;
  background: var(--canvas);
}

.method-ruler::after {
  content: "";
  position: absolute;
  inset: calc(100% - 1px) 0 auto;
  height: 1rem;
  background: linear-gradient(to bottom, var(--canvas), transparent);
  pointer-events: none;
}

.method-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 100%;
  color: var(--ink-soft);
  background: linear-gradient(to right, currentColor 1px, transparent 1px)
    left var(--axis-height) / calc(100% / 15) .36rem repeat-x;
}

.method-scale::before, .method-scale::after {
  position: absolute;
  top: var(--axis-height);
  content: "";
}

.method-scale::before {
  left: -.85rem;
  right: -1.3rem;
  border-top: 2px solid currentColor;
}

.method-scale::after {
  right: -1.3rem;
  width: .52rem;
  height: .52rem;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(calc(-50% + 1px)) rotate(45deg);
}

.method-scale a {
  position: relative;
  display: grid;
  width: var(--station-width);
  min-height: 2.75rem;
  margin-inline: calc(var(--station-width) / -2);
  padding-top: calc(var(--axis-height) + .58rem);
  justify-items: center;
  border-radius: .35rem;
  color: var(--ink-soft);
  font: 650 clamp(.875rem, 2.8vw, 1.1rem)/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
}

.method-scale a::before {
  position: absolute;
  top: calc(var(--axis-height) + 1px);
  width: .6rem;
  height: .6rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--canvas);
  transform: translateY(-50%);
  content: "";
}

.method-scale a[aria-current], .method-scale a:focus-visible {
  color: var(--station-color);
}

.method-scale a[aria-current]::before {
  width: .86rem;
  height: .86rem;
  background: currentColor;
}

.method-hops {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: var(--axis-height);
  overflow: visible;
  clip-path: inset(-2px calc(100% * (1 - var(--travel, 0))) -2px 0);
  pointer-events: none;
}

.method-hops path {
  fill: none;
  stroke: var(--station-color);
  stroke-width: 2;
  stroke-linecap: round;
}

.method-stations {
  display: grid;
  gap: .4rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

.method-stations li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(.55rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.2vw, 1.55rem) clamp(.4rem, 1.4vw, 1.3rem);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  scroll-margin-top: max(0px, calc(var(--entry-line, var(--reading-position)) - var(--page-scroll-padding, 6rem)));
}

.method-stations h3 { margin: 0 0 .45rem; }
.method-stations p { max-width: 88ch; margin: 0; }

.method-stations .is-current {
  border-color: color-mix(in srgb, var(--station-color) 55%, var(--line));
  background: color-mix(in srgb, var(--station-color) 4%, var(--canvas));
}

.method-stations .is-current + li h3 { color: var(--ink-soft); }
.method-stations .is-current + li p {
  color: color-mix(in srgb, var(--ink-soft) 86%, var(--canvas));
}

.method-stations svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.method-stations .is-current svg { color: var(--station-color); }

@media (min-width: 52rem) {
  .method-stations li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
  }
  .method-stations svg {
    justify-self: center;
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .method-stations li { transition: background-color 140ms, border-color 140ms; }
  .method-walk.in-view .is-current .icon-draw {
    stroke-dasharray: 1;
    animation: method-draw var(--duration, 480ms) cubic-bezier(.22, .64, .36, 1) var(--delay, 0ms) both;
  }
  .method-walk.in-view .is-current .icon-reveal {
    animation: method-reveal var(--duration, 520ms) ease-in-out var(--delay, 0ms) both;
  }
  .method-stations .lens { --duration: 690ms; }
  .method-stations .graph { --delay: 190ms; --duration: 570ms; }
  .method-stations .graph-point { --delay: 310ms; --duration: 160ms; }
  .method-stations .stairs, .method-stations .page-outline { --duration: 750ms; }
  .method-scale a:not([aria-current])::before {
    transition: background-color 100ms ease-out, border-color 100ms ease-out,
      width 100ms ease-out, height 100ms ease-out;
  }
  .method-ruler.is-travelling a[aria-current]::before {
    width: .6rem;
    height: .6rem;
    border-color: var(--ink-soft);
    background: var(--canvas);
  }
  .method-walk.in-view .method-ruler:not(.is-travelling) a[aria-current]::before {
    animation: method-arrival 230ms ease-out;
  }
}

@keyframes method-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes method-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes method-arrival {
  from {
    transform: translateY(-50%) scale(.9);
    background-color: currentColor;
  }
  32% {
    transform: translateY(-50%) scale(1.10);
    background-color: color-mix(in srgb, currentColor 64%, #fff4e2);
  }
  to {
    transform: translateY(-50%) scale(1);
    background-color: currentColor;
  }
}

@media (max-height: 420px) {
  .method-ruler { position: relative; top: auto; }
  .method-walk { --reading-position: max(40vh, calc(var(--header-offset) + 1rem)); }
}
