/* Just Enough AI deck • FIELD STATION design system v0.2 • stage 1920 x 1080
   Tokens follow research/fs-ds2/Field Station Design System/colors_and_type.css one to one
   (short names here, --fs-* aliases below). Plex Mono 400/500/600 marks the system layer;
   Plex Sans 400/600 is for reading. */

@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; src: url('assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }
/* Arrows and other symbols (→ ↗ ←) from IBM's Pi subset, so the glyph set renders in Plex Mono */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; src: url('assets/fonts/IBMPlexMono-Regular-Pi.woff2') format('woff2'); unicode-range: U+2190-21FF, U+2022, U+00D7; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; src: url('assets/fonts/IBMPlexMono-Medium-Pi.woff2') format('woff2'); unicode-range: U+2190-21FF, U+2022, U+00D7; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; src: url('assets/fonts/IBMPlexMono-SemiBold-Pi.woff2') format('woff2'); unicode-range: U+2190-21FF, U+2022, U+00D7; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink: #2E3440;
  --ink-soft: #3B4252;
  --muted: #4C566A;
  --paper: #FCFCFD;
  --shade: #ECEFF4;
  --line: #D8DEE9;
  --accent: #5E81AC;
  --accent-bright: #81A1C1;
  --accent-pale: #88C0D0;
  --green: #A3BE8C;   /* signal: success, done */
  --yellow: #EBCB8B;  /* signal: caution, in progress */
  --orange: #D08770;  /* signal: warning */
  --red: #BF616A;
  --violet: #B48EAD;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --tracking-display: -0.02em;
  --tracking-label: 0.08em;
  --gutter: 120px;
  --foot: 64px;
  --caption: 48px;    /* plate caption strip under each photograph */

  /* the system's own names, so this file reads against colors_and_type.css */
  --fs-ink: var(--ink); --fs-ink-soft: var(--ink-soft); --fs-muted: var(--muted);
  --fs-line: var(--line); --fs-paper-shade: var(--shade); --fs-paper: var(--paper);
  --fs-accent: var(--accent); --fs-accent-bright: var(--accent-bright); --fs-accent-pale: var(--accent-pale);
  --fs-tracking-display: var(--tracking-display); --fs-tracking-label: var(--tracking-label);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }
body { overflow: hidden; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 600; }
::selection { background: var(--accent-pale); color: var(--ink); }

/* ---------- Stage ---------- */
#viewport { position: fixed; inset: 0; background: var(--paper); }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--paper);
}
.slide {
  position: absolute; inset: 0;
  width: 1920px; height: 1080px;
  background: var(--paper);
  display: none;
  overflow: hidden;
}
.slide.active { display: block; }

/* ---------- Metadata separator (the system's •) ---------- */
.sep { margin: 0 0.6em; color: var(--muted); }

/* ---------- Footer: metadata left, pager right ---------- */
.foot {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font: 400 18px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted);
  z-index: 5;
}
.foot .n b { font-weight: 500; color: var(--ink); }

/* ---------- Content frame ---------- */
.content {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 88px; bottom: calc(var(--foot) + 64px);
}

/* ---------- Type ---------- */
.kicker {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  font: 500 24px/1.2 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 24px;
}
.kicker b { font-weight: 500; color: var(--ink-soft); margin-right: 0.6em; }
h1 { margin: 0; font-family: var(--mono); color: var(--ink); }
h1 { font-weight: 600; font-size: 76px; line-height: 1.08; letter-spacing: var(--tracking-display); margin-top: 28px; text-wrap: balance; }
h1.sm { font-size: 64px; }
h1.xl { font-size: 104px; line-height: 1.04; }
/* The headline move: load-bearing words carry the weight, connective words step back */
h1 .lo { font-weight: 400; color: var(--muted); }
p, li { font-size: 36px; line-height: 1.4; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.lede { font-size: 40px; line-height: 1.38; color: var(--ink-soft); }
.small { font-size: 30px; line-height: 1.4; }
/* Off-site link: accent, with the system's ↗ */
.url { font: 400 24px/1.3 var(--mono); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.url::after { content: "\00a0\2197"; }
.note { font: 400 20px/1.45 var(--mono); color: var(--muted); }
.label {
  font: 500 20px/1.2 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted);
}
.stack > * + * { margin-top: 28px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 14px 7px;
  font: 500 20px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--ink); background: var(--paper);
}
.tag.solid { background: var(--ink); color: var(--paper); }
.tag.dashed { border-style: dashed; }  /* "eventually": the deck's one dashed encoding, on slides 2, 6 and 11 */

