/* SneakerPulse Stories: scrollytelling layout. Loaded after /style.css on /stories/* pages. */
main.main { max-width: none !important; padding: 0 !important; overflow: visible !important; overflow-x: clip !important; }
.story {
  --teal: #077a76; --tiff: #81d8d0; --tiff-ink: #0c2422; --warm: #b4532a; --grey: #7d898d;
  --ink: #1c2426; --ink2: #4a565b; --ink3: #5f6b71; --line: #dfe7e7; --wash: #f4f9f9;
  color: var(--ink);
}
.story a { color: var(--teal); }

/* ---------- hero ---------- */
.story-hero { max-width: 1200px; margin: 0 auto; padding: 44px 24px 8px; display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px; align-items: center; }
.story-crumbs { font-size: .85rem; color: var(--ink3); margin-bottom: 18px; }
.story-crumbs a { color: var(--ink3); text-decoration: none; }
.story-crumbs a:hover { color: var(--teal); }
.story-kicker { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0; }
.story h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.04;
  letter-spacing: -.022em; margin: .3em 0 .35em; color: var(--ink); max-width: 18ch; }
.story-dek { font-size: 1.22rem; line-height: 1.55; color: var(--ink2); max-width: 58ch; margin: 0 0 1rem; }
.story-byline { font-size: .9rem; color: var(--ink3); margin: 0; }
.story-byline strong { color: var(--ink2); font-weight: 600; }
.story-photo { margin: 0; text-align: center; }
.story-photo img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.story-photo figcaption, .photo-credit { font-size: .76rem; color: var(--ink3); margin-top: 4px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-pair img { width: 100%; height: auto; }

/* big-number lede */
.lede-numbers { max-width: 1200px; margin: 18px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lede-num { padding: 22px 24px 22px 0; border-top: 1px solid var(--ink); }
.lede-num + .lede-num { padding-left: 24px; border-left: 1px solid var(--line); }
.lede-num .n { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--teal); letter-spacing: -.02em; }
.lede-num .n.warm { color: var(--warm); }
.lede-num .n.grey { color: var(--ink3); }
.lede-num .l { display: block; margin-top: 10px; font-size: .98rem; line-height: 1.45; color: var(--ink2); max-width: 30ch; }
.scroll-cue { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; font-size: .85rem; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue span { display: inline-block; margin-left: 6px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- scrolly ---------- */
.scrolly { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: 44px;
  max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.scrolly-text { grid-column: 1; grid-row: 1; padding: 22vh 0 30vh; }
.scrolly-graphic { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr, 64px) + 14px);
  height: calc(100vh - var(--hdr, 64px) - 28px); height: calc(100svh - var(--hdr, 64px) - 28px);
  align-self: start; display: flex; flex-direction: column; min-height: 420px; }
.chart-head { padding: 4px 0 6px; }
.chart-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin: 0; min-height: 1.6em; }
.chart-sub { font-size: .9rem; color: var(--ink3); margin: 2px 0 0; min-height: 1.3em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ink2); margin-top: 6px; min-height: 1.3em; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-bar { width: 12px; height: 10px; display: inline-block; border-radius: 2px; }
.lg-line { width: 18px; display: inline-block; }
.chart-box { position: relative; flex: 1 1 auto; min-height: 0; }
.chart-box canvas, .chart-box svg { position: absolute; left: 0; top: 0; }
.chart-box svg { overflow: visible; }
.chart-box.has-hover { cursor: crosshair; }
.chart-note { font-size: .76rem; color: var(--ink3); margin: 6px 0 0; line-height: 1.4; }
.chart-error { padding: 2rem; color: var(--ink2); }

.chart-box .tick text { fill: var(--ink3); font-size: 12px; font-family: 'Source Sans 3', system-ui, sans-serif; }
.chart-box .l-xaxis path, .chart-box .l-yaxis path { stroke: #c9d4d4; }
.chart-box .l-xaxis line, .chart-box .l-yaxis line { stroke: #c9d4d4; }
.chart-box .l-grid line { stroke: #eef3f3; }
.chart-box .l-grid path { display: none; }
.axis-label { font-size: 12px; fill: var(--ink3); font-weight: 600; }
.rule-label { font-size: 12.5px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.note-text { font-size: 13.5px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.note-text.big { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.note-text.muted { fill: var(--ink3); font-weight: 600; }
.note-text.teal { fill: var(--teal); }
.note-text.warm { fill: var(--warm); }
.note-leader { stroke: var(--ink2); stroke-width: 1; }
.chart-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(12, 36, 34, .12); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  color: var(--ink); max-width: 260px; }
.chart-tip b { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.chart-tip .t-sub { color: var(--ink3); }

.step { min-height: 78vh; display: flex; align-items: center; padding: 6vh 0; }
.step:first-child { min-height: 60vh; }
.step-card { max-width: 30em; opacity: .28; transition: opacity .35s ease; }
.step.active .step-card { opacity: 1; }
.step h2 { font-family: var(--serif); font-weight: 500; font-size: 1.62rem; line-height: 1.2; margin: 0 0 .55rem; color: var(--ink); letter-spacing: -.01em; }
.step p { font-size: 1.07rem; line-height: 1.68; color: var(--ink2); margin: 0 0 .85rem; }
.step p:last-child { margin-bottom: 0; }
.step strong { color: var(--ink); font-weight: 700; }
.step .step-num { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .4rem; }
.step .fine { font-size: .86rem; color: var(--ink3); line-height: 1.5; }
.k-teal, .k-warm, .k-grey { font-weight: 700; white-space: nowrap; }
.k-teal { color: var(--teal); } .k-warm { color: var(--warm); } .k-grey { color: var(--ink3); }
.k-teal::before, .k-warm::before, .k-grey::before { content: ""; display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .3em; vertical-align: .05em; }
.k-teal::before { background: var(--teal); } .k-warm::before { background: var(--warm); } .k-grey::before { background: var(--grey); }
.hl { background: linear-gradient(transparent 58%, rgba(129, 216, 208, .55) 58%); color: var(--ink); font-weight: 700; padding: 0 .1em; }
.step-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: .3rem 0 .9rem; }
.step-photos figure { margin: 0; text-align: center; }
.step-photos img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.step-photos figcaption { font-size: .74rem; line-height: 1.3; color: var(--ink2); margin-top: 3px; }
.step-photos figcaption b { color: var(--teal); }

/* ---------- after the scrolly ---------- */
.story-after { max-width: 780px; margin: 0 auto; padding: 8px 24px 48px; }
.story-after h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.story-after p, .story-after li { color: var(--ink2); line-height: 1.7; font-size: 1.02rem; }
.recap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin: 1rem 0 1.5rem; }
.recap div { padding: 14px 14px 14px 0; }
.recap div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.recap .n { display: block; font-family: var(--serif); font-size: 2rem; color: var(--teal); line-height: 1.05; }
.recap .l { display: block; font-size: .9rem; color: var(--ink2); margin-top: 4px; line-height: 1.4; }
.method { font-size: .88rem !important; color: var(--ink3) !important; line-height: 1.6 !important; border-top: 1px solid var(--line); padding-top: 1rem; }
.keep { margin: 2rem 0 0; }
.keep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keep-grid a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; background: #fff; transition: border-color .15s, transform .15s; min-height: 44px; }
.keep-grid a:hover { border-color: var(--teal); transform: translateY(-1px); }
.keep-grid .kk { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.keep-grid .kt { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 3px 0 2px; line-height: 1.25; }
.keep-grid .kd { display: block; font-size: .9rem; color: var(--ink2); line-height: 1.45; }
.keep-grid a.feature { grid-column: 1 / -1; background: var(--wash); border-color: #cfeae6; }

/* ---------- phones and small tablets: chart pinned on top, cards scroll over it ---------- */
@media (max-width: 899px) {
  .story-hero { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 4px; }
  .story h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .story-dek { font-size: 1.06rem; }
  .story-photo img { max-width: 300px; }
  .lede-numbers { grid-template-columns: 1fr; padding: 0 16px; }
  .lede-num, .lede-num + .lede-num { padding: 14px 0; border-left: 0; }
  .lede-num + .lede-num { border-top: 1px solid var(--line); }
  .lede-num .n { font-size: 2.6rem; }
  .lede-num .l { max-width: none; }
  .scroll-cue { padding: 12px 16px 0; }
  .scrolly { display: block; padding: 0; }
  .scrolly-graphic { position: sticky; top: var(--hdr, 56px); z-index: 1; height: 56vh; height: 56svh; min-height: 300px;
    background: #fff; padding: 6px 12px 4px; border-bottom: 1px solid var(--line); }
  .chart-title { font-size: 1.02rem; min-height: 1.3em; }
  .chart-sub { font-size: .8rem; min-height: 0; }
  .chart-legend { font-size: .78rem; margin-top: 3px; }
  .chart-note { display: none; }
  .scrolly-text { position: relative; z-index: 2; padding: 4vh 16px 40vh; }
  .step, .step:first-child { min-height: 100vh; align-items: flex-start; padding: 0; }
  .step.active .step-card { opacity: 1; }
  .step-card { opacity: .12; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; box-shadow: 0 8px 28px rgba(12, 36, 34, .10); max-width: none; }
  .step h2 { font-size: 1.3rem; }
  .step p { font-size: 1rem; line-height: 1.6; }
  .note-text { font-size: 12px; }
  .note-text.big { font-size: 17px; }
  .story-after { padding: 8px 16px 40px; }
  .recap { grid-template-columns: 1fr; }
  .recap div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .keep-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .step-card, .keep-grid a { transition: none; }
  .scroll-cue span { animation: none; }
}
