/* The blog's scroll page v1.1: the talk's stylesheet (talk-architecture/site/talk.css, v2.8), written by
   tools/make_blog_player.py; the blog's additions are at the end (the narration toggle, gap chips, the end card; v1.1: the
   product label, the strip's fade). The notes rules are kept but unused: the blog page has no presenter notes. The stage's
   windows, film and dim are stage-moves.js's own (it adds its styles).
   Layout: a slim bar, then one fixed stage that the page's scroll drives (3D, product clips, stills or a statement),
   a caption strip along its foot, figure chips at its top left, and presenter notes beside it (below it on phones).
   One dark set throughout: the Hall 2 world is lit for night, and the product screens sit in it like monitors. */
:root {
  color-scheme: dark;
  --bg: #070a0b; --panel: #0e1415; --panel-2: #142022; --ink: #eef2f1; --muted: #9fb0ac; --line: #2c393b;
  --aqua: #5ee0b5; --copper: #c98a4a; --signal: #ff6b5c; --good: #3fcf97; --amber: #e0b04f; --violet: #a7a3ff;
  --tile: #0d0f0e; --tile-ink: #f1efe8; --scrim: rgba(7, 10, 11, .78); --scrim-0: rgba(7, 10, 11, 0); --chip: rgba(8, 12, 13, .84);
  --sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --mono: "Azeret Mono", "Cascadia Mono", Consolas, monospace;
  --bar: 52px; --notes-w: 380px;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

/* bar */
.bar { position: fixed; z-index: 30; inset: 0 0 auto 0; height: calc(var(--bar) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--gl); padding-right: var(--gr); display: flex; align-items: center; gap: 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.mark { width: 26px; height: 26px; flex: none; }
.where { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.where .num { font-family: var(--mono); font-size: 13px; color: var(--aqua); flex: none; }
.where .ttl { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clock, .count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 6px; flex: none; }
.tools button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.tools button:hover { border-color: var(--muted); }
.tools button[aria-pressed="true"], .tools button[aria-expanded="true"] { border-color: var(--aqua); color: var(--aqua); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.progress i { position: absolute; inset: 0; background: var(--aqua); transform-origin: 0 50%; transform: scaleX(0); }

/* frame: stage + notes */
.frame { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); display: flex; }
.stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--bg); }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s ease; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.layer.on { opacity: 1; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); opacity: 0; transition: opacity .25s ease; }
.media video.on { opacity: 1; }
.stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); opacity: 0; transition: opacity .35s ease; }
.stills img.on { opacity: 1; }
.media, .stills { padding-bottom: 92px; }
.media video, .stills img { height: calc(100% - 92px); }
/* v2.7: on a portrait stage (a phone) a product clip fills the media area, framed on its stop's focus (talk.js frameMedia) */
.media video.fill, .stills img.fill { object-fit: cover; }

