.bar { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 8px; margin: 0 0 14px; }
.bar i { display: block; height: 10px; border-radius: 3px; background: var(--led-off); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--layer); box-shadow: 0 0 10px var(--layer); opacity: 0; }
.bar i.on::after { opacity: 1; }
.chain-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.rail { position: sticky; top: calc(var(--bar, 0px) + env(safe-area-inset-top) + 24px); z-index: 1; }
.now { display: none; }
.chain-in > .rail { grid-column: 2; grid-row: 1; } .chain-in > .steps { grid-column: 1; grid-row: 1; }
.steps { list-style: none; margin: 0; padding: 8px; display: grid; gap: 0; background: rgba(246,247,242,.62); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(20,23,26,.35), var(--lift); }
.steps li { min-height: var(--li, 15vh); }
.steps button { min-height: var(--bh, 0px); align-content: start; }
.measuring .steps button { min-height: 0; } .measuring .steps .mini { display: none !important; }
.steps button { width: 100%; text-align: left; background: none; border: 0; border-radius: 4px; padding: 12px 14px 12px 26px; font: inherit; color: inherit;
  display: grid; grid-template-columns: 32px 1fr; gap: 0 10px; cursor: pointer; position: relative; isolation: isolate; }
.steps button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--curve); opacity: 0; }
@media (hover: hover) and (pointer: fine) { .steps button:hover::before { opacity: .07; } }
.steps button[aria-pressed="true"]::before { opacity: 1; }
.steps button[aria-pressed="true"] { color: var(--render); }
.steps button[aria-pressed="true"] .note, .steps button[aria-pressed="true"] .credit { color: #C3C8CD; }
.steps .led { position: absolute; left: 10px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--led-off); }
.steps .led::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--layer); box-shadow: 0 0 10px var(--layer); opacity: 0; }
.steps .led.on::after { opacity: 1; }
.steps .n { font-weight: 760; font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; }
.steps .note { grid-column: 2; color: var(--soft); font-size: 16px; line-height: 1.45; }
.steps .credit { display: none; grid-column: 2; color: var(--soft); font-size: 14px; margin-top: 4px; }
.shot { margin: 0; background: var(--render); border-radius: 4px; box-shadow: 0 0 0 1px var(--curve), var(--lift); }
.shot .pic { aspect-ratio: 4/3; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--shaded); display: grid; place-items: center; grid-template: 100% / 100%; }
.shot .pic > .ly { grid-area: 1 / 1; width: 100%; height: 100%; background: var(--shaded); display: grid; place-items: center; grid-template: 100% / 100%; }
.shot .pic > .ly.whole { background: var(--render); }
.shot .pic > .ly.out { opacity: 0; }
.shot.bare .pic > .ly { display: grid; grid-template: auto / auto 1fr; align-items: center; gap: 0 22px; background: var(--render); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .pic.whole, .steps .mini.whole { background: var(--render); }
.shot.bare .pic { aspect-ratio: auto; padding: 20px 24px 22px; background: var(--render); border-radius: 4px; }
.shot.bare figcaption { display: none; }
.num { font-family: "Geologica Outline", var(--g); font-weight: 760; font-size: 88px; line-height: .9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--curve); paint-order: stroke; font-variant-numeric: tabular-nums; }
.bare-t small { display: flex; align-items: flex-start; gap: 8px; font-weight: 520; font-size: 15px; line-height: 1.4; color: var(--soft); }
.bare-t small .dot, .shot figcaption > .dot { margin-top: calc(.7em - 3.5px); }
.bare-t b { display: block; font-weight: 760; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0 4px; }
.bare-t p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.45; max-width: 30em; }
.steps .mini { display: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--layer); box-shadow: 0 0 10px var(--layer); flex: none; }
.shot figcaption { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; font-weight: 520; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--curve); }
.shot .caps { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.shot .caps > .cap { display: block; }
.shot .caps > .cap.gone { position: absolute; top: 0; left: 0; right: 0; }
.shot .caps > .cap.out { opacity: 0; }

@media (max-width: 860px) {
  .bar { gap: 5px; margin: 0 0 8px; } .bar i { height: 9px; }
  .chain-in { grid-template-columns: 1fr; gap: 16px; }
  .rail { top: calc(var(--bar, 0px) + env(safe-area-inset-top)); margin: 0 -16px; padding: 16px 16px 10px; background: var(--vp); box-shadow: 0 1px 0 var(--curve); }
  .now { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 520; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .now span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .chain-in > .rail, .chain-in > .steps { grid-column: auto; grid-row: auto; }
  .shot { display: none; }
  .steps li { min-height: 0; }
  .steps { padding: 6px; }
  .steps button { padding: 10px 10px 10px 22px; grid-template-columns: 28px 1fr; }
  .steps .led { left: 8px; top: 10px; bottom: 10px; }
  .steps .credit { display: block; }
  .steps button[aria-pressed="true"] .mini { display: grid; place-items: center; grid-template: 100% / 100%; grid-column: 1 / -1; margin: 12px 0 2px; aspect-ratio: 4/3; overflow: hidden;
    border-radius: 3px; background: var(--shaded); box-shadow: 0 0 0 1px var(--curve); }
  .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .steps button[aria-pressed="true"] .mini:empty { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .chain-in { --slow: 700ms; --calm: cubic-bezier(.33,1,.68,1); }
  .bar i::after, .steps .led::after { transition: opacity var(--slow) var(--calm); transition-delay: var(--d, 0ms); }
  .steps button::before { transition: opacity var(--slow) var(--calm); }
  .steps button, .steps .note, .steps .credit { transition: color var(--slow) var(--calm); }
  .shot .pic > .ly { transition: opacity var(--slow) var(--calm); }
  .shot .pic > .ly.thru { transition-duration: 440ms; }
  .shot .pic > .ly.quick { transition: opacity 260ms cubic-bezier(.33,1,.68,1); }
  .shot .caps > .cap { transition: opacity var(--slow) var(--calm); }
  .shot .caps.grow { transition: height var(--slow) var(--calm); }
  .steps .mini img { animation: mini-in var(--slow) var(--calm) both; }
  @keyframes mini-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .bar i::after, .steps .led::after, .steps button::before, .steps button, .steps .note, .shot .pic > .ly, .shot .caps > .cap { transition: none; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .steps button:not([aria-pressed="true"]):hover::before { transition-duration: .18s; }
}
