/* Appendix 03.1, Local Historian. Scoped to main.ch31 so it can join the index's document on a
   page turn. Two kinds of type live here: D's (the frame, its captions, the cover) and Local
   Historian's own (inside .lh-copy: IBM Plex Mono headings, Inter body, slate and amber), so
   the screen reads as the other site, shown inside this one.
   Without motion (no .live) the film section is a list: each poster, its copy beside it.
   With motion (.live, added by appendix-lh.js) it is a pinned stage with the film on a canvas. */

.ch31 {
  --lh-ink: #020617; --lh-amber: #fcd34d; --lh-amber2: #fde68a; --lh-amber1: #fef3c7; --lh-amber4: #fbbf24;
  --lh-s100: #f1f5f9; --lh-s200: #e2e8f0; --lh-s300: #cbd5e1; --lh-s400: #94a3b8; --lh-s500: #64748b;
  --lh-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --lh-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- cover: the intro under the lede ---------- */
.ch31 .cv { padding-bottom: clamp(90px, 9vw, 150px); }
.ch31 .lh-intro { grid-column: 4 / 10; grid-row: 4; margin-top: clamp(40px, 4vw, 64px); }
.ch31 .lh-intro p { margin: 0 0 1em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; text-wrap: pretty; }
.ch31 .lh-intro .lh-spec { margin-top: 1.6em; font-size: var(--fs-mono); line-height: 1.6; color: var(--ink-soft); }
.ch31 .cv-toc { margin-top: clamp(40px, 4vw, 64px); align-self: start; }

/* ---------- 03.1a the film: the section (dark) ---------- */
.ch31 .lh-film { position: relative; background: var(--ink); color: var(--bone); padding: clamp(96px, 9vw, 150px) 0 clamp(80px, 8vw, 130px); }
.ch31 .lh-head { padding-inline: var(--m); align-items: baseline; margin-bottom: clamp(36px, 3.6vw, 56px); }
.ch31 .lh-head .lbl { grid-column: 1 / 4; }
.ch31 .lh-h { grid-column: 4 / 11; margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(32px, 4.2vw, 72px); line-height: .86; letter-spacing: -.045em; text-wrap: balance; }
.ch31 .lh-skip { grid-column: 11 / 13; justify-self: end; margin: 0; font-size: var(--fs-mono); }
.ch31 .lh-skip a { color: var(--bone); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ch31 .lh-skip a:hover { border-color: var(--accent); }
.ch31 .lh-skip i { font-style: normal; }

.ch31 .lh-stage { padding-inline: var(--m); }
.ch31 .lh-cap { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-size: var(--fs-mono); color: #a7a39b; }
.ch31 .lh-cap-t { margin-bottom: 10px; }
.ch31 .lh-fc { color: var(--bone); font-variant-numeric: tabular-nums; }
.ch31 .lh-canvas, .ch31 .lh-load, .ch31 .lh-cap-b, .ch31 .lh-fc { display: none; }

/* ---------- static: each poster, its copy beside it ---------- */
.ch31 .lh-film:not(.live) .lh-scene { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid rgba(232, 230, 225, .16); }
.ch31 .lh-film:not(.live) .lh-still { grid-column: 1 / 7; margin: 0; position: sticky; top: 70px; }
.ch31 .lh-film:not(.live) .lh-still img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0e0e0d; }
.ch31 .lh-film:not(.live) .lh-still .cap { color: #a7a39b; }
.ch31 .lh-film:not(.live) .lh-copy { grid-column: 7 / 13; container: lhs / inline-size; background: var(--lh-ink); padding: clamp(20px, 2.4vw, 36px); border-radius: 2px; }
.ch31 .lh-film:not(.live) .lh-wash, .ch31 .lh-film:not(.live) .h-demo, .ch31 .lh-film:not(.live) .who-rail, .ch31 .lh-film:not(.live) .h-rule { display: none; }
.ch31 .lh-film:not(.live) .lh-copy > * + *, .ch31 .lh-film:not(.live) .lh-copy > div > * + * { margin-top: 18px; }
.ch31 .lh-film:not(.live) .h-word { font-size: 40px; }
.ch31 .lh-film:not(.live) .who-p + .who-p, .ch31 .lh-film:not(.live) .sv-row + .sv-row, .ch31 .lh-film:not(.live) .sv-col + .sv-col { margin-top: 26px; }
.ch31 .lh-film:not(.live) .sv-row { text-align: left; }
.ch31 .lh-film:not(.live) .sv-vals { justify-content: flex-start; }
.ch31 .lh-film:not(.live) .se-browser { margin-top: 22px; }
.ch31 .lh-film:not(.live) .hw-cards { grid-template-columns: 1fr 1fr; }
.ch31 .lh-film:not(.live) .hr-chips { margin-top: 20px; }
@media (max-width: 760px) {
  .ch31 .lh-intro { margin-top: 32px; }
  .ch31 .cv-toc { order: 5; }
  .ch31 .lh-intro { order: 4; }
  .ch31 .lh-head { display: flex; flex-direction: column; gap: 14px; }
  .ch31 .lh-h { font-size: 9.6vw; }
  .ch31 .lh-skip { justify-self: auto; }
  .ch31 .lh-film:not(.live) .lh-scene { display: block; }
  .ch31 .lh-film:not(.live) .lh-still { position: static; margin-bottom: 14px; }
  .ch31 .lh-film:not(.live) .hw-cards { grid-template-columns: 1fr; }
}

/* ---------- live: the pinned stage ---------- */
.ch31 .lh-film.live { padding-bottom: 0; }
.ch31 .lh-film.live .lh-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 62px var(--m) 14px;
}
html.np-on .ch31 .lh-film.live .lh-stage { padding-bottom: 58px; }
.ch31 .lh-film.live .lh-fig { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch31 .lh-film.live .lh-fc { display: inline; }
.ch31 .lh-film.live .lh-screen {
  position: relative; flex: 1; min-height: 0; overflow: hidden; container: lhs / size; isolation: isolate;
  background: var(--lh-ink) url("assets/lh-film/posters/poster-hero.webp") center / cover no-repeat;
  outline: 1px solid rgba(232, 230, 225, .22); outline-offset: 0;
}
.ch31 .lh-film.live .lh-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.ch31 .lh-film.live .lh-scenes { position: absolute; inset: 0; z-index: 1; }
.ch31 .lh-film.live .lh-scene { position: absolute; inset: 0; }
.ch31 .lh-film.live .lh-still { display: none; }
.ch31 .lh-film.live .lh-copy { position: absolute; inset: 0; }
.ch31 .lh-film.live .lh-load { display: flex; gap: 14px; position: absolute; left: 14px; bottom: 12px; z-index: 2; margin: 0; font-size: var(--fs-mono); color: var(--bone); background: rgba(19, 19, 18, .82); padding: 6px 10px; transition: opacity .5s; }
.ch31 .lh-film.live .lh-screen.ready .lh-load { opacity: 0; pointer-events: none; }

/* the captions under the screen: the scroll's run, its holds, where each section begins */
.ch31 .lh-film.live .lh-cap-b { display: block; margin-top: 10px; }
.ch31 .lh-rule { position: relative; height: 9px; }
.ch31 .lh-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(232, 230, 225, .24); }
.ch31 .lh-fill { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.ch31 .lh-hz { position: absolute; top: 1px; height: 7px; background: repeating-linear-gradient(90deg, rgba(234, 90, 30, .55) 0 1px, transparent 1px 3px); transition: background-color .25s; }
.ch31 .lh-hz.on { background: var(--accent); }
.ch31 .lh-rule s { position: absolute; top: 0; width: 1px; height: 9px; background: rgba(232, 230, 225, .55); text-decoration: none; }
.ch31 .lh-cap-row { display: flex; gap: 14px; margin: 7px 0 0; white-space: nowrap; }
.ch31 .lh-sn { color: var(--accent); font-variant-numeric: tabular-nums; }
.ch31 .lh-st { color: var(--bone); overflow: hidden; text-overflow: ellipsis; }
.ch31 .lh-hold { margin-left: auto; color: var(--accent); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .ch31 .lh-film.live .lh-stage { padding-top: 58px; }
  .ch31 .lh-cap-l { display: none; }
  .ch31 .lh-hold { max-width: 48%; }
}

/* =======================================================================
   LOCAL HISTORIAN'S OWN TYPE, inside the screen (live) or each copy panel (static).
   Values follow the site's Tailwind classes; md = 768 px and lg = 1024 px of the
   screen, not the window.
   ======================================================================= */
.ch31 .lh-copy { color: var(--lh-s200); font-family: var(--lh-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ch31 .lh-copy p, .ch31 .lh-copy h3, .ch31 .lh-copy h4, .ch31 .lh-copy ul, .ch31 .lh-copy blockquote { margin: 0; }
.ch31 .lh-copy ul { list-style: none; padding: 0; }
.ch31 .lh-copy h3, .ch31 .lh-copy h4 { font-family: var(--lh-mono); font-weight: 700; letter-spacing: .025em; color: #fff; }
.ch31 .lh-copy b { font-weight: 600; }
.ch31 .lh-eb { font-family: var(--lh-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .3em; color: rgba(252, 211, 77, .9); margin-bottom: 12px !important; }
.ch31 .lh-eb.wide { letter-spacing: .35em; }
.ch31 .lh-h1 { font-size: 36px; line-height: 1.1; }
.ch31 .lh-h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.025em !important; }
.ch31 .lh-h2s { font-size: 24px; line-height: 1.25; }
.ch31 .lh-h3 { font-size: 20px; line-height: 1.3; }
.ch31 .lh-h4 { font-size: 16px; color: var(--lh-amber) !important; }
.ch31 .lh-copy .up { text-transform: uppercase; letter-spacing: .025em; }
.ch31 .lh-copy .amber { color: var(--lh-amber); }
.ch31 .lh-copy .amber100 { color: var(--lh-amber1); }
.ch31 .lh-copy .shadow { text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 6px 44px rgba(0, 0, 0, .75); }
.ch31 .lh-p { line-height: 1.625; margin-top: 12px !important; }
.ch31 .lh-p.dim { color: rgba(203, 213, 225, .9); margin-top: 8px !important; }
.ch31 .lh-copy u { color: var(--lh-amber); text-decoration-color: rgba(252, 211, 77, .4); text-underline-offset: 4px; }
.ch31 .lh-copy .mono-l { font-family: var(--lh-mono); white-space: nowrap; }
.ch31 .lh-ctas { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ch31 .lh-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--lh-mono); font-weight: 600; letter-spacing: .025em; font-size: 14px; line-height: 1.4; padding: 12px 24px; border-radius: 8px; border: 0; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s, color .3s; }
.ch31 .lh-btn.lg { padding: 16px 32px; font-size: 16px; }
.ch31 .lh-btn.pri { color: var(--lh-ink); background: linear-gradient(180deg, #fde28a 0%, #fcd34d 38%, #f0b429 100%); box-shadow: 0 10px 15px -3px rgba(245, 158, 11, .25), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ch31 .lh-btn.sec { color: #fff; background: rgba(2, 6, 23, .4); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ch31 button.lh-btn:hover { transform: translateY(-2px); }
.ch31 button.lh-btn.sec:hover { border-color: rgba(252, 211, 77, .6); color: var(--lh-amber1); }
.ch31 button.lh-btn:focus-visible { outline: 2px solid rgba(252, 211, 77, .7); outline-offset: 2px; }
.ch31 .lh-glass { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, rgba(30, 41, 59, .72) 0%, rgba(2, 6, 23, .82) 100%); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); }
.ch31 .lh-glass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(252, 211, 77, .55) 18%, rgba(255, 255, 255, .25) 50%, transparent 85%); pointer-events: none; }
.ch31 .lh-wash { position: absolute; inset: 0; pointer-events: none; }
.ch31 .w-hero { background: linear-gradient(90deg, rgba(2,6,23,.62) 0%, rgba(2,6,23,.45) 34%, transparent 64%); opacity: 0; }
.ch31 .w-left { background: linear-gradient(90deg, rgba(2,6,23,.68) 0%, rgba(2,6,23,.5) 42%, rgba(2,6,23,.22) 62%, transparent 80%); }
.ch31 .w-radial { background: radial-gradient(ellipse 80% 72% at 45% 52%, rgba(2,6,23,.62) 0%, rgba(2,6,23,.38) 52%, transparent 76%); }
.ch31 .w-down { background: linear-gradient(180deg, rgba(2,6,23,.32) 0%, rgba(2,6,23,.52) 45%, rgba(2,6,23,.6) 100%); opacity: 0; }
.ch31 .w-deep { background: radial-gradient(ellipse 58% 52% at 50% 47%, rgba(2,6,23,.78) 0%, rgba(2,6,23,.5) 55%, transparent 80%); }
.ch31 .w-corner { background: linear-gradient(105deg, rgba(2,6,23,.72) 0%, rgba(2,6,23,.46) 30%, rgba(2,6,23,.18) 52%, transparent 74%); }
.ch31 .w-top { background: radial-gradient(ellipse 70% 45% at 50% 12%, rgba(2,6,23,.55) 0%, rgba(2,6,23,.28) 55%, transparent 85%); opacity: 0; }
.ch31 .w-band { background: linear-gradient(180deg, rgba(2,6,23,.62) 0%, rgba(2,6,23,.3) 14%, transparent 30%), linear-gradient(0deg, rgba(2,6,23,.74) 0%, rgba(2,6,23,.5) 24%, transparent 48%); }
.ch31 .w-vband { background: linear-gradient(180deg, transparent 6%, rgba(2,6,23,.5) 30%, rgba(2,6,23,.55) 62%, transparent 84%); }

/* a  hero */
.ch31 .h-eb { font-size: 12px; letter-spacing: .5em; }
.ch31 .h-word { font-family: var(--lh-mono); font-weight: 700; color: #fff; line-height: .95; letter-spacing: -.025em; text-shadow: 0 6px 60px rgba(0, 0, 0, .65); font-size: clamp(36px, 11cqw, 152px); text-align: center; }
.ch31 .h-word > span { display: block; white-space: nowrap; }
.ch31 .h-rule { display: block; height: 1px; width: 176px; margin: 24px auto 0; background: linear-gradient(90deg, transparent, rgba(252, 211, 77, .9), transparent); }
.ch31 .h-tag { margin-top: 20px !important; font-family: var(--lh-mono); font-size: 14px; letter-spacing: .2em; color: rgba(226, 232, 240, .9); text-align: center; }
.ch31 .h-h { font-size: 30px; }
.ch31 .h-copy .lh-p { color: var(--lh-s200); }
.ch31 .lh-film.live .h-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; pointer-events: none; }
.ch31 .lh-film.live .h-mark::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: radial-gradient(ellipse 75% 65% at 50% 55%, rgba(2,6,23,.5) 0%, rgba(2,6,23,.28) 55%, transparent 78%); }
.ch31 .lh-film.live .h-grid { position: absolute; inset: 0; display: grid; align-items: center; gap: 32px; padding: 0 24px; }
.ch31 .lh-film.live .h-copy { max-width: 576px; margin: 0 auto; text-align: center; }
.ch31 .h-demo { display: none; }
.ch31 .h-frame { display: flex; gap: 12px; width: 100%; max-width: 672px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(2,6,23,.85); padding: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }
.ch31 .h-video { flex: 1; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 8px; background: rgba(15,23,42,.9); padding: 12px; }
.ch31 .h-vmid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ch31 .h-playc { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.ch31 .h-playc i { margin-left: 4px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid rgba(255,255,255,.85); }
.ch31 .h-vlbl { margin-top: 12px; font-size: 12px; color: var(--lh-s400); }
.ch31 .h-vbar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.ch31 .h-vbar i { display: block; width: 25%; height: 100%; background: rgba(252,211,77,.9); }
.ch31 .h-chat { width: 46%; display: flex; flex-direction: column; }
.ch31 .h-tabs { display: flex; gap: 4px; border-radius: 6px; background: rgba(15,23,42,.9); padding: 4px; font-size: 12px; }
.ch31 .h-tabs span { padding: 4px 12px; color: var(--lh-s400); font-weight: 500; }
.ch31 .h-tabs span.on { border-radius: 4px; background: rgba(252,211,77,.9); color: var(--lh-ink); font-weight: 600; }
.ch31 .h-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 8px 0; font-size: 12px; }
.ch31 .h-q { display: flex; justify-content: flex-end; }
.ch31 .h-q span { max-width: 85%; border-radius: 8px 8px 2px 8px; background: rgba(252,211,77,.9); color: var(--lh-ink); padding: 8px 12px; font-weight: 500; }
.ch31 .h-a span { display: inline-block; max-width: 92%; border-radius: 8px 8px 8px 2px; background: rgba(30,41,59,.95); color: var(--lh-s100); padding: 8px 12px; line-height: 1.6; }
.ch31 .h-a b { color: #fff; }
.ch31 .h-a code { margin-left: 4px; border-radius: 4px; background: rgba(252,211,77,.2); padding: 2px 6px; font-family: var(--lh-mono); font-size: 10px; color: var(--lh-amber); }
.ch31 .h-input { border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(15,23,42,.9); padding: 8px 12px; font-size: 12px; color: var(--lh-s500); }
.ch31 .lh-film.live .h-l { display: inline-block; opacity: 0; }
.ch31 .lh-film.live.arrive .h-l { animation: lhLetter .75s cubic-bezier(.22, 1, .36, 1) both; }
.ch31 .lh-film.live .h-eb, .ch31 .lh-film.live .h-tag { opacity: 0; }
.ch31 .lh-film.live.arrive .h-eb { animation: lhFade .7s ease-out .05s both; }
.ch31 .lh-film.live.arrive .h-tag { animation: lhFade .7s ease-out 1.2s both; }
.ch31 .lh-film.live .h-rule { transform: scaleX(0); }
.ch31 .lh-film.live.arrive .h-rule { animation: lhRule .7s cubic-bezier(.22, 1, .36, 1) 1.05s both; }
@keyframes lhLetter { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lhFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lhRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* b  who it helps */
.ch31 .who-head { max-width: 768px; margin-bottom: 32px; }
.ch31 .who-rail { display: none; }
.ch31 .who-sub { font-size: 14px; color: var(--lh-s300); }
.ch31 .who-p ul { margin-top: 24px; display: grid; gap: 16px; }
.ch31 .who-p li { font-size: 14px; line-height: 1.625; color: var(--lh-s300); }
.ch31 .who-p li b { display: block; color: var(--lh-amber); font-size: 14px; margin-bottom: 2px; }
.ch31 .who-call { margin-top: 20px !important; display: inline-block; border-radius: 6px; border: 1px solid rgba(252,211,77,.25); background: rgba(252,211,77,.1); padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--lh-amber); }
.ch31 .lh-film.live .sc-who .lh-copy { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; }
.ch31 .lh-film.live .who-body { position: relative; }
.ch31 .lh-film.live .who-grid { position: relative; display: grid; gap: 32px; }
.ch31 .lh-film.live .who-stage { position: relative; min-height: 21rem; }
.ch31 .lh-film.live .who-p { position: absolute; inset: 0; max-width: 672px; }
.ch31 .who-rail button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: rgba(148,163,184,.6); transition: color .2s; }
.ch31 .who-rail button.on { color: #fff; }
.ch31 .who-rail button > span { display: flex; align-items: baseline; gap: 12px; font-family: var(--lh-mono); font-size: 14px; font-weight: 600; line-height: 1.35; }
.ch31 .who-rail em { font-style: normal; font-size: 12px; font-weight: 400; color: rgba(252,211,77,.8); }
.ch31 .who-rail i { display: block; margin-top: 6px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; }
.ch31 .who-rail i b { display: block; height: 100%; background: rgba(252,211,77,.9); transform: scaleX(0); transform-origin: left; }

/* c  what it saves */
.ch31 .sv-head { position: relative; max-width: 768px; }
.ch31 .sv-task { font-family: var(--lh-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .35em; color: rgba(252,211,77,.8); }
.ch31 .sv-vals { margin-top: 16px !important; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 16px; font-family: var(--lh-mono); }
.ch31 .sv-b { position: relative; font-size: 30px; font-weight: 700; color: var(--lh-s300); }
.ch31 .sv-b i { position: absolute; left: 0; top: 50%; width: 100%; height: 3px; background: rgba(252,211,77,.8); transform-origin: left; }
.ch31 .sv-ar { font-size: 24px; color: var(--lh-amber); display: inline-block; }
.ch31 .sv-a { font-size: 36px; font-weight: 700; color: var(--lh-amber); display: inline-block; }
.ch31 .sv-col ul { margin-top: 10px; display: grid; gap: 8px; }
.ch31 .sv-col li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.375; color: var(--lh-s200); }
.ch31 .sv-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: rgba(252,211,77,.5); }
.ch31 .sv-foot { font-size: 12px; font-style: italic; color: var(--lh-s400); }
.ch31 .lh-film.live .sc-saves .lh-copy { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; }
.ch31 .lh-film.live .sv-marq { position: relative; margin-top: 24px; min-height: 11rem; }
.ch31 .lh-film.live .sv-row { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ch31 .lh-film.live .sv-b i { transform: scaleX(0); }
.ch31 .lh-film.live .sv-tri { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 24px; pointer-events: none; }
.ch31 .lh-film.live .sv-tri { display: grid; align-content: center; gap: 16px; }
.ch31 .lh-film.live .sv-foot { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; }

/* d  hosting is not access / how towns fund it */
.ch31 .hw-ah .lh-h2 { font-size: 24px; letter-spacing: .025em !important; }
.ch31 .hw-ah .lh-p { font-size: 14px; }
.ch31 .hw-cards { margin-top: 20px; display: grid; gap: 12px; width: 100%; max-width: 1024px; }
.ch31 .hw-c { padding: 16px; text-align: left; }
.ch31 .hw-c h4 { font-size: 16px; }
.ch31 .hw-c p { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--lh-s300); }
.ch31 .hw-rule { display: none; height: 1px; width: 40px; margin: 8px auto 0; background: linear-gradient(90deg, transparent, rgba(252,211,77,.8), transparent); }
.ch31 .hw-foot { margin-top: 16px !important; font-size: 12px; color: var(--lh-s300); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ch31 .hw-bh .lh-h1 { font-size: 36px; letter-spacing: .025em; }
.ch31 .hw-s { padding: 16px; }
.ch31 .hw-acc { position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; border-radius: 2px; background: rgba(252,211,77,.9); transform-origin: top; }
.ch31 .hw-st { display: flex; align-items: center; gap: 12px; }
.ch31 .hw-st em { font-style: normal; font-family: var(--lh-mono); font-size: 24px; font-weight: 700; color: rgba(252,211,77,.9); }
.ch31 .hw-st b { font-family: var(--lh-mono); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.ch31 .hw-sd { padding-left: 48px; overflow: hidden; }
.ch31 .hw-sd p { font-size: 14px; line-height: 1.625; color: var(--lh-s300); }
.ch31 .hw-fine { font-size: 11px; line-height: 1.625; color: var(--lh-s400); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.ch31 .lh-film:not(.live) .hw-acc { transform: scaleY(1); }
.ch31 .lh-film.live .hw-a { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; pointer-events: none; }
.ch31 .lh-film.live .hw-ah { max-width: 768px; text-align: center; }
.ch31 .lh-film.live .hw-bh { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ch31 .lh-film.live .hw-stack { position: absolute; top: 0; bottom: 0; left: 0; width: min(calc(24rem + 48px), 92%); box-sizing: border-box; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ch31 .lh-film.live .hw-sd { max-height: 0; opacity: 0; }
.ch31 .lh-film.live .hw-acc { transform: scaleY(0); }
.ch31 .lh-film.live .hw-rule { transform: scaleX(0); }

/* e  see it in action */
.ch31 .se-live { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px !important; border-radius: 999px; border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.15); padding: 8px 16px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .025em; color: #4ade80; box-shadow: 0 10px 15px -3px rgba(0,0,0,.4); }
.ch31 .se-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: lhPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes lhPulse { 50% { opacity: .5; } }
.ch31 .se-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.ch31 .se-chip { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px 14px; font-family: var(--lh-mono); font-size: 14px; color: var(--lh-s200); }
.ch31 .se-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lh-amber); box-shadow: 0 0 10px 3px rgba(252,211,77,.35); }
.ch31 .se-chip b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch31 .se-cta { margin-top: 28px !important; }
.ch31 .se-browser { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(51,65,85,.5); background: #0f172a; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5), 0 0 60px rgba(252,211,77,.08); }
.ch31 .se-bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(51,65,85,.5); background: rgba(30,41,59,.8); padding: 10px 16px; }
.ch31 .se-dots { display: flex; gap: 6px; width: 48px; }
.ch31 .se-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(239,68,68,.8); }
.ch31 .se-dots i + i { background: rgba(234,179,8,.8); }
.ch31 .se-dots i + i + i { background: rgba(34,197,94,.8); }
.ch31 .se-url { flex: 1; text-align: center; font-family: var(--lh-mono); font-size: 12px; color: var(--lh-s400); }
.ch31 .se-bar > span:last-child { width: 48px; }
.ch31 .se-shot { position: relative; }
.ch31 .se-shot img { display: block; width: 100%; height: auto; }
.ch31 .se-sheen { position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.09) 47%, rgba(252,211,77,.05) 53%, transparent 66%); background-size: 250% 100%; background-position: 120% 0; }
.ch31 .lh-film.live .se-h { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; pointer-events: none; }
.ch31 .lh-film.live .se-h .lh-p { max-width: 672px; color: var(--lh-s100); }
.ch31 .lh-film.live .se-grid { position: absolute; inset: 0; display: grid; align-items: center; gap: 32px; padding: 0 24px; }
.ch31 .lh-film.live .se-browser { display: none; }

/* f  heritage layer */
.ch31 .hr-quote { max-width: 672px; font-family: var(--lh-mono); font-size: 20px; font-style: italic; line-height: 1.625; color: var(--lh-amber2); text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 4px 28px rgba(0,0,0,.7); }
.ch31 .hr-w { display: inline-block; white-space: pre; }
.ch31 .hr-cta { margin-top: 24px !important; }
.ch31 .hr-eb { margin-bottom: 12px !important; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .025em; color: var(--lh-amber4); }
.ch31 .sc-her .lh-p { font-size: 14px; }
.ch31 .hr-chips { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 448px; }
.ch31 .hr-chip { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(245,158,11,.2); padding: 12px; text-align: center; background: linear-gradient(160deg, rgba(30,41,59,.6) 0%, rgba(2,6,23,.75) 100%); box-shadow: 0 20px 25px -5px rgba(0,0,0,.4); }
.ch31 .hr-chip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(251,191,36,.45) 30%, transparent 85%); }
.ch31 .hr-wave { display: block; width: 100%; height: 32px; box-sizing: border-box; padding: 3px 0; border-radius: 6px; border: 1px solid rgba(245,158,11,.1); background: rgba(15,23,42,.6); }
.ch31 .hr-wave rect { fill: var(--lh-amber4); }
.ch31 .hr-chip b { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--lh-amber1); }
.ch31 .hr-chip small { display: block; margin-top: 2px; font-size: 10px; color: rgba(251,191,36,.6); }
.ch31 .lh-film.live .hr-q { position: absolute; left: 0; right: 0; top: 9%; display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center; }
.ch31 .lh-film.live .hr-low { position: absolute; left: 0; bottom: 32px; max-width: 576px; padding: 0 24px; display: flex; flex-direction: column; }

