@hypersocial/decks-cli 0.9.23 → 0.9.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/package.json +1 -1
  2. package/skills/hyperdecks/SKILL.md +113 -67
  3. package/skills/hyperdecks/chat.md +11 -8
  4. package/skills/hyperdecks/terminal.md +82 -0
  5. package/src/bars.mjs +268 -0
  6. package/src/brand.mjs +51 -8
  7. package/src/check.mjs +311 -15
  8. package/src/checkRules.mjs +616 -27
  9. package/src/commands.mjs +157 -28
  10. package/src/deckSlug.mjs +41 -0
  11. package/src/export-video.mjs +20 -3
  12. package/src/files.mjs +35 -0
  13. package/src/guide.mjs +91 -13
  14. package/src/hosted.mjs +18 -8
  15. package/src/iconAliasNames.mjs +70 -0
  16. package/src/iconChoice.mjs +97 -0
  17. package/src/iconSets.mjs +89 -0
  18. package/src/iconSlots.mjs +48 -0
  19. package/src/icons.mjs +285 -45
  20. package/src/iconsCli.mjs +76 -0
  21. package/src/layoutRoutes.mjs +92 -0
  22. package/src/layouts.mjs +4 -4
  23. package/src/mediaPreviews.mjs +3 -1
  24. package/src/narrate.mjs +31 -4
  25. package/src/opening.mjs +9 -3
  26. package/src/ops.mjs +49 -0
  27. package/src/photosGuide.mjs +47 -0
  28. package/src/picturesGuide.mjs +53 -0
  29. package/src/play.mjs +3 -2
  30. package/src/presenter.mjs +3 -1
  31. package/src/release.mjs +13 -5
  32. package/src/runtime.mjs +9 -2
  33. package/src/scaffold.mjs +73 -13
  34. package/src/source.mjs +86 -14
  35. package/src/stockMedia.mjs +299 -0
  36. package/src/themeCli.mjs +41 -0
  37. package/src/themes.mjs +345 -0
  38. package/templates/icons/material.LICENSE +202 -0
  39. package/templates/icons/material.json.gz +0 -0
  40. package/templates/icons/phosphor.LICENSE +21 -0
  41. package/templates/icons/phosphor.json.gz +0 -0
  42. package/templates/icons/tabler.LICENSE +21 -0
  43. package/templates/icons/tabler.json.gz +0 -0
  44. package/templates/layouts/_deck.html +177 -36
  45. package/templates/layouts/bento.html +75 -0
  46. package/templates/layouts/chart.html +6 -4
  47. package/templates/layouts/closer.html +10 -3
  48. package/templates/layouts/compare.html +13 -4
  49. package/templates/layouts/cover-band.html +10 -8
  50. package/templates/layouts/cover-frame.html +9 -7
  51. package/templates/layouts/cover-poster.html +8 -5
  52. package/templates/layouts/cover-split.html +7 -6
  53. package/templates/layouts/cover-type.html +1 -0
  54. package/templates/layouts/features.html +9 -7
  55. package/templates/layouts/funnel.html +60 -0
  56. package/templates/layouts/hero.html +40 -22
  57. package/templates/layouts/lanes.html +63 -0
  58. package/templates/layouts/loop.html +81 -0
  59. package/templates/layouts/number.html +2 -1
  60. package/templates/layouts/phone-stage.html +68 -0
  61. package/templates/layouts/phones.html +1 -0
  62. package/templates/layouts/picture-full.html +48 -0
  63. package/templates/layouts/portrait.html +45 -0
  64. package/templates/layouts/product.html +7 -6
  65. package/templates/layouts/quote.html +2 -1
  66. package/templates/layouts/rail.html +71 -0
  67. package/templates/layouts/scorecard.html +70 -0
  68. package/templates/layouts/screens.html +85 -0
  69. package/templates/layouts/sentence.html +39 -0
  70. package/templates/layouts/split.html +22 -7
  71. package/templates/layouts/spotlight.html +77 -0
  72. package/templates/layouts/stack.html +83 -0
  73. package/templates/layouts/staircase.html +76 -0
  74. package/templates/layouts/strike.html +46 -0
  75. package/templates/layouts/tap-through.html +73 -0
  76. package/templates/layouts/team.html +3 -2
  77. package/templates/layouts/timeline.html +16 -6
  78. package/templates/layouts/two-bars.html +53 -0
  79. package/templates/layouts/two-by-two.html +71 -0
  80. package/templates/layouts/video-beats.html +66 -0
  81. package/templates/layouts/video-full.html +62 -0
  82. package/templates/layouts/wall.html +81 -0
  83. package/templates/layouts/zoom.html +144 -0
  84. package/templates/narrated-deck.html +12 -7
  85. package/templates/script.md +2 -2
  86. /package/templates/icons/{LICENSE → lucide.LICENSE} +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2026 Paweł Kuna
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
Binary file
@@ -91,13 +91,15 @@ if(self!==top||/[?&](thumb|export)\b/.test(location.search))return;
91
91
  function go(){if(d.readyState==="loading")return;d.removeEventListener("readystatechange",go);
92
92
  var b=d.body,p=d.querySelector('script[src*="/player/v"][src*="/player.js"]');
93
93
  if(!b||!p||d.getElementById("hd-open")||b.hasAttribute("data-hd-ready")||d.documentElement.hasAttribute("data-hyperdecks-thumb"))return;
94
- var o=d.createElement("div"),img=p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
94
+ var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")==="hide"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
95
+ var o=d.createElement("div"),img=!mute&&p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
95
96
  o.id="hd-open";o.setAttribute("aria-hidden","true");
96
97
  o.innerHTML='<div class="hdo-slide"></div><div class="hdo-card">'+(img?"<div class=\"hdo-buddy\"><div class=\"hdo-hop\"><div class=\"hdo-look\"><img src=\"\" alt=\"\"></div></div><div class=\"hdo-shadow\"></div><div class=\"hdo-think\"><i></i><i></i><i></i></div><span class=\"hdo-spark\" style=\"--x:-40px;--y:-30px\"></span><span class=\"hdo-spark\" style=\"--x:42px;--y:-34px\"></span><span class=\"hdo-spark\" style=\"--x:-30px;--y:10px\"></span><span class=\"hdo-spark\" style=\"--x:36px;--y:6px\"></span><span class=\"hdo-spark\" style=\"--x:0px;--y:-46px\"></span></div>":'')+'<div class="hdo-title"></div><div class="hdo-bar"><i></i></div><div class="hdo-step"></div></div>';
97
98
  if(img){var i=o.querySelector(".hdo-buddy img");i.addEventListener("error",function(){var y=o.querySelector(".hdo-buddy");if(y)y.remove()});i.src=img}
98
99
  o.querySelector(".hdo-title").textContent=(d.title||"").replace(/\s+/g," ").trim();
99
100
  b.insertBefore(o,b.firstChild);(function(o){var b=document.body,d=document.documentElement;if(!o||!b)return;
100
101
  if(self!==top||/[?&](thumb|export)\b/.test(location.search)||d.hasAttribute("data-hyperdecks-thumb")){o.remove();return}
102
+ var pic=o.querySelector(".hdo-slide img");if(pic){if(/^#(scene=|(?!1$)\d+$)/.test(location.hash||""))pic.remove();else pic.src=pic.getAttribute("data-src")}
101
103
  var S={"page":[10,"Opening the deck…"],"player":[38,"Loading the player…"],"presenter":[62,"Waking up {name}…"],"narration":[84,"Getting the narration…"]},bar=o.querySelector(".hdo-bar i"),step=o.querySelector(".hdo-step"),who=o.getAttribute("data-name")||"the presenter",at=0,shown=false,done=false,mo;
102
104
  var rm=window.matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches;
103
105
  function boot(){var s=S[b.getAttribute("data-hd-boot")];if(!s||s[0]<=at)return;at=s[0];bar.style.width=s[0]+"%";step.textContent=s[1].split("{name}").join(who)}
@@ -123,27 +125,59 @@ d.addEventListener("readystatechange",go);go()})();</script>
123
125
  --ink: #0b0b0f; --paper: #fafaf7; --accent: #ffda1b; --accent-2: #27ceff; --accent-3: #ff9ec7; --card: #ffffff;
124
126
  --font: "Space Grotesk", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
125
127
  /* The type scale: one display size per slide at most, then title, sub (a title beside a visual), lead, body, label. */
126
- --t-display: 128px; --t-title: 84px; --t-sub: 56px; --t-lead: 30px; --t-body: 24px; --t-label: 17px;
128
+ --t-display: calc(128px * var(--display-scale)); --t-title: calc(84px * var(--display-scale)); --t-sub: calc(56px * var(--display-scale)); --t-lead: 30px; --t-body: 24px; --t-label: 17px;
127
129
  /* The text colour on an accent ground. A brand with a dark accent sets it to its paper. */
128
130
  --accent-ink: var(--ink);
129
131
  --hd-ground: var(--accent); --hd-ground-ink: var(--ink); /* the loading state: the first slide's colours */
130
132
  /* Soft grounds (on-tint, on-tint-2, on-tint-3): washes of the accents, so slide changes read without going loud. */
131
133
  --tint-1: color-mix(in srgb, var(--accent) 18%, var(--paper)); --tint-2: color-mix(in srgb, var(--accent-2) 20%, var(--paper)); --tint-3: color-mix(in srgb, var(--accent-3, var(--accent)) 24%, var(--paper));
134
+ /* The theme (hyperdecks theme list; deck new --theme; theme set swaps these). Every layout
135
+ multiplies these units, so the values below (House) are the template's own look:
136
+ outlines (--line), corners (--round, --round-phone for phones), hard shadows (--drop-*:
137
+ x, y, blur and how much of the colour shows), soft lifts (--lift) and tilt (--tilt-k). */
138
+ --line: 1px; --round: 1px; --round-phone: 1px; --drop-x: 1px; --drop-y: 1px; --drop-blur: 0px; --drop-mix: 100%; --lift: 1px; --tilt-k: 1;
139
+ /* Titles: weight and tracking (above, from the brand), style, case, leading and a size factor on the display, title and sub sizes. */
140
+ --display-style: normal; --display-case: none; --display-leading: .95; --display-scale: 1;
141
+ /* Grounds: what .on-accent and .on-ink paint (a quiet theme maps the accent to a tint), and a texture under every slide. */
142
+ --accent-ground: var(--accent); --ink-ground: var(--ink); --texture: none;
143
+ /* Photos (img.pic, .art, .face, .avatar, .photo; never a .shot or a .clip): a filter and blend; a framed one's mount
144
+ (--photo-card, a border-image --photo-mount wide on the sides and --photo-mount-foot below) and alternating tilt;
145
+ an edge-to-edge one's mask (--photo-edge). Chart marks. The text on an on-ink ground. */
146
+ --photo-filter: none; --photo-blend: normal; --photo-mount: 0px; --photo-mount-foot: 0px; --photo-card: none; --photo-mounted: 0; --photo-window: 0px; --photo-tilt: none; --photo-tilt-2: none; --photo-edge: none;
147
+ /* A screenshot or clip's mat (screens and split's .shot.wide, video-beats' .clip, zoom's screenshot): its thickness, 0px for none. */
148
+ --shot-mat: 0px;
149
+ /* A moving film over the player's stage (Carousel's projector): --film 1 draws it; a grain tile, a dust layer, a flicker. */
150
+ --film: 0; --film-grain: none; --film-dust: none; --film-flicker: 0;
151
+ /* The room's sound (Carousel's projector, the player's sound.js): a click on each slide change and a whir under the narration, each its level (a gain, 0 for off). */
152
+ --projector-click: 0; --projector-whir: 0;
153
+ --bar-round: 10px; --grid: currentColor; --ink-text: var(--paper);
154
+ /* A photo's caption (figure.mount[data-caption]): placed under the picture (static) or on the mount's foot (absolute). */
155
+ --caption-at: static; --caption-gap: 10px; --caption-font: var(--mono); --caption-ink: inherit; --caption-align: start;
156
+ /* The presenter's speech bubble on each ground, its ink, and how much of the ink its outline is. */
157
+ --speech: #f3c9dc; --speech-on-accent: #ffffff; --speech-on-ink: #d9ccff; --speech-on-tint: #ffffff; --speech-ink: #0b0b0f; --speech-edge: 100%;
158
+ /* The player's buttons and end card. */
159
+ --hd-ink: #0b0b0f; --hd-paper: #ffffff; --hd-accent: #ffda1b;
160
+ /* Icons (.icon): the line's weight, the tile behind the icon and the icon's colour (transparent and currentColor:
161
+ a bare icon), the same two on an accent ground or card, the tile's padding (a share of the icon's side) and an
162
+ outline in --line units, a duotone icon's second tone (drawn at 20%), and how much larger features' tile is at the stage. */
163
+ --icon-stroke: 2; --icon-tile: var(--accent); --icon-ink: var(--accent-ink); --icon-tile-accent: var(--card); --icon-ink-accent: var(--ink); --icon-pad: .22; --icon-edge: 2; --icon-duo: currentColor; --icon-on-card: initial; --icon-scale: 1;
132
164
  }
133
165
  * { box-sizing: border-box; margin: 0; padding: 0; }
134
166
  body { color: var(--ink); font-family: var(--font); font-weight: 500; -webkit-font-smoothing: antialiased; --hd-font: var(--font); --hd-mono: var(--mono); }
135
- /* The caption bubble is always a fixed light fill with dark ink, so it reads whatever the
167
+ /* The caption bubble is the theme's light fill with dark ink (--speech*), so it reads whatever the
136
168
  brand's --card or --ink (a dark brand's card is dark). A slide can still set its own. */
137
- .slide { display: flex; flex-direction: column; gap: 24px; padding: 64px 72px 56px; background: var(--paper); color: var(--ink); --hd-speech: #f3c9dc; --hd-speech-ink: #0b0b0f; }
138
- .slide.on-accent { background: var(--accent); color: var(--accent-ink); --hd-speech: #ffffff; }
139
- .slide.on-ink { background: var(--ink); color: var(--paper); --hd-speech: #d9ccff; }
140
- .slide.on-tint { background: var(--tint-1); --hd-speech: #ffffff; }
141
- .slide.on-tint-2 { background: var(--tint-2); --hd-speech: #ffffff; }
142
- .slide.on-tint-3 { background: var(--tint-3); --hd-speech: #ffffff; }
169
+ .slide { display: flex; flex-direction: column; gap: 24px; padding: 64px 72px 56px; background: var(--texture), var(--paper); color: var(--ink); --hd-speech: var(--speech); --hd-speech-ink: var(--speech-ink); }
170
+ .slide.on-accent { background: var(--texture), var(--accent-ground); color: var(--accent-ink); --hd-speech: var(--speech-on-accent); }
171
+ .slide.on-ink { background: var(--texture), var(--ink-ground); color: var(--ink-text); --hd-speech: var(--speech-on-ink); }
172
+ .slide.on-tint { background: var(--texture), var(--tint-1); --hd-speech: var(--speech-on-tint); }
173
+ .slide.on-tint-2 { background: var(--texture), var(--tint-2); --hd-speech: var(--speech-on-tint); }
174
+ .slide.on-tint-3 { background: var(--texture), var(--tint-3); --hd-speech: var(--speech-on-tint); }
175
+ /* The bubble's outline: --speech-edge of its ink over its fill (100%: a hard ink edge; 0%: none). */
176
+ .hd-caption, .hd-guest-bubble { --hd-speech-edge: color-mix(in srgb, var(--hd-speech-text) var(--speech-edge), var(--hd-speech-fill)); }
143
177
  .kicker { font: var(--t-label) var(--mono); letter-spacing: .16em; text-transform: uppercase; }
144
178
  /* Titles take the display face's weight and tracking (brand.mjs sets them for a face the
145
179
  template was not tuned for) and never fake a weight the face lacks. */
146
- .tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-synthesis: none; font-size: var(--t-title); line-height: .95; letter-spacing: var(--display-tracking, -.045em); text-wrap: balance; }
180
+ .tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-style: var(--display-style); text-transform: var(--display-case); font-synthesis: none; font-size: var(--t-title); line-height: var(--display-leading); letter-spacing: var(--display-tracking, -.045em); text-wrap: balance; }
147
181
  .lead { font-size: var(--t-lead); line-height: 1.3; max-width: 28em; text-wrap: pretty; }
148
182
  .muted { opacity: .65; }
149
183
  /* The presenter glides to each slide's slot: bottom-right by default,
@@ -157,6 +191,86 @@ d.addEventListener("readystatechange",go);go()})();</script>
157
191
  no-presenter variant (:root.hd-no-presenter .l-…) uses the corner, and on
158
192
  phones the slide drops its 170px bottom padding (below). Keep custom slides
159
193
  compatible: leave the corner to .narration-slot, no hard-coded right gutter. */
194
+ /* Photos take the theme's treatment; a screenshot or a recording (.shot, .clip) never does. */
195
+ .slide { --mount-side: calc(var(--photo-mount) * var(--mount-k, 1)); --mount-foot: calc(var(--photo-mount-foot) * var(--mount-k, 1)); }
196
+ .slide :is(img.pic, img.art, img.face, img.avatar, img.photo):not(.shot, .clip, [data-as-is]) { filter: var(--photo-filter); mix-blend-mode: var(--photo-blend); }
197
+ /* A picture's corner never eats it: a frame that holds a photo or art rounds at most an eighth of its shorter side,
198
+ a screenshot or clip a sixteenth (its corners hold interface). CSS cannot read a frame's own shorter side for a
199
+ circle, so each layout names the shortest side it draws the frame at (--frame-min, for its ordinary pictures; a
200
+ wide variant such as .art.wide names its own) and caps the theme's corner there:
201
+ border-radius: min(calc(N * var(--round)), var(--frame-min) / 8) (/ 16 for a screenshot or clip). check --layout
202
+ warns past the limit. Phone screens keep a phone's corner; the laptop's screen (a small corner on a large frame) needs no cap. */
203
+ /* A screenshot or clip on a mat: where a theme has one (--shot-mat over 0px: the round themes), the frame is padded
204
+ --mat thick in the theme's card, the roundness on the mat and the screenshot keeping its own small corner (a replaced
205
+ element's content is clipped to its content-box curve), the two curves concentric. Each matted frame names its own
206
+ corner (--shot-corner, capped at a sixteenth of its --frame-min less both sides of the mat, so the cap holds on the screenshot)
207
+ and the mat's outer corner is the mat plus it. On a phone the mat is half as thick. Where --shot-mat is 0px (or the
208
+ browser has no style queries) the frame is as it was: no padding, its own corner. A clip and zoom's screenshot keep
209
+ their shape inside the mat (their layouts). product's browser frame is not matted: its bar is its mat. */
210
+ .slide :is(.l-screens .shot.wide, .l-split .shot.wide, .l-video-beats .clip, .l-zoom .full > .shot) { border-radius: var(--shot-corner); }
211
+ .slide { --mat: 0px; }
212
+ @container not style(--shot-mat: 0px) {
213
+ .slide { --mat: calc(var(--shot-mat, 0px) * var(--mount-k, 1)); }
214
+ .slide :is(.l-screens .shot.wide, .l-split .shot.wide, .l-video-beats .clip, .l-zoom .full > .shot) { padding: var(--mat); background-color: var(--card); border-radius: calc(var(--mat) + var(--shot-corner)); }
215
+ }
216
+ /* A framed photo sits in the theme's mount, inside its own box: the picture shrinks into its padding's window and a
217
+ border-image paints the card in that padding, the foot deeper; where a theme mounts photos (--photo-mounted: 1) the
218
+ picture's corners are rounded to --photo-window (a replaced element's content is clipped to its content-box curve),
219
+ showing the card's rounded window under them. So a mount never grows past the picture's frame into a neighbour or
220
+ the slide's padding. Its tilt alternates among sibling photos and from slide to slide (a figure.mount tilts in its place; portrait keeps its own; the wall, a grid, none). A photo that
221
+ runs to the slide's edge (picture-full and the cover-band, -split and -poster art) has no mount and no tilt:
222
+ --photo-edge masks it. data-as-is on a picture opts it out of the theme's treatment (an illustration whose colour matters). */
223
+ .slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art, img.photo):not(.shot, .clip, [data-as-is]) { padding: var(--mount-side) var(--mount-side) var(--mount-foot); border-image: var(--photo-card); border-image-width: calc(var(--mount-side) / .6) calc(var(--mount-side) / .6) calc(var(--mount-foot) / .8) calc(var(--mount-side) / .6); }
224
+ /* A frame that names no --frame-min keeps the mount's whole window. */
225
+ :where(.slide) :where(img.pic, img.art, img.photo) { --frame-min: 1600px; }
226
+ @container style(--photo-mounted: 1) {
227
+ .slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art, img.photo):not(.shot, .clip, [data-as-is]) { --window: min(var(--photo-window), var(--frame-min) / 8); border-radius: calc(var(--mount-side) + var(--window)) / calc(var(--mount-side) + var(--window)) calc(var(--mount-side) + var(--window)) calc(var(--mount-foot) + var(--window)) calc(var(--mount-foot) + var(--window)); }
228
+ }
229
+ .slide:is(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art):not(.shot, .clip, [data-as-is]) { -webkit-mask-image: var(--photo-edge); mask-image: var(--photo-edge); }
230
+ :where(.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster, .l-portrait, .l-wall)) :is(img.pic, img.art, img.photo, figure.mount):not(.shot, .clip, [data-as-is], .mount > *) { rotate: var(--photo-tilt); }
231
+ :is(:where(.slide:nth-of-type(odd)) :nth-child(even of :is(img.pic, img.art, img.photo, figure.mount)), :where(.slide:nth-of-type(even)) :nth-child(odd of :is(img.pic, img.art, img.photo, figure.mount))):where(.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster, .l-portrait, .l-wall) *):not(.shot, .clip, [data-as-is], .mount > *) { rotate: var(--photo-tilt-2); }
232
+ /* hd-film { (applyTheme carries this block, to the closing marker, into a deck that lacks it or has an older one) */
233
+ /* The film (--film: 1, Carousel's projector): grain and a faint flicker over the whole picture, every slide, its text
234
+ and pictures included, never in the way of a tap. One layer over the player's stage (.hd-stage, which clips it; in scroll mode, where the stage is the
235
+ whole column, each slide carries its own),
236
+ above the slides and their transitions and under the presenter, who is in the room, not on the film; so it runs on
237
+ unbroken through slide changes, as a projector's does. One small tile of grain (pixels, never a filter) jumps
238
+ about in steps, 16 a second, which reads as film, over a faint dark wash that wavers with it (at most
239
+ --film-flicker deep). It is a layer of its own, so a step redraws only the film, never the slides. Both move on
240
+ the page clock, so a video export's clock places every step; the -3.7ms start keeps every step's
241
+ edge at least .4ms from a 24, 30 or 60 fps frame, where a rounding error could pick either side. No script.
242
+ It holds still (grain only: the dust rests off the picture, and no flicker) for reduced motion and in a thumbnail, and in a video export until the recording starts (the
243
+ player puts .hd-rolling on the body at the recorder's go), so it starts on the same frame in every export. */
244
+ @container style(--film: 1) {
245
+ body:not(.hd-scroll) .hd-stage::after, .hd-scroll .hd-stage > .slide::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform; background: var(--film-grain) 0 0 / 128px 128px, var(--film-dust) 0 0 / 200% 200% no-repeat; animation: var(--film-motion, hd-film .5s steps(1, end) -3.7ms infinite); }
246
+ }
247
+ /* Where the film holds still (any mode, whichever element carries it). */
248
+ :is(.hd-thumb, .hd-export:not(.hd-rolling)) { --film-motion: none; }
249
+ @media (prefers-reduced-motion: reduce) { :root { --film-motion: none; } }
250
+ /* A printed deck (the print view, lib/printView.ts) is pages, not a projection: no film. */
251
+ html[data-hd-print] :is(.hd-stage, .hd-stage > .slide)::after { content: none; }
252
+ /* Where the grain lands, where the dust lands (on the picture on five of the eight steps), and the light, step by step.
253
+ The dust layer is twice the stage, its specks and scratch in its far quarter, so it is sized and moved in the stage's own
254
+ units (a step at 100% 100% puts them where they are drawn, 0 0 parks them off the picture): the same specks land on the
255
+ same spots at any stage size, a phone's included. Its resting place is 0 0, so a film that holds still is grain only. */
256
+ @keyframes hd-film {
257
+ 0% { background-position: 0 0, 100% 100%; background-color: rgb(0 0 0 / var(--film-flicker)); }
258
+ 12.5% { background-position: 97px 41px, 43.75% 66.667%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .7)); }
259
+ 25% { background-position: 55px 104px, 0 0; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .9)); }
260
+ 37.5% { background-position: 21px 73px, 73.75% 32.222%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .6)); }
261
+ 50% { background-position: 116px 12px, 0 0; background-color: rgb(0 0 0 / var(--film-flicker)); }
262
+ 62.5% { background-position: 35px 17px, 25% 83.333%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .55)); }
263
+ 75% { background-position: 68px 120px, 0 0; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .85)); }
264
+ 87.5% { background-position: 110px 66px, 83.75% 47.778%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .65)); }
265
+ }
266
+ /* } hd-film */
267
+ /* A caption, in any theme: wrap the photo as <figure class="mount" data-caption="Lake Tahoe, summer 1974"><img class="pic" …></figure>
268
+ (hero, portrait, picture-full, wall and split place the figure where the picture goes). It is a plain label under the picture, or typed
269
+ on the mount's foot (--caption-at: absolute). No data-caption, nothing is added; the alt text is never printed. */
270
+ .slide figure.mount { position: relative; display: flex; flex-direction: column; width: fit-content; max-width: 100%; min-width: 0; min-height: 0; }
271
+ .slide figure.mount[data-caption]::after { content: attr(data-caption); position: var(--caption-at); left: 0; right: 0; top: calc(100% - var(--mount-foot)); min-height: var(--mount-foot); display: flex; align-items: center; justify-content: var(--caption-align); margin-top: var(--caption-gap); padding: 0 var(--mount-side); font: 400 var(--t-label)/1.25 var(--caption-font); letter-spacing: .02em; color: var(--caption-ink); text-align: var(--caption-align); overflow-wrap: anywhere; }
272
+ /* A mount is thinner on a phone. */
273
+ @media (max-width: 650px) { .slide { --mount-k: .5; } }
160
274
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
161
275
  .reveal.is-revealed { opacity: 1; transform: none; }