/* statements and diagrams */
.slide { display: grid; place-items: center; padding: 32px var(--gr) 120px var(--gl); background: linear-gradient(180deg, rgba(7,10,11,.86), rgba(7,10,11,.94)); }
.slide.clear { background: linear-gradient(90deg, rgba(7,10,11,.92) 0%, rgba(7,10,11,.7) 45%, rgba(7,10,11,.15) 100%); place-items: center start; }
.slide.dim { background: rgba(7, 10, 11, .8); }
.sl { max-width: 1100px; width: 100%; display: grid; gap: 22px; }
.sl .eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--aqua); }
.sl h1 { margin: 0; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.sl h1 span { color: var(--muted); }
.sl h2 { margin: 0; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.1; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; max-width: 24ch; }
.sl p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 21px); max-width: 60ch; }
.sl .big { color: var(--ink); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.loop li { border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px; background: var(--chip); display: grid; gap: 6px; transition: border-color .3s, opacity .3s; opacity: .45; min-width: 0; }
.loop li b { font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; }
.loop li span { font-size: 13.5px; color: var(--muted); }
.loop li i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--copper); }
.loop li.lit { opacity: 1; border-color: var(--aqua); }
.loop.list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loop li.done { opacity: .85; }
.stage { container-type: inline-size; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 9px 12px; border-radius: 6px; border: 1px solid transparent; background: var(--chip); opacity: .32; transition: opacity .3s, border-color .3s; }
.checks li.lit { opacity: 1; }
.checks li.now { border-color: var(--aqua); }
.checks b { font-weight: 600; font-size: clamp(14px, 1.25vw, 17px); min-width: 0; }
.checks .v { grid-column: 1; font-family: var(--mono); font-size: clamp(11.5px, .95vw, 13.5px); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; }
.checks .pills { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.pass { border-color: var(--good); color: var(--good); } .pill.fail { border-color: var(--signal); color: var(--signal); } .pill.open { border-color: var(--amber); color: var(--amber); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.points li { border-left: 2px solid var(--aqua); padding: 6px 0 6px 16px; display: grid; gap: 4px; }
.points b { font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; } .points span { color: var(--muted); font-size: 14.5px; }
.close-card { display: grid; gap: 10px; font-family: var(--mono); font-size: clamp(14px, 1.4vw, 18px); color: var(--ink); }
.close-card span { color: var(--muted); }

/* callouts: a dot on the thing, a thin leader, a label (3D points or spots on a product screen) */
.callouts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts line { stroke: var(--aqua); stroke-width: 1.5; transition: opacity .25s; }
.callouts circle { fill: var(--aqua); stroke: var(--bg); stroke-width: 2.5; transition: opacity .25s; }
.co { position: absolute; left: 0; top: 0; display: grid; gap: 2px; max-width: 280px; padding: 7px 11px 8px; border-radius: 5px; background: rgba(8, 12, 13, .9);
  border: 1px solid var(--line); border-left: 3px solid var(--aqua); transition: opacity .25s; will-change: transform; }
.co b { font-size: clamp(12.5px, 1.05vw, 15px); font-weight: 600; line-height: 1.25; }
.co span { font-family: var(--mono); font-size: clamp(10.5px, .85vw, 12.5px); color: var(--muted); line-height: 1.35; }
/* v2.7: a readable restatement of small text on a product screen (rule, element, found vs required), a size up */
.co.big { max-width: 330px; padding: 8px 12px 9px; }
.co.big b { font-size: clamp(14px, 1.2vw, 18px); }
.co.big span { font-size: clamp(12.5px, 1vw, 15px); color: var(--ink); }

/* product lockup in the caption strip */
.lockup { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--sans); color: var(--ink); flex-wrap: wrap; }
.lockup .mk { width: 22px; height: 22px; flex: none; }
.lockup .brand { font-weight: 500; font-size: 13px; color: var(--muted); }
.lockup b { font-weight: 650; font-size: 14.5px; }
.lockup .feat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--aqua); padding-left: 8px; border-left: 1px solid var(--line); }
.caption .tool .plain { font-family: var(--mono); }

