/* roadmap · owner P5
   Default (reduced motion, no GSAP, narrow screens): a vertical timeline. A violet line draws down the rail as you scroll,
   nodes light up, the gate (a padlock on the rail) sits between Stage 8 and Stage 9, then a black block for 9 and 10.
   html.motion at >= 900px wide: a pinned horizontal track (see the second half of this file and roadmap.js). */
#roadmap { position: relative; padding-top: var(--sec); overflow-x: clip; }
#roadmap .rm__track { --rail: 7px; width: min(100% - 2 * var(--m), var(--maxw)); margin-inline: auto; }
#roadmap .rm__line { margin-top: clamp(22px, 2.4vw, 32px); }
#roadmap .rm__run { margin-top: clamp(48px, 6vw, 88px); }
#roadmap .rm__list { list-style: none; padding: 0; margin: 0; position: relative; }

/* the rail and its violet fill (vertical) */
#roadmap .rm__list::before, #roadmap .rm__vfill, html.static #roadmap .rm__list::after { content: ""; position: absolute; left: var(--rail); top: 8px; bottom: 0; width: 2px; margin-left: -1px; background: rgba(0, 0, 0, 0.18); }
#roadmap .rm__vfill, html.static #roadmap .rm__list::after { background: var(--v); transform-origin: 50% 0; }
#roadmap .rm__list--after::before { background: rgba(255, 255, 255, 0.2); }
#roadmap .rm__list--after .rm__vfill, html.static #roadmap .rm__list--after::after { background: var(--v-dk); }

/* a stage */
#roadmap .st { position: relative; padding: 0 0 clamp(36px, 4.4vw, 56px) calc(var(--rail) + clamp(26px, 4vw, 48px)); }
#roadmap .st__num { display: none; }
#roadmap .st__node { position: absolute; left: var(--rail); top: 4px; width: 14px; height: 14px; margin-left: -7px; background: var(--g2); border: 2px solid rgba(0, 0, 0, 0.45); transform: rotate(45deg); transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .5s var(--ease-out); z-index: 1; }
#roadmap .st.is-on .st__node { background: var(--v); border-color: var(--v); transform: rotate(45deg) scale(1.15); }
#roadmap .st__n { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .35s var(--ease); }
#roadmap .st.is-on .st__n { color: var(--v); }
#roadmap .st__t { margin-top: 10px; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
#roadmap .st--gate .st__t { color: var(--v); }
#roadmap .st__d { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #1d1d1d; max-width: 30em; }
#roadmap .st__x { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.4; color: var(--muted); }
#roadmap .st__x li { position: relative; padding-left: 18px; }
#roadmap .st__x li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--v); }

/* the gate between Stage 8 and Stage 9: a padlock on the rail */
#roadmap .rm__gate { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 8px 0 clamp(64px, 8vw, 110px) calc(var(--rail) + clamp(14px, 3vw, 36px)); }
#roadmap .rm__gate::before { content: ""; position: absolute; left: var(--rail); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(rgba(0, 0, 0, 0.3) 0 6px, transparent 6px 12px); }
#roadmap .rm__lock { --u: clamp(60px, 16vw, 96px); position: relative; flex: none; width: calc(var(--u) * 1.4); z-index: 1; }
#roadmap .rm__gatek { min-width: 0; }
#roadmap .rm__gatelabel { display: block; font-family: var(--mono); font-size: 13px; color: var(--v); letter-spacing: .02em; }
#roadmap .rm__gatetext { display: block; max-width: 10.5em; margin-top: 8px; font-stretch: 125%; font-weight: 600; font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }

/* after the gate: black, the brand shard on its top edge, the rail goes on in light */
#roadmap .rm__after { position: relative; margin-inline: calc(50% - 50vw); padding: clamp(56px, 8vw, 110px) calc(50vw - 50%) var(--sec); background: #000; color: var(--g1); }
#roadmap .rm__shard { display: none; }
#roadmap .rm__after .st__node { background: #000; border-color: rgba(255, 255, 255, 0.5); }
#roadmap .rm__after .st.is-on .st__node { background: var(--v-dk); border-color: var(--v-dk); }
#roadmap .rm__after .st__n, #roadmap .rm__after .st__x { color: var(--muted-dk); }
#roadmap .rm__after .st.is-on .st__n { color: var(--v-dk); }
#roadmap .rm__after .st__d { color: #c9c9c9; }
#roadmap .rm__after .st__x li::before { background: var(--v-dk); }
#roadmap .rm__after .st:last-child { padding-bottom: 0; }