162
276
  /* The phone card (product's .frame.card, the phones row): a frameless phone,
@@ -164,8 +278,8 @@ d.addEventListener("readystatechange",go);go()})();</script>
164
278
  --shadow on the element (style="--tilt: 3deg; --shadow: var(--accent-2)");
165
279
  put an <img class="shot"> or <video class="shot" autoplay muted loop
166
280
  playsinline> in place of the placeholder div. */
167
- .slide .frame.card { --tilt: -4deg; --shadow: var(--accent); position: relative; width: 320px; aspect-ratio: 9 / 19.5; padding: 9px; border: 3px solid var(--ink); border-radius: 46px; background: var(--card); box-shadow: 18px 18px 0 var(--shadow); transform: rotate(var(--tilt)); overflow: visible; }
168
- .slide .frame.card > .shot { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 36px; border: 2px solid color-mix(in srgb, var(--ink) 20%, transparent); object-fit: cover; }
281
+ .slide .frame.card { --tilt: -4deg; --shadow: var(--accent); position: relative; width: 320px; aspect-ratio: 9 / 19.5; padding: 9px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(46 * var(--round-phone)); background: var(--card); box-shadow: calc(18 * var(--drop-x)) calc(18 * var(--drop-y)) calc(18 * var(--drop-blur)) color-mix(in srgb, var(--shadow) var(--drop-mix), transparent); transform: rotate(calc(var(--tilt) * var(--tilt-k))); overflow: visible; }
282
+ .slide .frame.card > .shot { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: calc(36 * var(--round-phone)); border: calc(2 * var(--line)) solid color-mix(in srgb, var(--ink) 20%, transparent); object-fit: cover; }
169
283
  .slide .frame.card > div.shot { background:
170
284
  linear-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 0 0) 50% 5% / 36% 2.2% no-repeat,
