#how { scroll-margin-top: 76px; padding-top: 12px; padding-bottom: 8px; }
.story { position: relative; }
.story .sticky { padding: 8px 22px 28px; }
.story .layout { width: min(1280px, calc(100% - 8px)); margin: 0 auto; display: grid; grid-template-columns: 156px minmax(280px, 1fr) 360px 280px; gap: 20px; align-items: center; }
.story .meter { height: 3px; background: var(--line); border-radius: 99px; margin: 0 0 18px; overflow: hidden; }
.story .meter span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--coral)); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.story .rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.story .rail button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; border-left: 3px solid transparent; }
.story .rail button[aria-current="step"] { color: var(--ink); background: #fff; border-left-color: var(--coral); }
.story .copy { position: relative; min-height: 220px; }
.story .copy article { max-width: 460px; }
.story .copy h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.story .copy p { margin: 0; color: var(--muted); font-size: 17px; }
.story .live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.story .stage { display: block; background: transparent; border: 0; box-shadow: none; padding: 0; }
.story .stage:hover { transform: none; }
.story .frame { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-strong); overflow: hidden; }
.story .topbar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 12px 16px; font-family: Georgia, serif; font-weight: 700; }
.story .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.story .tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #efe8e0; padding: 8px; gap: 6px; }
.story .tabs span { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 0; border-radius: 10px; }
.story .tabs span.on { background: #fff; color: var(--ink); box-shadow: inset 0 -2px 0 var(--coral); }
.story .body { position: relative; min-height: 392px; background: var(--cream); }
.story .scene { padding: 18px 16px 16px; }
.story .label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 4px; }
.story .field { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; font-weight: 700; }
.story .hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.story .act { display: flex; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; color: var(--ink); background: var(--grad); }
.story .act.quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.story .act.gap { margin-top: 8px; }
.story .row { display: flex; gap: 8px; }
.story .row .act { flex: 1; }
.story .person { font-weight: 700; margin: 0 0 10px; }
.story .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.story .chips span, .story .status { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.story .note { margin: 0 0 12px; padding: 12px 12px 12px 14px; background: #fff; border-radius: 14px; border-left: 4px solid var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.45; }
.story .spec { display: grid; gap: 8px; margin: 0 0 12px; }
.story .spec div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 8px 10px; }
.story .spec dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.story .spec dd { margin: 0; font-weight: 700; }
.story .lead-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.story .lead-row strong { display: block; }
.story .lead-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.story .exports { display: flex; gap: 8px; margin-bottom: 8px; }
.story .mark { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; background: var(--navy); }
.story .mark.csv { background: var(--ok); }
.story .mark.xls { background: #217346; font-size: 18px; }
.story .mark.sheet { background: #188038; }
.story .example { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.story .resolve { min-height: 392px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 28px 22px; background: radial-gradient(420px 180px at 80% 0%, rgba(255, 162, 76, 0.35), transparent 60%), var(--navy); color: #fff; }
.story .resolve h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 32px; line-height: 1.1; }
.story .resolve p { margin: 0 0 16px; color: var(--on-dark); }
.story .resolve .btn { width: auto; }
.story .proof { margin: 0; }
.story .proof figcaption { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.story .stack { position: relative; aspect-ratio: 16 / 10; background: var(--navy); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.story .proof img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story .chapters { max-width: 720px; margin: 0 auto; padding: 0 22px 28px; display: grid; gap: 18px; }
.story .chapters article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.story .chapters h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 28px; }
.story .chapters p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .story .layout { grid-template-columns: 148px minmax(0, 1fr) minmax(260px, 340px); }
  .story .proof { display: none; }
}
@media (max-width: 800px) {
  .story .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; }
  .story .rail { max-width: 100%; display: flex; flex-wrap: wrap; overflow: visible; }
  .story .rail li { flex: 1 1 auto; }
  .story .rail button { width: auto; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .story .rail button[aria-current="step"] { border-bottom-color: var(--coral); }
  .story .copy { min-height: 0; }
  .story .sticky { padding-top: 0; }
}
@media (max-width: 390px) {
  .story .spec div { grid-template-columns: 76px 1fr; }
  .story .resolve h3, .story .copy h2, .story .chapters h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .story .meter span, .story .scene, .story .proof img, .story .copy article, .story .chapters article { transition: none; }
}

html.is-pin .story { height: 620vh; }
html.is-pin .story .sticky { position: sticky; top: 68px; height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; }
html.is-pin .story .chapters { display: none; }
html.is-pin .story .copy article,
html.is-pin .story .scene { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); }
html.is-pin .story .scene { pointer-events: none; }
html.is-pin .story .proof img { opacity: 0; }
html.is-pin .story .copy article,
html.is-pin .story .scene,
html.is-pin .story .proof img { transition: opacity 0.45s ease, transform 0.45s ease; }
html.is-pin .story[data-beat="0"] .copy .s0,
html.is-pin .story[data-beat="1"] .copy .s1,
html.is-pin .story[data-beat="2"] .copy .s2,
html.is-pin .story[data-beat="3"] .copy .s3,
html.is-pin .story[data-beat="4"] .copy .s4,
html.is-pin .story[data-beat="5"] .copy .s5,
html.is-pin .story[data-beat="0"] .scene-find,
html.is-pin .story[data-beat="1"] .scene-read,
html.is-pin .story[data-beat="2"] .scene-write,
html.is-pin .story[data-beat="3"] .scene-review,
html.is-pin .story[data-beat="4"] .scene-saved,
html.is-pin .story[data-beat="5"] .scene-next,
html.is-pin .story[data-shot="find"] .shot-find,
html.is-pin .story[data-shot="write"] .shot-write,
html.is-pin .story[data-shot="saved"] .shot-saved,
html.is-pin .story[data-shot="export"] .shot-export { opacity: 1; transform: none; pointer-events: auto; }

html.is-chapters .story { height: auto; }
html.is-chapters .story .copy { display: none; }
html.is-chapters .story .sticky { position: sticky; top: 68px; z-index: 4; background: linear-gradient(var(--cream) 78%, rgba(247, 243, 238, 0)); padding-bottom: 0; }
html.is-chapters .story .body,
html.is-chapters .story .resolve { min-height: 0; }
html.is-chapters .story .scene { display: none; padding: 12px; }
html.is-chapters .story .field { padding: 7px 10px; margin-bottom: 6px; }
html.is-chapters .story .example { display: none; }
html.is-chapters .story[data-beat="0"] .scene-find,
html.is-chapters .story[data-beat="1"] .scene-read,
html.is-chapters .story[data-beat="2"] .scene-write,
html.is-chapters .story[data-beat="3"] .scene-review,
html.is-chapters .story[data-beat="4"] .scene-saved,
html.is-chapters .story[data-beat="5"] .scene-next { display: block; }
html.is-chapters .story .chapters article { min-height: 38vh; scroll-margin-top: 68vh; opacity: 0.45; }
html.is-chapters .story .chapters article.on { opacity: 1; transition: opacity 0.35s ease; }

html.is-static .story .chapters article { opacity: 1; }
html.is-static .story .meter,
html.is-static .story .rail,
html.is-static .story .proof,
html.is-static .story .copy { display: none; }
html.is-static .story .scene { display: block; border-top: 1px solid var(--line); }
html.is-static .story .scene-find { border-top: 0; }
html.is-static .story .layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