@media (min-width: 900px) {
  #roadmap .rm__title { max-width: 9.5em; }
  #roadmap .st { display: grid; grid-template-columns: 9em minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gut); align-items: start; }
  #roadmap .st__n { grid-column: 1; padding-top: .55em; }
  #roadmap .st__t { grid-column: 2; margin-top: 0; }
  #roadmap .st__d { grid-column: 3; margin-top: 0; }
  #roadmap .st__x { grid-column: 3; }
}

/* the gate padlock: same object as the four locks in #trust (kept in sync by hand) */
#roadmap .lk { position: absolute; left: calc(var(--u) * .25); top: calc(var(--u) * .02); width: var(--u); height: calc(var(--u) * 1.66); transform-style: preserve-3d; transform-origin: 50% 70%; transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, 22deg)); }
#roadmap .lk__sh { position: absolute; left: calc(var(--u) * .17); top: calc(var(--u) * .30); width: calc(var(--u) * .66); height: calc(var(--u) * .70); transform-style: preserve-3d; transform-origin: calc(var(--u) * .07) 100%; }
#roadmap .lk__bd { position: absolute; left: 0; top: calc(var(--u) * .88); width: var(--u); height: calc(var(--u) * .78); transform-style: preserve-3d; transform-origin: 50% 100%; }
#roadmap .lk__sh > b, #roadmap .lk__sh > i, #roadmap .lk__bd > b, #roadmap .lk__bd > i { position: absolute; inset: 0; display: block; }
#roadmap .lk__sh > b, #roadmap .lk__sh > i { clip-path: polygon(0 100%, 0 22.86%, 24.24% 0, 75.76% 0, 100% 22.86%, 100% 100%, 78.79% 100%, 78.79% 31.14%, 66.97% 20%, 33.03% 20%, 21.21% 31.14%, 21.21% 100%); }
#roadmap .lk__bd > b, #roadmap .lk__bd > i { clip-path: polygon(13% 0, 100% 0, 100% 83.33%, 87% 100%, 0 100%, 0 16.67%); }
#roadmap .lk__sh > b { background: linear-gradient(90deg, #2a2a2a, #070707 30%, #000 70%, #1c1c1c); transform: translateZ(calc(var(--u) * .07)); }
#roadmap .lk__bd > b { background: linear-gradient(166deg, #2a2a2a 0%, #0b0b0b 34%, #000 100%); transform: translateZ(calc(var(--u) * .15)); }
#roadmap .lk__cyl { position: absolute; left: 50%; top: 42%; width: calc(var(--u) * .22); height: calc(var(--u) * .22); margin: calc(var(--u) * -.11) 0 0 calc(var(--u) * -.11); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #404040, #171717 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
#roadmap .lk__cyl i { position: absolute; left: 50%; top: 17%; bottom: 17%; width: calc(var(--u) * .036); margin-left: calc(var(--u) * -.018); border-radius: 1px; background: #777; transition: background-color .35s var(--ease); }
#roadmap .rm__gate.is-shut .lk__cyl i { background: var(--v-dk); }
#roadmap .lk__mark { position: absolute; left: 11%; bottom: 11%; width: calc(var(--u) * .17); height: calc(var(--u) * .17); background: linear-gradient(160deg, #3d3d3d, #1f1f1f); -webkit-mask: url("../../brand/mark.svg") center / contain no-repeat; mask: url("../../brand/mark.svg") center / contain no-repeat; }
#roadmap .lk__ring { position: absolute; left: calc(var(--u) * .5); top: calc(var(--u) * .9); width: calc(var(--u) * .9); height: calc(var(--u) * .9); margin: calc(var(--u) * -.45) 0 0 calc(var(--u) * -.45); border: 2px solid var(--v); border-radius: 50%; opacity: 0; transform: translateZ(calc(var(--u) * .2)) scale(.3); pointer-events: none; }
#roadmap .rm__obj { --u: inherit; position: relative; width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.76); perspective: calc(var(--u) * 8); perspective-origin: 50% 20%; }
#roadmap .rm__obj .lk { left: calc(var(--u) * .2); }
#roadmap .rm__lockshadow { position: absolute; left: 50%; bottom: calc(var(--u) * .02); width: calc(var(--u) * 1.3); height: calc(var(--u) * .22); margin-left: calc(var(--u) * -.65); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.12) 58%, transparent); }