171
285
  linear-gradient(var(--accent-2) 0 0) 50% 30% / 84% 40% no-repeat,
@@ -178,7 +292,7 @@ d.addEventListener("readystatechange",go);go()})();</script>
178
292
  behind the slide's content. */
179
293
  .slide:has(> .deco) { isolation: isolate; }
180
294
  .slide > .deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
181
- .slide > .deco > span { position: absolute; display: grid; place-items: center; width: 80px; height: 80px; border: 3px solid var(--ink); border-radius: 20px; background: var(--card); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); font: 700 34px var(--font); }
295
+ .slide > .deco > span { position: absolute; display: grid; place-items: center; width: 80px; height: 80px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(20 * var(--round)); background: var(--card); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); color: var(--ink); font: 700 34px var(--font); }
182
296
  /* Backgrounds (deck_guide topic look). Four classes on the section, tokens only, each painted
183
297
  behind the content (a ::before at z-index -1 in an isolated slide) and confined to the object
184
298
  it backs, never under the text. Each carries its own per-layout rules (.l-<layout>.bg-<name>),
@@ -210,61 +324,86 @@ d.addEventListener("readystatechange",go);go()})();</script>
210
324
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); }
211
325
  .l-closer.bg-corner::before { --corner-r: 460px; }
212
326
  .on-ink.bg-corner::before { --corner-a: 22%; }
213
- :is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split).bg-corner::before { content: none; }
327
+ :is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-corner::before { content: none; }
214
328
  /* bg-stage: a rounded dot plate exactly the picture's column plus 32px, so the frame or the phones stand on it; on the hero a tile behind the stickers. */
