/* Home page story teaser and the illustrated story page (story.html). Scenes stack; no pinning or scrubbing. */
.home-story, .story-page, .sp-rail-bar { --ea: #9a4f2c; --eb: #12304a; --ec: #b4532a; --ed: #1b6f6c; background: #fbf6ef; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 32px 0 20px; }
.hs-head h2 { margin: 0; max-width: 22em; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; color: var(--navy); }
.hs-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 8px; padding: 0; list-style: none; }
.hs-rail a { display: block; padding: 18px 8px; border-radius: 12px; text-align: center; font-weight: 800; font-size: clamp(1.1rem, 2.8vw, 1.9rem); line-height: 1.1; text-decoration: none; color: #fff; }
.hs-rail .era-a { background: #9a4f2c; } .hs-rail .era-b { background: #12304a; } .hs-rail .era-c { background: #b4532a; } .hs-rail .era-d { background: #1b6f6c; }
.hs-rail a:hover, .hs-rail a:focus-visible { filter: brightness(1.12); }

/* Scenes: text column and illustration column; the text column also carries the scene's chart. */
.hs-scenes { display: grid; gap: 0; }
.hs-scene { display: grid; gap: 18px 56px; align-items: center; padding: 36px 0; scroll-margin-top: 80px; }
.hs-scene + .hs-scene { border-top: 1px solid var(--line-soft); }
.hs-cap { min-width: 0; }
.hs-era { display: inline-block; margin-bottom: 18px; padding: 10px 26px; border-radius: 14px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.hs-scene.era-a .hs-era { background: #9a4f2c; } .hs-scene.era-b .hs-era { background: #12304a; } .hs-scene.era-c .hs-era { background: #b4532a; } .hs-scene.era-d .hs-era { background: #1b6f6c; }
.hs-cap h3 { margin: 0 0 12px; max-width: 18em; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; color: var(--navy); }
.hs-cap > p { margin: 0; max-width: 32em; font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); }
.hs-cap > p .mah-info { vertical-align: -7px; }
.sp-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 1rem; font-weight: 600; }
.hs-art { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1120 / 736; justify-self: center; border-radius: 16px; overflow: hidden; }
.hs-art > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hs-places { overflow: visible; aspect-ratio: auto; max-width: 760px; }
.hs-art.hs-places > img { position: static; width: 100%; height: auto; }
.hs-place-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; text-align: center; font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.3rem); color: #1b6f6c; }
.hs-natural { max-width: 520px; aspect-ratio: auto; }
.hs-art.hs-natural > img { position: static; width: 100%; height: auto; }
@media (min-width: 900px) {
  .hs-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hs-scene:nth-child(even) .hs-art { order: -1; }
}

/* Charts. The SVG viewBox is 480 wide and scales with its column, so every label grows with the chart. */
.sc-chart { margin: 28px 0 0; max-width: 640px; }
.hs-cap .sc-chart { margin-top: 30px; }
.sp-charts { grid-column: 1 / -1; display: grid; gap: 24px 56px; }
.sp-charts .sc-chart { margin-top: 6px; max-width: none; }
@media (min-width: 900px) { .sp-charts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-chart-title { margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.sc-chart-sub { margin: 4px 0 10px; font-size: 1.05rem; line-height: 1.4; color: var(--ink-soft); }
.sc-chart-title + .sc-svg { margin-top: 10px; }
.sc-svg { display: block; width: 100%; height: auto; background: #fbf6ef; border-radius: 12px; font-family: inherit; }
.sc-grid { stroke: #e3d9c8; stroke-width: 1; }
.sc-axis { stroke: #8a8f94; stroke-width: 1.5; }
.sc-line { stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.sc-ann { stroke: #8a8f94; stroke-width: 1.5; stroke-dasharray: 4 4; }
.sc-ann-t { font-size: 16px; font-weight: 600; fill: #3d4a55; }
.sc-ax { font-size: 16px; fill: #56636e; }
.sc-note { font-style: italic; }
.sc-yr { font-size: 17px; font-weight: 600; fill: #3d4a55; }
.sc-val { font-size: 20px; font-weight: 800; paint-order: stroke; stroke: #fbf6ef; stroke-width: 4px; stroke-linejoin: round; }
.sc-lbl { font-size: 18px; font-weight: 600; fill: #1f2a33; }
.sc-lbl-hi { font-weight: 800; fill: #b4532a; }
.sc-sl { stroke: #12304a; stroke-width: 2.5; stroke-linecap: round; opacity: .42; }
.sc-sl-hi { stroke: #b4532a; stroke-width: 5; stroke-linecap: round; }
.sc-sl-dot { fill: #12304a; opacity: .55; }
.sc-sl-dot-hi { fill: #b4532a; }
.sc-sl-t { font-size: 17px; font-weight: 600; fill: #3d4a55; }
.sc-sl-t-hi { font-size: 19px; font-weight: 800; fill: #b4532a; }

/* Home teaser: chart beside the blurb. */
.hs-rail-5 { grid-template-columns: repeat(2, 1fr); }
.hs-rail-5 li:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .hs-rail-5 { grid-template-columns: repeat(5, 1fr); } .hs-rail-5 li:last-child { grid-column: auto; } }
.hs-video { margin: 22px 0 8px; max-width: 960px; }
.hs-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.hs-video figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--ink-soft); }
.hs-teaser { display: grid; gap: 18px 48px; align-items: center; padding: 22px 0 8px; }
.hs-teaser .sc-chart { max-width: 640px; margin: 0; }
.hs-teaser-copy p { margin: 0 0 16px; font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 32em; }
.hs-teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hs-teaser-link { font-weight: 600; }
@media (min-width: 900px) { .hs-teaser { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } }

/* Story page chrome. */
.sp-rail-bar { position: sticky; top: var(--header-h, 61px); z-index: 30; background: rgba(251, 246, 239, .97); border-bottom: 1px solid var(--line-soft); }
.sp-rail { margin: 0; padding: 8px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.sp-rail li { flex: none; }
.sp-rail a { padding: 8px 14px; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.story-page .hs-scene { scroll-margin-top: calc(var(--header-h, 61px) + 72px); }
.sp-end { margin: 28px 0 0; font-size: 1.05rem; }
.story-page { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Hero and call-to-action art on the home page. */
.hero-lede { display: grid; gap: 8px 28px; align-items: center; margin-top: 18px; }
.hero .hero-copy .hero-lede > .lede { margin: 0; }
.hero-art { display: block; width: 100%; max-width: 260px; height: auto; justify-self: center; }
@media (min-width: 640px) { .hero-lede { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); } .hero-art { max-width: 300px; } }
.hero .hv-card .rungs > li { --ico: 40px; }
.hero .hv-card .r-box { padding-right: calc(var(--ico) + 20px); }
.hero .hv-card .r-ico { position: absolute; right: 10px; top: calc(var(--cy) - var(--ico) / 2); width: var(--ico); height: var(--ico); pointer-events: none; }
.cta-grid { display: grid; gap: 18px 40px; align-items: center; }
.cta-art { display: block; width: 100%; max-width: 380px; height: auto; justify-self: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
