/* Hand to Hand: A Hundred Years of Realist Painting, 1926–2026, the talk (deck v2). Matches the friendly edition: serif type, warm paper. */
@import url("fonts/fonts.css");

:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --ink: #221e1a;
  --ink-2: #4a433b;
  --muted: #7a7064;
  --rule: #ddd4c6;
  --accent: #7a2e22;
  --accent-soft: #a2594b;
  --gold: #c9a15a;
  --night: #1b1814;
  --night-2: #25201b;
  --light: #f4ede2;
  --light-2: #d9cfbf;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; font-kerning: normal; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- viewport and the 1600 × 900 stage ---------- */
#viewport { position: fixed; inset: 0 0 0 0; display: flex; align-items: center; justify-content: center; }
body.notes-open #viewport { right: 440px; }
#frame { position: relative; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
#stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.slide { position: absolute; inset: 0; overflow: hidden; background: var(--paper); opacity: 0; transition: opacity .7s var(--ease); }
.slide.in { opacity: 1; }
.slide.out { opacity: 0; transition-duration: .5s; }
.static .slide, .static .slide * { transition: none !important; animation: none !important; }

/* builds */
.b { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.b.on { opacity: 1; transform: none; }
.fadein { opacity: 0; transition: opacity .9s var(--ease); }
.fadein.on { opacity: 1; }

/* ---------- shared type ---------- */
.sec { position: absolute; top: 34px; left: 56px; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); z-index: 5; }
.dark .sec, .on-dark .sec { color: rgba(244, 237, 226, .62); }
.kicker { margin: 0 0 22px; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.dark .kicker, .on-dark .kicker { color: var(--gold); }
.heading { margin: 0 0 26px; font-family: var(--display); font-weight: 600; font-size: 62px; line-height: 1.04; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.dark .heading, .on-dark .heading { color: var(--light); }
.lines { margin: 0; padding: 0; list-style: none; }
.ln { margin: 0 0 20px; font-size: 29px; line-height: 1.38; color: var(--ink-2); text-wrap: pretty; }
.dark .ln, .on-dark .ln { color: var(--light-2); }
.ln.big { font-family: var(--display); font-weight: 600; font-size: 50px; line-height: 1.08; color: var(--accent); }
.dark .ln.big, .on-dark .ln.big { color: var(--gold); }
.ln.em { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.16; color: var(--ink); }
.dark .ln.em, .on-dark .ln.em { color: var(--light); }
.ln.small { font-size: 22px; color: var(--muted); }
.dark .ln.small, .on-dark .ln.small { color: rgba(244, 237, 226, .7); }
.quote { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 52px; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.dark .quote, .on-dark .quote { color: var(--light); }
.by { margin: 0 0 34px; font-size: 19px; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.by::before { content: ""; width: 40px; height: 1px; background: var(--accent); flex: none; }
.dark .by, .on-dark .by { color: rgba(244, 237, 226, .72); }
.dark .by::before, .on-dark .by::before { background: var(--gold); }
.credit { position: absolute; right: 26px; bottom: 16px; max-width: 760px; text-align: right; font-size: 13px; line-height: 1.35; color: var(--muted); z-index: 6; }
.on-dark .credit, .dark .credit, .credit.light { color: rgba(244, 237, 226, .66); }
.foot { position: absolute; left: 56px; bottom: 18px; max-width: 760px; font-size: 13px; color: var(--muted); z-index: 6; }
.on-dark .foot, .dark .foot, .foot.light { color: rgba(244, 237, 226, .66); }
.num { position: absolute; top: 32px; right: 40px; font-size: 14px; letter-spacing: .12em; color: var(--muted); z-index: 5; font-variant-numeric: lining-nums; }
.on-dark .num, .dark .num { color: rgba(244, 237, 226, .5); }

/* images */
.pic { position: absolute; inset: 0; overflow: hidden; }
.pic img { width: 100%; height: 100%; display: block; }
.pic.cover img { object-fit: cover; }
.pic.contain img { object-fit: contain; }
.pic .blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.45) saturate(.9); transform: scale(1.1); }
.pic.contain img { position: relative; }
.kb img { animation: kb 16s linear both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.mat { position: absolute; background: var(--night); }
.mat .pic { inset: 36px; }
.mat .pic.cover { inset: 0; }

/* ---------- layouts ---------- */
.dark { background: var(--night); }
/* title */
.l-title .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 14, 10, .84) 0%, rgba(18, 14, 10, .62) 45%, rgba(18, 14, 10, 0) 82%); }
.l-title .txt { position: absolute; left: 110px; top: 50%; transform: translateY(-50%); width: 1300px; }
.l-title .t1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 168px; line-height: .9; color: var(--light); letter-spacing: -.01em; white-space: nowrap; }
.l-title .t2 { margin: 18px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 62px; line-height: 1.1; color: var(--light-2); white-space: nowrap; }
.l-title .years { margin: 30px 0 0; font-size: 22px; letter-spacing: .5em; color: var(--gold); font-variant-numeric: lining-nums; }
.l-title .rule { width: 70px; height: 1px; background: var(--gold); margin: 36px 0 26px; }
.l-title .ln.small { color: rgba(244, 237, 226, .78); font-size: 22px; font-style: italic; }