215
- .slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius: 40px; }
329
+ .slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius: calc(40 * var(--round)); }
216
330
  .l-product.bg-stage::before { position: relative; grid-area: frame; align-self: stretch; margin: var(--stage-m, -32px -24px -32px -40px); }
217
331
  .l-phones.bg-stage::before { position: relative; grid-area: row; align-self: stretch; margin: var(--stage-m, -32px); }
218
332
  .l-hero.bg-stage::before { right: 110px; top: 110px; width: 410px; height: 350px; }
219
- :is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame).bg-stage::before { content: none; }
333
+ :is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-stage::before { content: none; }
220
334
  /* bg-mark: the slide number, set as style="--mark:'04'" on the section, huge in --display, faint,
221
335
  cropped by the top edge; right on the hero, in the indent on slot-left slides. A signature: cover, an opener, closer. */
222
336
  .slide.bg-mark::before { content: var(--mark, ""); inset: auto; right: 24px; top: -.26em; font: var(--display-weight, 700) var(--mark-size, 560px)/1 var(--display, var(--font)); font-synthesis: none; letter-spacing: var(--display-tracking, -.05em); white-space: nowrap;
223
337
  color: color-mix(in srgb, currentColor var(--mark-a, 8%), transparent); }
224
338
  .slide.on-ink.bg-mark::before { --mark-a: 6%; }
