/* AI Governance, in the Bauhaus design system: Jost, square corners, 2px black rules, gold / blue / pink. */
:root {
  --bg: #f6f3ea; --card: #fffdf7; --soft: #e9e3d3; --ink: #111; --muted: #5c5848; --rule: #111; --hair: #d5cfbf;
  --gold: #fbaa2b; --blue: #16a1d7; --pink: #d716ac;
  --font: Jost, Futura, 'Century Gothic', system-ui, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #141412; --card: #1d1c19; --soft: #2b2924; --ink: #f2efe6; --muted: #b9b4a6; --rule: #f2efe6; --hair: #3b3932;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); min-height: 100vh; }
button, input { font-family: var(--font); border-radius: 0; font-size: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }

/* ---- the bar ---- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; min-height: 64px;
  padding: 0 24px; background: var(--gold); color: #111; border-bottom: 3px solid #111; }
.brand { display: block; text-decoration: none; }
.mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 4px; }
.mark i { width: 12px; height: 12px; background: #111; }
.mark i:nth-child(2) { background: var(--blue); } .mark i:nth-child(3) { background: var(--pink); }
.mark i:nth-child(4) { background: #fffdf7; }
.bar .title { font: 800 26px/1 var(--font); text-decoration: none; white-space: nowrap; }
.theme { display: flex; border: 2px solid #111; margin-left: auto; }
.theme button { min-height: 38px; padding: 0 12px; border: 0; background: transparent; color: #111; font-size: 14px;
  font-weight: 500; cursor: pointer; }
.theme button + button { border-left: 2px solid #111; }
.theme button[aria-pressed="true"] { background: #111; color: var(--gold); font-weight: 600; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.loading, .muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pg { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 1.5px solid var(--hair); }
a.pg:hover { color: var(--ink); border-color: var(--ink); }

/* ---- buttons, chips, tabs ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 2px solid var(--rule);
  background: var(--gold); color: #111; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffbe55; }
.btn.ghost { background: transparent; color: var(--ink); font-weight: 600; }
.btn.ghost:hover { background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 34px; padding: 0 12px; border: 2px solid var(--rule); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip .n { font-weight: 500; opacity: .7; margin-left: 4px; }
.tag { display: inline-block; padding: 1px 8px; border: 1.5px solid var(--hair); font-size: 13px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; border: 2px solid var(--rule); width: fit-content; max-width: 100%; }
.tabs button { min-height: 44px; padding: 0 20px; border: 0; background: var(--card); color: var(--ink); font-weight: 600;
  font-size: 16px; cursor: pointer; }
.tabs button + button { border-left: 2px solid var(--rule); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
input[type="search"] { min-height: 44px; padding: 0 12px; border: 2px solid var(--rule); background: var(--card);
  color: var(--ink); min-width: 0; width: 280px; max-width: 100%; }
input[type="search"]:focus, .chip:focus-visible, .btn:focus-visible, .tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---- index ---- */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); border: 3px solid var(--rule);
  background: var(--card); margin-bottom: 28px; }
