.story { display: grid; grid-template-columns: minmax(320px, 40%) 1fr; position: relative; }
.stage { grid-column: 2; grid-row: 1; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: hidden; }
#smap { position: absolute; inset: 0; background: #dfe6ea; }
.steps { grid-column: 1; grid-row: 1; padding: 0 28px 30vh; }
.step { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; }
.step.on { opacity: 1; }
.step .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.step h2 { margin-bottom: .35em; }
.step p { margin: .4em 0; }
.step .kicker { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.step.intro { min-height: 92vh; }
.step.intro .box { border: 0; background: transparent; padding: 0; }
.step.intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.scroll-cue { margin-top: 18px; color: var(--ink-3); font-size: .9rem; display: flex; align-items: center; gap: 6px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.bignum { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.facts div { background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.facts .lbl { font-size: .8rem; color: var(--ink-2); }
.cite { margin-top: 10px; }
.cite-draft { color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); }

/* timeline event steps */
.step.ev { min-height: 55vh; }
.ev .box { border-left: 5px solid var(--harbor-2); }
.ev.t-fire .box { border-left-color: #e2531f; }
.ev.t-enforcement .box { border-left-color: #6b4fbb; }
.ev.t-monitoring .box { border-left-color: #2f8f6b; }
.ev.t-agreement .box { border-left-color: #c99410; }
.ev .when { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.badge.t-fire { background: #fde3d7; color: #9a2f0c; }
.badge.t-enforcement { background: #ebe5fa; color: #47318f; }
.badge.t-monitoring { background: #dcf1e7; color: #1d6248; }
.badge.t-agreement { background: #fbefcc; color: #7a5806; }
.badge.t-investigation, .badge.t-company { background: #e2edf4; color: #1f4e6b; }

/* HUD over map */
.hud { position: absolute; top: 16px; right: 16px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.hud-year { font-family: var(--serif); font-weight: 600; font-size: 3.4rem; color: #fff; background: rgba(29,36,51,.9); padding: 6px 18px 8px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.25); line-height: 1; letter-spacing: .01em; }
.hud-year:empty { display: none; }
.hud-year.tick { animation: tick .45s ease-out; }
@keyframes tick { 0% { transform: scale(1.15); background: #d2562b; } 100% { transform: scale(1); } }
.hud-fires { background: rgba(255,255,255,.95); border-radius: 999px; padding: 5px 12px; font-weight: 600; color: #b23a10; display: none; }
.hud-fires.show { display: block; }

/* process diagram */
.process { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 500; background: rgba(255,255,255,.96); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s; pointer-events: none; }
.process.show { opacity: 1; transform: none; }
.pnode { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: .78rem; color: var(--ink-3); flex: 1; transition: color .3s, transform .3s; }
.pnode i { font-size: 26px; }
.pnode.on { color: var(--ink); transform: scale(1.08); }
.pnode.on i { color: var(--accent); }
.pnode.warn.on i { color: #b23a10; }
.pouts { display: flex; flex-direction: column; gap: 6px; flex: 1.2; }
.pouts .pnode { flex-direction: row; gap: 6px; text-align: left; }
.pouts .pnode i { font-size: 20px; }
.parrow { color: var(--line); font-size: 18px; }

/* mini timeline bar */
.tlbar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 500; background: rgba(255,255,255,.96); border-radius: 12px; padding: 14px 18px 26px; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s; }
.tlbar.show { opacity: 1; transform: none; }
.tl-track { position: relative; height: 4px; background: var(--line); border-radius: 2px; margin-top: 26px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 2px; width: 0; transition: width .5s; }
#tl-icons { position: relative; height: 0; }
.tl-ic { position: absolute; top: -34px; transform: translateX(-50%) scale(.4); opacity: 0; transition: opacity .35s, transform .35s; font-size: 16px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--harbor-2); }
.tl-ic.show { opacity: 1; transform: translateX(-50%) scale(1); }
.tl-ic.now { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.tl-ic.t-fire { background: #e2531f; }
.tl-ic.t-enforcement { background: #6b4fbb; }
.tl-ic.t-monitoring { background: #2f8f6b; }
.tl-ic.t-agreement { background: #c99410; }
.tl-labels { position: relative; height: 14px; margin-top: 6px; font-size: .72rem; color: var(--ink-3); }
.tl-labels span { position: absolute; transform: translateX(-50%); }

/* map markers */
.fire-mk { transition: opacity .45s, transform .45s; width: 30px; height: 30px; border-radius: 50%; background: #e2531f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.35); animation: pop .45s cubic-bezier(.2,1.6,.4,1); position: relative; }
.fire-mk b { position: absolute; top: 37px; left: 50%; transform: translateX(-50%); font: 600 11px var(--sans); color: #fff; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 4px; white-space: nowrap; text-align: center; line-height: 1.3; }
.fire-mk b small { display: block; font-weight: 400; font-size: 10px; opacity: .9; }
.fire-mk.new::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #e2531f; animation: ring 1.4s ease-out infinite; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ring { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.8); } }
.place-mk { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--harbor); display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.place-mk.school { color: #6b4fbb; }
.place-mk.park { color: #2f8f6b; }
.place-mk.train { color: #1d2433; }
.mon-mk { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.3); }
.ring-lbl { font: 600 11px var(--sans); color: #1f4e6b; background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.area-lbl { font: 600 15px var(--serif); color: #1d2433; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 6px #fff; white-space: nowrap; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .stage { grid-column: 1; height: 48vh; top: 60px; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
  .steps { grid-column: 1; grid-row: 2; padding: 0 14px 30vh; position: relative; z-index: 1; }
  .step, .step.ev { min-height: 62vh; justify-content: flex-start; padding-top: 4vh; }
  .step .box { box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
  .step.intro .box { background: var(--card); border: 1px solid var(--line); padding: 20px; }
  .process { padding: 10px; gap: 4px; }
  .pnode span { display: none; }
  .pouts .pnode span { display: inline; font-size: .7rem; }
  .hud-year { font-size: 2.3rem; padding: 4px 12px 6px; }
}
.fire-mk.out { opacity: 0; transform: scale(.4); }
.scar-mk { width: 30px; height: 30px; border-radius: 45% 55% 50% 50%; background: radial-gradient(circle, rgba(60,52,48,.42) 0%, rgba(60,52,48,.22) 45%, rgba(60,52,48,0) 72%); color: #4f4a47; display: flex; align-items: center; justify-content: center; font-size: 20px; animation: scar-in .6s ease-out; }
.scar-mk i { text-shadow: 0 0 2px #fff, 0 0 3px #fff; }
@keyframes scar-in { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }
.tl-note { display: none; margin-top: 8px; font-size: .75rem; color: var(--ink-3); align-items: center; gap: 4px; }
.tl-note.show { display: flex; }
.tl-note i { color: #e2531f; }

/* ===== v2 theme for the story ===== */
body[data-page="home"] { transition: background-color .7s ease; }
.step .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.step.intro .box { background: var(--steel); color: var(--paper); padding: 34px 32px; border: 0; border-radius: 22px; }
.step.intro .kicker, .step.intro .scroll-cue, .step.intro .cite, .step.intro .cite a { color: rgba(239,241,232,.85); }
.step.intro h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.step .kicker { font-weight: 700; letter-spacing: .08em; color: var(--steel-deep); }
.facts div { background: var(--mist); border-radius: 12px; }
.bignum { color: var(--steel-deep); }
.hud-year { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; background: var(--ink); }
.hud-fires { color: #b23a10; }
.tl-fill { background: var(--ink); }
.pnode.on i { color: var(--steel-deep); }

/* ===== Timeline mode: the whole page changes ===== */
body.tl-mode { background: var(--ink); }
body.tl-mode .nav { background: var(--ink); border-bottom-color: rgba(239,241,232,.12); }
body.tl-mode .nav .brand, body.tl-mode .nav a.link { color: rgba(239,241,232,.75); }
body.tl-mode .nav a.link.on { color: var(--paper); border-bottom-color: var(--accent); }
body.tl-mode .lang-btn { color: var(--paper); border-color: rgba(239,241,232,.6); }
body.tl-mode .step:not(.on) { opacity: .28; }

.step.chapter { min-height: 100vh; }
.chapter .ch { color: var(--ink); transition: color .7s; }
body.tl-mode .chapter .ch { color: var(--paper); }
.chapter .ch-kicker { font-weight: 800; font-stretch: 125%; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.chapter .ch-kicker::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .5; }
.chapter h2 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .95; margin: 14px 0 10px; letter-spacing: -.02em; }
.chapter .ch-sub { font-stretch: 112%; font-weight: 700; font-size: 1.15rem; opacity: .9; }
.chapter .ch-p { font-size: 1.05rem; opacity: .85; max-width: 32em; margin: 14px 0 22px; }
.chapter .legend2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chapter .legend2 div { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; }
.chapter .legend2 i { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }

/* ===== Left timeline rail ===== */
.step.ev { position: relative; padding-left: 58px; }
.step.ev::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 3px; background: rgba(239,241,232,.18); }
.step.ev.past::before { background: var(--paper); }
.step.ev.first::before { top: 50%; }
.step.ev.last::before { bottom: 50%; }
.rail-dot { position: absolute; left: 7px; top: 50%; transform: translateY(-50%) scale(.85); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; box-shadow: 0 0 0 4px var(--ink); transition: transform .35s, opacity .35s; opacity: .55; z-index: 1; }
.step.ev.past .rail-dot { opacity: 1; }
.step.ev.on .rail-dot { transform: translateY(-50%) scale(1.15); opacity: 1; box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--paper); }
.rail-year { position: absolute; left: -2px; top: calc(50% + 22px); width: 50px; text-align: center; font-weight: 800; font-stretch: 125%; font-size: .72rem; color: rgba(239,241,232,.7); }
.t-bg-fire { background: #E2531F; } .t-bg-enforcement { background: var(--enf); } .t-bg-monitoring { background: #2f8f6b; }
.t-bg-agreement { background: #c99410; } .t-bg-investigation, .t-bg-company { background: var(--harbor-2); }
.ev.t-enforcement .box { border-left-color: var(--enf); }
.badge.t-enforcement { background: #e4e5f4; color: var(--enf); }
.tl-ic.t-enforcement { background: var(--enf); }

/* ===== Enforcement moment on the map ===== */
.enf-mk { width: 20px; height: 20px; border-radius: 6px; background: var(--enf); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); opacity: .85; }
.enf-mk.now { width: 34px; height: 34px; border-radius: 9px; font-size: 20px; opacity: 1; animation: gavel .7s cubic-bezier(.3,1.5,.5,1); }
.enf-mk.now::after { content: ""; position: absolute; inset: -4px; border-radius: 12px; border: 3px solid var(--enf); animation: ripple 1.1s ease-out .35s 2 both; }
@keyframes gavel { 0% { transform: translateY(-46px) rotate(-35deg); opacity: 0; } 55% { transform: translateY(2px) rotate(12deg); opacity: 1; } 100% { transform: none; } }
@keyframes ripple { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(2.6); } }
.stamp { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--enf); background: rgba(255,255,255,.94); border: 3px solid var(--enf); border-radius: 8px; padding: 5px 12px; white-space: nowrap; transform: rotate(-7deg); animation: stamp 3.2s ease forwards; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-7deg) scale(2.2); } 12% { opacity: 1; transform: rotate(-7deg) scale(.96); } 18% { transform: rotate(-7deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(-7deg) scale(1); } }
@media (max-width: 860px) {
  .step.ev { padding-left: 46px; }
  .step.ev::before { left: 15px; }
  .rail-dot { left: 1px; width: 30px; height: 30px; }
  .rail-year { display: none; }
  .chapter h2 { font-size: 3rem; }
}
.enf-mk.out { opacity: 0 !important; transform: scale(.5); transition: opacity .45s, transform .45s; }
/* fact tiles: centered number + label, numbers sized to fit the tile */
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 10px 16px; min-height: 118px; }
.facts .bignum { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; }
.facts .lbl { margin-top: 8px; font-size: .85rem; line-height: 1.3; max-width: 11em; }
.facts div { container-type: inline-size; }
.facts .bignum { font-size: clamp(1.2rem, 26cqi, 2.4rem); font-stretch: 115%; white-space: nowrap; }
.ex-photo { margin: 14px 0 6px; }
.ex-photo img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ex-photo figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.ex-photo figcaption a { color: var(--ink-3); }
/* headings: regular-width Archivo 700 */
.hud-year, .chapter h2, .chapter .ch-kicker, .chapter .ch-sub, .stamp, .rail-year, .ev .when, .facts .bignum { font-stretch: 100%; }
.hud-year, .chapter h2, .ev .when, .facts .bignum { font-weight: 700; }
.stamp, .chapter .ch-kicker { font-weight: 800; }
/* intro card: smaller balanced headline, deeper blue for readable text */
.step.intro .box { background: #3F6F8C; padding: 30px 30px 26px; }
.step.intro h1 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); line-height: 1.1; text-wrap: balance; margin-bottom: .45em; }
.step.intro .kicker { font-size: .72rem; letter-spacing: .1em; }
.step.intro p { font-size: 1.02rem; line-height: 1.55; text-wrap: pretty; color: rgba(239,241,232,.95); }
.step h2 { text-wrap: balance; }
/* Impact accents: Archivo Expanded 800 only at a few chosen spots */
.chapter h2, .chapter .ch-kicker, .hud-year, .stamp, .facts .bignum { font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; }
.stamp, .chapter .ch-kicker { letter-spacing: .08em; }
.facts .bignum { font-size: clamp(1.1rem, 22cqi, 2.2rem); }

/* fact tiles, final: compact, number and label together, label uses the tile's width */
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.facts div { min-height: 0; padding: 16px 12px 14px; justify-content: flex-start; gap: 0; border-radius: 12px; }
.facts .bignum { font-size: clamp(1.1rem, 21cqi, 2rem); line-height: 1; margin: 0; }
.facts .lbl { max-width: none; margin-top: 7px; font-size: .8rem; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.facts .lbl { width: 100%; align-self: stretch; text-align: center; text-wrap: pretty; }
.facts .bignum { width: 100%; text-align: center; }
/* narrow story column: facts become a stacked list (number left, label right) */
.step .box { container-type: inline-size; container-name: box; }
@container box (max-width: 400px) {
  .facts { grid-template-columns: 1fr; gap: 6px; }
  .facts div { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 10px 14px; }
  .facts .bignum { width: auto; min-width: 4.6ch; text-align: left; font-size: 1.35rem; }
  .facts .lbl { width: auto; text-align: left; margin: 0; font-size: .86rem; }
}
/* fact tiles: numbers primary, labels quiet, no extra air */
.facts { gap: 8px; margin: 16px 0 2px; }
.facts div { padding: 12px 10px 11px; }
.facts .bignum { font-size: clamp(1.4rem, 24cqi, 2.3rem); color: var(--steel-deep); }
.facts .lbl { margin-top: 5px; font-size: .76rem; line-height: 1.25; color: var(--ink-3); }
@container box (max-width: 400px) {
  .facts { gap: 4px; }
  .facts div { padding: 6px 12px; gap: 12px; }
  .facts .bignum { font-size: 1.45rem; }
  .facts .lbl { font-size: .8rem; }
}

/* enforcement moment, calmer: a plain label that fades in and out, gavel settles instead of slamming */
.stamp { transform: none; text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 700; font-size: 13.5px; color: #fff; background: var(--enf); border: 0; border-radius: 8px; padding: 7px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); animation: stamp-soft 3.2s ease forwards; }
.stamp::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .8; margin-right: 8px; vertical-align: 1px; }
@keyframes stamp-soft { 0% { opacity: 0; transform: translateY(8px); } 14% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: none; } }
.enf-mk.now { animation: gavel-soft .5s ease-out; }
.enf-mk.now::after { animation: ripple 1.2s ease-out .2s 1 both; }
@keyframes gavel-soft { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@container box (max-width: 400px) {
  .facts .bignum { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
  .facts .lbl { flex: 1 1 auto; min-width: 0; text-wrap: pretty; }
}
.facts .lbl { text-wrap: pretty; }
@container box (max-width: 400px) {
  .facts .bignum { width: max-content; flex: 0 0 max-content; min-width: 2.2em; }
}
/* fact numbers: size by viewport, not container units (container units collapsed the number box in row mode) */
.facts div { container-type: normal; }
.facts .bignum { font-size: clamp(1.3rem, 2.1vw, 2.2rem); }
@container box (max-width: 400px) {
  .facts .bignum { font-size: 1.4rem; width: auto; flex: 0 0 auto; min-width: 2.4em; }
}

/* 1. opening map: the site pin pulses so the page feels alive before scrolling */
.pin-pulse { position: relative; }
.pin-pulse::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #E2531F; animation: ring 2.2s ease-out infinite; }
.pin-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #E2531F; animation: ring 2.2s ease-out 1.1s infinite; }
/* 5. inactive story cards stay readable */
.step { opacity: .5; }
.step.on { opacity: 1; }
body.tl-mode .step:not(.on) { opacity: .5; }
/* scroll cue: a visible pill button, not a hint */
.step.intro .scroll-cue { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--steel-deep); font-weight: 700; font-size: 1.05rem; padding: 13px 24px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; animation: bob 1.6s ease-in-out infinite; }
.step.intro .scroll-cue i { font-size: 1.25em; }
.step.intro .scroll-cue:hover { animation: none; transform: translateY(2px); }

/* "Now explore" section: two big calls to action (Air, Ground); Data & sources is a small aside. */
#know { padding: 72px 0 80px; }
.know-head { max-width: 760px; margin-bottom: 28px; }
.know-kicker { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.know-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 10px; }
.know-lede { font-size: 1.1rem; color: var(--ink-2); margin: 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 22px; align-items: start; padding: 28px 28px 24px; border-radius: 20px; text-decoration: none; color: var(--paper); overflow: hidden; min-height: 220px; box-shadow: 0 10px 30px rgba(29,36,51,.14); transition: transform .18s, box-shadow .18s; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.cta:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(29,36,51,.22); }
.cta-air { background: linear-gradient(135deg, var(--harbor) 0%, var(--harbor-2) 100%); }
.cta-ground { background: linear-gradient(135deg, #7a4a1e 0%, #b0702f 100%); }
.cta-icon { grid-row: 1 / span 2; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); transition: transform .3s; }
.cta-icon i { font-size: 52px; line-height: 1; }
.cta:hover .cta-icon { transform: rotate(-8deg) scale(1.06); }
.cta-body { display: flex; flex-direction: column; gap: 6px; }
.cta-kicker { display: inline-block; align-self: flex-start; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.cta-kicker.draft { background: var(--accent); }
.cta-h { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.cta-p { font-size: 1rem; line-height: 1.45; opacity: .9; }
.cta-go { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .95rem; justify-self: start; }
.cta-go i { font-size: 18px; transition: transform .2s; }
.cta:hover .cta-go i { transform: translateX(4px); }
.know-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.know-foot .coming { margin: 0; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.src-aside { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.src-aside > i:first-child { font-size: 22px; color: var(--ink-3); }
.src-aside span { display: flex; flex-direction: column; }
.src-aside b { color: var(--ink); font-weight: 600; }
.src-aside small { color: var(--ink-3); font-size: .78rem; }
.src-aside:hover { border-color: var(--harbor-2); }
@media (max-width: 760px) {
  #know { padding: 48px 0 56px; }
  .cta-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta { padding: 22px 20px 20px; gap: 6px 16px; min-height: 0; }
  .cta-icon { width: 68px; height: 68px; }
  .cta-icon i { font-size: 38px; }
  .cta-go { width: 100%; justify-content: center; box-sizing: border-box; margin-top: 10px; }
  .know-foot { flex-direction: column-reverse; align-items: stretch; }
  .src-aside { margin-left: 0; }
}

/* ===== Phone layout overhaul: short sticky map, compact overlays, cards that fit the screen ===== */
@media (max-width: 860px) {
  .stage { top: 52px; height: 36vh; min-height: 240px; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
  .steps { padding: 8px 12px 22vh; }
  .step, .step.ev, .step.intro { min-height: 0; padding-top: 10px; padding-bottom: 26px; justify-content: flex-start; }
  .step .box { padding: 18px 18px 16px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .step.intro .box { padding: 22px 20px 20px; }
  .step.intro h1 { font-size: 1.7rem; }
  .step h2 { font-size: 1.3rem; }
  .step p { font-size: .96rem; line-height: 1.5; }
  .step .kicker { font-size: .7rem; }
  .step.intro .scroll-cue { padding: 11px 18px; font-size: .95rem; margin-top: 16px; }
  .ex-photo img { max-height: 190px; object-fit: cover; }
  .ex-photo figcaption { font-size: .76rem; }
  .cite { font-size: .78rem; }
  .step.chapter { min-height: 0; padding: 36px 0 30px; }
  .chapter h2 { font-size: 2.5rem; }
  .chapter .ch-p { font-size: .96rem; }
  .chapter .legend2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chapter .legend2 div { font-size: .85rem; }
  /* HUD: small year badge */
  .hud { top: 8px; right: 8px; gap: 6px; }
  .hud-year { font-size: 1.5rem; padding: 3px 10px 4px; border-radius: 8px; }
  .hud-fires { font-size: .78rem; padding: 3px 10px; }
  /* Process diagram: one compact row of icons with tiny labels, no arrows */
  .process { left: 8px; right: 8px; bottom: 8px; padding: 8px 2px 6px; gap: 0; border-radius: 10px; align-items: flex-start; }
  .parrow { display: none; }
  .pouts { display: contents; }
  .pouts .pnode { flex-direction: column; gap: 3px; text-align: center; }
  .pnode { flex: 1 1 0; min-width: 0; gap: 3px; }
  .pnode i, .pouts .pnode i { font-size: 22px; }
  .pnode[data-p="1"] .ti-fridge { display: none; }
  .pnode span, .pouts .pnode span { display: block; font-size: .58rem; line-height: 1.15; }
  .pnode.on { transform: none; }
  /* Mini timeline bar */
  .tlbar { left: 8px; right: 8px; bottom: 8px; padding: 8px 12px 14px; border-radius: 10px; }
  .tl-track { margin-top: 22px; height: 3px; }
  .tl-ic { width: 20px; height: 20px; font-size: 12px; top: -28px; }
  .tl-labels { font-size: .62rem; height: 12px; margin-top: 4px; }
  .tl-note { font-size: .64rem; margin-top: 5px; line-height: 1.25; }
  /* Event rail */
  .step.ev { padding-left: 40px; }
  .step.ev::before { left: 12px; }
  .rail-dot { left: 0; width: 26px; height: 26px; font-size: 14px; }
  .ev .when { font-size: 1.2rem; }
  .ev .box { border-left-width: 4px; }
}
@media (max-width: 860px) {
  /* keep the map attribution readable under the overlays */
  .stage .leaflet-control-attribution { font-size: 9px; padding: 1px 4px; }
  .process, .tlbar { bottom: 20px; }
}
/* "Timeline" nav link / #timeline anchor: land below the sticky map, not under it */
.step.chapter { scroll-margin-top: 70px; }

/* ===== Phone: map pinned to the top third, cards scroll normally in the space below ===== */
@media (max-width: 860px) {
  :root { --m-nav: 52px; --m-stage: 34svh; }
  html, html.snap { scroll-snap-type: none; }
  .story { display: block; }
  .stage { position: sticky; top: var(--m-nav); height: var(--m-stage); min-height: 0; z-index: 5; box-shadow: 0 2px 8px rgba(29,36,51,.2); }
  .steps { position: relative; z-index: 1; margin-top: 0; padding: 12px 12px 0; }
  /* the timeline has no map: plain cards, anchored just under the nav */
  .steps-tl { padding-bottom: 12px; }
  .steps-tl .step { scroll-margin-top: calc(var(--m-nav) + 10px); }
  .steps-tl .step.chapter { padding-top: 12px; }
  .step, .step.ev, .step.intro, .step.chapter { height: auto; min-height: 0; display: block; padding: 0 0 14px; scroll-margin-top: calc(var(--m-nav) + var(--m-stage) + 10px); }
  .step, body.tl-mode .step:not(.on) { opacity: 1; }
  .step .box, .chapter .ch { max-height: none; overflow: visible; box-shadow: 0 1px 6px rgba(29,36,51,.1); }
  .step.intro .box { padding: 18px 18px 16px; }
  .step.intro h1 { font-size: 1.55rem; margin-bottom: .3em; }
  .step h2 { font-size: 1.2rem; margin-bottom: .25em; }
  .step p { font-size: .93rem; line-height: 1.45; margin: .3em 0; }
  .step .kicker { font-size: .66rem; margin-bottom: 4px; }
  .step.intro .scroll-cue { padding: 9px 16px; font-size: .9rem; margin-top: 12px; align-self: flex-start; }
  .cite { font-size: .7rem; line-height: 1.35; margin-top: 8px; }
  .facts { margin: 8px 0 0; gap: 4px; }
  .facts div { padding: 5px 10px; }
  .facts .bignum { font-size: 1.2rem; }
  .facts .lbl { font-size: .76rem; }
  .ex-photo { margin: 8px 0 0; }
  .ex-photo img { max-height: 140px; }
  .ex-photo figcaption { font-size: .7rem; margin-top: 5px; }
  /* No second timeline: the mini timeline bar and the left rail go; the year badge and the cards carry the dates */
  .tlbar { display: none !important; }
  .step.ev { padding-left: 0; }
  .step.ev::before, .rail-dot, .rail-year { display: none; }
  .ev .box { border-left-width: 5px; }
  .ev .when { font-size: 1.1rem; }
  .chapter h2 { font-size: 2.1rem; margin: 8px 0 4px; }
  .chapter .ch-sub { font-size: .95rem; }
  .chapter .ch-p { font-size: .9rem; margin: 8px 0 12px; }
  .chapter .legend2 div { font-size: .8rem; }
  .chapter .legend2 i { width: 24px; height: 24px; font-size: 13px; }
}
@media (max-width: 860px) {
  .nav .wrap { height: var(--m-nav); }
  /* overlays live inside the small map: year badge top right, process strip along the bottom */
  .hud { top: 8px; right: 8px; }
  .process { top: auto; bottom: 20px; }
}

/* Desktop: the process diagram is a headline element, not a footnote */
@media (min-width: 861px) {
  .process { left: 24px; right: 24px; bottom: 24px; padding: 22px 30px; gap: 18px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  .pnode { font-size: 1.05rem; font-weight: 600; gap: 8px; color: var(--ink-2); }
  .pnode i { font-size: 48px; }
  .pnode.on { transform: scale(1.06); }
  .pouts { gap: 10px; flex: 1.4; }
  .pouts .pnode { font-size: 1rem; gap: 10px; }
  .pouts .pnode i { font-size: 30px; }
  .parrow { font-size: 32px; }
}
@media (min-width: 861px) { .pouts .pnode span { white-space: nowrap; } }
/* Narrower desktops and laptops: same strip, one size down so the six labels still fit */
@media (min-width: 861px) and (max-width: 1400px) {
  .process { padding: 16px 20px; gap: 12px; left: 16px; right: 16px; bottom: 16px; }
  .pnode { font-size: .9rem; gap: 6px; }
  .pnode i { font-size: 38px; }
  .pouts { gap: 6px; }
  .pouts .pnode { font-size: .85rem; gap: 8px; }
  .pouts .pnode i { font-size: 24px; }
  .parrow { font-size: 24px; }
}

@media (max-width: 860px) {
  /* a touch more room inside the story cards */
  .step .box { padding: 18px 18px 16px; }
  .step.intro .box { padding: 22px 20px 20px; }
  .step p { margin: .5em 0; line-height: 1.5; }
  .step h2 { margin: 2px 0 .4em; }
  .step .kicker { margin-bottom: 6px; }
  .cite { margin-top: 12px; }
  .facts { margin: 12px 0 2px; }
  .ev .when { margin: 6px 0 4px; }
  .chapter .ch { padding: 20px 18px 18px; }
}
/* Timeline bar icons are buttons: click to jump to that event */
.tl-ic { cursor: pointer; pointer-events: auto; }
.tl-ic:hover, .tl-ic:focus-visible { transform: translateX(-50%) scale(1.25); z-index: 2; outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--harbor-2); }
.tl-ic.now:hover { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

/* Desktop: a small bobbing arrow under each card leads to the next one; cards settle in the centre after a scroll */
.next-cue { display: none; }
@media (min-width: 861px) {
  html { scroll-snap-type: y proximity; }
  .step { scroll-snap-align: center; }
  .step.intro { scroll-snap-align: start; scroll-margin-top: 0; }
  .step.chapter { scroll-snap-align: center; }
  .next-cue { display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 40px; height: 40px; margin-top: 16px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 2px 10px rgba(29,36,51,.14), 0 0 0 1px var(--line); animation: bob 1.6s ease-in-out infinite; transition: background .2s, color .2s, transform .2s; }
  .next-cue:hover { background: var(--accent); color: #fff; animation: none; transform: translateY(3px); }
  body.tl-mode .next-cue { background: rgba(239,241,232,.12); color: var(--paper); box-shadow: none; }
  body.tl-mode .next-cue:hover { background: var(--accent); }
  .step:not(.on) .next-cue { opacity: 0; pointer-events: none; }
  .step.ev .next-cue { margin-left: 0; }
}
/* Timeline rail: the current card's segment fades from bright to soft instead of switching; the year label sits on its own patch */
.step.ev.on::before { background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 45%, rgba(239,241,232,.18) 100%); }
.rail-year { background: var(--ink); padding: 2px 0; border-radius: 4px; z-index: 1; }
/* the fluff photo is portrait: keep it a modest height inside the card */
.step[data-k="how4"] .ex-photo img { max-height: 300px; object-fit: cover; }
@media (max-width: 860px) { .step[data-k="how4"] .ex-photo img { max-height: 150px; } }

/* Desktop: the JS magnet replaces CSS snapping (smooth, and tall cards are never cut off at the top) */
@media (min-width: 861px) { html { scroll-snap-type: none; } .step, .step.intro, .step.chapter { scroll-snap-align: none; } }

/* Map loading overlay: pulsing factory icon until the first tiles arrive */
.map-loading { position: absolute; inset: 0; z-index: 650; background: var(--paper); color: var(--ink-2); font-size: .9rem; font-weight: 600; transition: opacity .45s; }
.map-loading.done { opacity: 0; pointer-events: none; }
/* The factory sits exactly where the map pin will land (story.js sets --pin-x/--pin-y), so nothing moves when the map appears */
.map-loading .ml-pin { position: absolute; left: var(--pin-x, 50%); top: var(--pin-y, 50%); width: 34px; height: 34px; transform: translate(-50%, -50%); }
.map-loading .ml-text { position: absolute; left: var(--pin-x, 50%); top: calc(var(--pin-y, 50%) + 34px); transform: translateX(-50%); white-space: nowrap; }
.map-loading .ml-icon { width: 34px; height: 34px; border-radius: 50%; background: #343734; color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.35); animation: ml-pulse 1.3s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(29,36,51,.25); }
@keyframes ml-pulse { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(226,83,31,.7); } 70% { box-shadow: 0 0 0 3px #fff, 0 0 0 16px rgba(226,83,31,0); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(226,83,31,0); } }

/* Site outline during a zoom flight: Leaflet scales the drawing (so the stroke looks thick) and redraws at the end; fade it instead */
.leaflet-overlay-pane svg { transition: opacity .3s; }
.leaflet-zoom-anim .leaflet-overlay-pane svg { opacity: 0; transition: opacity .15s; }

/* Timeline rail: fade above the current card as well as below */
.step.ev.on::before { background: linear-gradient(to bottom, rgba(239,241,232,.18) 0%, var(--paper) 42%, var(--paper) 58%, rgba(239,241,232,.18) 100%); }
.step.ev.past:has(+ .step.ev.on)::before { background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 55%, rgba(239,241,232,.18) 100%); }
.step.ev.on.first::before { top: 50%; background: linear-gradient(to bottom, var(--paper) 0%, rgba(239,241,232,.18) 100%); }
#smap.zooming .leaflet-overlay-pane svg { opacity: 0; transition: opacity .15s; }

/* Process strip: current stage is a filled tile, earlier stages are done (normal), later ones wait (dimmed) */
.pnode { position: relative; padding: 10px 12px; border-radius: 14px; transition: background .35s, color .35s, transform .35s, opacity .35s, box-shadow .35s; }
.pouts .pnode { padding: 6px 10px; border-radius: 10px; }
.pnode.on, .pnode.on i { color: var(--paper); }
.pnode.on { background: var(--steel-deep); box-shadow: 0 8px 22px rgba(31,78,107,.28); }
.pnode.warn.on { background: var(--accent); box-shadow: 0 8px 22px rgba(210,86,43,.3); }
.pnode.warn.on i { color: #fff; }
.pnode.done { color: var(--ink-2); }
.pnode.done i { color: var(--ink-2); }
.pnode.next { opacity: .45; }
.parrow { transition: color .35s; }
.parrow.on { color: var(--steel-deep); }
.parrow.done { color: var(--ink-3); }
@media (max-width: 860px) {
  .pnode { padding: 6px 2px; border-radius: 10px; }
  .pouts .pnode { padding: 6px 2px; border-radius: 10px; }
  .pnode.on { box-shadow: 0 4px 12px rgba(31,78,107,.25); }
}
.pnode.on2 { background: rgba(31,78,107,.14); color: var(--steel-deep); }
.pnode.on2 i { color: var(--steel-deep); }

/* ===== Facts: a stat list instead of three tiles ===== */
.box .facts { display: block; margin: 14px 0 4px; border-top: 1px solid var(--line); }
.box .facts > .fact { display: grid; grid-template-columns: minmax(4.5ch, max-content) 1fr; align-items: baseline; column-gap: 16px; padding: 9px 2px; border-bottom: 1px solid var(--line); background: none; border-radius: 0; min-height: 0; container-type: normal; text-align: left; }
.box .facts .bignum { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--steel-deep); white-space: nowrap; width: auto; min-width: 0; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.box .facts .lbl { font-size: .95rem; line-height: 1.35; color: var(--ink-2); margin: 0; width: auto; max-width: none; text-align: left; }
.box .facts .bar { height: 5px; border-radius: 3px; background: var(--mist); margin-top: 6px; overflow: hidden; max-width: 220px; }
.box .facts .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
@media (max-width: 860px) {
  .box .facts { margin: 10px 0 2px; }
  .box .facts > .fact { padding: 7px 0; column-gap: 12px; }
  .box .facts .bignum { font-size: 1.3rem; }
  .box .facts .lbl { font-size: .86rem; }
}
/* the old tile rules hit every div inside .facts; the number and label cells are plain */
.box .facts .bignum, .box .facts .lbl { background: none; padding: 0; border: 0; border-radius: 0; min-height: 0; display: block; box-shadow: none; flex: none; }
.box .facts .lbl { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.box .facts .bar { width: 100%; max-width: 220px; align-self: flex-start; }
.box .facts .bar { display: block; padding: 0; height: 5px; min-height: 0; border-radius: 3px; background: var(--mist); }
.box .facts .bar i { display: block; height: 5px; }