225
339
  .slide.slot-left.bg-mark::before { right: auto; left: -.08em; font-size: var(--mark-size, 440px); } /* ends inside the 500px indent, clear of the title */
226
- :is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split).bg-mark::before { content: none; }
340
+ :is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-mark::before { content: none; }
227
341
  /* Pieces. .sticker: a logo or icon tile, tilted (--tilt), ink edge, hard offset
228
342
  shadow (.sticker.photo for a face or an app icon that fills it). .ticks: a short
229
343
  list with accent-square bullets. .panel: a quiet card. .pill: a small tag. */
230
- .sticker { --tilt: -3deg; display: inline-grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 18px; border: 4px solid var(--ink); border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(var(--tilt)); }
344
+ .sticker { --tilt: -3deg; display: inline-grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 18px; border: calc(4 * var(--line)) solid var(--ink); border-radius: calc(26 * var(--round)); background: var(--card); color: var(--ink); box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); transform: rotate(calc(var(--tilt) * var(--tilt-k))); }
231
345
  .sticker > :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
346
+ /* Icons in a layout's icon slot (hyperdecks icons search <word> --for <layout>; search_icons { for }): one set a deck,
347
+ one library set and weight (an inline <svg class="icon"> in currentColor: line icons stroked, filled ones filled, a duotone's
348
+ second tone --icon-duo) or one generated set (<img class="icon">,
349
+ drawn as it comes, no tile). The layout places and sizes the slot (--icon: its side, a number of px); the theme
350
+ draws it (the --icon-* tokens above), its corner from --round. What is right behind a tile picks its pair: an item
351
+ painted in the accent, or a slot sitting on an on-accent slide's ground, sets --icon-fill and --icon-fg to the
352
+ -accent pair; everything else (a card, a tint, the paper, ink) takes the theme's tile. A sticker's icon is the sticker's. */
353
+ :where(.slide) .icon:where(:not(.sticker *)) { --icon-px: calc(var(--icon, 48) * 1px); box-sizing: border-box; flex: none; display: block; width: var(--icon-px); height: var(--icon-px); padding: calc(var(--icon-px) * var(--icon-pad, .22)); border-radius: calc(var(--icon, 48) * .28 * var(--round)); background: var(--icon-fill, var(--icon-tile, var(--accent))); color: var(--icon-fg, var(--icon-ink, var(--accent-ink))); stroke-width: var(--icon-stroke, 2); box-shadow: 0 0 0 calc(var(--icon-edge, 0) * var(--line)) currentColor; object-fit: contain; }
354
+ :where(.slide) img.icon:where(:not(.sticker *)) { padding: 0; background: none; box-shadow: none; border-radius: 0; }
355
+ /* One tile a theme: a sticker that holds an icon (split's) is painted as an icon tile is, over its card (a bare theme's
356
+ transparent tile leaves the card), the icon in the theme's ink and line weight. A sticker with a logo keeps its card.
357
+ A bare theme (--icon-on-card) draws it in the card's own ink, as rail's dot on the paper: the slide's text colour, light on
358
+ an ink or accent slide, would vanish on the light card. */
359
+ .sticker:has(> svg.icon) { background: linear-gradient(var(--icon-fill, var(--icon-tile, var(--card))), var(--icon-fill, var(--icon-tile, var(--card)))), var(--card); color: var(--icon-on-card, var(--icon-fg, var(--icon-ink, var(--ink)))); }
360
+ .on-accent .sticker:has(> svg.icon) { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
361
+ .sticker > svg.icon { stroke-width: var(--icon-stroke, 2); }
232
362
  .sticker.photo { padding: 0; overflow: hidden; }
233
363
  .sticker.photo > img { object-fit: cover; }
234
364
  .ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
235
365
  .ticks li { position: relative; padding-left: 34px; font-size: var(--t-body); line-height: 1.3; font-weight: 600; }
236
- .ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; border-radius: 5px; background: var(--accent); }
366
+ .ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; border-radius: calc(5 * var(--round)); background: var(--accent); }
237
367
  .on-accent .ticks li::before { background: var(--accent-ink); }