.hero .words { padding: 28px 32px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 6px 0 14px; }
.hero p { margin: 0; max-width: 60ch; }
.hero .counts { display: grid; grid-template-columns: 1fr 1fr; border-left: 3px solid var(--rule); }
.count { padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.count b { font-size: 44px; font-weight: 800; line-height: 1; }
.count span { font-size: 14px; font-weight: 500; }
.count:nth-child(1) { background: var(--gold); color: #111; }
.count:nth-child(2) { background: var(--blue); color: #111; border-left: 3px solid var(--rule); }
.count:nth-child(3) { background: var(--pink); color: #fff; border-top: 3px solid var(--rule); }
.count:nth-child(4) { background: var(--ink); color: var(--bg); border-top: 3px solid var(--rule); border-left: 3px solid var(--rule); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0 0 18px; }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.timeline { position: relative; border: 2px solid var(--rule); background: var(--card); padding: 18px 24px 14px;
  margin-bottom: 24px; overflow-x: auto; }
.timeline svg { display: block; min-width: 760px; width: 100%; height: auto; }
.timeline .dot { cursor: pointer; }
.timeline .dot rect { stroke: var(--rule); stroke-width: 2; }
.timeline .dot:hover rect, .timeline .dot:focus rect { stroke-width: 4; }
.timeline .dot.off { opacity: .18; }
.timeline text { fill: var(--ink); font: 600 13px var(--font); }
.timeline .axis { stroke: var(--rule); stroke-width: 2; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--rule);
  background: var(--card); padding: 0 0 18px; text-decoration: none; color: var(--ink); transition: transform .08s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--rule); }
.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.card .top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  border-bottom: 2px solid var(--rule); font-weight: 700; font-size: 14px; color: #111; }
.card .top .no { font-size: 22px; font-weight: 800; }
.c0 { background: var(--gold); } .c1 { background: var(--blue); } .c2 { background: var(--pink); color: #fff !important; }
.card h2 { font-size: 22px; margin: 4px 16px 0; font-weight: 700; }
.card p { margin: 0 16px; font-size: 15px; color: var(--muted); }
.card .meta { margin: 0 16px; font-size: 14px; font-weight: 500; }
.card .tags { margin: auto 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 30px; border: 2px dashed var(--hair); color: var(--muted); text-align: center; }

/* all recommendations */
.recs { display: grid; gap: 12px; }
.rec { display: grid; grid-template-columns: 8px minmax(0, 1fr); border: 2px solid var(--rule); background: var(--card); }
.rec .stripe { background: var(--blue); }
.rec .body { padding: 12px 16px; }
.rec h3 { font-size: 18px; margin: 0 0 4px; font-weight: 600; }
.rec p { margin: 0; font-size: 15px; }
.rec .who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13px;
  color: var(--muted); }
.rec .who b { color: var(--ink); font-weight: 600; }
.rec .from { font-weight: 600; color: var(--ink); }

/* connections */
.links { border: 2px solid var(--rule); background: var(--card); padding: 16px; overflow-x: auto; }
.links svg { display: block; width: 100%; min-width: 820px; height: auto; }
.links text { fill: var(--ink); font: 500 13px var(--font); }
.links .arc { fill: none; stroke: var(--muted); stroke-width: 2; opacity: .55; }
.links .arc.on { stroke: var(--pink); opacity: 1; stroke-width: 3.5; }
.links .arc.dim { opacity: .12; }
.links .node rect { stroke: var(--rule); stroke-width: 2; cursor: pointer; }
.links .node.on rect { stroke-width: 4; }
.links-info { margin-top: 12px; min-height: 48px; }

/* ---- paper page ---- */
.crumbs { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.crumbs a { text-decoration: none; border-bottom: 2px solid transparent; }
.crumbs a:hover { border-color: var(--ink); }
.head { display: grid; grid-template-columns: 120px minmax(0, 1fr); border: 3px solid var(--rule); background: var(--card); }
.head .num { display: flex; align-items: flex-start; justify-content: center; padding-top: 22px;
  border-right: 3px solid var(--rule); font-size: 52px; font-weight: 800; color: #111; }
.head .words { padding: 22px 28px 26px; }
.head h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; margin: 8px 0 6px; }
.head .sub { font-size: 21px; font-weight: 500; margin: 0 0 12px; color: var(--muted); }
.head .by { margin: 0 0 4px; font-weight: 600; }
.head .pub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.head .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sections { position: sticky; top: 64px; z-index: 5; display: flex; gap: 0; overflow-x: auto; margin: 22px 0 8px;
  background: var(--bg); border: 2px solid var(--rule); }
.sections a { flex: 0 0 auto; padding: 10px 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.sections a + a { border-left: 2px solid var(--rule); }
.sections a.on { background: var(--ink); color: var(--bg); }
section.block { scroll-margin-top: 130px; padding-top: 26px; }
section.block > h2 { display: flex; align-items: baseline; gap: 12px; font-size: 30px; font-weight: 800; margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 3px solid var(--rule); }
section.block > h2 .count-tag { font-size: 15px; font-weight: 600; color: var(--muted); }
section.block > h2 .tools { margin-left: auto; display: flex; gap: 8px; }
.tldr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; border: 2px solid var(--rule); }
.tldr .lead { background: var(--gold); color: #111; padding: 20px 22px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.tldr .lead .eyebrow { color: #111; opacity: .75; display: block; margin-bottom: 8px; }
.tldr .rest { background: var(--card); padding: 20px 22px; border-left: 2px solid var(--rule); }
.tldr .rest p { margin: 0 0 12px; }
.tldr .rest p:last-child { margin: 0; }
.tldr .problem { border-left: 6px solid var(--pink); padding-left: 12px; }

.points { counter-reset: kp; display: grid; gap: 10px; }
.point { border: 2px solid var(--rule); background: var(--card); }
.point > button { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%;
  padding: 0 16px 0 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font-size: 19px; font-weight: 600; min-height: 56px; }
.point > button .k { align-self: stretch; display: grid; place-items: center; background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 20px; }
.point > button .chev { font-size: 22px; transition: transform .15s; }
.point[data-open="true"] > button .chev { transform: rotate(45deg); }
.point[data-open="true"] > button .k { background: var(--blue); color: #111; }
.point .more { padding: 0 18px 16px 82px; }
.point .more p { margin: 0 0 6px; }

.recgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.recgrid .rec .stripe { background: var(--pink); }

.datasets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.ds { border: 2px solid var(--rule); background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.ds header { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--rule); }
.ds header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.ds header .seg { margin-left: auto; display: flex; border: 2px solid var(--rule); flex: 0 0 auto; }
.ds header .seg button { padding: 2px 10px; border: 0; background: transparent; color: var(--ink); font-size: 13px;
  font-weight: 600; cursor: pointer; }
.ds header .seg button + button { border-left: 2px solid var(--rule); }
.ds header .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ds .viz { padding: 14px 16px; overflow-x: auto; }
.ds footer { margin-top: auto; padding: 10px 16px; border-top: 1.5px solid var(--hair); font-size: 13px; color: var(--muted);
  display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }

.bars { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.brow .lab { font-weight: 500; line-height: 1.25; }
.brow .track { display: flex; align-items: center; gap: 8px; }
.brow .fill { height: 24px; min-width: 3px; background: var(--blue); border: 2px solid var(--rule); transition: width .4s ease; }
.brow:nth-child(3n+2) .fill { background: var(--gold); }
.brow:nth-child(3n+3) .fill { background: var(--pink); }
.brow .val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brow:hover .lab { text-decoration: underline; }
.unit { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 2px solid var(--rule);
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; max-width: 100%; }
.legend button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.legend .sw { flex: 0 0 auto; width: 14px; height: 14px; border: 2px solid var(--rule); }
.gbars { display: grid; gap: 14px; }
.gcat .name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.gcat .line { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 13px; }
.gcat .line .fill { height: 16px; min-width: 2px; border: 2px solid var(--rule); transition: width .4s ease; }
.gcat .line .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 10px; }
.stack .row { display: grid; grid-template-columns: minmax(90px, 28%) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.stack .bar100 { display: flex; height: 30px; border: 2px solid var(--rule); }
.stack .bar100 span { display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; }
.stack .bar100 span + span { border-left: 2px solid var(--rule); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 2px solid var(--rule); }
.stat { padding: 14px; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); margin: 0 -2px -2px 0; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; margin-bottom: 6px; word-break: break-word; }
.stat span { font-size: 14px; }
.stat:nth-child(4n+1) b { color: var(--pink); } .stat:nth-child(4n+2) b { color: var(--blue); }
.stat:nth-child(4n+3) b { color: #c27a00; } html[data-theme="dark"] .stat:nth-child(4n+3) b { color: var(--gold); }

table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { border: 1.5px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
table.t th { background: var(--ink); color: var(--bg); font-weight: 600; }
table.t th button { all: unset; cursor: pointer; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tbody tr:hover td { background: var(--soft); }

.tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--rule); }
.tl li { position: relative; padding: 0 0 12px 12px; font-size: 15px; }
.tl li::before { content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; background: var(--gold);
  border: 2px solid var(--rule); }
.tl li:nth-child(3n+2)::before { background: var(--blue); } .tl li:nth-child(3n+3)::before { background: var(--pink); }
.tl b { display: block; font-weight: 700; }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
blockquote { margin: 0; padding: 20px 22px; border: 2px solid var(--rule); background: var(--card); font-size: 20px;
  font-weight: 500; line-height: 1.4; position: relative; }
blockquote::before { content: '“'; position: absolute; top: -18px; left: 14px; font-size: 64px; line-height: 1; font-weight: 800;
  color: var(--pink); background: var(--bg); padding: 0 6px; }
blockquote footer { margin-top: 10px; }

dl.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; border: 2px solid var(--rule);
  margin: 0; }
dl.gloss div { padding: 14px 16px; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
  margin: 0 -2px -2px 0; background: var(--card); }
dl.gloss dt { font-weight: 700; margin-bottom: 4px; }
dl.gloss dd { margin: 0; font-size: 15px; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.related h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; color: var(--muted); }
.mini { display: block; border: 2px solid var(--rule); background: var(--card); padding: 12px 14px; text-decoration: none;
  margin-bottom: 8px; }
.mini:hover { background: var(--soft); }
.mini b { display: block; font-weight: 700; }
.mini span { font-size: 13px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pager a { border: 2px solid var(--rule); padding: 14px 16px; text-decoration: none; background: var(--card); }
.pager a:hover { background: var(--gold); color: #111; }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pager b { font-weight: 700; }
.note { font-size: 14px; color: var(--muted); margin-top: 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero .counts { border-left: 0; border-top: 3px solid var(--rule); }
  .tldr { grid-template-columns: 1fr; }
  .tldr .rest { border-left: 0; border-top: 2px solid var(--rule); }
  .head { grid-template-columns: 1fr; }
  .head .num { border-right: 0; border-bottom: 3px solid var(--rule); padding: 8px 20px; justify-content: flex-start; font-size: 36px; }
  .point .more { padding-left: 18px; }
}
@media (max-width: 600px) {
  .bar { gap: 12px; padding: 0 16px; }
  .bar .title { font-size: 20px; }
  .theme button { padding: 0 8px; }
  main { padding: 20px 16px 60px; }
  .hero .words { padding: 20px; }
  .grid, .recgrid, .quotes, .related { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr; gap: 2px; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; }
}

/* ---- the case: a step-through story, the default view of a paper ---- */
.views { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.story { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 0; border: 3px solid var(--rule);
  background: var(--card); min-height: calc(100vh - 64px - 170px); }
.rail { border-right: 3px solid var(--rule); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.rail .eyebrow { margin-bottom: 2px; }
.rail .thesis { font-size: 15px; line-height: 1.4; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--rule); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail li button { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%;
  padding: 6px 6px 6px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font-size: 14px; line-height: 1.3; font-weight: 500; transition: opacity .25s; }
.rail li button .n { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--rule);
  font-weight: 800; font-size: 13px; background: var(--card); }
.rail li.future button { opacity: .28; }
.rail li.future button .h { filter: blur(3px); }
.rail li.done button .n { background: var(--ink); color: var(--bg); }
.rail li.now button { font-weight: 700; }
.rail li.now button .n { background: var(--pink); color: #fff; }
.rail li button:hover { background: var(--soft); }
.rail .keys { margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.6; }
kbd { font: 600 11px var(--font); border: 1.5px solid var(--rule); padding: 0 5px; margin: 0 1px; }

.stage { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; position: relative; overflow: hidden; }
.scene { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 0; }
.art { position: relative; border-right: 3px solid var(--rule); background: var(--soft); overflow: hidden; min-height: 320px; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 6s ease; }
.art img.enter { opacity: 0; transform: scale(1.04); }
.art .beat { position: absolute; left: 18px; right: 18px; bottom: 18px; background: var(--card); border: 3px solid var(--rule);
  padding: 14px 18px; box-shadow: 6px 6px 0 var(--rule); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.art .beat.enter { transform: translateY(24px); opacity: 0; }
.beat .big { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; line-height: 1; color: var(--pink); }
.beat .lbl { font-size: 15px; font-weight: 500; margin-top: 6px; }
.beat.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.beat.compare .vs { font-weight: 800; font-size: 18px; }
.beat.compare > div:last-child .big { color: var(--blue); }
.beat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.beat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-weight: 600; font-size: 16px;
  opacity: 0; transform: translateX(-10px); animation: in .4s forwards; }
.beat li i { width: 16px; height: 16px; border: 2px solid var(--rule); background: var(--gold); }
.beat li:nth-child(3n+2) i { background: var(--blue); } .beat li:nth-child(3n+3) i { background: var(--pink); }
.beat .cap { font-weight: 600; font-size: 16px; }
@keyframes in { to { opacity: 1; transform: none; } }

.say { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.say .kicker { display: inline-flex; align-self: flex-start; padding: 4px 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #111; border: 2px solid var(--rule); }
.say .kicker.problem, .say .kicker.consequence, .say .kicker.cause { background: var(--pink); color: #fff; }
.say .kicker.solution, .say .kicker.payoff { background: var(--blue); color: #111; }
.say h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; margin: 0; }
.say p { font-size: 19px; line-height: 1.5; margin: 0; }
.say .src { font-size: 13px; color: var(--muted); }
.say > * { transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.say.enter > * { transform: translateY(16px); opacity: 0; }
.say.enter > :nth-child(2) { transition-delay: .05s; } .say.enter > :nth-child(3) { transition-delay: .1s; }

.cover .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cover .say h2 { font-size: clamp(32px, 4vw, 54px); }
.cover .say .by { font-weight: 600; margin: 0; font-size: 16px; }
.cover .say .lead { font-size: 21px; font-weight: 500; }
.start { align-self: flex-start; }

.controls { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 3px solid var(--rule); }
.controls .btn { min-height: 40px; padding: 0 16px; }
.prog { flex: 1; display: flex; gap: 4px; }
.prog button { flex: 1; height: 12px; border: 2px solid var(--rule); background: var(--card); cursor: pointer; padding: 0; }
.prog button.done { background: var(--ink); }
.prog button.now { background: var(--pink); }
.prog button:hover { background: var(--gold); }
.verdict .say { gap: 16px; }
.verdict .actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1000px) {
  .story { grid-template-columns: 1fr; }
  .rail { display: none; }
}
@media (max-width: 760px) {
  .scene, .cover .scene { grid-template-columns: 1fr; }
  .art { border-right: 0; border-bottom: 3px solid var(--rule); min-height: 260px; aspect-ratio: 3 / 2; }
  .say { padding: 20px; }
  .say p { font-size: 17px; }
  .controls .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art img, .art .beat, .say > *, .beat li { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* cards with art */
.card .thumb { display: block; aspect-ratio: 3 / 2; border-bottom: 2px solid var(--rule); background: var(--soft) center / cover no-repeat; }
.card.kfocus { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero.withart { grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); }
.views .seg { display: flex; border: 3px solid var(--rule); background: var(--card); }
.views .seg button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.views .seg button + button { border-left: 3px solid var(--rule); }
.views .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.views .seg button:hover:not([aria-pressed="true"]) { background: var(--soft); }
.views .seg button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.controls .btn:disabled { opacity: .35; cursor: default; }
.hero .art { position: relative; border-left: 3px solid var(--rule); min-height: 260px; }
.lib-keys { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) { .hero .art { border-left: 0; border-top: 3px solid var(--rule); } .lib-keys { display: none; } }
/* the story fits one screen: the scene fills the stage, the rail scrolls */
.story { height: clamp(560px, calc(100vh - 220px), 860px); min-height: 0; }
.rail { overflow-y: auto; min-height: 0; }
.rail ol { gap: 2px; }
.stage { grid-template-rows: minmax(0, 1fr) auto; }
.scene-wrap { display: grid; min-height: 0; }
.scene { min-height: 0; height: 100%; }
.say { overflow-y: auto; }
@media (max-width: 760px) {
  .story { height: auto; }
  .scene { height: auto; }
  .say { overflow: visible; }
}
.say { justify-content: safe center; }
.cover .say h2 { font-size: clamp(26px, 2.6vw, 40px); }
.cover .say .lead { font-size: 19px; }
.verdict .say h2 { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.2; }