/* bleed */
.l-bleed .shade { position: absolute; inset: 0; }
.l-bleed.side-left .shade { background: linear-gradient(90deg, rgba(16, 12, 9, .86) 0%, rgba(16, 12, 9, .66) 34%, rgba(16, 12, 9, 0) 64%); }
.l-bleed.side-right .shade { background: linear-gradient(270deg, rgba(16, 12, 9, .86) 0%, rgba(16, 12, 9, .66) 34%, rgba(16, 12, 9, 0) 64%); }
.l-bleed .txt { position: absolute; bottom: 90px; width: 720px; }
.l-bleed.side-left .txt { left: 80px; }
.l-bleed.side-right .txt { right: 80px; }
.l-bleed .heading { font-size: 66px; }
.l-bleed.quote-only .txt { bottom: auto; top: 50%; transform: translateY(-50%); width: 640px; }
.l-bleed.quote-only .quote { font-size: 56px; }
.l-bleed.quote-only.side-right .shade { background: linear-gradient(270deg, rgba(16, 12, 9, .94) 0%, rgba(16, 12, 9, .8) 40%, rgba(16, 12, 9, 0) 62%); }
.l-bleed.quote-only .pic.contain { right: 700px; }

/* split */
.l-split .mat { top: 0; bottom: 0; width: 820px; }
.l-split.side-left .mat { left: 0; }
.l-split.side-right .mat { right: 0; }
.l-split .txt { position: absolute; top: 50%; transform: translateY(-50%); width: 680px; }
.l-split.side-left .txt { left: 880px; }
.l-split.side-right .txt { left: 80px; }
.l-split .heading { font-size: 56px; }
.l-split .quote { font-size: 42px; }
.l-split.side-left .credit { right: auto; left: 26px; text-align: left; max-width: 770px; color: rgba(244, 237, 226, .66); }
.l-split.side-right .credit { color: rgba(244, 237, 226, .66); max-width: 770px; }
.l-split.svg .mat { background: var(--paper-2); }
.l-split.svg .credit { color: var(--muted) !important; }

