.story-hero { padding-block: 64px 40px; }
.story-hero h1 { max-width: 800px; margin-top: 18px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.3; letter-spacing: -1px; }
.story-lead { max-width: 710px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.story-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--dim); font-size: 12px; }
.story-meta span { display: inline-flex; align-items: center; gap: 7px; }
.story-meta svg { width: 15px; height: 15px; }
.story-context { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-block: 28px 32px; border-top: 1px solid var(--line); }
.story-context h2 { font-size: 15px; }
.story-context p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.story-context strong { color: var(--text); font-weight: 500; }
.stage-nav { position: sticky; top: 73px; z-index: 10; background: rgba(13, 14, 17, 0.96); border-block: 1px solid var(--line); }
.stage-nav ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 auto; }
.stage-nav a { display: flex; align-items: center; gap: 12px; min-height: 60px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.stage-nav a span { font: 11px ui-monospace, monospace; color: var(--dim); }
.stage-nav a:hover, .stage-nav a[aria-current="location"] { color: var(--text); border-bottom-color: var(--accent); }
.stage-nav a:focus-visible { outline-offset: -4px; }
.story-stage { padding-top: 64px; scroll-margin-top: 50px; }
.stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 30px; }
.stage-heading h2 { margin-top: 12px; font-size: 30px; }
.stage-heading > p { max-width: 340px; color: var(--muted); font-size: 14px; }
.story-stage[data-stage="design"] .section-label, .story-stage[data-stage="coding"] .section-label { color: var(--dev); }
.story-stage[data-stage="review"] .section-label { color: var(--qa); }
.story-step { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.7fr); gap: 48px; align-items: start; border-top: 1px solid var(--line); padding-block: 36px; scroll-margin-top: 50px; }
.step-kicker { font: 11px ui-monospace, monospace; color: var(--dim); }
.step-copy h3 { margin-top: 12px; font-size: 22px; line-height: 1.5; }
.step-copy > p:not(.step-kicker) { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.step-copy dl { margin: 22px 0 0; }
.step-copy dl > div { margin-top: 14px; }
.step-copy dt { font-size: 12px; color: var(--dev); }
.step-copy dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.shot-link { position: relative; display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #111216; }
.shot-link img { width: 100%; height: auto; }
.shot-link:hover { border-color: rgba(175, 135, 255, 0.5); }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(13, 14, 17, 0.92); display: inline-flex; align-items: center; gap: 5px; color: #d8c4ff; font-size: 11px; }
.shot-zoom svg { width: 13px; height: 13px; }
.story-shot figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--dim); font-size: 11px; line-height: 1.7; }
.story-shot figcaption span { max-width: 68%; }
.story-shot figcaption a { flex-shrink: 0; color: var(--dev); font-size: 11px; }
.story-takeaway { border-top: 1px solid var(--line); padding-block: 48px 60px; margin-top: 16px; }
.story-takeaway h2 { max-width: 660px; margin-top: 12px; font-size: 30px; }
.takeaway-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 28px 0; }
.takeaway-grid h3 { font-size: 16px; }
.takeaway-grid p, .story-boundary { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 8px; }
.story-end-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; align-items: center; }
#shot-dialog { width: min(1720px, calc(100vw - 32px)); padding: 0; }
#shot-dialog .dialog-toolbar { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.shot-dialog-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.shot-dialog-actions button { min-width: 44px; min-height: 44px; }
.shot-size { padding-inline: 10px; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.shot-scroll { overflow: auto; max-height: calc(100dvh - 110px); }
#shot-dialog img { margin: auto; width: 100%; height: auto; }
#shot-dialog.is-actual img { width: auto; max-width: none; }
.story-page .desktop-nav [aria-current="page"] { color: var(--text); }
@media (max-width: 1000px) {
  .story-step { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .step-copy h3 { font-size: 20px; }
}
@media (max-width: 720px) {
  .story-hero { padding-block: 40px 28px; }
  .story-lead { font-size: 14px; }
  .story-context { grid-template-columns: 1fr; gap: 20px; }
  .stage-nav { top: 63px; }
  .stage-nav a { min-height: 54px; gap: 5px; font-size: 12px; }
  .stage-nav a span { font-size: 9px; }
  .story-stage, .story-step { scroll-margin-top: 60px; }
  .story-stage { padding-top: 36px; }
  .stage-heading { display: block; padding-bottom: 24px; }
  .stage-heading h2 { font-size: 25px; }
  .stage-heading > p { margin-top: 14px; }
  .story-step { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .step-copy h3 { font-size: 22px; }
  .step-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
  .story-shot figcaption { flex-direction: column; gap: 5px; }
  .story-shot figcaption span { max-width: none; }
  .story-takeaway h2 { font-size: 26px; }
  .takeaway-grid { grid-template-columns: 1fr; gap: 22px; }
  #shot-dialog { width: calc(100vw - 16px); }
  #shot-dialog .dialog-toolbar { gap: 8px; font-size: 11px; }
}