/* ---------- motion: details tick in as each stage is reached (roadmap.js adds .is-live and .is-on) ---------- */
html.motion #roadmap.is-live .st__x li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
html.motion #roadmap.is-live .st.is-on .st__x li { opacity: 1; transform: none; }
html.motion #roadmap.is-live .st.is-on .st__x li:nth-child(2) { transition-delay: .08s; }
html.motion #roadmap.is-live .st.is-on .st__x li:nth-child(3) { transition-delay: .16s; }

/* ---------- motion, wide screens: the pinned horizontal track ---------- */
@media (min-width: 900px) and (min-height: 600px) {
  html.motion #roadmap { padding-top: 0; overflow-x: visible; }
  html.motion #roadmap .rm { position: relative; height: 100vh; overflow: hidden; }
  html.motion #roadmap .rm__track { width: max-content; height: 100%; margin: 0; display: flex; will-change: transform; }
  html.motion #roadmap .rm__intro { flex: none; width: 42vw; padding: 21vh 3vw 0 var(--m); }
  html.motion #roadmap .rm__title { font-size: clamp(44px, 4.9vw, 86px); max-width: 8.4em; }
  html.motion #roadmap .rm__line { max-width: 22em; }
  html.motion #roadmap .rm__run { display: flex; height: 100%; margin: 0; }
  html.motion #roadmap .rm__list { display: flex; height: 100%; }
  html.motion #roadmap .rm__list::before, html.motion #roadmap .rm__list::after { content: none; }

  /* a stage column: big outline numeral above the rail, the words below it */
  html.motion #roadmap .st { flex: none; display: block; width: max(22vw, 290px); height: 100%; padding: calc(47vh + 30px) 2.8vw 0 0; }
  html.motion #roadmap .st::before, html.motion #roadmap .rm__fill { content: ""; position: absolute; left: 0; right: 0; top: 47vh; height: 2px; margin-top: -1px; background: rgba(0, 0, 0, 0.18); }
  html.motion #roadmap .rm__fill { background: var(--v); transform-origin: 0 50%; transform: scaleX(0); }
  html.motion #roadmap .st__node { top: 47vh; left: 0; margin: -7px 0 0 -7px; }
  html.motion #roadmap .st__num { display: block; position: absolute; left: -0.04em; bottom: calc(53vh + 20px); font-stretch: 125%; font-weight: 600; font-size: clamp(100px, 21vh, 230px); line-height: .74; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.3); transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease); will-change: transform; }
  html.motion #roadmap .st.is-on .st__num { color: #000; -webkit-text-stroke-color: #000; }
  html.motion #roadmap .st--gate.is-on .st__num { color: var(--v); -webkit-text-stroke-color: var(--v); }
  html.motion #roadmap .st__n { padding: 0; }
  html.motion #roadmap .st__t { font-size: clamp(22px, 2.1vw, 34px); }
  html.motion #roadmap .st__d { font-size: clamp(15px, 1.15vw, 18px); }

  /* the gate column: a dashed rail through a padlock, the line under it */
  html.motion #roadmap .rm__gate { flex: none; display: block; width: max(28vw, 360px); height: 100%; padding: 0; }
  html.motion #roadmap .rm__gate::before { left: 0; right: 0; top: 47vh; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 8px, transparent 8px 15px); }
  html.motion #roadmap .rm__lock { --u: clamp(90px, 16vh, 150px); position: absolute; left: 50%; top: 47vh; margin: 0; transform: translate(-50%, -73%); }
  html.motion #roadmap .rm__gatek { position: absolute; left: 8%; right: 8%; top: calc(47vh + 12vh); max-width: none; text-align: center; }
  html.motion #roadmap .rm__gatetext { margin-inline: auto; font-size: clamp(26px, 2.5vw, 42px); }

  /* after the gate: the vertical shard, then black */
  html.motion #roadmap .rm__after { flex: none; display: flex; height: 100%; margin: 0 0 0 12vw; padding: 0 20vw 0 0; background: #000; }
  html.motion #roadmap .rm__cut { display: none; }
  html.motion #roadmap .rm__shard { display: block; position: absolute; top: 0; left: calc(-12vw - 1px); width: calc(12vw + 2px); height: 100%; pointer-events: none; }
  html.motion #roadmap .rm__after::before { content: ""; position: absolute; left: -12vw; width: 12vw; top: 47vh; height: 2px; margin-top: -1px; background: rgba(140, 140, 140, 0.6); z-index: 1; }
  html.motion #roadmap .rm__after > .rm__fill { left: -12vw; right: auto; width: 12vw; z-index: 1; background: var(--v-dk); }
  html.motion #roadmap .rm__list--after .st { width: 40vw; padding-left: 0; padding-right: 6vw; }
  html.motion #roadmap .rm__list--after .st::before { background: rgba(255, 255, 255, 0.2); }
  html.motion #roadmap .rm__list--after .rm__fill { background: var(--v-dk); }
  html.motion #roadmap .rm__list--after .st__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.3); }
  html.motion #roadmap .rm__list--after .st.is-on .st__num { color: #fff; -webkit-text-stroke-color: #fff; }
  html.motion #roadmap .rm__list--after .st__t { font-size: clamp(26px, 2.6vw, 44px); max-width: 12em; }
  html.motion #roadmap .rm__list--after .st__d { max-width: 24em; }
}