/* number */
.l-number .frame { position: absolute; left: 150px; top: 120px; width: 560px; height: 620px; display: flex; align-items: center; justify-content: center; }
.l-number .frame img { height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 18px 50px rgba(34, 30, 26, .35); border: 10px solid #fff; }
.l-number .txt { position: absolute; left: 820px; top: 50%; transform: translateY(-50%); width: 680px; }
.l-number .heading { font-size: 58px; }
.l-number .ln.big { font-size: 96px; margin-top: 30px; }

/* statement */
.l-statement .txt { position: absolute; left: 160px; right: 160px; top: 50%; transform: translateY(-50%); text-align: center; }
.l-statement .heading { font-size: 84px; margin-bottom: 40px; }
.l-statement .ln.big { font-size: 70px; }
.l-statement .ln.em { font-size: 48px; }
.l-statement .ln.small { max-width: 1000px; margin: 30px auto 0; font-size: 26px; line-height: 1.45; }

/* quote */
.l-quote .txt { position: absolute; top: 50%; transform: translateY(-50%); }
.l-quote.has-pic .mat { left: 0; top: 0; bottom: 0; width: 560px; }
.l-quote.has-pic .txt { left: 640px; width: 860px; }
.l-quote.no-pic .txt { left: 200px; right: 200px; }
.l-quote .quote { font-size: 56px; }
.l-quote.long .quote { font-size: 46px; }
.l-quote.has-pic .credit { right: auto; left: 26px; text-align: left; max-width: 520px; color: rgba(244, 237, 226, .66); }

/* gallery and pair */
.l-gallery .top, .l-pair .top { position: absolute; left: 80px; right: 80px; top: 78px; }
.l-gallery .heading, .l-pair .heading { font-size: 52px; margin-bottom: 0; }
.l-gallery .quote { font-size: 36px; margin-bottom: 8px; }
.l-gallery .by { margin-bottom: 0; }
.row { position: absolute; left: 80px; right: 80px; top: 250px; height: 500px; display: flex; gap: 28px; align-items: stretch; }
.l-pair .row { top: 240px; height: 560px; gap: 40px; }
.fig { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.fig .box { flex: 1; position: relative; min-height: 0; }
.fig .box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.fig figcaption { margin-top: 12px; font-size: 18px; line-height: 1.3; color: var(--ink-2); font-style: italic; text-align: center; }
.fig figcaption small { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.l-gallery .bottom, .l-pair .bottom { position: absolute; left: 80px; right: 80px; bottom: 36px; text-align: center; }
.l-gallery .bottom .ln, .l-pair .bottom .ln { margin: 0; }
.l-gallery.has-quote .row { top: 300px; height: 450px; }

/* chart */
.l-chart .txt { position: absolute; left: 70px; top: 110px; width: 500px; }
.l-chart .heading { font-size: 50px; }
.l-chart .ln { font-size: 26px; margin-bottom: 16px; }
.l-chart .ln.big { font-size: 44px; }
.l-chart .ln.em { font-size: 34px; }
.l-chart .viz { position: absolute; left: 600px; top: 90px; width: 960px; height: 700px; }
.viz svg { width: 100%; height: 100%; overflow: visible; }
.l-chart .unit { position: absolute; left: 600px; top: 58px; width: 960px; font-size: 16px; color: var(--muted); font-style: italic; }
.l-chart .src { position: absolute; left: 600px; bottom: 44px; width: 960px; font-size: 13px; color: var(--muted); }

/* list */
.l-list .txt { position: absolute; left: 150px; right: 150px; top: 50%; transform: translateY(-50%); }
.l-list ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.l-list li { counter-increment: n; position: relative; padding-left: 86px; margin: 0 0 24px; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1.16; color: var(--ink); }
.l-list li::before { content: counter(n); position: absolute; left: 0; top: -6px; font-family: var(--display); font-weight: 600; font-size: 58px; color: var(--accent); line-height: 1; }
.l-list.many li { font-size: 34px; margin-bottom: 18px; padding-left: 72px; }
.l-list.many li::before { font-size: 46px; }

/* grid (the dozen) */
.l-grid .top { position: absolute; left: 90px; right: 90px; top: 80px; }
.l-grid .cards { position: absolute; left: 90px; right: 90px; top: 250px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.l-grid .card { background: var(--paper-2); border-top: 2px solid var(--accent); padding: 20px 22px; min-height: 118px; font-family: var(--display); font-weight: 600; font-size: 29px; line-height: 1.1; color: var(--ink); display: flex; align-items: center; }
.l-grid .bottom { position: absolute; left: 90px; right: 90px; bottom: 60px; text-align: center; }

/* gap */
.l-gap .top { position: absolute; left: 90px; right: 90px; top: 80px; }
.l-gap .cols { position: absolute; left: 90px; right: 90px; top: 250px; height: 520px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px; }
.l-gap .col { position: relative; padding: 40px 36px; background: var(--paper-2); display: flex; flex-direction: column; justify-content: flex-start; }
.l-gap .col h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: 50px; color: var(--ink); }
.l-gap .col p { margin: 0; font-size: 27px; line-height: 1.4; color: var(--ink-2); }
.l-gap .col.mid { background: var(--accent); }
.l-gap .col.mid h3 { color: #fff; }
.l-gap .col.mid p { color: rgba(255, 255, 255, .9); font-family: var(--display); font-size: 40px; line-height: 1.15; font-weight: 500; }
.l-gap .col.mid::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255, 255, 255, .45); pointer-events: none; }

/* route */
.l-route { background: var(--paper); }
.l-route .base, .l-route .over { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-route .txt { position: absolute; left: 70px; top: 86px; width: 620px; background: rgba(251, 248, 242, .9); padding: 26px 30px 12px; border-left: 3px solid var(--accent); }
.l-route .heading { font-size: 44px; }
.route-arc { fill: none; stroke: var(--accent); stroke-linecap: round; }
.route-arc.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.route-arc.draw.on { stroke-dashoffset: 0; }
.city circle { fill: var(--accent); stroke: #fff; }
.city text, .hop-label text { font-family: var(--text); fill: var(--ink); paint-order: stroke; stroke: rgba(251, 248, 242, .95); stroke-linejoin: round; }
.city text.name { font-family: var(--display); font-weight: 600; }
.hop-label text.who { fill: var(--accent); font-style: italic; }

/* close */
.l-close .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(18, 14, 10, .55) 0%, rgba(18, 14, 10, .88) 70%); }
.l-close .txt { position: absolute; left: 220px; right: 220px; top: 50%; transform: translateY(-50%); text-align: center; }
.l-close .ln { font-family: var(--display); font-size: 40px; line-height: 1.2; color: var(--light-2); font-style: italic; }
.l-close .ln.big { font-size: 150px; font-style: normal; color: var(--light); margin: 40px 0 30px; letter-spacing: .01em; }
.l-close .ln.small { font-family: var(--text); font-style: normal; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- SVG charts ---------- */
.viz text { font-family: var(--text); fill: var(--ink-2); }
.viz .axis text { font-size: 17px; fill: var(--muted); }
.viz .grid line { stroke: var(--rule); stroke-width: 1; }
.viz .lab { font-size: 21px; fill: var(--ink); }
.viz .lab.strong { font-weight: 600; fill: var(--accent); }
.st { opacity: 0; transition: opacity .7s var(--ease); }
.st.on { opacity: 1; }
.viz .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.viz .draw.on { stroke-dashoffset: 0; }
.viz .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease), fill .5s; }
.viz .grow.on { transform: none; }
.viz .growx { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.viz .growx.on { transform: none; }
.viz .sq { transform-box: fill-box; transform-origin: 0 100%; transform: scale(0); transition: transform 1.4s var(--ease); }
.viz .sq.on { transform: none; }
.static .viz .draw { stroke-dashoffset: 0; }

/* ---------- controls ---------- */
#bar { position: fixed; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: rgba(27, 24, 20, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--light); font-size: 14px; z-index: 50; transition: opacity .4s, transform .4s; }
body.idle #bar { opacity: 0; transform: translateY(100%); }
body.notes-open #bar { right: 440px; }
#bar button, #bar a { background: none; border: 1px solid rgba(244, 237, 226, .22); border-radius: 999px; padding: 6px 13px; cursor: pointer; color: var(--light); text-decoration: none; white-space: nowrap; font-size: 13px; letter-spacing: .04em; }
#bar button:hover, #bar a:hover { background: rgba(244, 237, 226, .12); }
#bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
#bar .brand { font-family: var(--display); font-size: 19px; font-weight: 600; border: 0 !important; padding: 0 8px 0 4px !important; }
#bar .spacer { flex: 1; }
#bar .where { display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 2; line-height: 1.15; }
#bar .where b { font-weight: 400; font-size: 13px; font-variant-numeric: lining-nums tabular-nums; }
#bar .where span { font-size: 12px; color: rgba(244, 237, 226, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#progress { position: fixed; left: 0; bottom: 0; height: 3px; background: var(--accent); z-index: 60; transition: width .4s var(--ease); }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; bottom: 42px; background: var(--night-2); border: 1px solid rgba(244, 237, 226, .18); border-radius: 12px; padding: 8px; display: none; flex-direction: column; gap: 4px; min-width: 250px; }
.menu.open .menu-pop { display: flex; }
.menu-pop a { border: 0 !important; border-radius: 8px !important; padding: 10px 12px !important; }

/* notes drawer */
#notes { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; background: var(--paper); border-left: 1px solid var(--rule); transform: translateX(100%); transition: transform .35s var(--ease); z-index: 55; overflow-y: auto; padding: 28px 30px 60px; }
body.notes-open #notes { transform: none; }
#notes h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
#notes .meta { margin: 0 0 18px; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
#notes .say { font-size: 18px; line-height: 1.6; color: var(--ink); }
#notes .srcs { margin-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
#notes .srcs a { color: var(--accent); }
#notes .caps { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; border-top: 1px solid var(--rule); padding-top: 12px; }
#notes .read { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 15px; }
#notes .close-notes { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
#notes .keys { margin-top: 26px; font-size: 13px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--rule); padding-top: 12px; }
kbd { font-family: var(--text); font-size: 12px; border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; background: var(--paper-2); }

/* overview */
#overview { position: fixed; inset: 0; background: rgba(20, 17, 14, .97); z-index: 70; overflow-y: auto; padding: 40px 48px 80px; display: none; color: var(--light); }
body.ov-open #overview { display: block; }
#overview h2 { font-family: var(--display); font-weight: 600; font-size: 40px; margin: 0 0 8px; }
#overview h3 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 34px 0 14px; font-weight: 400; }
#overview .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
#overview button { display: block; text-align: left; background: var(--night-2); border: 1px solid rgba(244, 237, 226, .1); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; }
#overview button:hover, #overview button.cur { border-color: var(--gold); }
#overview .th { aspect-ratio: 16 / 9; background: #2e2821 center / cover no-repeat; display: flex; align-items: flex-end; }
#overview .th.txt { background: var(--accent); align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; padding: 12px; text-align: center; color: #fff; }
#overview .cap { padding: 8px 12px 10px; font-size: 13.5px; line-height: 1.3; color: var(--light-2); }
#overview .cap b { color: var(--gold); font-weight: 400; margin-right: 6px; font-variant-numeric: lining-nums; }
#overview .close-ov { position: fixed; top: 18px; right: 24px; border: 1px solid rgba(244, 237, 226, .3); background: none; color: var(--light); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
#overview .intro { color: var(--light-2); max-width: 60rem; line-height: 1.55; }
#overview .intro a { color: var(--gold); }

/* blackout */
#black { position: fixed; inset: 0; background: #000; z-index: 80; display: none; }
body.black #black { display: block; }

/* help toast */
#hint { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: rgba(27, 24, 20, .88); color: var(--light); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 65; transition: opacity .6s; pointer-events: none; }
#hint.gone { opacity: 0; }

/* ---------- presenter view ---------- */
body.presenter { background: #151210; overflow: hidden; }
.pv { position: fixed; inset: 0; display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: auto 1fr auto; gap: 16px; padding: 16px; color: var(--light); }
.pv header { grid-column: 1 / 3; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.pv header .t { font-family: var(--display); font-size: 22px; font-weight: 600; }
.pv header .clock, .pv header .timer { font-variant-numeric: tabular-nums lining-nums; font-size: 26px; color: var(--gold); }
.pv header button { background: none; border: 1px solid rgba(244, 237, 226, .25); color: var(--light); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.pv .cur, .pv .nxt { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.pv .cur { grid-row: 2 / 4; }
.pv .side { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.pv .nxt { aspect-ratio: 16 / 9; }
.pv .label { position: absolute; left: 10px; top: 8px; z-index: 5; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 4px; }
.pv .pnotes { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 18px 22px; overflow-y: auto; font-size: 21px; line-height: 1.55; }
.pv .pnotes h3 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.pv .pnotes .steps { font-size: 14px; color: var(--muted); margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase; }
.pv .pnotes .srcs { font-size: 14px; color: var(--muted); margin-top: 14px; }
.pv .pnotes .nextline { font-size: 15px; color: var(--accent); margin-top: 12px; }
.mini { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.pv footer { display: flex; gap: 10px; }
.pv footer button { flex: 1; padding: 12px; font-size: 16px; background: var(--night-2); color: var(--light); border: 1px solid rgba(244, 237, 226, .2); border-radius: 8px; cursor: pointer; }

/* ---------- phone and narrow screens: slides reflow ---------- */
body.fluid { overflow: auto; background: var(--paper); }
body.fluid #viewport { position: static; display: block; min-height: 100vh; padding-bottom: 70px; }
body.fluid #frame { box-shadow: none; overflow: visible; width: auto !important; height: auto !important; }
body.fluid #stage { position: relative; width: auto; height: auto; transform: none !important; }
body.fluid .slide { position: relative; inset: auto; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: flex; flex-direction: column; overflow: visible; }
body.fluid .slide.out { display: none; }
body.fluid .sec { position: static; order: -2; padding: 16px 20px 0; font-size: 11px; }
body.fluid .num { display: none; }
body.fluid .pic, body.fluid .mat, body.fluid .l-number .frame { position: relative; inset: auto !important; width: auto !important; height: auto; order: -1; }
body.fluid .mat { padding: 14px; margin-top: 10px; }
body.fluid .mat .pic { inset: auto; }
body.fluid .pic img { height: auto; max-height: 56vh; object-fit: contain; }
body.fluid .pic.cover img { max-height: 48vh; object-fit: cover; }
body.fluid .pic .blur { display: none; }
body.fluid .shade { display: none; }
body.fluid .txt, body.fluid .top, body.fluid .bottom, body.fluid .l-chart .txt { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; width: auto !important; padding: 20px 20px 8px; background: none !important; border: 0 !important; text-align: left; }
body.fluid .l-bleed .txt, body.fluid .l-title .txt, body.fluid .l-close .txt { background: var(--night) !important; }
body.fluid .l-bleed, body.fluid .l-title, body.fluid .l-close, body.fluid .dark { background: var(--night); }
body.fluid .l-bleed .pic, body.fluid .l-title .pic, body.fluid .l-close .pic { background: var(--night); }
body.fluid .l-title .pic img { max-height: 44vh; }
body.fluid .heading { font-size: 30px; margin-bottom: 14px; }
body.fluid .quote { font-size: 27px !important; }
body.fluid .kicker { font-size: 12px; margin-bottom: 10px; }
body.fluid .ln { font-size: 18px; margin-bottom: 12px; }
body.fluid .ln.big { font-size: 27px !important; }
body.fluid .ln.em { font-size: 22px !important; }
body.fluid .ln.small { font-size: 15px !important; }
body.fluid .by { font-size: 14px; margin-bottom: 16px; }
body.fluid .l-title .t1 { font-size: clamp(40px, 13vw, 72px); white-space: nowrap; }
body.fluid .l-title .t2 { font-size: clamp(20px, 6.2vw, 30px); white-space: normal; text-wrap: balance; }
body.fluid .l-title .years { font-size: 15px; margin-top: 14px; }
body.fluid .l-title .rule { margin: 18px 0 14px; }
body.fluid .l-statement .txt, body.fluid .l-close .txt { text-align: center; padding-top: 60px; }
body.fluid .l-statement .heading { font-size: 36px; }
body.fluid .l-close .ln.big { font-size: 64px !important; margin: 24px 0; }
body.fluid .l-close .ln { font-size: 22px; }
body.fluid .row { position: relative; left: auto; right: auto; top: auto; height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
body.fluid .fig { flex: 1 1 42%; }
body.fluid .l-pair .fig { flex: 1 1 100%; }
body.fluid .fig .box { flex: none; }
body.fluid .fig .box img { position: relative; height: auto; max-height: 34vh; }
body.fluid .fig figcaption { font-size: 13px; }
body.fluid .l-chart .viz, body.fluid .l-chart .unit, body.fluid .l-chart .src { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: auto; padding: 0 12px; }
body.fluid .l-chart .viz svg { height: auto; }
body.fluid .l-chart .unit { padding: 4px 20px; font-size: 13px; }
body.fluid .l-chart .src { padding: 6px 20px 10px; font-size: 11.5px; }
body.fluid .l-list li { font-size: 21px; padding-left: 44px; margin-bottom: 14px; }
body.fluid .l-list li::before { font-size: 30px; top: -3px; }
body.fluid .l-grid .cards { position: relative; left: auto; right: auto; top: auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 20px; }
body.fluid .l-grid .card { font-size: 17px; min-height: 64px; padding: 10px 12px; }
body.fluid .l-gap .cols { position: relative; left: auto; right: auto; top: auto; height: auto; grid-template-columns: 1fr; gap: 10px; padding: 10px 20px; }
body.fluid .l-gap .col { padding: 18px; }
body.fluid .l-gap .col h3 { font-size: 28px; margin-bottom: 8px; }
body.fluid .l-gap .col p { font-size: 17px; }
body.fluid .l-gap .col.mid p { font-size: 22px; }
body.fluid .l-route .base, body.fluid .l-route .over { position: absolute; }
body.fluid .l-route .mapbox { position: relative; order: 2; aspect-ratio: 16 / 9; margin: 0 0 8px; }
body.fluid .credit, body.fluid .foot { position: relative; right: auto; left: auto; bottom: auto; max-width: none; text-align: left; padding: 4px 20px; font-size: 11.5px; color: var(--muted) !important; order: 5; }
body.fluid .l-bleed .credit, body.fluid .l-title .credit, body.fluid .l-close .credit, body.fluid .dark .credit, body.fluid .l-bleed .foot, body.fluid .dark .foot { color: rgba(244, 237, 226, .6) !important; }
body.fluid #bar { height: 56px; padding: 0 8px; gap: 5px; }
body.fluid #bar .brand, body.fluid #bar .wide { display: none; }
body.fluid #bar button, body.fluid #bar a { padding: 7px 10px; }
body.fluid .inline-notes { order: 6; margin: 10px 20px 24px; border-top: 1px solid var(--rule); padding-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
body.fluid .dark .inline-notes, body.fluid .l-bleed .inline-notes, body.fluid .l-title .inline-notes, body.fluid .l-close .inline-notes { color: var(--light-2); border-color: rgba(244, 237, 226, .2); }
body.fluid .inline-notes summary { cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
body.fluid .dark .inline-notes summary, body.fluid .l-bleed .inline-notes summary, body.fluid .l-title .inline-notes summary, body.fluid .l-close .inline-notes summary { color: var(--gold); }
.inline-notes { display: none; }
body.fluid .inline-notes { display: block; }
body.fluid .kb img { animation: none; }

/* ---------- print (from the browser: slides plus notes) ---------- */
@media print {
  body { overflow: visible; background: #fff; }
}
body.embed #bar, body.embed #progress, body.embed #notes, body.embed #hint { display: none; }
body.embed #frame { box-shadow: none; }
.pic.lowres { display: flex; align-items: center; justify-content: center; }
.pic.lowres img { max-width: 100%; max-height: 100%; object-fit: contain; }
.l-gallery.grid2 .row { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px 36px; top: 200px; height: 600px; }
.l-gallery.grid2 .fig figcaption { margin-top: 6px; font-size: 16px; }
.l-gallery.grid2 .fig figcaption small { display: none; }
.l-gallery.grid2 .fig .box img { object-position: center; }
.l-gallery.grid2 .bottom { bottom: 26px; }
.l-gallery.grid2 .top { top: 64px; }
.l-list li { font-size: 46px; margin-bottom: 30px; }
body.fluid .l-gallery.grid2 .row { display: flex; }
body.fluid .pic.lowres img { width: auto !important; height: auto !important; max-height: 50vh; }
body.fluid.idle #bar { opacity: 1; transform: none; }
#overview kbd { color: var(--ink); }
.route-arc.draw:not(.on) { stroke-linecap: butt; }
.l-gallery .bottom .ln.big, .l-pair .bottom .ln.big { font-size: 38px; }
.l-gallery .bottom, .l-pair .bottom { bottom: 50px; }
.l-bleed.quote-only .pic.contain { right: 760px; }
.l-bleed.quote-only .txt { width: 600px; }
