/* Scroll story on /tokenisation: property -> tokens -> listing -> trade (14 Nov 2026) */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 34px; }
.story-stage { position: sticky; top: 96px; border: 1px solid #1E1E1E; border-radius: 20px; overflow: hidden; background: #0C0C0C; transition: border-color .8s ease; }
.story.is-2 .story-stage { border-color: #3a2413; }
.story-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.story-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: filter 1s ease, transform 1.4s ease; }
.story.is-2 .story-pic img { filter: brightness(.62) saturate(.8); transform: scale(1.03); }
.story-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,0) 55%, #0C0C0C 100%); }
.story-tag { position: absolute; left: 16px; top: 14px; z-index: 1; font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #EDEAE6; background: rgba(10,10,10,.72); border: 1px solid #262626; border-radius: 999px; padding: 6px 12px; }
.story-link { position: absolute; left: 50%; bottom: 0; width: 1px; height: 0; background: #E2650F; z-index: 1; transition: height .9s ease .2s; }
.story.is-2 .story-link { height: 34%; }

.story-panel { position: relative; padding: 18px 20px 20px; border-top: 1px solid #1E1E1E; min-height: 250px; }
.story-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #8A8A8A; min-height: 1.6em; }
.story-head b { font-weight: 500; color: #FF8A3D; }
.story-head .h { position: absolute; left: 20px; opacity: 0; transition: opacity .5s ease; }
.story:not(.is-2) .h1, .story.is-2:not(.is-3) .h2, .story.is-3:not(.is-4) .h3, .story.is-4 .h4 { opacity: 1; }
.story-head .st { margin-left: auto; opacity: 0; transition: opacity .5s ease; color: #EDEAE6; }
.story.is-3 .story-head .st { opacity: 1; }

.tok-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 16px 0 14px; padding: 12px; border: 1px solid transparent; border-radius: 12px; transition: border-color .7s ease, background .7s ease; }
.story.is-3 .tok-grid { border-color: #262626; background: #101010; }
.tok { aspect-ratio: 1; border: 1px solid #E2650F; border-radius: 3px; opacity: 0; transform: scale(.5); transition: opacity .45s ease, transform .45s ease, background .5s ease; transition-delay: calc(var(--i) * 22ms); }
.story.is-2 .tok { opacity: 1; transform: none; }
.story:not(.is-2) .tok { transition-delay: 0ms; }
.story.is-4 .tok.mv { background: #E2650F; }

.story-cap { margin: 0; font-size: .86rem; color: #A3A3A3; min-height: 2.9em; position: relative; }
.story-cap span { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.story:not(.is-2) .c1, .story.is-2:not(.is-3) .c2, .story.is-3:not(.is-4) .c3, .story.is-4 .c4 { opacity: 1; }

.story-inv { display: flex; gap: 8px; margin-top: 14px; }
.story-inv div { flex: 1; text-align: center; font-size: .74rem; color: #A3A3A3; border: 1px solid #262626; border-radius: 10px; padding: 9px 6px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, border-color .5s ease, color .5s ease; }
.story-inv div:nth-child(2) { transition-delay: .12s; } .story-inv div:nth-child(3) { transition-delay: .24s; }
.story.is-3 .story-inv div { opacity: 1; transform: none; }
.story.is-4 .story-inv .a, .story.is-4 .story-inv .b { border-color: #E2650F; color: #EDEAE6; }
.story-swap { position: relative; height: 34px; margin: 10px 0 0; opacity: 0; transition: opacity .5s ease; width: calc(66.66% - 3px); }
.story.is-4 .story-swap { opacity: 1; }
.story-swap i { position: absolute; top: 0; height: 15px; min-width: 15px; padding: 0 5px; border-radius: 4px; font: 500 .62rem/15px 'JetBrains Mono', monospace; font-style: normal; text-align: center; }
.story-swap .t { left: 22%; background: #E2650F; color: #fff; }
.story-swap .e { top: 19px; left: 72%; border: 1px solid #8A8A8A; color: #EDEAE6; }
.story-swap::before, .story-swap::after { content: ""; position: absolute; left: 25%; right: 25%; height: 1px; background: #3A3A3A; }
.story-swap::before { top: 7px; } .story-swap::after { top: 26px; }
@keyframes mz-swap-t { 0%, 12% { left: 22%; } 55%, 100% { left: 72%; } }
@keyframes mz-swap-e { 0%, 12% { left: 72%; } 55%, 100% { left: 22%; } }
.story.is-4 .story-swap .t { animation: mz-swap-t 3.6s ease-in-out infinite; }
.story.is-4 .story-swap .e { animation: mz-swap-e 3.6s ease-in-out infinite; }

.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: ss; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .6s ease; }
.story-step:last-child { min-height: 60vh; }
.story-step.on { opacity: 1; }
.story-step::before { counter-increment: ss; content: "0" counter(ss); font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: #FF8A3D; margin-bottom: 12px; }
.story-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 14px; }
.story-step p { color: #A3A3A3; margin: 0 0 12px; max-width: 52ch; }
.story-step p strong { color: #EDEAE6; font-weight: 600; }
.story-step .small { font-size: .88rem; color: #8A8A8A; }
.story-credit { font-size: .74rem; color: #8A8A8A; margin: 14px 0 0; }

@media (max-width: 860px) {
  .story { display: block; }
  .story-stage { top: 64px; z-index: 3; border-radius: 16px; box-shadow: 0 24px 40px -10px #0A0A0A; }
  .story-pic { aspect-ratio: 16 / 5; }
  .story-panel { min-height: 0; padding: 12px 14px 14px; }
  .tok-grid { grid-template-columns: repeat(15, 1fr); gap: 4px; padding: 8px; margin: 10px 0; }
  .story-cap { font-size: .8rem; min-height: 3.2em; }
  .story-inv div { padding: 6px 4px; font-size: .68rem; }
  .story-head .st { display: none; }
  .story-inv { display: none; margin-top: 10px; } .story.is-3 .story-inv { display: flex; }
  .story-swap { display: none; height: 30px; margin-top: 8px; } .story.is-4 .story-swap { display: block; }
  .story-step { min-height: 70vh; justify-content: flex-start; padding-top: 34px; }
  .story-step:last-child { min-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
  .story *, .story *::before, .story *::after { transition: none !important; animation: none !important; }
  .story.is-4 .story-swap .t { left: 72%; } .story.is-4 .story-swap .e { left: 22%; }
  .story-step { opacity: 1; }
}
