/* Missions page */
.ms-hero { position: relative; min-height: 78vh; min-height: 78svh; display: grid; align-items: end; padding: calc(var(--hdr) + 48px) 0 clamp(48px, 9vh, 96px); }
.ms-bg { position: absolute; inset: 0; }
.ms-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,0) 30%, rgba(10,11,13,0) 60%, var(--k) 100%); }
.ms-hero-in { position: relative; z-index: 2; display: grid; gap: 24px; }
.ms-hero-in .h1 { max-width: 11em; }

/* the app */
.ms-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(var(--gut) * 2); align-items: start; }
.ms-list { display: grid; border-top: 1px solid var(--line); position: sticky; top: calc(var(--hdr) + 24px); }
.ms-pick { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--steel-t); position: relative; transition: color .3s var(--ease); }
.ms-pick .label { color: inherit; padding-top: 4px; }
.ms-pick .t { font-size: 17px; line-height: 1.3; }
.ms-pick:hover { color: var(--paper); }
.ms-pick[aria-pressed="true"] { color: var(--paper); }
.ms-pick[aria-pressed="true"]::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--marron); }
.ms-pick[aria-pressed="true"] .label { color: var(--marron-hi); }

.ms-main { display: grid; gap: 28px; }
.ms-head { display: grid; gap: 14px; min-height: 10.5em; align-content: start; }
.ms-head > * { transition: opacity .25s var(--ease); }
.ms-main.swap .ms-head > * { opacity: 0; }

.ms-map { position: relative; --band: 60px; height: calc(var(--band) * 6); border-top: 1px solid var(--line); }
.ms-band { position: absolute; left: 0; right: 0; height: var(--band); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.ms-band .label { position: absolute; left: 0; top: 8px; font-size: 11px; color: var(--steel-t); transition: color .3s; }
.ms-band.hit .label { color: var(--mist); }
.ms-band.on { background: linear-gradient(90deg, rgba(155,97,49,.12), rgba(155,97,49,0) 70%); }
.ms-band.on .label { color: var(--paper); }
.ms-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ms-svg .ghost { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.ms-svg .seg { fill: none; stroke: var(--marron); stroke-width: 2; transition: stroke-dashoffset .75s var(--ease-out); }
.ms-nodes { position: absolute; inset: 0; }
.ms-node { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; pointer-events: auto; }
.ms-node i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--steel); background: var(--k); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.ms-node.done i { background: var(--marron); border-color: var(--marron); }
.ms-node.on i { background: var(--paper); border-color: var(--paper); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(155,97,49,.45); }
.ms-node .id { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 2px); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--steel-t); white-space: nowrap; transition: color .3s; }
.ms-node.on .id, .ms-node.done .id { color: var(--paper); }
.ms-node:focus-visible { outline: 1px solid var(--paper); outline-offset: 2px; }

.ms-stop { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--gut); align-items: start; padding-top: 6px; }
.ms-stop-n { display: grid; gap: 4px; }
.ms-n { font-family: var(--mono); font-size: 44px; line-height: 1; color: var(--paper); letter-spacing: -.02em; }
.ms-stop-b { display: grid; gap: 10px; min-height: 9.5em; align-content: start; }
.ms-stop-b > * { transition: opacity .2s var(--ease); }
.ms-stop.swap .ms-stop-b > * { opacity: 0; }
.ms-mod { color: var(--marron-hi); }
.ms-det { margin: 0; color: var(--mist); max-width: 40em; }
.ms-ctl { display: flex; gap: 8px; }
.ms-ctl .btn[disabled] { opacity: .35; pointer-events: none; }
.ms-prev { width: 46px; padding: 0; justify-content: center; }

/* the ending band */
.ms-end { position: relative; min-height: 88vh; min-height: 88svh; display: grid; align-items: center; padding: clamp(96px, 14vh, 180px) 0; overflow: hidden; }
.ms-end-bg { position: absolute; inset: 0; }
.ms-end-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.72) 45%, rgba(10,11,13,.35) 100%), linear-gradient(180deg, var(--k) 0%, rgba(10,11,13,0) 22%, rgba(10,11,13,0) 78%, var(--k) 100%); }
.ms-end-in { position: relative; z-index: 2; display: grid; gap: 24px; }
.ms-end-line { max-width: 12em; }
.ms-end-n { color: var(--marron-hi); }

@media (max-width: 900px) {
  .ms-grid { grid-template-columns: 1fr; gap: 40px; }
  .ms-list { position: static; }
  .ms-pick { padding: 13px 0; }
  .ms-pick .t { font-size: 15.5px; }
  .ms-head { min-height: 0; }
  .ms-map { --band: 50px; }
  .ms-band .label { font-size: 11px; top: 5px; }
  .ms-node .id { font-size: 11px; }
  .ms-stop { grid-template-columns: 1fr; gap: 14px; }
  .ms-stop-n { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .ms-n { font-size: 32px; }
  .ms-stop-b { min-height: 0; }
}