/* the map in the corner of the pinned frame: ten ticks, the gate after eight, where you are */
#roadmap .rm__hud { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  html.motion #roadmap .rm__hud { display: block; position: absolute; left: var(--m); bottom: max(7vh, 36px); z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); pointer-events: none; }
  html.motion #roadmap .rm.is-hud .rm__hud { opacity: 1; transform: none; }
  html.motion #roadmap .rm__ticks { display: flex; align-items: center; gap: 5px; }
  html.motion #roadmap .rm__ticks i { position: relative; width: 26px; height: 3px; background: rgba(0, 0, 0, 0.18); overflow: hidden; }
  html.motion #roadmap .rm__ticks i::after { content: ""; position: absolute; inset: 0; background: var(--v); transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
  html.motion #roadmap .rm__ticks i:nth-last-child(-n+2) { background: rgba(0, 0, 0, 0.32); }
  html.motion #roadmap .rm__hudlock { position: relative; width: 12px; height: 16px; margin: 0 6px; }
  html.motion #roadmap .rm__hudlock::before { content: ""; position: absolute; left: 0; bottom: 0; width: 12px; height: 9px; background: #000; }
  html.motion #roadmap .rm__hudlock span { position: absolute; left: 2px; bottom: 7px; width: 8px; height: 8px; border: 2px solid #000; border-bottom: 0; transition: transform .35s var(--ease-out); }
  html.motion #roadmap .rm__hud.is-open .rm__hudlock span { transform: translateY(-3px); }
  html.motion #roadmap .rm__hudtext { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  html.motion #roadmap .rm__hudn { color: #000; }
  html.motion #roadmap .rm__hud.is-gate .rm__hudof { display: none; }
  html.motion #roadmap .rm__hud.is-gate .rm__hudn { color: var(--v); }
  html.motion #roadmap .rm.is-dark .rm__ticks i { background: rgba(255, 255, 255, 0.24); }
  html.motion #roadmap .rm.is-dark .rm__ticks i::after { background: var(--v-dk); }
  html.motion #roadmap .rm.is-dark .rm__hudlock::before { background: var(--g1); }
  html.motion #roadmap .rm.is-dark .rm__hudlock span { border-color: var(--g1); }
  html.motion #roadmap .rm.is-dark .rm__hudtext { color: var(--muted-dk); }
  html.motion #roadmap .rm.is-dark .rm__hudn { color: #fff; }
}

/* reaching a stage: its node sends out one ring */
html.motion #roadmap.is-live .st__node::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--v); opacity: 0; pointer-events: none; }
html.motion #roadmap.is-live .rm__after .st__node::after { border-color: var(--v-dk); }
html.motion #roadmap.is-live .st.is-on .st__node::after { animation: roadmap-ping .9s var(--ease-out) both; }
@keyframes roadmap-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
