/* Talk-specific adjustments on top of the theme. */

/* Framing slide: theory photo ≠ experiment photo, stacked on the right */
/* Rows follow the photos: the list sits beside the blackboard, the bottom line
   beside the optical table. */
.goal { grid-template-columns: 1fr 520px; grid-template-rows: 300px auto 300px auto; align-items: center; row-gap: 0; }
.goal > ul { grid-area: 1 / 1; margin: 0; }
.tvse { display: contents; }
.tvse img { grid-column: 2; width: 520px; height: 300px; object-fit: cover; }
.tvse img:first-of-type { grid-row: 1; object-position: 55% 50%; }
.tvse img:last-of-type { grid-row: 3; }
.tvse .neq { grid-area: 2 / 2; justify-self: center; font-size: 72px; line-height: 1; margin: 6px 0; }
.credit { grid-area: 4 / 2; justify-self: center; font-size: 18px; color: var(--k-muted); margin-top: 10px; }
.k-scene .goal p.bottomline { grid-area: 3 / 1; position: relative; left: 0; bottom: auto; transform: none; justify-self: start; }


/* Chatbot vs. agent: space between the panels and the line below */
#agents p.center { margin-top: 48px; }

/* Timeline of disciplines uprooted by AI; --t is years since 2022 (0 … 8) */
.ray { position: relative; height: 640px; margin-top: 110px; --x0: 60px; --dx: 195px; --today: var(--k-alert); }
.ray .axis { position: absolute; left: 20px; right: 20px; top: 320px; height: 4px; background: var(--k-fg); }
.ray .axis::after { content: ""; position: absolute; right: -6px; top: -10px;
  border-left: 22px solid var(--k-fg); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ray .yr { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); top: 336px;
  transform: translateX(-50%); font-size: 28px; color: var(--k-muted); }
.ray .yr::before { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 16px; background: var(--k-fg); }
.ray .ev { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; z-index: 1; }
.ray .ev b { position: relative; font-size: 40px; color: var(--k-accent); }
.ray .ev span { font-size: 26px; color: var(--k-muted); }
.ray .ev::after { content: ""; position: absolute; left: 50%; width: 3px; background: var(--k-accent); transform: translateX(-50%); }
.ray .ev.up   { bottom: 340px; padding-bottom: 70px; }
.ray .ev.up::after   { bottom: 0; height: 64px; }
.ray .ev.down { top: 340px; padding-top: 110px; }
.ray .ev.down::after { top: 0; height: 104px; }
.ray .ev::before { content: ""; position: absolute; left: 50%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--k-accent); transform: translateX(-50%); }
.ray .ev.up::before   { bottom: -33px; }
.ray .ev.down::before { top: -33px; }
.ray .ev.future b { color: var(--k-muted); }
.ray .ev.future::before { background: var(--k-bg); border: 4px solid var(--k-muted); box-sizing: border-box; }
.ray .ev.future::after { background: none; border-left: 3px dashed var(--k-muted); width: 0; }
/* "today": red label right above the axis, with a short arrow whose tip touches it (axis top at 320). */
.ray .now { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); top: 232px; height: 86px; width: 0; }
.ray .now span { position: absolute; top: 0; left: 0; transform: translateX(-50%); line-height: 1;
  font-size: 30px; font-weight: 700; color: var(--today); white-space: nowrap; }
.ray .now::before { content: ""; position: absolute; left: -2px; top: 40px; width: 4px; height: 34px; background: var(--today); }
.ray .now::after { content: ""; position: absolute; left: -10px; bottom: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 14px solid var(--today); }

/* Upper events without a subtitle: longer stem so all upper titles share one height */
.ray .ev.up:not(:has(span)) { padding-bottom: 106px; }
.ray .ev.up:not(:has(span))::after { height: 100px; }
/* Transition line (e.g. to reasoning models): dashed, from its label down to the axis; labels it crosses stay readable */
.ray .shift { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); top: 60px; height: 260px;
  border-left: 3px dashed var(--k-muted); }
.ray .shift span { position: absolute; top: -44px; left: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: 30px; font-weight: 700; color: var(--k-muted); }
.ray .ev b, .ray .ev span { background: var(--k-bg); padding: 0 6px; }

/* Title slide: the teaser fills the whole white area, from the slide edges to the
   theme's circle (centre 1460, 560, radius 660), with a white gap along the arc. */