238
- .panel { padding: 24px 28px; border-radius: 22px; background: color-mix(in srgb, currentColor 6%, transparent); }
239
- .pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--ink); font: 700 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--accent); }
240
- .on-accent .pill { box-shadow: 4px 4px 0 var(--accent-ink); }
368
+ .panel { padding: 24px 28px; border-radius: calc(22 * var(--round)); background: color-mix(in srgb, currentColor 6%, transparent); }
369
+ .pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px; border-radius: calc(999 * var(--round)); background: var(--card); color: var(--ink); font: 700 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
370
+ .on-accent .pill { box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
241
371
  /* A laptop for a desktop screenshot or clip: a .frame.laptop holding an img.shot or video.shot. */
242
- .slide .frame.laptop { position: relative; width: min(860px, 100%); padding: 14px 14px 22px; border-radius: 20px 20px 6px 6px; background: #1a1a1d; box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 22%, transparent); }
243
- .slide .frame.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 16px; border-radius: 0 0 16px 16px; background: linear-gradient(#d9d9de, #a9a9b0); }
244
- .slide .frame.laptop > .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; object-position: top; background: var(--paper); }
372
+ .slide .frame.laptop { position: relative; width: min(860px, 100%); padding: 14px 14px 22px; border-radius: calc(20 * var(--round)) calc(20 * var(--round)) calc(6 * var(--round)) calc(6 * var(--round)); background: #1a1a1d; box-shadow: 0 calc(30 * var(--lift)) calc(70 * var(--lift)) color-mix(in srgb, var(--ink) 22%, transparent); }
373
+ .slide .frame.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 16px; border-radius: 0 0 calc(16 * var(--round)) calc(16 * var(--round)); background: linear-gradient(#d9d9de, #a9a9b0); }
374
+ .slide .frame.laptop > .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: calc(6 * var(--round)); object-fit: cover; object-position: top; background: var(--paper); }
245
375
  /* Phones: the slide is the 374×736 card; the presenter is a small head in
246
376
  the corner, so keep the bottom 170px clear. */
247
377
  @media (max-width: 650px) {
248
- :root { --t-display: 54px; --t-title: 38px; --t-sub: 28px; --t-lead: 17px; --t-body: 15px; --t-label: 12px; }
378
+ :root { --t-display: calc(54px * var(--display-scale)); --t-title: calc(38px * var(--display-scale)); --t-sub: calc(28px * var(--display-scale)); --t-lead: 17px; --t-body: 15px; --t-label: 12px; }
249
379
  .slide { padding: 28px 20px 170px; gap: 14px; }
380
+ /* phone rhythm start */
381
+ /* The content block sits in the middle of the card above the presenter, not in its top half
382
+ (a layout that sets its own justify-content, or fills the height, keeps it). */
383
+ .slide { justify-content: safe center; align-content: safe center; }
384
+ /* A slide's content is one block: its media grows into the height above the presenter (each layout's phone rules
385
+ let it, at its own shape), and the words follow it directly, never a hole between them. Text-only slides
386
+ (no picture but a sticker or logo) step their type up a notch; :where() keeps that at a class's weight. */
387
+ .slide:where(:not(:has(:is(img, video, .shot, .pic, .clip, .art):not(.sticker *, .brand-logo, .brand-logo *, .icon)))) { --t-title: 44px; --t-sub: 32px; --t-lead: 19px; --t-body: 17px; }
388
+ /* phone rhythm end */
250
389
  .narration-slot { right: 12px; left: 12px; bottom: 64px; }
251
390
  :root.hd-no-presenter .slide { padding-bottom: 28px; }
252
- .slide .frame.card { width: 160px; padding: 5px; border-width: 2px; border-radius: 24px; box-shadow: 8px 8px 0 var(--shadow); }
253
- .slide .frame.card > .shot { border-radius: 19px; border-width: 1px; }
391
+ .slide .frame.card { width: 160px; padding: 5px; border-width: calc(2 * var(--line)); border-radius: calc(24 * var(--round-phone)); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--shadow) var(--drop-mix), transparent); }
392
+ .slide .frame.card > .shot { border-radius: calc(19 * var(--round-phone)); border-width: calc(1 * var(--line)); }
254
393
  /* The text fills the card's width, so the backgrounds keep off it: the corner fades in
255
394
  towards the bottom, under the presenter, at a finer pitch; the stage and the mark hide;
256
395
  the pool (a soft light) stays as it is; the tiles stay off. */
257
396
  .slide.bg-corner::before { inset: 0; width: auto; height: auto; border-radius: 0; background-size: 14px 14px; background-image: radial-gradient(var(--corner-dot) 1.6px, transparent 2px); -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 90%); mask-image: linear-gradient(180deg, transparent 40%, #000 90%); }
258
397
  .slide:is(.bg-stage, .bg-mark)::before { content: none; }
259
398
  .slide > .deco { display: none; }
260
- .sticker { width: 48px; height: 48px; padding: 9px; border-width: 2px; border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); }
399
+ .sticker { width: 48px; height: 48px; padding: 9px; border-width: calc(2 * var(--line)); border-radius: calc(13 * var(--round)); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
261
400
  .ticks { gap: 6px; }
262
401
  .ticks li { padding-left: 18px; }
263
- .ticks li::before { width: 9px; height: 9px; border-radius: 3px; }
264
- .panel { padding: 10px 12px; border-radius: 12px; }
265
- .pill { padding: 4px 10px; box-shadow: 2px 2px 0 var(--accent); }
266
- .slide .frame.laptop { padding: 5px 5px 9px; border-radius: 10px 10px 3px 3px; }
267
- .slide .frame.laptop::after { left: -3%; right: -3%; bottom: -7px; height: 7px; border-radius: 0 0 8px 8px; }
402
+ .ticks li::before { width: 9px; height: 9px; border-radius: calc(3 * var(--round)); }
403
+ .panel { padding: 10px 12px; border-radius: calc(12 * var(--round)); }
404
+ .pill { padding: 4px 10px; box-shadow: calc(2 * var(--drop-x)) calc(2 * var(--drop-y)) calc(2 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
405
+ .slide .frame.laptop { padding: 5px 5px 9px; border-radius: calc(10 * var(--round)) calc(10 * var(--round)) calc(3 * var(--round)) calc(3 * var(--round)); }
406
+ .slide .frame.laptop::after { left: -3%; right: -3%; bottom: -7px; height: 7px; border-radius: 0 0 calc(8 * var(--round)) calc(8 * var(--round)); }
268
407
  }
269
408
  </style>
270
409
  <!-- LAYOUT STYLES -->
@@ -283,8 +422,10 @@ d.addEventListener("readystatechange",go);go()})();</script>
283
422
  URL it writes. data-presenter: head (live Minimoji, needs data-avatar),
284
423
  static (data-presenter-image) or none (captions only). deck new, deck
285
424
  narrator and narrate write the narrator's face here
286
- (data-presenter-from="narrator", so release follows a later narrator). -->
425
+ (data-presenter-from="narrator", so release follows a later narrator).
426
+ data-silent-presenter="hide": if this deck is made silent (data-silent),
427
+ it shows no presenter; set "show" to keep the face on a silent deck. -->
287
428
  <script type="module" src="https://hyperdecks.ai/player/v1/player.js"
288
- data-manifest="" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
429
+ data-manifest="" data-silent-presenter="hide" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
289
430
  </body>
290
431
  </html>
@@ -0,0 +1,75 @@
1
+ <!--
2
+ layout: bento
3
+ summary: One big tile for the main point and two small ones for what backs it up: the headline reason and its two supports.
4
+ brief: One big tile for the main point, two small ones backing it.
5
+ says: one above the rest
6
+ needs: 3 points, one of them the main one
7
+ use: the one reason above all, a headline feature and two more, a result and its two causes. The main point under about 30 characters (it is set large), each small tile's name a word or two and its line under about 40. For three equal things use features. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the tiles (the big one across the top at xl), clear of the presenter.
8
+ slot: bottom-right
9
+ presenter: stage
10
+ nopresenter: The tiles take the full width of the slide.
11
+ cues: [look: #__ID__-big] at the main point; [go: #__ID__-s1] and [go: #__ID__-s2] at the two that back it, then [go: slot].
12
+ script: One reason above all: [look: #__ID__-big] you see who watched. It also speaks [go: #__ID__-s1] in your voice, [go: #__ID__-s2] with your face. [go: slot]
13
+ -->
14
+ <style>
15
+ /* The tiles fill the height below the title, in a column that ends left of the presenter's corner (the stage presenter
16
+ at m reaches 1064px across): the big one down the left, the two small ones stacked beside it, each read from its top,
17
+ its name as large as the tile allows (cqi: the tile's width) while a word of about 14 letters still fits whole. */
18
+ .l-bento .tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; max-width: 980px; }
19
+ .l-bento .tiles > * { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; min-height: 0; min-width: 0; padding: 28px 30px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(24 * var(--round)); color: var(--ink); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
20
+ .on-ink.l-bento .tiles > * { box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--accent-2) var(--drop-mix), transparent); }
21
+ .l-bento .big { grid-row: 1 / 3; background: var(--accent); color: var(--accent-ink); }
22
+ .l-bento .big .kicker { margin-bottom: 6px; }
23
+ .l-bento .big b { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-style: var(--display-style); text-transform: var(--display-case); letter-spacing: var(--display-tracking, -.045em); font-size: min(var(--t-display), 11cqi); line-height: var(--display-leading); text-wrap: balance; }
24
+ .l-bento .big p { font-size: var(--t-lead); line-height: 1.25; }
25
+ .l-bento .small:nth-child(2) { background: var(--tint-2); }
26
+ .l-bento .small:nth-child(3) { background: var(--tint-3); }
27
+ .on-accent.l-bento .big { background: var(--card); color: var(--ink); }
28
+ .l-bento .small b { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); letter-spacing: var(--display-tracking, -.045em); font-size: min(var(--t-sub), 11cqi); line-height: 1.02; }
29
+ .l-bento .small p { font-size: var(--t-lead); line-height: 1.25; }
30
+ @media (max-width: 650px) {
31
+ .l-bento .tiles { flex: none; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px; max-width: none; }
32
+ .l-bento .tiles > * { gap: 3px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
33
+ .l-bento .big { grid-row: auto; grid-column: 1 / 3; min-height: 170px; }
34
+ .l-bento .big p { font-size: var(--t-body); }
35
+ .l-bento .big b { font-size: var(--t-sub); }
36
+ .l-bento .small b { font-size: var(--t-body); }
37
+ .l-bento .small p { font-size: var(--t-label); }
38
+ }
39
+ /* A large presenter (data-presenter-size l or xl on this slide's section tag): narrower; at xl the big tile goes across the top. */
40
+ @media not all and (max-width: 650px) {
41
+ .l-bento[data-presenter-size="l"] :is(.tiles, .tt) { max-width: 830px; }
42
+ .l-bento[data-presenter-size="xl"] :is(.tiles, .tt) { max-width: 680px; }
43
+ .l-bento[data-presenter-size="xl"] .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; gap: 16px; }
44
+ .l-bento[data-presenter-size="xl"] .big { grid-row: auto; grid-column: 1 / 3; }
45
+ .l-bento[data-presenter-size="xl"] .tiles > * { padding: 20px 22px; }
46
+ .l-bento[data-presenter-size="xl"] .tiles { grid-template-rows: minmax(min-content, 1.3fr) minmax(min-content, 1fr); }
47
+ .l-bento[data-presenter-size="xl"] .big b { font-size: var(--t-sub); }
48
+ }
49
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
50
+ @media (min-width: 651px) {
51
+ :root.hd-no-presenter .l-bento :is(.tiles, .tt) { max-width: none; }
52
+ }
53
+ /* Icon slot (optional): an icon at the top of each tile (hyperdecks icons search <word> --for bento). */
54
+ .l-bento .tiles > * { --icon: 56; }
55
+ .l-bento .big { --icon: 72; }
56
+ .l-bento:not(.on-accent) .big { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
57
+ @media (max-width: 650px) {
58
+ .l-bento .tiles > * { --icon: 30; }
59
+ .l-bento .big { --icon: 40; }
60
+ .l-bento .tiles > * > .icon { margin-bottom: 4px; }
61
+ }
62
+ @media not all and (max-width: 650px) {
63
+ .l-bento[data-presenter-size="xl"] .tiles > * { --icon: 40; }
64
+ }
65
+ </style>
66
+ <section class="slide l-bento" id="__ID__" data-chapter="Why" data-note="Source: where each point is shown (the product, a study, the docs).">
67
+ <div class="kicker">Why send one</div>
68
+ <h2 class="tt" data-title-mobile="One reason above all.">One reason above all.</h2>
69
+ <div class="tiles">
70
+ <div class="big" id="__ID__-big"><span class="kicker">The main one</span><b>You see who watched.</b><p>Per person, per slide, how far they got.</p></div>
71
+ <div class="small" id="__ID__-s1"><b>Your voice</b><p>From a minute of audio.</p></div>
72
+ <div class="small" id="__ID__-s2"><b>Your face</b><p>An avatar, never a deepfake.</p></div>
73
+ </div>
74
+ <div class="narration-slot"></div>
75
+ </section>
@@ -1,6 +1,7 @@
1
1
  <!--
2
2
  layout: chart
3
3
  summary: A chart of real numbers with its takeaway in one line; the presenter beside it.
4
+ brief: A chart of real numbers with its takeaway in one line.
4
5
  use: a trend or a comparison in numbers. Its svg is a placeholder of made-up numbers check fails on: draw the real data with `hyperdecks chart` (render_chart; never a generated picture of a chart) as <img class="chart"> and name the data's source.
5
6
  slot: bottom-right
6
7
  presenter: stage
@@ -14,15 +15,16 @@ script: Here are the numbers. [look: #__ID__-chart] The last bar is the one to s
14
15
  .l-chart .tt { font-size: var(--t-sub); line-height: 1.02; }
15
16
  /* Swap the svg for an <img class="chart"> of your file (hyperdecks chart). */
16
17
  .l-chart .chart { grid-column: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: left bottom; }
17
- .l-chart .chart .bar { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
18
- .l-chart .chart .bar.hi { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
18
+ .l-chart .chart .bar { fill: color-mix(in srgb, var(--ink) 18%, transparent); rx: var(--bar-round); }
19
+ .l-chart .chart > line { stroke: var(--grid); }
20
+ .l-chart .chart .bar.hi { fill: var(--accent); stroke: var(--ink); stroke-width: calc(3 * var(--line)); }
19
21
  .l-chart .chart text { font: 22px var(--mono); fill: currentColor; }
20
22
  .l-chart .chart .v { font: 700 30px var(--font); }
21
- .l-chart .takeaway { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: var(--t-lead); line-height: 1.25; font-weight: 700; padding-left: 20px; border-left: 6px solid var(--accent); }
23
+ .l-chart .takeaway { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: var(--t-lead); line-height: 1.25; font-weight: 700; padding-left: 20px; border-left: calc(6 * var(--line)) solid var(--accent); }
22
24
  @media (max-width: 650px) {
23
25
  .l-chart { display: flex; flex-direction: column; }
24
26
  .l-chart .chart { height: 210px; flex: none; }
25
- .l-chart .takeaway { padding-left: 12px; border-left-width: 4px; }
27
+ .l-chart .takeaway { padding-left: 12px; border-left-width: calc(4 * var(--line)); }
26
28
  }
27
29
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
28
30
  @media (min-width: 651px) {
@@ -1,7 +1,8 @@
1
1
  <!--
2
2
  layout: closer
3
3
  summary: The last slide. One line, the one action to take (a command, a link) and the presenter's goodbye.
4
- use: the end. One call to action, never three. Label an ask that is not agreed as Proposed.
4
+ brief: The last slide: one line, one action and the presenter's goodbye.
5
+ use: the end. One call to action, never three. A large presenter for the goodbye: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) moves the line and the action right of it. Label an ask that is not agreed as Proposed.
5
6
  slot: bottom-left
6
7
  presenter: stage
7
8
  nopresenter: The line and the action drop the left gutter and re-centre in the full frame.
@@ -11,13 +12,19 @@ script: That's it. [go: #__ID__-cta] Here is the one thing to do next. Thanks [g
11
12
  <style>
12
13
  .l-closer .content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-left: 500px; }
13
14
  .l-closer .tt { font-size: var(--t-display); line-height: .9; }
14
- .l-closer .cta { display: inline-flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 22px 34px; border-radius: 22px; background: var(--accent); color: var(--accent-ink); font: 700 34px var(--mono); letter-spacing: -.01em; text-decoration: none; }
15
+ .l-closer .cta { display: inline-flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 22px 34px; border-radius: calc(22 * var(--round)); background: var(--accent); color: var(--accent-ink); font: 700 34px var(--mono); letter-spacing: -.01em; text-decoration: none; }
15
16
  /* The arrow is an SVG, not "→": Space Mono's (and Space Grotesk's) web subsets have no U+2192, so the glyph fell back to another face and read as malformed. */
16
17
  .l-closer .cta svg { flex: none; width: 1em; height: 1em; }
17
18
  .l-closer .contact { font: var(--t-label) var(--mono); letter-spacing: .12em; text-transform: uppercase; }
18
19
  @media (max-width: 650px) {
19
20
  .l-closer .content { padding-left: 0; justify-content: flex-start; gap: 16px; }
20
- .l-closer .cta { padding: 12px 16px; border-radius: 14px; font-size: 15px; }
21
+ .l-closer .cta { padding: 12px 16px; border-radius: calc(14 * var(--round)); font-size: 15px; }
22
+ }
23
+ /* A large presenter (data-presenter-size l or xl on this slide's section tag): the line and the action move right of it, room for
24
+ a stage or glass presenter at that size, so no deck CSS is needed. */
25
+ @media not all and (max-width: 650px) {
26
+ .l-closer[data-presenter-size="l"] .content { padding-left: 700px; }
27
+ .l-closer[data-presenter-size="xl"] .content { padding-left: 860px; }
21
28
  }
22
29
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
23
30
  @media (min-width: 651px) {
@@ -1,7 +1,8 @@
1
1
  <!--
2
2
  layout: compare
3
3
  summary: Before and after (or them and us) side by side, three short lines each.
4
- use: the change your idea makes. Keep the rows parallel so each line has its counterpart.
4
+ brief: Before and after (or them and us) side by side, three short lines each.
5
+ use: the change your idea makes. Keep the rows parallel so each line has its counterpart. For a list of what is allowed and what is not (what goes in, what stays out), put the allowed items in the right-hand .is-after column, the highlighted one, the rest on the left, and label both ("Goes in", "Stays out"). For a single rule and the right way to do it, use strike.
5
6
  slot: bottom-right
6
7
  presenter: stage
7
8
  nopresenter: The two columns widen to the full frame.
@@ -10,15 +11,15 @@ script: Today it looks like this. [look: #__ID__-before] With us, [go: #__ID__-a
10
11
  -->
11
12
  <style>
12
13
  .l-compare .cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; align-content: center; }
13
- .l-compare .col { border-radius: 28px; padding: 32px 34px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
14
+ .l-compare .col { border-radius: calc(28 * var(--round)); padding: 32px 34px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
14
15
  .l-compare .col.is-after { background: var(--ink); color: var(--paper); }
15
16
  .l-compare .label { font: 700 var(--t-label) var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
16
17
  .l-compare .is-after .label { color: var(--accent); }
17
- .l-compare li { list-style: none; font-size: var(--t-body); line-height: 1.3; padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
18
+ .l-compare li { list-style: none; font-size: var(--t-body); line-height: 1.3; padding: 14px 0; border-top: calc(1 * var(--line)) solid color-mix(in srgb, currentColor 18%, transparent); }
18
19
  .l-compare .tt { max-width: 11em; }
19
20
  @media (max-width: 650px) {
20
21
  .l-compare .cols { flex: none; grid-template-columns: 1fr; gap: 10px; }
21
- .l-compare .col { border-radius: 16px; padding: 12px 16px; }
22
+ .l-compare .col { border-radius: calc(16 * var(--round)); padding: 12px 16px; }
22
23
  .l-compare .label { margin-bottom: 4px; }
23
24
  .l-compare li { padding: 5px 0; }
24
25
  }
@@ -26,6 +27,14 @@ script: Today it looks like this. [look: #__ID__-before] With us, [go: #__ID__-a
26
27
  @media (min-width: 651px) {
27
28
  :root.hd-no-presenter .l-compare .cols { max-width: none; }
28
29
  }
30
+ /* Icon slot (optional): an icon before each side's label (hyperdecks icons search <word> --for compare). */
31
+ .l-compare .label { --icon: 40; }
32
+ .on-accent.l-compare .col:not(.is-after) { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
33
+ .l-compare .label:has(> .icon) { display: flex; align-items: center; gap: 14px; }
34
+ @media (max-width: 650px) {
35
+ .l-compare .label { --icon: 24; }
36
+ .l-compare .label:has(> .icon) { gap: 8px; }
37
+ }
29
38
  </style>
30
39
  <section class="slide l-compare" id="__ID__" data-chapter="Before and after" data-note="Source: name where each side's facts come from.">
31
40
  <div class="kicker">Before and after</div>