/* g  our services */
.ch31 .sc-svc-h .lh-h2s { font-size: 30px; }
.ch31 .sc-svc-h .lh-p { font-size: 14px; }
.ch31 .svc-row { display: grid; gap: 10px; width: 100%; max-width: 896px; margin: 0 auto; text-align: left; }
.ch31 .svc-c { padding: 12px; }
.ch31 .svc-t { font-family: var(--lh-mono); font-size: 16px; font-weight: 700; color: #fff; }
.ch31 .svc-d { overflow: hidden; }
.ch31 .svc-d p { font-size: 12px; line-height: 1.625; color: var(--lh-s300); }
.ch31 .lh-film:not(.live) .svc-d { margin-top: 8px; }
.ch31 .svc-call { position: relative; overflow: hidden; margin: 10px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 896px; box-sizing: border-box; border-radius: 12px; border: 1px solid rgba(252,211,77,.4); padding: 16px; text-align: left; background: linear-gradient(135deg, rgba(251,191,36,.16) 0%, rgba(180,120,20,.1) 35%, rgba(2,6,23,.85) 100%); box-shadow: 0 25px 50px -12px rgba(120,53,15,.3); }
.ch31 .svc-ct { font-family: var(--lh-mono); font-size: 16px; font-weight: 700; color: var(--lh-amber1); }
.ch31 .svc-call p + p { margin-top: 4px; font-size: 12px; line-height: 1.625; color: rgba(255,251,235,.8); }
.ch31 .lh-film.live .sc-svc-h { position: absolute; left: 0; right: 0; top: 6%; max-width: 672px; margin: 0 auto; padding: 0 24px; text-align: center; }
.ch31 .lh-film.live .svc-cl { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; }
.ch31 .lh-film.live .svc-d { max-height: 0; opacity: 0; }

/* h  what is local historian */
.ch31 .wh-q { max-width: 1024px; font-size: 36px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: -.025em !important; text-shadow: 0 2px 4px rgba(0,0,0,.7), 0 8px 60px rgba(0,0,0,.8); }
.ch31 .wh-q em { font-style: italic; }
.ch31 .sc-what .lh-p { margin-top: 24px !important; max-width: 672px; color: var(--lh-s100); }
.ch31 .wh-body { margin-top: 24px; max-width: 672px; display: grid; gap: 12px; font-size: 14px; line-height: 1.625; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ch31 .lh-film.live .wh-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; text-align: center; }

/* i  get started */
.ch31 .go-nl { margin-top: 24px; max-width: 448px; }
.ch31 .go-nlt { font-family: var(--lh-mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: var(--lh-amber); }
.ch31 .go-nl p + p { margin-top: 4px; font-size: 12px; line-height: 1.625; color: var(--lh-s300); }
.ch31 .go-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; border-radius: 12px; }
.ch31 .go-ft { font-family: var(--lh-mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: var(--lh-amber); }
.ch31 .go-fs { margin-top: 2px !important; font-size: 12px; color: var(--lh-s400); }
.ch31 .go-fl { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--lh-mono); font-size: 12px; letter-spacing: .025em; color: var(--lh-s400); }
.ch31 .go-cr { width: 100%; border-top: 1px solid rgba(255,255,255,.05); padding-top: 10px; text-align: center; font-size: 11px; color: var(--lh-s500); }
.ch31 .lh-film.live .go-col { position: absolute; left: 0; top: 0; bottom: 34%; display: flex; flex-direction: column; justify-content: center; max-width: 560px; padding: 0 24px; }
.ch31 .lh-film.live .go-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; }