.k-scene[data-layout="title"] .teaser.arc {
  left: 0; top: 0; width: 1120px; height: 1080px;
  object-fit: cover; object-position: left top; border-radius: 0;
  -webkit-mask: radial-gradient(circle 690px at 1460px 560px, transparent 689.5px, #000 690.5px);
  mask: radial-gradient(circle 690px at 1460px 560px, transparent 689.5px, #000 690.5px);
}

/* Slide "Not just parrots": the transformer architecture as eye-catcher on the right. */
.parrots { grid-template-columns: 1fr 520px; gap: 80px; }
.parrots .arch { width: 520px; justify-self: center; }

/* Slide "A toy world": setting on the left; on the right the plot with its bottom line underneath. */
.toyworld { grid-template-columns: 1fr 840px; gap: 60px; align-items: start; }
.toyworld .eq { font-size: 40px; margin: 0.2em 0 0.8em; text-align: left; }
.toyworld .eq mjx-container { text-align: left !important; margin-left: 0 !important; }
.plotcol { display: flex; flex-direction: column; gap: 14px; }
.plotcol figure img { width: 756px; }
.k-scene .plotcol p.bottomline { margin-top: 0; }

/* Next-token flowchart: tokens → LLM → probabilities → picked token, looped back. */
.flow { display: flex; align-items: center; gap: 18px; margin: 0.4em 0 1.6em 40px; font-size: 30px; }
.flow .to { color: var(--k-muted); }
.flow .again { font-size: 24px; color: var(--k-muted); }
.flow .toks { display: flex; gap: 6px; }
.flow .toks span { padding: 4px 12px; border: 2px solid var(--us-anthrazit-40); border-radius: 10px; background: var(--k-card); }
.flow .pick span { border-color: var(--k-accent); color: var(--k-accent); font-weight: 700; }
.flow .llm { padding: 14px 22px; border-radius: var(--k-radius); background: var(--k-accent); color: #fff; font-weight: 700; }
.flow .probs { display: grid; gap: 4px; font-size: 24px; }
.flow .probs div { display: grid; grid-template-columns: 60px 90px; align-items: center; gap: 8px; }
.flow .probs i { display: block; height: 16px; width: calc(var(--p) * 1%); background: var(--k-accent-60); border-radius: 4px; }

/* Paged sheet "Just predicting", page 3: the phase diagram as large as the page allows. */
/* Page 3: the three training knobs left, the phase diagram right, as large as the page allows. */
.levers { grid-template-columns: 520px 1fr; gap: 40px; align-items: center; }
.k-scene img.phase { display: block; width: 100%; max-height: 640px; object-fit: contain; object-position: right top; }
/* Toy-world screen of the "Just predicting" sheet: the left column (goal,
   equation, facts) spreads over the height of the plot column beside it. */
#parrots .toyworld { align-items: stretch; }
#parrots .toyworld > div:first-child { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0 40px; }
#parrots .toyworld .toygoal > p { margin-bottom: 0.5em; }
#parrots .toyworld .eq { margin: 0; }
#parrots .toyworld ul { font-size: 34px; margin: 0; }
#parrots .toyworld ul li { margin-bottom: 0.55em; }
#parrots .levers p.muted { font-size: 32px; }

/* Slide "Chatbot vs. agent": agent flowchart left, the two chat panels stacked right. */
.agentcols { grid-template-columns: 1fr 540px; gap: 80px; align-items: start; }
.agentpanels { display: flex; flex-direction: column; gap: 34px; }
.agentpanels img { width: 540px; }
/* Agent flowchart, left to right: input string -> LLM -> output string -> harness. */
.agentflow { display: flex; align-items: center; justify-content: space-between; max-width: 920px; margin-top: 40px; font-size: 23px; }
/* Strings as tapes of coloured segments, stacked vertically */
.tape { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 2px solid var(--us-anthrazit-40); }
.tape .seg { height: 66px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 15px; white-space: nowrap; }
.tape .seg + .seg { border-top: 2px solid #fff; }
.seg.sys { background: var(--k-accent-20); }
.seg.task { background: var(--us-anthrazit-20); }
.seg.res { background: var(--k-warn-20); }
.seg.think { background: repeating-linear-gradient(135deg, #eef0f2 0 8px, #e2e5e8 8px 16px); color: var(--k-muted); font-style: italic; }
.seg.text { background: var(--us-anthrazit-20); }
.seg.call { background: var(--k-warn-20); font-weight: 700; }
.af-llm { padding: 22px 26px; border-radius: var(--k-radius); background: var(--k-accent); color: #fff; font-weight: 700; }
.af-harness { position: relative; top: -11px; box-sizing: border-box; padding: 34px 17px 12px;
  border: 3px dashed var(--k-accent-60); border-radius: var(--k-radius); }
.af-label { position: absolute; top: 5px; left: 14px; font-size: 19px; font-weight: 700; color: var(--k-accent); }
.af-targets { display: flex; flex-direction: column; gap: 12px; }
.tgt { height: 54px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border: 2px solid var(--us-anthrazit-40); border-radius: 10px; text-align: center; line-height: 1.1; background: var(--k-card); }
.tgt.hidden { color: var(--k-muted); text-decoration: line-through; border-style: dashed; }
.tgt.exec { border-color: var(--k-warn); }
.tgt.exec code { font-size: 17px; }
.agentdef { margin: 0 0 0.1em; }
/* Targets every 66 px like the tape segments; lift the harness 11 px so each
   target sits level with its segment and the arrows run straight across. */

/* "State of play": full-width chart screenshots from Artificial Analysis */
.aachart { margin: 0; }
.aachart img { display: block; width: 100%; border-radius: var(--k-radius); }
.aachart.short img { width: 1320px; margin: 0 auto; }

/* Lag of open-weight models as a ray over 2026; --t is months since 1 Jan 2026 */
.lagray { position: relative; height: 220px; margin-top: 20px; --x0: 90px; --dx: 125px; --today: var(--k-alert); }
.lagray .axis { position: absolute; left: 20px; right: 20px; top: 56px; height: 4px; background: var(--k-fg); }
.lagray .axis::after { content: ""; position: absolute; right: -6px; top: -10px;
  border-left: 22px solid var(--k-fg); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lagray .mo { position: absolute; left: calc(var(--x0) + (var(--t) + 0.5) * var(--dx)); top: 66px;
  transform: translateX(-50%); font-size: 22px; color: var(--k-muted); }
.lagray .mo::before { content: ""; position: absolute; left: calc(-0.5 * var(--dx) + 50%); top: -14px; width: 2px; height: 12px; background: var(--k-fg); }
/* Frontier models above the axis */
.lagray .fm { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); top: 0; height: 52px;
  transform: translateX(-50%); font-size: 24px; color: var(--k-fg); white-space: nowrap; }
.lagray .fm::after { content: ""; position: absolute; left: 50%; top: 32px; width: 3px; height: 22px; background: var(--k-fg); transform: translateX(-50%); }
.lagray .fm:not(.now) { color: var(--k-accent); }
.lagray .fm:not(.now)::after { background: var(--k-accent); }
.lagray .fm.now { color: var(--today); font-weight: 700; z-index: 1; }
/* "today" line runs down through both lag bars and ends them */
.lagray .fm.now::after { background: var(--today); height: 152px; }
/* Open-weight models: dot where the frontier had their score, bar to today */
.lagray .ow { position: absolute; left: calc(var(--x0) + var(--t) * var(--dx)); width: calc((9.97 - var(--t)) * var(--dx));
  top: calc(118px + var(--row) * 50px); height: 0; border-top: 3px dashed var(--k-accent); }
.lagray .ow::before { content: ""; position: absolute; left: -12px; top: -14px; width: 22px; height: 22px; border-radius: 50%; background: var(--k-accent); }
.lagray .ow span { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); padding: 0 10px;
  background: var(--k-bg); font-size: 26px; white-space: nowrap; }
/* Conclusion under a chart: in the flow of its page, centred */
.k-scene .aachart + p.bottomline { position: relative; left: 50%; bottom: auto; transform: translateX(-50%); margin-top: 28px; }

/* Slide "Problems": 3 × 3 boxes, each with a glyph, tag, problem and possible solution */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; margin-top: -8px; }
.pbox { position: relative; display: flex; flex-direction: column; padding: 16px 26px 16px 26px; min-height: 240px; box-sizing: border-box;
  font-size: 26px; }
.pbox svg.glyph { position: absolute; right: 22px; top: 18px; width: 60px; height: 60px; }
.pbox .tag { font-size: 19px; color: var(--k-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.k-scene .pbox h3 { margin: 0 0 8px; font-size: 34px; color: var(--k-accent); }
.k-scene .pbox p { margin: 0; line-height: 1.25; padding-right: 20px; }
.k-scene .pbox p:not(.then) { font-size: 23px; }
.k-scene .pbox p.then { margin-top: auto; padding-top: 10px; }
/* Hanging indent: a wrapped solution line starts below the text, not below the arrow. */
.k-scene .pbox p.then { padding-left: 1.05em; text-indent: -1.05em; }
.k-scene .pbox p.then::before { display: inline-block; width: 1.05em; text-indent: 0; }
/* A problem singled out in red (Dependence) */
.pbox.alert { --k-accent: var(--k-alert); background: color-mix(in srgb, var(--k-alert) 10%, #fff); border-color: var(--k-alert); }

/* Slide "Outlook": 2 × 2 boxes, text with glyph left, picture or video right */
.ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.obox { display: grid; grid-template-columns: 1fr 420px; gap: 22px; align-items: center; min-height: 330px; padding: 20px 22px 20px 26px; }
.k-scene .obox h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: 34px; color: var(--k-accent); }
.obox svg.glyph { width: 48px; height: 48px; }
.k-scene .obox p { margin: 0; font-size: 24px; line-height: 1.25; }
.k-scene .obox p.then { margin-top: 12px; }
.k-scene .obox .omedia { display: block; width: 420px; height: 236px; object-fit: cover; object-position: center; border-radius: 12px; }
/* Protocol diagram: the agent on the left, one row per protocol */
.k-scene .obox .omedia.protos { display: grid; grid-template-columns: 96px 1fr 1fr; grid-template-rows: repeat(3, 1fr); align-items: center;
  column-gap: 10px; row-gap: 12px; box-sizing: border-box; padding: 12px 6px; font-size: 22px; }
.protos .ag { grid-row: 1 / 4; align-self: stretch; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--k-accent); color: #fff; font-weight: 700; }
/* Arrow at the height of the middle of its target box, label above it */
.protos .pr { position: relative; align-self: stretch; color: var(--k-fg); }
.protos .pr b { position: absolute; left: 0; right: 0; bottom: calc(50% + 6px); text-align: center; }
.protos .pr::before { content: ""; position: absolute; left: 0; right: 10px; top: calc(50% - 1.5px); height: 3px; background: var(--k-accent-60); }
.protos .pr::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-left: 12px solid var(--k-accent-60);
  border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; }
.protos .tg { padding: 8px 10px; text-align: center; border: 2px solid var(--us-anthrazit-40); border-radius: 10px; white-space: nowrap; }
.protos .tg.dev { border-color: var(--k-accent); font-weight: 700; }

/* Experiment control as a popup: box content in the left column, flowchart right */
.k-scene .obox.k-popup-open { grid-template-columns: 420px 1fr; grid-template-rows: auto auto 1fr; column-gap: 44px; row-gap: 22px;
  align-items: start; align-content: start; padding: 30px 36px; }
.obox.k-popup-open .otext { grid-column: 1; grid-row: 1; }
.obox.k-popup-open .omedia { grid-column: 1; grid-row: 2; }
.obox.k-popup-open .popup-only { grid-column: 2; grid-row: 1 / 4; align-self: stretch; }
/* Three lanes: earlier, now, better (with the feedback loop) */
.ecflow { display: flex; flex-direction: column; justify-content: space-around; gap: 26px; }
.lane { display: grid; grid-template-columns: 120px 1fr; column-gap: 16px; }
.lane > * { grid-column: 2; }
.lane > .when { grid-column: 1; grid-row: 1 / span 4; font-size: 28px; font-weight: 700; color: var(--k-muted); }
.lane.best > .when { color: var(--k-accent); }
.k-scene .lane p { margin: 0; font-size: 26px; }
.k-scene .lane p.muted { margin-top: 30px; font-size: 22px; }
.chain { display: flex; align-items: center; margin-top: 30px; }
.chain span { flex: none; width: 130px; box-sizing: border-box; padding: 10px 0; text-align: center; font-size: 24px;
  border: 2px solid var(--us-anthrazit-40); border-radius: 10px; background: var(--k-card); }
.chain .ag { background: var(--k-accent); border-color: var(--k-accent); color: #fff; font-weight: 700; }
.chain .ai { background: var(--us-anthrazit-20); }
.chain .code { background: var(--k-warn-20); }
.chain .data { border-color: var(--k-warn); }
.chain .goal { border-color: var(--k-accent); color: var(--k-accent); font-weight: 700; }
.chain i { flex: none; position: relative; width: 92px; height: 3px; background: var(--k-accent-60); }
.chain i:not([data-l]) { width: 50px; }
.chain i::before { content: attr(data-l); position: absolute; left: 0; right: 8px; bottom: 6px; text-align: center;
  font-size: 19px; font-style: normal; color: var(--k-muted); }
.chain i::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 11px solid var(--k-accent-60); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
/* Feedback: from the data back to the agent, under the chain */
.loop { position: relative; box-sizing: border-box; margin-left: 245px; width: 666px; height: 46px;
  border: 3px solid var(--k-accent); border-top: none; border-radius: 0 0 16px 16px; }
.loop::before { content: ""; position: absolute; left: -10.5px; top: -1px;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid var(--k-accent); }
.loop span { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); padding: 0 12px;
  background: var(--k-card); font-size: 26px; color: var(--k-accent); }

/* Part 3, webcams: setup and goal left, the problem right; a picture under each. */
.webcamcols { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.webcamcols ul { margin-bottom: 0.7em; min-height: 2.6em; }
.webcamcols figure { margin: 0; }
.webcamcols figure img { display: block; width: 100%; }
.k-scene .webcamcols figcaption { font-size: 22px; color: var(--k-muted); margin-top: 8px; }
/* The still of the one-day timelapse: the video itself is the popup, so the
   growing frame always matches the picture (the caption stays behind). Open,
   it is 1366×790 (the video's aspect, 1920×1110), centred below the title. */
.webcamcols video.tlvid { --popup-x: 277; --popup-y: 170; --popup-w: 1366; --popup-h: 790; }
/* Closed: as tall as the camera map beside it (map 1800×968, video 1920×1110:
   width = (968/1800) / (1110/1920) of the column). */
.webcamcols .tlvid:not(.k-popup-lifted) { display: block; width: 93.02%; aspect-ratio: 1920 / 1110; }
.k-scene video.tlvid.k-popup-lifted { object-fit: cover; }

/* The agent's solution as a 2D flowchart over the whole slide: steps 1–3 left
   to right, then down, steps 4–6 right to left; each step with a picture from
   the paper. Raw (blurred) and fixed (sharp) mean frames end up one above the
   other in the left column. */
.algo { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 48px 90px;
  height: 650px; margin-top: 0; }
.algo .node { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; min-height: 0;
  padding: 12px 18px 10px; border-radius: var(--k-radius); background: var(--us-anthrazit-20); text-align: center; }
.algo .node.out { background: var(--k-accent-20); box-shadow: inset 0 0 0 3px var(--k-accent); }
.algo .node b { font-size: 28px; line-height: 1.15; }
.algo .node span { font-size: 20px; color: var(--k-muted); line-height: 1.2; }
.algo .node img { min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; margin: 8px 0 4px; align-self: center; border-radius: 8px; }
.k-scene .algo .node img[src$=".png"] { background: var(--k-card); padding: 6px; box-sizing: border-box; }
.algo .node i { font-style: normal; font-size: 19px; color: var(--k-muted); }


/* Slide "How we run agents safely": risks and solution left, how secdev works right. */
.yolocols { grid-template-columns: 1fr 900px; gap: 70px; align-items: start; }
.yolocols > div > ul > li + li { margin-top: 1.1em; }
.yolocols .checklist { margin-top: 18px; }
/* The diagram: canvas coordinates inside a 900×724 box, laid out so that every
   arrow runs straight and all arrows in the column are equally long (76 px
   between boxes; the model and the Git server outside your computer get a
   little more, so the arrow tips clear its frame): from the model through the agent and the project to you and
   the Git server (x centre 405); one row (y centre 208) from your private
   files (✗ at the container wall) through the agent to its toolchain. */
.sdx .sd-priv span { line-height: 1.6; margin-top: 8px; white-space: nowrap; }
.sdx .sd-tools span { line-height: 1.45; margin-top: 4px; }
.sd-no { position: absolute; font-size: 40px; font-weight: 700; color: var(--k-alert); line-height: 1; transform: translate(-50%, -50%); }
#sd-no1 { left: 212px; top: 208px; }

/* Slide "Where agents help": the four fields as a pie (research in the part
   colour), chips per project coloured by the model they use. */
.fieldcols { grid-template-columns: 1fr 840px; gap: 60px; align-items: center; }
svg.pie { display: block; width: 840px; height: 840px; margin: -40px 0 -40px; overflow: visible; }
.pie .q > path { fill: var(--us-anthrazit-20); stroke: #fff; stroke-width: 6; }
.pie .q.hl > path { fill: var(--k-accent); }
.pie .qn { font-size: 40px; font-weight: 700; text-anchor: middle; fill: var(--k-fg); }
.pie .q.hl .qn { fill: #fff; }
.pie .hub { fill: #fff; stroke: var(--us-anthrazit-40); stroke-width: 3; }
.pie .hubt { font-size: 34px; font-weight: 700; text-anchor: middle; fill: var(--k-fg); }
.pie .hubs { font-size: 24px; text-anchor: middle; fill: var(--k-muted); }
.pie .chip text { font-size: 24px; text-anchor: middle; fill: #fff; }
.pie .chip.f rect { fill: var(--us-blau); }
.pie .chip.l rect { fill: var(--us-anthrazit); }
.pie .q.hl .chip rect { stroke: #fff; stroke-width: 2; }
/* The key: the same chips in HTML, with what they mean. */
.modelkey { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; padding-left: 40px; }
.modelkey > div { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center; }
.modelkey .chip { justify-self: start; }
.modelkey span:not(.chip) { font-size: 26px; line-height: 1.25; }
/* Warning box under the key: amber edge and a warning sign. */
/* Below the key, in the left column; the column (list, key, box) is centred
   vertically on the chart. */
.k-scene .fieldcols .callout { margin-top: 110px; }

/* Slide "Teaching": draft → prompt → reviewed section, across the slide. */
.teachlist { margin-bottom: 0.5em; }
.review { display: grid; grid-template-columns: 500px 270px 1fr; gap: 44px; align-items: center; }
.review figure { margin: 0; }
.review figure img { display: block; width: 100%; border: 2px solid var(--us-anthrazit-20); }
.k-scene .review figcaption { font-size: 22px; color: var(--k-muted); margin-top: 8px; }
.review .prompt { position: relative; padding: 18px 22px; border-radius: var(--k-radius); background: var(--us-anthrazit);
  color: #fff; font-size: 23px; line-height: 1.3; }
.review .prompt .who { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; }
/* arrows into and out of the prompt */
.review .prompt::before, .review .prompt::after { content: "→"; position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 34px; font-weight: 700; color: var(--k-accent); }
.review .prompt::before { left: -38px; }
.review .prompt::after { right: -38px; }
/* Middle column: the terminal commands above the prompt. */
.review .mid { display: flex; flex-direction: column; gap: 18px; }


/* Field glyphs: drawn in the pie on "Fields of application", then before the
   title of every slide of that field (class "field field-…" on the section). */
.pie .qg { fill: none; stroke: var(--k-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pie .qg [fill="black"] { fill: var(--k-fg); }
.pie .q.hl .qg { stroke: #fff; }
.pie .q.hl .qg [fill="black"] { fill: #fff; }
.k-scene.field-teaching { --k-glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M2 9.5l10-5 10 5-10 5z%27/%3E%3Cpath d=%27M6 11.5v5c3.5 2.2 8.5 2.2 12 0v-5%27/%3E%3Cpath d=%27M22 9.5v6%27/%3E%3C/svg%3E"); }
.k-scene.field-research { --k-glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%271.6%27 fill=%27black%27 stroke=%27none%27/%3E%3Cellipse cx=%2712%27 cy=%2712%27 rx=%2710%27 ry=%274%27/%3E%3Cellipse cx=%2712%27 cy=%2712%27 rx=%2710%27 ry=%274%27 transform=%27rotate%2860 12 12%29%27/%3E%3Cellipse cx=%2712%27 cy=%2712%27 rx=%2710%27 ry=%274%27 transform=%27rotate%28-60 12 12%29%27/%3E%3C/svg%3E"); }
.k-scene.field-it { --k-glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273.5%27 y=%273%27 width=%2717%27 height=%277.5%27 rx=%271.5%27/%3E%3Crect x=%273.5%27 y=%2713.5%27 width=%2717%27 height=%277.5%27 rx=%271.5%27/%3E%3Cpath d=%27M7 6.75h.01M7 17.25h.01M11 6.75h6M11 17.25h6%27/%3E%3C/svg%3E"); }
.k-scene.field-admin { --k-glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 2.5h8.5l4.5 4.5v14.5h-13z%27/%3E%3Cpath d=%27M14.5 2.5v4.5h4.5%27/%3E%3Cpath d=%27M9 12h7M9 15.5h7M9 19h4%27/%3E%3C/svg%3E"); }

/* Slide "IT: Wingman": the wide three-window screenshot under two bullets. */
.itlist { margin-bottom: 0.4em; }
.k-scene figure.wmshot { margin: 0 auto; width: 1560px; }
.wmshot img { display: block; width: 100%; border-radius: var(--k-radius); }
.wmlabels { display: grid; grid-template-columns: 30.5% 30.5% 1fr; margin-top: 8px; font-size: 22px; color: var(--k-muted); }
/* Model and hardware as a code chip. */
.k-scene code.model { font-size: 0.8em; padding: 2px 12px; border-radius: 8px; background: var(--us-anthrazit-20); white-space: nowrap; }

/* Slide "Administration: OFFICE": bullets left, the full workspace right. */
.officecols { grid-template-columns: 1fr 1120px; gap: 60px; align-items: center; }
.officecols > ul > li + li { margin-top: 1.1em; }
.k-scene figure.officeshot { margin: 0; }
.officeshot img { display: block; width: 1120px; border: 2px solid var(--us-anthrazit-20); }
.k-scene .officeshot figcaption { font-size: 22px; color: var(--k-muted); margin-top: 8px; }
.officecols .sub2 { font-size: 30px; }
.officecols code.model { font-size: 0.72em; }

/* Slide "Research: the Einstein container": the setup as one diagram over the
   full width. Canvas coordinates inside a 1680×790 box; all arrows run straight:
   one row (y centre 290) from the supervisor through tmux to the agent and the
   project, and on to the cluster; one column (x centre 520) from the model
   through the agent to its toolchain; one column (x centre 938) from the
   project to Gitea. Frames nest: host ⊃ tmux ⊃ container. */
.rsx { margin-top: -10px; }
.rsx > .node > span { line-height: 1.25; }
.rsx > .node > .label { top: 8px; font-size: 21px; }
.rsx > .node.tint > .label { top: 6px; }
.rsx > .node.dashed > .label { top: 4px; right: 16px; font-weight: 400; color: var(--k-muted); }
.rsx > .rs-net > .label.br { bottom: 10px; right: 20px; font-weight: 400; color: var(--k-muted); }
.rsx > .node > b { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rsx svg.glyph { width: 32px; height: 32px; }
/* Supervisor: globe for "anywhere in the world" */
.rsx .rs-you .any { display: inline; font-size: inherit; color: var(--k-accent); }
.rsx .rs-you .rs-any { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.rsx svg.glyph.globe { width: 34px; height: 34px; }
.rsx .rs-tools > span { line-height: 1.38; margin-top: 2px; }
.rsx .rs-tools code { font-size: 0.9em; }
.rsx .rs-tools b.lean { display: inline; font-size: inherit; color: var(--k-fg); }
/* The project folder: the guided-wiki scaffold, files left, folders right */
.rsx > .rs-proj { justify-content: flex-start; padding: 10px 16px 0; }
.rsx .rs-proj > span.rs-prof { font-size: 18px; margin: 2px 0 8px; }
.rs-tree { display: grid; grid-template-columns: 1fr 160px; column-gap: 12px; text-align: left; }
.rs-tree > div > div { display: flex; gap: 8px; height: 38px; align-items: center; padding: 0 8px; border-radius: 10px; }
.rs-tree code { font-size: 18px; font-weight: 700; color: var(--k-fg); white-space: nowrap; }
.rs-tree span { font-size: 17px; color: var(--k-muted); white-space: nowrap; }
.rs-tree span b { color: var(--k-fg); }
.rs-files code { flex: none; width: 122px; }
.rs-dirs code { flex: none; width: 76px; }
.rs-tree .rs-chip { background: var(--k-card); border: 2px solid var(--k-accent); box-sizing: border-box; }
.rs-tree .rs-chip code { color: var(--k-accent); }
.rs-tree .rs-chip + .rs-chip { margin-top: 8px; }
/* Institute compute on the right; Gitea and the colleagues below */
.rsx .rs-hpc .rs-hpcsub { position: absolute; top: 40px; left: 18px; text-align: left; font-size: 19px; color: var(--k-muted); line-height: 1.25; }
.rsx .rs-remote code { font-size: 0.9em; }
.rsx .rs-mlogo { flex: none; height: 32px; width: auto; }
.rsx .rs-gitea > b { gap: 8px; }
.rsx .rs-gitea img { height: 34px; width: auto; }
.rsx .rs-gitea img + img { height: 30px; margin-right: 6px; }
/* Arrow labels */
.rsx > .al code { font-size: 0.95em; }
.rsx > .al .muted { font-size: 17px; }
.rsx > .al.narrow { font-size: 17px; }
/* The popups: the file name as heading, four excerpts in a 2 × 2 grid */
.k-scene .rs-chip.k-popup-open { display: block; height: auto; padding: 34px 44px; background: var(--k-card); text-align: left; }
.rs-chip.k-popup-open > code { font-size: 46px; }
.rs-chip.k-popup-open > span { margin-left: 18px; font-size: 32px; color: var(--k-accent); font-weight: 700; }
.k-scene .rs-ex p.rs-exsub { margin: 6px 0 22px; font-size: 26px; color: var(--k-muted); }
.rs-exgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.rs-exgrid > div { padding: 18px 24px; border-radius: var(--k-radius); background: var(--us-anthrazit-20); font-family: var(--k-font-mono); }
.k-scene .rs-exgrid h4 { margin: 0 0 8px; font-size: 26px; color: var(--k-accent); }
.k-scene .rs-exgrid ul, .k-scene .rs-exgrid ol { margin: 0; padding-left: 1.2em; }
.k-scene .rs-exgrid li { font-size: 23px; line-height: 1.3; margin: 4px 0; white-space: normal; color: var(--k-fg); }
.rs-exgrid li code { font-size: 0.95em; font-weight: 400; color: var(--k-fg); width: auto; }

/* Slide "A typical workflow": supervisor left, the scaffold files in the
   middle as the interface, the agent's loop right. Canvas coordinates inside
   a 1680×670 box; every file row (y centres 85 … 625, step 135) has straight
   horizontal arrows to the supervisor and to the agent's frame. */
.wfx { margin-top: -24px; margin-bottom: -94px; transform: scale(0.86); transform-origin: 50% 0; }
.wfx > .node > b { font-size: inherit; }
.wfx > .node > span, .wfx > .al { line-height: inherit; }
.wfx > .wf-sup { gap: 26px; }
.wfx > .wf-sup > b { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 30px; margin-bottom: 10px; }
.wfx > .wf-sup > span { font-size: 24px; }
.wfx > .node > span b { color: var(--k-fg); }
.wfx > .wf-head { width: 350px; text-align: center; font-size: 22px; font-weight: 700; }
.wfx > .node code { font-size: 21px; font-weight: 700; color: var(--k-fg); }
.wfx > .wf-file > span { font-size: 19px; margin-top: 2px; }
.wfx > .wf-agent > .label { display: flex; align-items: center; gap: 8px; line-height: inherit; }
.wf-agent svg.glyph { width: 28px; height: 28px; }
.wfx > .wf-step { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding-left: 22px; text-align: left; font-size: 23px; line-height: 1.2; }
.wfx > .wf-step > span { font-size: inherit; color: var(--k-fg); }
.wf-step svg.glyph { width: 34px; height: 34px; }
.wfx > .wf-mid > b { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; color: var(--k-accent); }
.wfx > .wf-mid > span { font-size: 21px; line-height: 1.25; margin-top: 2px; }
.wfx svg.glyph.wf-rep { width: 36px; height: 36px; }
.wfx > .wf-recs { font-size: 21px; font-weight: 700; }
.wfx > .node.wf-rec { background: var(--k-warn-10); }
.wfx > .wf-rec > span { font-size: 18px; }
.wfx > .al.c, .wfx > .al.muted { font-size: 18px; }
.wfx > .al.muted { color: var(--k-muted); }
#workflow .bottomline { margin-top: 34px; }
#einstein, #workflow { --k-arrow-head: 0.7; }
/* The frame that carries the popup's look while it grows and shrinks must be
   able to reach the chip's 38 px height: no padding on it (the padding of the
   open box would otherwise hold it at about 72 px until the end, then jump). */
.k-scene .rs-chip.k-popup-frame { padding: 0; }
/* The ≠ between the photos: a fixed row, the symbol centred in it as a block
   (inline, the formula sits on the text baseline and hangs low). */
.k-scene .goal .tvse .neq { display: flex; align-items: center; justify-content: center; height: 90px; margin: 0; }
.goal .tvse .neq > * { display: block; margin: 0 !important; }
.goal .tvse .neq mjx-container { display: flex !important; }
.goal .tvse .neq svg { display: block; vertical-align: 0 !important; }

/* Slide "Research projects" (two pages, one research example each): the goal,
   number tiles and who did what left, the result right, and a foot row with
   the bottom line and the paper's badge. Each page is a column down to the
   footnotes; the free height goes between the blocks. */
#paper .page { display: flex; flex-direction: column; padding-bottom: 150px; }
.excols { grid-template-columns: 1fr 820px; gap: 60px; align-items: stretch; flex: 1; }
.excols > div:first-child { display: flex; flex-direction: column; justify-content: space-around; }
.k-scene .excols p.exq { margin: 0; font-size: 32px; line-height: 1.3; }
.exq .muted { font-size: 26px; }
/* Agents | Physicists */
.exroles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.exroles > div { padding: 14px 18px; }
.k-scene .exroles h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 28px; }
.exroles .ag h3 { color: var(--k-accent); }
.exroles h3 svg.glyph { width: 32px; height: 32px; }
.exroles .hu h3 svg.glyph { stroke: var(--k-fg); }
.k-scene .exroles ul { margin: 0; }
.k-scene .exroles li { font-size: 25px; line-height: 1.25; margin: 5px 0; white-space: nowrap; }
.k-scene figure.exfig { margin: 0; align-self: center; }
.exfig img { display: block; width: 820px; }
.k-scene .exfig figcaption { font-size: 22px; color: var(--k-muted); margin-top: 8px; text-align: center; }
/* The paper badges; the first opens the paper's note on AI usage verbatim. */
#paper .badge .with-glyph { gap: 12px; }
#paper .badge .logo { height: 36px; }
.k-scene .quote-popup.k-popup-open > .with-glyph { font-size: 34px; font-weight: 700; margin-bottom: 26px; color: var(--k-muted); }
.quote-popup.k-popup-open .logo { height: 40px; }
.k-scene .quote-popup h4.aiq-head { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: 46px; }
.quote-popup h4.aiq-head svg.glyph { width: 52px; height: 52px; }
.k-scene .quote-popup blockquote { margin: 0; padding-left: 30px; border-left: 6px solid var(--k-accent); font-size: 38px; line-height: 1.45; }
.k-scene .quote-popup p.aiq-src { margin: 26px 0 0; font-size: 24px; color: var(--k-muted); }

/* End slide: the second link (living documentation of the AI projects) with an open book. */
.k-scene[data-layout="end"] .link.docs { --k-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5c2.8-1.4 5.8-1.4 9 .8 3.2-2.2 6.2-2.2 9-.8v13c-2.8-1.4-5.8-1.4-9 .8-3.2-2.2-6.2-2.2-9-.8z'/%3E%3Cpath d='M12 6.3v13'/%3E%3C/svg%3E"); }