/* suite, time saved */
.sl.wide { max-width: 1280px; }
.suite { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.suite li { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--chip); display: grid; grid-template-rows: auto 1fr; opacity: .4; transition: opacity .3s, border-color .3s; min-width: 0; }
.suite li.on { opacity: 1; }
.suite img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel-2); }
.suite .sw { padding: 9px 11px 11px; display: grid; gap: 4px; }
.suite .sw span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.suite .lockup b { font-size: 13.5px; } .suite .lockup .mk { width: 18px; height: 18px; } .suite .lockup .brand { font-size: 11.5px; }
.bars { display: grid; gap: 14px; max-width: 900px; }
.bar-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.bar-row .bl { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.bar-row .bt { height: 26px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; background: var(--muted); border-radius: 4px; }
.bar-row.agent .bt i { background: var(--aqua); }
.bar-row .bv { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl p.small { font-size: 13px; }

/* figure chips */
.facts { position: absolute; top: 16px; left: var(--gl); margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; justify-items: start; max-width: min(46%, 520px); z-index: 4; pointer-events: none; }
.facts li { font-family: var(--mono); font-size: clamp(11px, .95vw, 14px); line-height: 1.35; padding: .45em .75em; border-radius: 4px; background: var(--chip); border: 1px solid var(--line); color: var(--ink); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.facts li.on { opacity: 1; transform: none; }
.facts.off { display: none; }
.notes-body .figs { font-family: var(--mono); font-size: 12.5px; list-style: none; padding-left: 0; }
.notes-body .figs b { color: var(--aqua); font-weight: 500; }
.facts li b { color: var(--aqua); font-weight: 500; }

/* caption strip */
.caption { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 26px var(--gr) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gl);
  background: linear-gradient(0deg, var(--scrim) 55%, var(--scrim-0)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; align-items: end; }
.caption .tool { grid-column: 1; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--aqua); }
.caption .line { grid-column: 1; margin: 0; font-size: clamp(16px, 1.55vw, 23px); font-weight: 600; line-height: 1.25; text-wrap: balance; max-width: 70ch; }
.caption .state { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.caption .state:empty { display: none; }
.caption .state[data-tone="good"] { border-color: var(--good); color: var(--good); }
.caption .state[data-tone="warn"] { border-color: var(--amber); color: var(--amber); }
.caption .state[data-tone="plan"] { border-color: var(--violet); color: var(--violet); }
/* v2.1 chips: quiet notes in the strip (a stack line, a gap). On a stop with chips the state pill joins them in one
   block beside the caption line: the pill keeps its bottom-right corner, the chips sit to its left and above it, and the block
   stays level with the line, so it never reaches up over a product screen or a callout. talk.js fits the block's width. */
.caption .chips { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; display: flex; flex-flow: row-reverse wrap-reverse; justify-content: flex-start; align-items: center; gap: 5px 6px; max-width: min(600px, 44vw); }
.caption .chips:empty { display: none; }
.caption.with-chips > .state { display: none; }
.caption .chips .state { margin: 0; align-self: center; }
.chip { font-family: var(--mono); font-size: 11px; line-height: 1.35; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--chip); color: var(--muted); animation: chip-in .35s ease both; }
.chip b { font-weight: 500; color: var(--aqua); }
.chip.next b { color: var(--violet); }
@keyframes chip-in { from { opacity: 0; transform: translateY(3px); } }

/* v2.8: the workflow strip (Part 2). The platform's twelve steps along the top of the stage, the current one lit; product
   screens, slides, figure chips and callout labels sit below it, so it never covers a screen. Narrower stages keep the other
   steps' numbers only; a phone shows the current step and twelve ticks. The flowmap slide (2.9) is the same strip opened up. */
.stage { --flow-h: 0px; }
.stage.flow-on { --flow-h: 46px; }
.flow { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: var(--flow-h); display: none; align-items: center; padding: 0 var(--gr) 0 var(--gl);
  background: rgba(10, 15, 16, .95); border-bottom: 1px solid var(--line); pointer-events: none; }
.stage.flow-on .flow { display: flex; }
.flow ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: 100%; min-width: 0; }
.flow li { flex: 0 1 auto; position: relative; display: flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 5px; border: 1px solid transparent;
  opacity: .42; white-space: nowrap; min-width: 0; transition: opacity .25s, border-color .25s, background-color .25s; }
.flow li + li { margin-left: 13px; }
.flow li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 9px; height: 1px; background: var(--muted); opacity: .6; }
.flow li i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--copper); }
.flow li b { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.flow li .sub { display: none; font-family: var(--mono); font-size: 11.5px; color: var(--violet); }
.flow li.done { opacity: .82; }
.flow li.now { opacity: 1; flex-shrink: 0; border-color: var(--aqua); background: rgba(94, 224, 181, .12); }
.flow li.gap { border-style: dashed; border-color: rgba(167, 163, 255, .55); }     /* not shown on Hall 2: Apply, and Fix preview until a correct one is captured */
.flow li.gap.now { border-color: var(--violet); background: rgba(167, 163, 255, .12); }
.flow-now { display: none; }
.stage.flow-on .media video, .stage.flow-on .stills img { top: var(--flow-h); height: calc(100% - 92px - var(--flow-h)); }
.stage.flow-on .slide { padding-top: calc(32px + var(--flow-h)); }
.stage.flow-on .facts { top: calc(var(--flow-h) + 12px); }
@container (min-width: 1560px) { .flow li.now .sub { display: inline; } }
/* narrower stages (1600 x 900 with notes on is 1220 px): the other steps drop their numbers, then their names */
@container (max-width: 1299px) { .flow li { padding: 5px 7px; gap: 5px; } .flow li:not(.now) i { display: none; } .flow li + li { margin-left: 9px; } .flow li + li::before { left: -8px; width: 6px; } }
@container (max-width: 960px) { .flow li:not(.now) b { display: none; } .flow li:not(.now) i { display: inline; } }
@container (max-width: 640px) {
  .flow ol { display: none; }
  .flow-now { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; min-width: 0; }
  .flow-now i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--copper); flex: none; }
  .flow-now b { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .flow-now .ticks { margin-left: auto; display: flex; gap: 3px; flex: none; }
  .flow-now .ticks s { display: block; width: 8px; height: 4px; border-radius: 2px; background: var(--line); }
  .flow-now .ticks s.done { background: var(--muted); } .flow-now .ticks s.now { background: var(--aqua); }
  .flow-now .ticks s.gap { background: transparent; box-shadow: inset 0 0 0 1px var(--violet); } .flow-now .ticks s.gap.now { background: var(--violet); }
}
.flowmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.flowmap li { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--chip); display: grid; grid-template-rows: auto 1fr; opacity: .5; min-width: 0; }
.flowmap li.done { opacity: 1; }
.flowmap li.now { opacity: 1; border-color: var(--aqua); box-shadow: inset 0 0 0 1px var(--aqua); }
.flowmap li.gap { border-style: dashed; border-color: var(--violet); opacity: .9; }
.flowmap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel-2); }
.flowmap .fm-none { width: 100%; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, rgba(167, 163, 255, .16) 0 6px, transparent 6px 14px), var(--panel-2); }
.flowmap .fw { padding: 7px 9px 9px; display: grid; gap: 3px; align-content: start; }
.flowmap .fw b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.flowmap .fw b i { font-style: normal; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--copper); }
.flowmap .fw span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.flowmap li.gap .fw span { color: var(--violet); }
@container (max-width: 980px) { .flowmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 640px) {
  .flowmap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .flowmap .fw { padding: 4px 6px 6px; } .flowmap .fw b { font-size: 12px; } .flowmap .fw span { display: none; }
  .flowmap ~ p { display: none; }   /* the closing sentence ran into the caption on a phone; the notes and the dashed tile carry it */
  .stage.flow-on .slide { padding-top: calc(16px + var(--flow-h)); }
}

.loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); z-index: 6; pointer-events: none; }
.hint { position: absolute; right: var(--gr); top: 16px; margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); z-index: 6; transition: opacity .4s; pointer-events: none; }

/* presenter notes */
.notes { width: var(--notes-w); flex: none; border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: 18px 18px 40px; }
.notes[hidden] { display: none; }
.notes-head { display: grid; gap: 4px; }
.notes .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notes h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; text-wrap: balance; }
.notes-clock { font-family: var(--mono); font-size: 12px; color: var(--copper); }
.notes-body { display: grid; gap: 14px; font-size: 14.5px; }
.notes-body h3 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.notes-body ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.notes-body .ask { border-left: 2px solid var(--copper); padding: 4px 0 4px 12px; color: var(--ink); }
.notes-body .src { font-size: 12.5px; color: var(--muted); }
.notes-body .src code { font-family: var(--mono); font-size: 11.5px; }
.notes-body .stepnow { font-family: var(--mono); font-size: 11.5px; color: var(--aqua); }
.notes-body li.cb .cbt { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.notes-body li.cb.now .cbt { color: var(--aqua); }

/* chapters */
.chapters { position: fixed; z-index: 40; inset: 0; background: rgba(4, 6, 7, .72); display: grid; place-items: start end; padding: calc(var(--bar) + env(safe-area-inset-top, 0px) + 8px) var(--gr) 16px var(--gl); }
.chapters[hidden] { display: none; }
.chapters-inner { width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 18px; display: grid; gap: 10px; }
.chapters-head { display: flex; align-items: center; justify-content: space-between; }
.chapters h2 { margin: 0; font-size: 16px; }
.chapters-head button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters li.part { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
.chapters button.go { all: unset; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; width: 100%; padding: 7px 8px; border-radius: 6px; box-sizing: border-box; }
.chapters button.go:hover, .chapters button.go:focus-visible { background: var(--panel-2); }
.chapters button.go[aria-current="true"] { background: var(--panel-2); outline: 1px solid var(--aqua); }
.chapters .n { font-family: var(--mono); font-size: 12.5px; color: var(--aqua); } .chapters .t { font-size: 14.5px; }
.chapters .k { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.scroller { width: 1px; }

@media (max-width: 1100px) {
  :root { --notes-w: 320px; }
  .clock { display: none; }
}
@media (max-width: 760px) {
  :root { --bar: 48px; }
  .count, .tools #btn-prev, .tools #btn-next { display: none; }
  .frame { flex-direction: column; }
  .notes { width: auto; border-left: 0; border-top: 1px solid var(--line); max-height: 46%; padding: 12px var(--gr) 24px var(--gl); }
  .facts { max-width: calc(100% - 32px); top: 10px; }
  .facts li:nth-child(n+3) { display: none; }
  .media, .stills { padding-bottom: 130px; }
  .media video, .stills img { height: calc(100% - 130px); }
  .stage.flow-on { --flow-h: 36px; }
  .stage.flow-on .media video, .stage.flow-on .stills img { height: calc(100% - 130px - var(--flow-h)); }
  .caption { padding-top: 18px; grid-template-columns: minmax(0, 1fr); }
  .caption .line { font-size: 15.5px; }
  .caption .state { grid-column: 1; grid-row: auto; justify-self: start; white-space: normal; margin-top: 6px; font-size: 11px; }
  .caption .chips { grid-column: 1; grid-row: auto; justify-self: start; flex-flow: row wrap; justify-content: flex-start; max-width: none; margin-top: 6px; }
  .chip { font-size: 10.5px; padding: 2px 7px; }
  .checks li { grid-template-columns: minmax(0, 1fr); padding: 6px 10px; }
  .checks .pills { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .checks .v { font-size: 11px; }
  .checks li:not(.now) .v { display: none; }   /* seven rows fit above the caption: values show on the current row only */
  .checks + p { display: none; }                /* the footnote is in the notes */
  .suite img { aspect-ratio: 3 / 1; }
  .sl { gap: 14px; }
  .suite { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .suite .sw span:last-child { display: none; }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .co { max-width: 180px; padding: 5px 8px; }
  .co.big { max-width: 215px; padding: 6px 9px 7px; }
  .loop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .loop li { padding: 10px 12px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .hint { display: none; }
  .slide { padding-bottom: 104px; }
}
/* ---------- blog v1.0 ---------- */
/* the narration toggle: two joined buttons, the engineer's lines or the architect's; short labels on a phone */
.tools .voice { display: inline-flex; flex: none; }
.tools .voice button { border-radius: 0; }
.tools .voice button:first-child { border-radius: 6px 0 0 6px; }
.tools .voice button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.tools .voice button[aria-pressed="true"] { position: relative; z-index: 1; background: rgba(94, 224, 181, .12); }
.voice .s { display: none; }
@media (max-width: 520px) { .voice .l { display: none; } .voice .s { display: inline; } .tools .voice button { padding: 6px 8px; } .tools { gap: 5px; } .bar { gap: 10px; } }
/* the caption strip: the blog's lines run to two or three lines, so the tool name and the line often sit over the foot of a
   bright product screen (Revit's white canvas); the scrim is near-solid behind the text and fades only in the top 8 px of the
   strip's padding (18 px on a phone, 26 px wider) */
:root { --scrim: rgba(7, 10, 11, .86); }
.caption { background: linear-gradient(0deg, var(--scrim) calc(100% - 8px), var(--scrim-0)); }
@media (max-width: 760px) { :root { --scrim: rgba(7, 10, 11, .95); } }
/* "not yet ..." chips: what isn't recorded on Hall 2 yet */
.chip.gap { border-style: dashed; }
.chip.gap b { color: var(--amber); }
/* the end card */
.sl.end { justify-items: center; text-align: center; gap: 12px; }
.sl.end .mk { width: clamp(56px, 6vw, 92px); height: auto; }
.sl.end p.w { margin: 0; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.01em; color: var(--tile-ink); max-width: none; }
.sl.end p.t { color: var(--ink); font-size: clamp(16px, 1.7vw, 24px); }
.sl.end p.u { font-family: var(--mono); color: var(--copper); font-size: clamp(14px, 1.3vw, 18px); }
.sl.end p.s { margin-top: clamp(10px, 3vh, 34px); font-size: clamp(11px, .85vw, 13px); max-width: 72ch; }

/* ---------- blog v1.1 ---------- */
/* the product label at the lower left of the strip, as the film's lower thirds: the Matechi mark, the product, the feature (a
   plain box for Revit's own tools). It stays put through the moves (blog.js fades it only when the product changes). */
.caption .tool { margin: 0 0 7px; line-height: 1; }
.caption .tool:empty { display: none; }
.caption .tool .lockup { padding: 4px 11px 4px 5px; border-radius: 7px; background: rgba(16, 23, 24, .96); border: 1px solid #3a4a4c; gap: 8px; max-width: 100%; }
.caption .tool .lockup.nomark { padding-left: 11px; }
.caption .tool .lockup .mk { width: 24px; height: 24px; }
.caption .tool .lockup b { font-size: 15px; }
.caption .tool .lockup .feat { white-space: normal; }
.caption .tool .lockup .feat, .caption .tool, .caption .line, .caption .state, .caption .chips { transition: none; }
.caption.empty { background: none; }
@media (max-width: 760px) {
  .caption .tool { margin-bottom: 6px; }
  .caption .tool .lockup { padding: 3px 9px 3px 4px; gap: 6px; }
  .caption .tool .lockup.nomark { padding-left: 9px; }
  .caption .tool .lockup .mk { width: 20px; height: 20px; }
  .caption .tool .lockup b { font-size: 13.5px; }
  .caption .tool .lockup .brand { font-size: 12px; }
  .caption .tool .lockup .feat { font-size: 10.5px; padding-left: 6px; }
}
/* the workflow strip fades in and out with the moves instead of switching; the figure chips move down with it */
.flow { display: flex; opacity: 0; transition: opacity .35s ease; }
.stage.flow-on .flow { opacity: 1; }
.facts { transition: top .35s ease; }

@media (prefers-reduced-motion: reduce) { .layer, .media video, .stills img, .facts li, .loop li, .checks tr, .hint { transition: none; } .chip { animation: none; } }

/* v1.2 prototype: film mode (?film=1): the stage alone, as the film's frame */
html.film .bar, html.film .hint, html.film .chapters { display: none !important; }
html.film .frame { top: 0; }
html.film #cap-line { visibility: hidden !important; }   /* R2: the film burns its own caption tracks (film12-plan.json) in this place */
/* R4 (15 Nov): a film frame takes about 0.5 s to render, so the page's .25-.35 s transitions finished inside one film frame (the
   workflow strip and its lit step, the labels, the figure chips switched in a frame). In film mode nothing runs on the wall's clock:
   blog.js and stage-moves.js set these each frame, and every step of the workflow strip keeps its number, so a new lit step never
   shifts the strip sideways (at 1280 px only the lit step showed one). */
html.film .flow, html.film .flow li, html.film .co, html.film .callouts line, html.film .callouts circle, html.film .facts, html.film .facts li { transition: none !important; }
html.film .chip { animation: none !important; }
/* R4 blog resume (16 Nov): the film burns its own captions over the strip, so a long line covered the chips once they showed at
   full opacity (R3's film had them as faint ghosts: their entrance animation restarted every frame). In film mode the chips keep
   their space (the strip's layout and the 3D framing as before) but don't show; the page shows them as it always has. */
html.film .chip { opacity: 0 !important; }
html.film .flow li:not(.now) i { display: inline; }
