:root{
  --bg:#f6f6f3; --surface:#fcfcfb; --ink:#0b0b0b; --ink2:#52514e; --muted:#898781; --rule:#e1e0d9;
  --blue:#2a78d6; --orange:#eb6834; --aqua:#1baf7a; --violet:#6250d6; --amber:#eda100; --grey:#898781;
  --f:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 var(--f)}
a{color:var(--blue)}
.top{position:sticky;top:0;z-index:20;background:rgba(246,246,243,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--rule)}
.top .in{max-width:1320px;margin:0 auto;padding:9px 16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:13.5px}
.top b{font-size:14.5px}
.top a{color:var(--ink2);text-decoration:none}
.top .bar{flex:1;min-width:120px;height:3px;background:var(--rule);border-radius:2px;overflow:hidden}
.top .bar i{display:block;height:100%;width:0;background:var(--ink)}
.title{max-width:1320px;margin:0 auto;padding:46px 16px 10px}
.title h1{font-size:clamp(30px,4.4vw,52px);line-height:1.08;letter-spacing:-.02em;margin:0 0 14px;max-width:980px}
.title p{color:var(--ink2);max-width:760px;margin:0 0 6px}
.title .by{font-size:14px;color:var(--muted)}
#story{max-width:1320px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:36px}
#steps{padding:30vh 0 50vh}
.step{min-height:92vh;display:flex;align-items:center}
.step .card{background:var(--surface);border:1px solid var(--rule);border-radius:12px;padding:18px 20px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.step h2{font-size:21px;line-height:1.25;margin:0 0 8px;letter-spacing:-.01em}
.step p{margin:0 0 10px}
.step p:last-child{margin-bottom:0}
.step .k{font-weight:700;font-variant-numeric:tabular-nums}
.sw{display:inline-block;width:11px;height:11px;border-radius:50%;margin:0 3px 0 1px;vertical-align:-1px}
#fig{position:sticky;top:44px;height:calc(100vh - 44px);display:flex;flex-direction:column;justify-content:center}
#stage{position:relative;width:100%;height:min(80vh,760px)}
#stage canvas{position:absolute;inset:0;width:100%;height:100%}
#over{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
#over text{font:13px var(--f);fill:var(--ink2)}
#over .h{font-weight:700;fill:var(--ink);font-size:14px}
#over .big{font-weight:700;fill:var(--ink);font-size:22px}
#cap{font-size:13px;color:var(--ink2);min-height:40px;margin-top:6px}
.end{max-width:760px;margin:0 auto;padding:30px 16px 80px;text-align:center}
.end a.btn{display:inline-block;margin:10px 6px;padding:10px 18px;border-radius:8px;background:var(--ink);color:#fff;text-decoration:none;font-weight:600}
.end a.btn.alt{background:var(--surface);color:var(--ink);border:1px solid var(--rule)}
.note{font-size:12.5px;color:var(--muted)}
@media (max-width:860px){
  #story{grid-template-columns:1fr;gap:0}
  #fig{order:-1;top:40px;height:58vh;z-index:5;background:var(--bg)}
  #stage{height:52vh}
  #steps{padding:10vh 0 40vh;position:relative;z-index:6}
  .step{min-height:80vh;align-items:flex-end}
  .step .card{background:rgba(252,252,251,.96)}
  body{font-size:16px}
}
.others{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}.others a{font-size:14px;padding:6px 12px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);color:var(--ink);text-decoration:none}