/* ---------- md: a screen 768 px wide or more ---------- */
@container lhs (min-width: 768px) {
  .ch31 .lh-h1 { font-size: 48px; }
  .ch31 .lh-h2 { font-size: 36px; }
  .ch31 .lh-h2s { font-size: 30px; }
  .ch31 .lh-h3 { font-size: 24px; }
  .ch31 .lh-h4 { font-size: 20px; }
  .ch31 .lh-lg { font-size: 18px; }
  .ch31 .lh-xl { font-size: 20px; }
  .ch31 .h-word { font-size: clamp(36px, 11cqw, 152px); }
  .ch31 .h-word > span { display: inline; }
  .ch31 .h-word > span + span { margin-left: .4em; }
  .ch31 .h-rule { width: 256px; }
  .ch31 .h-tag { font-size: 16px; }
  .ch31 .h-h { font-size: 36px; }
  .ch31 .lh-ctas { justify-content: flex-start; }
  .ch31 .who-head { margin-bottom: 40px; }
  .ch31 .who-p li b { font-size: 16px; }
  .ch31 .sv-task { font-size: 14px; }
  .ch31 .sv-b { font-size: 48px; }
  .ch31 .sv-ar { font-size: 36px; }
  .ch31 .sv-a { font-size: 60px; }
  .ch31 .sv-col li { font-size: 15.2px; line-height: 1.625; }
  .ch31 .sv-col ul { margin-top: 20px; gap: 14px; }
  .ch31 .hw-ah .lh-h2 { font-size: 36px; }
  .ch31 .hw-ah .lh-p { font-size: 20px; }
  .ch31 .hw-cards { margin-top: 32px; gap: 16px; }
  .ch31 .hw-c { padding: 20px; text-align: center; }
  .ch31 .hw-c h4 { font-size: 18px; margin-top: 4px; }
  .ch31 .hw-c p { font-size: 14px; margin-top: 8px; }
  .ch31 .hw-rule { display: block; }
  .ch31 .hw-foot { margin-top: 20px !important; font-size: 14px; }
  .ch31 .hw-bh .lh-h1 { font-size: 48px; }
  .ch31 .hw-st b { font-size: 16px; }
  .ch31 .se-live { font-size: 14px; }
  .ch31 .hr-quote { font-size: 24px; }
  .ch31 .hr-eb { font-size: 14px; }
  .ch31 .sc-her .lh-p { font-size: 16px; }
  .ch31 .sc-svc-h .lh-h2s { font-size: 36px; }
  .ch31 .sc-svc-h .lh-p { font-size: 16px; }
  .ch31 .svc-c { padding: 16px; }
  .ch31 .svc-t { font-size: 18px; }
  .ch31 .svc-d p, .ch31 .svc-call p + p { font-size: 14px; }
  .ch31 .svc-ct { font-size: 18px; }
  .ch31 .svc-call { flex-direction: row; gap: 16px; padding: 20px; margin-top: 16px; }
  .ch31 .wh-q { font-size: 60px; }
  .ch31 .wh-body { font-size: 16px; }
  .ch31 .go-nl p + p { font-size: 14px; }
}
@container lhs (min-width: 1024px) {
  .ch31 .lh-h2 { font-size: 48px; }
  .ch31 .h-h { font-size: 41.6px; }
  .ch31 .hw-ah .lh-h2 { font-size: 44px; }
  .ch31 .hw-bh .lh-h1 { font-size: 60px; }
  .ch31 .hr-quote { font-size: 27.2px; }
  .ch31 .sc-her .lh-h2s { font-size: 36px; }
  .ch31 .wh-q { font-size: 72px; }
}
/* the live layouts that change at md */
@container lhs (min-width: 768px) {
  .ch31 .lh-film.live .h-grid { grid-template-columns: 5fr 7fr; padding: 0 48px; }
  .ch31 .lh-film.live .h-copy { margin: 0; text-align: left; }
  .ch31 .lh-film.live .h-demo { display: flex; justify-content: center; }
  .ch31 .lh-film.live .sc-who .lh-copy { padding: 0 56px; }
  .ch31 .lh-film.live .who-grid { grid-template-columns: 15rem 1fr; }
  .ch31 .lh-film.live .who-rail { display: flex; flex-direction: column; gap: 20px; align-self: center; }
  .ch31 .lh-film.live .who-stage { min-height: 23rem; margin-left: 40px; }
  .ch31 .lh-film.live .sc-saves .lh-copy { padding: 0 56px; }
  .ch31 .lh-film.live .sv-marq { margin-top: 32px; min-height: 13rem; }
  .ch31 .lh-film.live .sv-tri { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 38cqh 56px 0; }
  .ch31 .lh-film.live .sv-col { padding: 0 32px; }
  .ch31 .lh-film.live .sv-col + .sv-col { border-left: 1px solid rgba(255,255,255,.1); }
  .ch31 .lh-film.live .sv-foot { bottom: 32px; }
  .ch31 .lh-film.live .hw-cards { grid-template-columns: repeat(4, 1fr); }
  .ch31 .lh-film.live .hw-stack { padding: 0 40px; width: calc(24rem + 80px); }
  .ch31 .lh-film.live .se-grid { grid-template-columns: 5fr 7fr; padding: 0 48px; }
  .ch31 .lh-film.live .se-browser { display: block; }
  .ch31 .lh-film.live .hr-low { bottom: 56px; padding: 0 56px; }
  .ch31 .lh-film.live .svc-cl { top: auto; bottom: 48px; display: block; padding: 0 56px; }
  .ch31 .lh-film.live .svc-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ch31 .lh-film.live .go-col { padding: 0 48px; }
  .ch31 .lh-film.live .go-foot { left: 48px; right: 48px; bottom: 24px; }
}
@container lhs (min-width: 1024px) {
  .ch31 .lh-film.live .h-grid { padding: 0 64px; }
  .ch31 .lh-film.live .sc-who .lh-copy { padding: 0 80px; }
  .ch31 .lh-film.live .who-grid { gap: 64px; }
  .ch31 .lh-film.live .who-stage { margin-left: 80px; }
  .ch31 .lh-film.live .sc-saves .lh-copy { padding: 0 80px; }
  .ch31 .lh-film.live .sv-tri { padding: 38cqh 80px 0; }
  .ch31 .lh-film.live .hw-stack { padding: 0 56px; width: calc(24rem + 112px); }
  .ch31 .lh-film.live .se-grid { padding: 0 64px; }
  .ch31 .lh-film.live .go-col { padding: 0 64px; }
}
/* a short screen (a landscape phone, a laptop with the player strip up): the copy steps down */
@container lhs (max-height: 560px) {
  .ch31 .lh-h1 { font-size: 30px; }
  .ch31 .lh-h2 { font-size: 26px; }
  .ch31 .lh-copy .lh-p { font-size: 14px; }
  .ch31 .who-stage { min-height: 15rem !important; }
  .ch31 .wh-q { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch31 .se-live i { animation: none; }
}

/* ---------- narrow screen: the four pillars as compact rows, so the beat fits one phone screen ---------- */
@container lhs (max-width: 767px) {
  .ch31 .lh-film.live .hw-ah .lh-p { font-size: 13px; line-height: 1.5; }
  .ch31 .lh-film.live .hw-cards { margin-top: 14px; gap: 8px; }
  .ch31 .lh-film.live .hw-c { padding: 9px 12px; }
  .ch31 .lh-film.live .hw-c h4 { font-size: 14px; }
  .ch31 .lh-film.live .hw-c p { margin-top: 2px; font-size: 11.5px; line-height: 1.4; }
  .ch31 .lh-film.live .hw-foot { margin-top: 10px !important; }
}

/* ---------- 03.1b: the two links ---------- */
.ch31 .lh-go { margin-top: clamp(8px, 1vw, 16px); }
.ch31 .lh-links { grid-column: 4 / 13; display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 0; font-size: var(--fs-mono); }
.ch31 .lh-links .e-link { white-space: nowrap; }
@media (max-width: 760px) { .ch31 .lh-links { flex-direction: column; align-items: flex-start; } }

/* the giant footer name must never sit over the links above it */
.ch31 .lh-go { position: relative; z-index: 3; }
.ch31 .foot-name { pointer-events: none; }