/* ---------- Browser frames (screenshots are evidence: they keep their colour) ---------- */
.frame { position: relative; border: 1px solid var(--ink); background: var(--paper); }
.frame .bar {
  height: 44px; display: flex; align-items: center; gap: 18px;
  padding: 0 16px; border-bottom: 1px solid var(--ink);
  background: var(--paper);
  font: 400 18px/1 var(--mono); color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.frame .bar .dots { display: flex; gap: 6px; flex: none; }
.frame .bar .dots i { width: 10px; height: 10px; border: 1px solid var(--ink); display: block; }
.frame .bar .addr { flex: 1; border: 1px solid var(--line); padding: 5px 10px 4px; background: var(--shade); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.frame .view { overflow: hidden; position: relative; background: var(--paper); }
.frame .view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame .flag { position: absolute; top: -1px; left: -1px; z-index: 2; }

/* ---------- Photographs: duotone plates (build/plates.py), captioned like a plate ---------- */
.bleed {
  position: absolute; left: 0; top: 0; right: 0; bottom: var(--foot); margin: 0;
  overflow: hidden; background: var(--paper);
}
/* Each plate is cut to the exact pixels it fills, so nothing is rescaled here */
.bleed > img { display: block; width: 100%; height: calc(100% - var(--caption)); object-fit: cover; }
.bleed.right { left: auto; width: 864px; box-sizing: content-box; border-left: 1px solid var(--ink); }
.bleed.left { right: auto; width: 864px; box-sizing: content-box; border-right: 1px solid var(--ink); }
.bleed figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--caption);
  padding: 0 32px; border-top: 1px solid var(--ink); background: var(--paper);
  font: 400 20px/47px var(--mono); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bleed.full figcaption { padding-left: var(--gutter); }
.bleed figcaption .pl { font: 500 24px/1 var(--mono); color: var(--accent); margin-right: 0.6em; }
.bleed .tag { position: absolute; top: 76px; left: 40px; font-size: 22px; }
.panel {
  position: absolute; background: var(--paper); border: 1px solid var(--ink);
  padding: 40px 48px 44px;
}

/* ---------- Diagrams (inline SVG) ---------- */
.diagram svg { display: block; width: 100%; height: auto; }
.diagram.fit { position: absolute; left: var(--gutter); right: var(--gutter); top: 156px; bottom: 76px; }
.diagram.fit svg { width: 100%; height: 100%; }
.diagram.fill svg { width: 100%; height: 100%; }

/* ---------- Layout helpers ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }

/* ---------- Title slide: mark beside the type wordmark ---------- */
.mast { display: flex; align-items: center; gap: 22px; }
.mast img { width: 76px; height: 76px; display: block; }
.wordmark { font: 500 34px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.wordmark .mark { font-size: 24px; letter-spacing: var(--tracking-label); color: var(--accent); margin-left: 0.75em; }
.mast .sub { font: 400 18px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Figures (backup I) ---------- */
.stat { border-top: 1px solid var(--ink); padding-top: 22px; }
.stat .n { font: 600 104px/1 var(--mono); letter-spacing: var(--tracking-display); color: var(--ink); }
.stat .n small { font-size: 0.5em; letter-spacing: 0; margin-left: 0.08em; }
.stat p { margin-top: 18px; font-size: 28px; line-height: 1.3; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- Bars (EcoLogits, slide 12): ink bars, length carries the value ---------- */
.bars { display: grid; grid-template-columns: 170px 1fr; row-gap: 18px; column-gap: 24px; align-items: center; }
.bars .who { font: 500 26px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink); }
.bars .track { position: relative; height: 64px; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; border: 1px solid var(--ink); }
.bars .val { position: absolute; top: 50%; transform: translateY(-50%); font: 600 34px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.co2 sub, sub.co2 { font-size: 0.62em; vertical-align: -0.2em; line-height: 0; }

/* ---------- Dark slide: the system's dark tokens, scoped ---------- */
.slide.dark, .slide-mini.dark {
  --ink: #ECEFF4; --ink-soft: #D8DEE9; --muted: #9AA5B8;
  --line: #3B4252; --shade: #3B4252; --paper: #2E3440;
  --accent: #88C0D0; --accent-bright: #8FBCBB; --accent-pale: #81A1C1;
  background: var(--paper); color: var(--ink);
}
.q-small { margin-top: 56px; font: 400 44px/1.3 var(--mono); color: var(--ink-soft); }
.q-small b { color: var(--ink); }

blockquote { margin: 0; border-left: 2px solid var(--accent); padding: 4px 0 4px 32px; }
blockquote p { font-family: var(--sans); font-size: 40px; line-height: 1.35; color: var(--ink-soft); }
blockquote cite { display: block; margin-top: 18px; font: 500 20px/1.3 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; font-style: normal; color: var(--muted); }

.credits { padding: 0; margin: 0; }
.credits li { font-size: 24px; line-height: 1.45; padding: 10px 0; border-top: 1px solid var(--line); list-style: none; }
.credits li b { color: var(--ink); }
.credits .pl { font: 500 24px/1 var(--mono); color: var(--accent); margin-right: 0.6em; }

/* ---------- Print: one slide per page ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { height: auto; overflow: visible; background: var(--paper); }
  #viewport { position: static; }
  #stage { position: static; transform: none !important; width: 1920px; height: auto; overflow: visible; }
  .slide { display: block !important; position: relative; break-after: page; page-break-after: always; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Closing question ---------- */
h1.q { font-weight: 400; color: var(--muted); }
h1.q b { font-weight: 600; color: var(--ink); }

/* ---------- Audience-window helpers ---------- */
#blank { position: fixed; inset: 0; background: var(--ink); z-index: 50; display: none; }
#blank.on { display: block; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: 420px; background: var(--paper); border: 1px solid var(--ink); padding: 12px 16px; font: 400 15px/1.4 var(--mono); color: var(--ink); display: none; }
#toast.on { display: block; }
body.idle, body.idle * { cursor: none !important; }
/* Keyboard shortcuts panel (H) */
#help { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(46, 52, 64, 0.55); padding: 16px; box-sizing: border-box; }
#help.on { display: flex; } #help:focus { outline: none; }
#help .help-panel { background: var(--paper); border: 1px solid var(--ink); padding: 24px 28px 20px; max-width: 560px; width: 100%; max-height: 100%; overflow: auto; box-sizing: border-box; color: var(--ink); }
#help .help-t { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 500 15px/1.2 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; }
#help dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; align-items: center; }
#help dt { display: flex; gap: 6px; flex-wrap: wrap; }
#help dd { margin: 0; font: 400 16px/1.35 var(--sans); }
#help kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: 4px 7px 3px; border: 1px solid var(--ink); background: var(--shade); font: 500 14px/1 var(--mono); }
#help .help-x { margin: 18px 0 0; font: 400 13px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
@media print { #blank, #toast, #help { display: none !important; } }

/* ---------- Backup slides (after Questions, only if asked) ----------
   A shaded band with an ink rule; the caution signal is a square mark, never a fill behind text */
.slide.spare::before, .slide-mini.spare::before {
  content: "Backup \2022  if asked";
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 6;
  display: flex; align-items: center; padding-left: calc(var(--gutter) + 34px);
  background: var(--shade); border-bottom: 1px solid var(--ink); color: var(--ink);
  font: 500 20px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase;
  white-space: pre;
}
.slide.spare::after, .slide-mini.spare::after {
  content: ""; position: absolute; top: 17px; left: var(--gutter); width: 18px; height: 18px; z-index: 7;
  background: var(--yellow); outline: 1px solid var(--ink); outline-offset: -1px;
}

/* ---------- Bearing (slide 9): the task typed in, and the result ---------- */
.ask { margin-top: 14px; background: var(--shade); border: 1px solid var(--ink); padding: 22px 26px; font-size: 32px; line-height: 1.35; color: var(--ink); }
table.scores { width: 100%; border-collapse: collapse; margin-top: 26px; }
.scores th { font: 500 20px/1.2 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); text-align: right; padding: 0 0 12px 24px; border-bottom: 1px solid var(--ink); }
.scores th:first-child { text-align: left; padding-left: 0; }
.scores td { font: 400 30px/1.2 var(--sans); color: var(--ink); padding: 14px 0 14px 24px; border-bottom: 1px solid var(--ink); text-align: right; }
.scores td:first-child { text-align: left; padding-left: 0; }
.scores td + td { font: 600 34px/1.2 var(--mono); }
.scores td small { font: 500 20px/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin-left: 10px; }

/* ---------- Content-type label (the system's EXPERIMENT, FIELD NOTE...) ---------- */
.type { font: 500 24px/1.2 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink); }

/* ---------- Builds (deck.js adds .builds; print and the PDF show every slide complete) ---------- */
.builds .slide [data-step] { transition: opacity 0.4s ease-out, visibility 0.4s; }
.builds .slide [data-step]:not(.on) { opacity: 0; visibility: hidden; }
.builds .slide .track[data-step] .fill { transform-origin: left center; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.builds .slide .track[data-step]:not(.on) .fill { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .builds .slide [data-step], .builds .slide .track[data-step] .fill { transition: none; }
}
@media print {
  .builds .slide [data-step] { opacity: 1 !important; visibility: visible !important; }
  .builds .slide .track[data-step] .fill { transform: none !important; }
}

/* Slide 6: the chat box’s cursor blinks, like a real input waiting for you */
@keyframes caret-blink { 50% { opacity: 0; } }
.slide.active .caret { animation: caret-blink 1.06s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .slide.active .caret { animation: none; } }

/* Bearing data: the job squares appear column by column; the ones that can wait are outlines throughout */
.builds .slide .cascade[data-step] { opacity: 1; visibility: visible; }
.builds .slide .cascade rect { transition: opacity 0.25s ease-out calc(var(--d) * 22ms); }
.builds .slide .cascade:not(.on) rect { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .builds .slide .cascade rect { transition: none; } }
@media print { .builds .slide .cascade rect { opacity: 1 !important; } }

/* Slide 13 (SWARM): the model’s parts drop into the devices, then the question runs along them */
.builds .slide .swarm-chips[data-step] { opacity: 1; visibility: visible; }
.builds .slide .swarm-chips .drop { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) * 40ms), opacity 0.3s ease-out calc(var(--d) * 40ms); }
.builds .slide .swarm-chips:not(.on) .drop { transform: translateY(-60px); opacity: 0; transition: none; }
.builds .slide .swarm-flow .flow { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease-in-out calc(var(--d) * 0.3s); }
.builds .slide .swarm-flow .flow.long { transition-duration: 0.9s; transition-timing-function: linear; }
.builds .slide .swarm-flow:not(.on) .flow { stroke-dashoffset: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .builds .slide .swarm-chips .drop, .builds .slide .swarm-flow .flow { transition: none; } }
@media print { .builds .slide .swarm-chips .drop { transform: none !important; opacity: 1 !important; } .builds .slide .swarm-flow .flow { stroke-dashoffset: 0 !important; } }

/* ---------- Backup grid (after Questions): live copies of the backup slides, click to open ---------- */
.thumbs { display: grid; grid-template-columns: repeat(var(--cols, 4), var(--tw, 373px)); justify-content: space-between; gap: 32px 0; margin-top: 26px; }
.thumb { all: unset; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.thumb .pic { position: relative; width: var(--tw, 373px); height: calc(var(--tw, 373px) * 0.5625); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.thumb .pic .slide-mini { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: var(--paper); transform: scale(0.19427); transform-origin: 0 0; pointer-events: none; }
.thumb .cap { font: 400 22px/1.2 var(--sans); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .cap b { font: 500 22px/1.2 var(--mono); color: var(--accent); margin-right: 0.5em; }
.thumb:hover .pic, .thumb:focus-visible .pic { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: -1px; }
.thumb:hover .cap, .thumb:focus-visible .cap { color: var(--ink); }
/* A light backup inside the dark grid slide takes the light tokens back */
.slide-mini:not(.dark) {
  --ink: #2E3440; --ink-soft: #3B4252; --muted: #4C566A;
  --paper: #FCFCFD; --shade: #ECEFF4; --line: #D8DEE9;
  --accent: #5E81AC; --accent-bright: #81A1C1; --accent-pale: #88C0D0;
  color: var(--ink);
}

/* ---------- Slide 6: the chat box answers like a chatbot ----------
   Step 1 sends the question, step 2 shows the answer box with typing dots, step 3 streams the answer
   line by line and the cursor blinks at the end. Complete when going back, by address, reduced motion or print. */
.slide .typing { display: none; }
.slide[data-at="2"] .typing { display: inline; }
.slide.active .typing rect { animation: typing-dot 0.9s ease-in-out calc(var(--d) * 0.15s) infinite; }
@keyframes typing-dot { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.builds .slide .stream[data-step] { opacity: 1; visibility: visible; }
.builds .slide .stream line { transform-box: fill-box; transform-origin: left center; transition: transform 0.5s linear calc(var(--d) * 0.5s); }
.builds .slide .stream:not(.on) line { transform: scaleX(0); transition: none; }
.builds .slide .stream:not(.on) .cur { opacity: 0; }
.builds .slide .stream.on .cur { transition: opacity 0s 2s; }
.slide.active .stream.on .cur { animation: caret-blink 1.06s steps(1) 2s infinite; }
/* the running job's bar creeps forward while the slide is up */
.slide.active .creep { transform-box: fill-box; transform-origin: left center; animation: creep 30s ease-out both; }
@keyframes creep { from { transform: scaleX(0.6); } to { transform: scaleX(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .builds .slide .stream line, .builds .slide .stream .cur { transition: none; }
  .slide.active .typing rect, .slide.active .stream.on .cur, .slide.active .creep { animation: none; }
}
@media print { .slide .typing { display: none !important; } .builds .slide .stream line { transform: none !important; } .builds .slide .stream .cur { opacity: 1 !important; } .slide .creep { animation: none !important; } }

/* ---------- Slide 7: the job is typed into Bearing's box ----------
   Each line of the screenshot is covered by a mask in the box's own colour, which shrinks one character
   at a time from the left, with a caret on its edge. Complete when going back, by address, reduced motion or print. */
.view { position: relative; }
.typed { position: absolute; inset: 0; pointer-events: none; }
html:not(.builds) .typed { display: none; } /* e.g. the notes window: show the finished screenshot */
.typed .ln { position: absolute; display: block; background: #FBFBFC; border-left: 2px solid transparent; box-sizing: border-box; }
.builds .slide .typed[data-step] { opacity: 1; visibility: visible; }
.builds .slide .typed.on .ln { width: 0 !important; transition: width var(--t) steps(var(--n), end) var(--d); }
/* the caret shows only while the line is being typed, on a forward play */
.slide.playing .typed.on .ln { animation: typed-caret var(--t) linear var(--d); }
@keyframes typed-caret { from, to { border-left-color: #1F2D4A; } }
@media (prefers-reduced-motion: reduce) { .builds .slide .typed.on .ln { transition: none; animation: none; } }
@media print { .typed .ln { display: none !important; } }

/* ---------- Slide 9: each job and Bearing's pick slide in, one row at a time ---------- */
.builds .slide .b9row[data-step] { transition: opacity 0.45s ease-out, visibility 0.45s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.builds .slide .b9row[data-step]:not(.on) { transform: translateX(-40px); transition: none; }
@media (prefers-reduced-motion: reduce) { .builds .slide .b9row[data-step] { transition: none; transform: none; } }
@media print { .builds .slide .b9row[data-step] { transform: none !important; } }

/* A key named on a slide (slide 1: press H) */
.key { display: inline-block; min-width: 1.4em; text-align: center; padding: 2px 6px 1px; border: 1px solid currentColor; font: 500 0.9em/1 var(--mono); }

/* Slide 6: the background side waits until the chat answer has finished streaming */
.builds .slide .bg-side[data-step].on { transition-delay: 1.3s; }
.slide:not(.playing) .bg-side[data-step].on { transition-delay: 0s; }
.slide.active .bg-side .creep { animation-delay: 5.5s; }
.slide.active:not(.playing) .bg-side .creep { animation-delay: 0s; }

/* Slide 7: the steps on the left follow the typing; step 2's tags pop in one by one */
.builds .slide .s7late[data-step].on { transition-delay: 3.6s; }
.builds .slide .s7late .tags4 .tag { transition: opacity 0.3s ease-out calc(3.9s + var(--d) * 0.15s), transform 0.3s ease-out calc(3.9s + var(--d) * 0.15s); }
.builds .slide .s7late:not(.on) .tags4 .tag { opacity: 0; transform: translateY(8px); transition: none; }
.slide:not(.playing) .s7late[data-step].on, .slide:not(.playing) .s7late .tags4 .tag { transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { .builds .slide .s7late .tags4 .tag { transition: none; } }
@media print { .builds .slide .s7late .tags4 .tag { opacity: 1 !important; transform: none !important; } }

/* ---------- Slide 10: "layers" is laid down in bands, bottom first, like sediment ---------- */
.strata-word { position: relative; display: inline-block; }
.strata-word .ghost { visibility: hidden; }
.strata-word .band { position: absolute; left: 0; top: 0; }
.builds .slide .strata-word[data-step] { opacity: 1; visibility: visible; }
.builds .slide .strata-word .band { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.28s), opacity 0.3s ease-out calc(var(--i) * 0.28s); }
.builds .slide .strata-word:not(.on) .band { transform: translateY(-48px); opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .builds .slide .strata-word .band { transition: none; } }
@media print { .builds .slide .strata-word .band { transform: none !important; opacity: 1 !important; } }


.thumbs.dense .thumb .cap, .thumbs.dense .thumb .cap b { font-size: 19px; }
.thumbs.dense { gap: 24px 0; }
.thumbs.roomy { justify-content: start; gap: 36px 96px; margin-top: 40px; }
.thumbs.roomy .thumb .cap, .thumbs.roomy .thumb .cap b { font-size: 26px; }

/* Version on the title slide footer, kept lower case */
.foot .deck-version { text-transform: none; }

/* ---------- Web version only: the Bristol24/7 report in place of the mural photo ---------- */
.bleed.news { background: var(--shade); padding: 72px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.bleed.news .view { overflow: hidden; }
.bleed.news .view img { display: block; width: 100%; height: auto; }
.bleed.news a { color: inherit; }
.slide.spare::before, .slide-mini.spare::before { content: "Backup"; }
