example.html 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Broadside Presentation</title>
  7. <link rel="preconnect" href="https://fonts.googleapis.com" />
  8. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  9. <!-- Broadside fonts: Barlow (the workhorse grotesque), IBM Plex Mono (chrome),
  10. Noto Sans SC (CJK fallback for all roles) -->
  11. <link
  12. href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700;800;900&family=IBM+Plex+Mono:wght@300;400;500&family=Noto+Sans+SC:wght@400;500;700;900&display=swap"
  13. rel="stylesheet"
  14. />
  15. <style>
  16. /* ╔══════════════════════════════════════════════════════════════════════╗
  17. ║ ZONE A · TOKENS ║
  18. ║ ║
  19. ║ This is the ONLY block you replace to change the visual style. ║
  20. ║ Every color, font, and size in this file reads from these vars. ║
  21. ║ Never write raw hex values, font names, or px sizes outside here. ║
  22. ╚══════════════════════════════════════════════════════════════════════╝ */
  23. :root {
  24. /* ── Palette ──────────────────────────────────────────────────────── */
  25. --c-bg: #111111; /* near-black — the default slide background */
  26. --c-bg-alt: #1a1a18; /* secondary surface on dark slides */
  27. /* Broadside has NO light slides. These vars are overridden to dark
  28. so any accidental .light class still renders dark. */
  29. --c-bg-light: #111111;
  30. --c-bg-light-alt: #1a1a18;
  31. /* The signature: orange is not an accent here — it is the ENVIRONMENT.
  32. Cover and chapter slides use this as their full background fill. */
  33. --c-bg-orange: #e85d26;
  34. --c-fg: #f0ece5; /* primary text on dark slides */
  35. --c-fg-2: #888880; /* secondary / muted text on dark */
  36. --c-fg-3: #505048; /* tertiary / hint text on dark */
  37. /* Text colours for orange slides — ink on fire */
  38. --c-fg-light: #111111; /* primary text on orange */
  39. --c-fg-light-2: #2a1810; /* muted text on orange */
  40. --c-fg-light-3: rgba(
  41. 17,
  42. 17,
  43. 17,
  44. 0.55
  45. ); /* hint text on orange */
  46. --c-accent: #e85d26; /* orange = accent everywhere on dark slides */
  47. --c-border: #282826; /* divider lines on dark slides */
  48. --c-border-light: #282826; /* same dark border even on "light" (overridden)*/
  49. /* ── Typography ──────────────────────────────────────────────────── */
  50. /* Barlow: the defining typeface. Condensed grotesque. Always heavy.
  51. Used at max weight — 900 for display, 800 for h1, 700 for h2.
  52. Noto Sans SC provides full CJK coverage at matching weights. */
  53. --f-display: "Barlow", "Noto Sans SC", sans-serif;
  54. --f-heading: "Barlow", "Noto Sans SC", sans-serif;
  55. --f-body: "Barlow", "Noto Sans SC", system-ui, sans-serif;
  56. /* Mono: IBM Plex Mono for chrome labels, metadata, slide numbers */
  57. --f-mono: "IBM Plex Mono", monospace;
  58. /* ── Type Scale ───────────────────────────────────────────────────── */
  59. /* Broadside's defining trait: TYPE IS MASSIVE. Display is 13vw —
  60. on a 1440px screen that is ~187px. Words become graphic elements. */
  61. --sz-display: 13vw; /* the whole point — nearly abstract at full size */
  62. --sz-h1: 7.5vw; /* chapter title — still enormous */
  63. --sz-h2: 4.5vw; /* slide headline */
  64. --sz-h3: 2.8vw; /* sub-headline */
  65. --sz-lead: 1.6vw; /* lead paragraph */
  66. --sz-body: 1.2vw; /* body text */
  67. --sz-caption: 0.9vw; /* captions, footnotes */
  68. --sz-label: 0.72vw; /* chrome labels, slide numbers, metadata */
  69. /* ── Spacing ─────────────────────────────────────────────────────── */
  70. --pad-x: 5.5vw; /* tighter than skeleton — type fills the space */
  71. --pad-y: 5.5vh;
  72. --gap-lg: 3.5vh;
  73. --gap-md: 2vh;
  74. --gap-sm: 1vh;
  75. /* ── Motion ──────────────────────────────────────────────────────── */
  76. --ease-slide: cubic-bezier(0.77, 0, 0.175, 1);
  77. --dur-slide: 0.8s;
  78. --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  79. --dur-enter: 0.5s;
  80. }
  81. /* ╔══════════════════════════════════════════════════════════════════════╗
  82. ║ ZONE B · ENGINE — DO NOT MODIFY ║
  83. ║ ║
  84. ║ Layout engine, transitions, animation system, navigation. ║
  85. ║ Touching this breaks the mechanics. ║
  86. ╚══════════════════════════════════════════════════════════════════════╝ */
  87. *,
  88. *::before,
  89. *::after {
  90. box-sizing: border-box;
  91. margin: 0;
  92. padding: 0;
  93. }
  94. html,
  95. body {
  96. width: 100%;
  97. height: 100%;
  98. overflow: hidden;
  99. background: var(--c-bg);
  100. -webkit-font-smoothing: antialiased;
  101. }
  102. /* Deck container — all slides sit side by side */
  103. #deck {
  104. display: flex;
  105. height: 100vh;
  106. /* Width = N * 100vw, set dynamically by JS */
  107. transition: transform var(--dur-slide) var(--ease-slide);
  108. will-change: transform;
  109. }
  110. /* Slide base — each slide is one full viewport */
  111. .slide {
  112. flex: 0 0 100vw;
  113. width: 100vw;
  114. height: 100vh;
  115. position: relative;
  116. padding: var(--pad-y) var(--pad-x);
  117. display: grid;
  118. grid-template-rows: auto 1fr auto;
  119. overflow: hidden;
  120. }
  121. /* Prevent grid children from overflowing */
  122. .slide-body {
  123. min-height: 0;
  124. }
  125. /* Slide themes */
  126. .slide.dark {
  127. background: var(--c-bg);
  128. color: var(--c-fg);
  129. }
  130. /* Broadside: .light is overridden to dark — there are no cream/white slides */
  131. .slide.light {
  132. background: var(--c-bg-light);
  133. color: var(--c-fg);
  134. }
  135. /* The orange theme — the signature Broadside treatment */
  136. .slide.orange {
  137. background: var(--c-bg-orange);
  138. color: var(--c-fg-light);
  139. }
  140. /* ── Animation system ──────────────────────────────────────────────── */
  141. /* All data-anim elements start invisible.
  142. They animate when their parent slide receives .is-active.
  143. JS resets animations before adding .is-active so re-visiting a slide re-plays them. */
  144. [data-anim] {
  145. opacity: 0;
  146. }
  147. .slide.is-active [data-anim] {
  148. animation-duration: var(--dur-enter);
  149. animation-timing-function: var(--ease-enter);
  150. animation-fill-mode: forwards;
  151. }
  152. .slide.is-active [data-anim="fade-up"] {
  153. animation-name: kFadeUp;
  154. }
  155. .slide.is-active [data-anim="fade-in"] {
  156. animation-name: kFadeIn;
  157. }
  158. .slide.is-active [data-anim="reveal-right"] {
  159. animation-name: kRevealRight;
  160. }
  161. .slide.is-active [data-anim="reveal-left"] {
  162. animation-name: kRevealLeft;
  163. }
  164. .slide.is-active [data-anim="scale-in"] {
  165. animation-name: kScaleIn;
  166. }
  167. /* Stagger delays — add data-delay="N" to offset each element */
  168. [data-delay="0"] {
  169. animation-delay: 0s;
  170. }
  171. [data-delay="1"] {
  172. animation-delay: 0.08s;
  173. }
  174. [data-delay="2"] {
  175. animation-delay: 0.18s;
  176. }
  177. [data-delay="3"] {
  178. animation-delay: 0.3s;
  179. }
  180. [data-delay="4"] {
  181. animation-delay: 0.44s;
  182. }
  183. [data-delay="5"] {
  184. animation-delay: 0.6s;
  185. }
  186. [data-delay="6"] {
  187. animation-delay: 0.78s;
  188. }
  189. @keyframes kFadeUp {
  190. from {
  191. opacity: 0;
  192. transform: translateY(28px);
  193. }
  194. to {
  195. opacity: 1;
  196. transform: none;
  197. }
  198. }
  199. @keyframes kFadeIn {
  200. from {
  201. opacity: 0;
  202. }
  203. to {
  204. opacity: 1;
  205. }
  206. }
  207. @keyframes kRevealRight {
  208. from {
  209. clip-path: inset(0 100% 0 0);
  210. opacity: 1;
  211. }
  212. to {
  213. clip-path: inset(0 0% 0 0);
  214. opacity: 1;
  215. }
  216. }
  217. @keyframes kRevealLeft {
  218. from {
  219. clip-path: inset(0 0 0 100%);
  220. opacity: 1;
  221. }
  222. to {
  223. clip-path: inset(0 0 0 0%);
  224. opacity: 1;
  225. }
  226. }
  227. @keyframes kScaleIn {
  228. from {
  229. opacity: 0;
  230. transform: scale(0.94);
  231. }
  232. to {
  233. opacity: 1;
  234. transform: none;
  235. }
  236. }
  237. /* ── Navigation ───────────────────────────────────────────────────── */
  238. #nav-dots {
  239. position: fixed;
  240. bottom: 24px;
  241. left: 50%;
  242. transform: translateX(-50%);
  243. display: flex;
  244. gap: 7px;
  245. z-index: 100;
  246. }
  247. .nav-dot {
  248. width: 5px;
  249. height: 5px;
  250. border-radius: 50%;
  251. border: none;
  252. background: rgba(255, 255, 255, 0.22);
  253. cursor: pointer;
  254. transition:
  255. background 0.3s,
  256. transform 0.3s;
  257. padding: 0;
  258. }
  259. .nav-dot.is-active {
  260. background: rgba(255, 255, 255, 0.8);
  261. transform: scale(1.4);
  262. }
  263. #slide-counter {
  264. position: fixed;
  265. bottom: 20px;
  266. right: 28px;
  267. font-family: var(--f-mono);
  268. font-size: 10px;
  269. letter-spacing: 0.12em;
  270. color: rgba(255, 255, 255, 0.25);
  271. z-index: 100;
  272. user-select: none;
  273. }
  274. /* ╔══════════════════════════════════════════════════════════════════════╗
  275. ║ ZONE C · TYPOGRAPHY ║
  276. ║ ║
  277. ║ Use only these classes for text. Never set font-family, font-size, ║
  278. ║ or color inline. Exception: overriding size via ║
  279. ║ style="--sz-h2: 2.5vw" is OK — it stays within the token system. ║
  280. ╚══════════════════════════════════════════════════════════════════════╝ */
  281. /* Base typographic classes — all font families read from tokens */
  282. .display {
  283. font-family: var(--f-display);
  284. font-size: var(--sz-display);
  285. /* Broadside: maximum weight. Lowercase is the aesthetic — NOT uppercase. */
  286. font-weight: 900;
  287. line-height: 0.88;
  288. letter-spacing: -0.04em;
  289. }
  290. .h1 {
  291. font-family: var(--f-heading);
  292. font-size: var(--sz-h1);
  293. font-weight: 800;
  294. line-height: 0.9;
  295. letter-spacing: -0.03em;
  296. }
  297. .h2 {
  298. font-family: var(--f-heading);
  299. font-size: var(--sz-h2);
  300. font-weight: 700;
  301. line-height: 1.1;
  302. letter-spacing: -0.02em;
  303. }
  304. .h3 {
  305. font-family: var(--f-heading);
  306. font-size: var(--sz-h3);
  307. font-weight: 600;
  308. line-height: 1.2;
  309. }
  310. .lead {
  311. font-family: var(--f-body);
  312. font-size: var(--sz-lead);
  313. font-weight: 400;
  314. line-height: 1.5;
  315. }
  316. .body {
  317. font-family: var(--f-body);
  318. font-size: var(--sz-body);
  319. font-weight: 400;
  320. line-height: 1.6;
  321. }
  322. .caption {
  323. font-family: var(--f-body);
  324. font-size: var(--sz-caption);
  325. font-weight: 400;
  326. line-height: 1.5;
  327. }
  328. .label {
  329. font-family: var(--f-mono);
  330. font-size: var(--sz-label);
  331. font-weight: 500;
  332. letter-spacing: 0.14em;
  333. text-transform: uppercase;
  334. }
  335. /* Contextual color helpers — reads from active slide theme */
  336. .dark .muted {
  337. color: var(--c-fg-2);
  338. }
  339. .light .muted {
  340. color: var(--c-fg-2);
  341. } /* light = dark in Broadside */
  342. /* On orange slides: muted text is dark ink at reduced opacity */
  343. .orange .muted {
  344. color: var(--c-fg-light-2);
  345. }
  346. /* The orange accent colour — used for emphasis on dark slides */
  347. .accent {
  348. color: var(--c-accent);
  349. }
  350. /* ── Orange slide text overrides ────────────────────────────────────── */
  351. /* On orange slides, display/heading text is near-black (ink on fire).
  352. This is the protest-poster aesthetic: dark ink on vivid ground. */
  353. .orange .display,
  354. .orange .h1,
  355. .orange .h2,
  356. .orange .h3 {
  357. color: #111111;
  358. }
  359. .orange .lead,
  360. .orange .body {
  361. color: rgba(17, 17, 17, 0.75);
  362. }
  363. .orange .label {
  364. color: rgba(17, 17, 17, 0.55);
  365. }
  366. /* On orange, .accent still means "the contrast pop" — use sparingly */
  367. .orange .accent {
  368. color: #111111;
  369. }
  370. /* ╔══════════════════════════════════════════════════════════════════════╗
  371. ║ ZONE D · CHROME ║
  372. ║ ║
  373. ║ Header + footer present on slides that show them. ║
  374. ║ Cover, chapter, quote, and end slides suppress both. ║
  375. ╚══════════════════════════════════════════════════════════════════════╝ */
  376. .slide-chrome,
  377. .slide-foot {
  378. display: flex;
  379. justify-content: space-between;
  380. align-items: center;
  381. }
  382. .slide-chrome {
  383. padding-bottom: var(--gap-sm);
  384. border-bottom: 1px solid var(--c-border);
  385. margin-bottom: var(--gap-md);
  386. }
  387. .slide-foot {
  388. padding-top: var(--gap-sm);
  389. border-top: 1px solid var(--c-border);
  390. margin-top: var(--gap-md);
  391. }
  392. /* On orange slides, chrome borders use dark ink at low opacity */
  393. .orange .slide-chrome,
  394. .orange .slide-foot {
  395. border-color: rgba(17, 17, 17, 0.2);
  396. }
  397. /* Slides that suppress chrome/foot entirely */
  398. .slide--cover .slide-chrome,
  399. .slide--cover .slide-foot,
  400. .slide--chapter .slide-chrome,
  401. .slide--chapter .slide-foot,
  402. .slide--quote .slide-chrome,
  403. .slide--quote .slide-foot,
  404. .slide--end .slide-chrome,
  405. .slide--end .slide-foot {
  406. display: none;
  407. }
  408. /* ╔══════════════════════════════════════════════════════════════════════╗
  409. ║ ZONE E · LAYOUT PATTERNS ║
  410. ║ ║
  411. ║ 9 slide types. Use the class names below — do not invent new ones. ║
  412. ║ Broadside note: .slide--cover and .slide--chapter use .orange ║
  413. ║ (not .dark or .light). Dark slides use .dark. ║
  414. ╚══════════════════════════════════════════════════════════════════════╝ */
  415. /* ── 1. COVER ─────────────────────────────────────────────────────── */
  416. /* Title slide. Always orange in Broadside. The broadside-num sits
  417. top-left like a catalogue number. Title fills most of the slide. */
  418. .slide--cover {
  419. display: flex;
  420. flex-direction: column;
  421. justify-content: flex-end;
  422. }
  423. .cover-body {
  424. display: flex;
  425. flex-direction: column;
  426. flex: 1;
  427. justify-content: flex-end;
  428. gap: var(--gap-md);
  429. }
  430. .cover-meta {
  431. display: flex;
  432. justify-content: space-between;
  433. align-items: flex-end;
  434. margin-top: var(--gap-lg);
  435. padding-top: var(--gap-sm);
  436. border-top: 1px solid rgba(17, 17, 17, 0.2);
  437. }
  438. /* ── 2. CHAPTER ───────────────────────────────────────────────────── */
  439. /* Section divider. Always orange in Broadside.
  440. Big weight-900 title, no chrome, maximum negative space. */
  441. .slide--chapter {
  442. display: flex;
  443. flex-direction: column;
  444. justify-content: center;
  445. gap: 0;
  446. }
  447. .chapter-num {
  448. font-family: var(--f-mono);
  449. font-size: var(--sz-label);
  450. letter-spacing: 0.2em;
  451. text-transform: uppercase;
  452. /* On orange: dark ink; on dark: orange accent */
  453. color: rgba(17, 17, 17, 0.55);
  454. margin-bottom: var(--gap-md);
  455. }
  456. /* On dark chapter slides the number gets orange accent */
  457. .dark .chapter-num {
  458. color: var(--c-accent);
  459. }
  460. .chapter-rule {
  461. width: 36px;
  462. height: 2px;
  463. background: #111111; /* dark rule on orange */
  464. margin-bottom: var(--gap-md);
  465. }
  466. .dark .chapter-rule {
  467. background: var(--c-accent);
  468. }
  469. /* ── 3. STATEMENT ─────────────────────────────────────────────────── */
  470. /* Single bold claim. No image. The dark counterpart to the orange covers.
  471. 4-8 words max. Let the type breathe. */
  472. .slide--statement .statement-body {
  473. display: flex;
  474. flex-direction: column;
  475. justify-content: center;
  476. gap: var(--gap-md);
  477. }
  478. /* ── 4. SPLIT ─────────────────────────────────────────────────────── */
  479. /* Left: text content. Right: image. Dark background.
  480. Orange kicker/rule above the headline. */
  481. .slide--split .slide-body {
  482. display: grid;
  483. grid-template-columns: 1fr 1fr;
  484. gap: calc(var(--pad-x) * 0.7);
  485. align-items: center;
  486. }
  487. .split-text {
  488. display: flex;
  489. flex-direction: column;
  490. gap: var(--gap-md);
  491. }
  492. .split-image {
  493. display: flex;
  494. flex-direction: column;
  495. justify-content: flex-start;
  496. gap: var(--gap-sm);
  497. }
  498. /* Always explicit height in vh to prevent overflow on different screens */
  499. .split-image img {
  500. width: 100%;
  501. height: 55vh;
  502. object-fit: cover;
  503. display: block;
  504. }
  505. /* Placeholder shown when no real image is wired up. Same footprint
  506. as a real <img> so the surrounding layout stays unchanged. */
  507. .img-placeholder {
  508. width: 100%;
  509. height: 55vh;
  510. display: flex;
  511. align-items: center;
  512. justify-content: center;
  513. background: rgba(255, 255, 255, 0.04);
  514. border: 1px dashed var(--c-border);
  515. font-family: var(--font-mono, "IBM Plex Mono", monospace);
  516. font-size: 0.85rem;
  517. font-weight: 500;
  518. color: var(--c-fg-2, var(--c-fg));
  519. letter-spacing: 0.12em;
  520. text-transform: uppercase;
  521. }
  522. /* ── 5. STATS ─────────────────────────────────────────────────────── */
  523. /* 3 or 4 large data cards. Add .cols-4 to .stats-grid for 4 columns. */
  524. .slide--stats .slide-body {
  525. display: flex;
  526. flex-direction: column;
  527. justify-content: center;
  528. gap: var(--gap-lg);
  529. }
  530. .stats-grid {
  531. display: grid;
  532. grid-template-columns: repeat(3, 1fr);
  533. gap: 0;
  534. }
  535. .stats-grid.cols-4 {
  536. grid-template-columns: repeat(4, 1fr);
  537. }
  538. .stat-card {
  539. display: flex;
  540. flex-direction: column;
  541. gap: var(--gap-sm);
  542. padding: var(--gap-md) var(--gap-md) var(--gap-md) 0;
  543. border-top: 1px solid var(--c-border);
  544. }
  545. /* The big number — orange on dark slides */
  546. .stat-value {
  547. font-family: var(--f-display);
  548. font-size: 5.5vw;
  549. font-weight: 900;
  550. line-height: 1;
  551. color: var(--c-accent);
  552. letter-spacing: -0.04em;
  553. }
  554. .stat-label {
  555. font-family: var(--f-body);
  556. font-size: var(--sz-body);
  557. line-height: 1.5;
  558. }
  559. .stat-note {
  560. font-family: var(--f-mono);
  561. font-size: var(--sz-caption);
  562. letter-spacing: 0.05em;
  563. color: var(--c-fg-3);
  564. }
  565. /* ── 6. QUOTE ─────────────────────────────────────────────────────── */
  566. /* Full-slide pull quote. Dark background. Orange opening mark. */
  567. .slide--quote {
  568. display: flex;
  569. flex-direction: column;
  570. justify-content: center;
  571. padding: calc(var(--pad-y) * 1.2) calc(var(--pad-x) * 1.1);
  572. }
  573. .quote-mark {
  574. font-family: var(--f-display);
  575. font-size: 10vw;
  576. line-height: 0.6;
  577. color: var(--c-accent);
  578. margin-bottom: var(--gap-md);
  579. font-weight: 900;
  580. }
  581. .quote-text {
  582. font-family: var(--f-display);
  583. font-size: 3.8vw;
  584. font-weight: 700;
  585. line-height: 1.15;
  586. letter-spacing: -0.02em;
  587. max-width: 78%;
  588. margin-bottom: var(--gap-lg);
  589. }
  590. .quote-attr {
  591. display: flex;
  592. flex-direction: column;
  593. gap: 0.4vh;
  594. }
  595. /* ── 7. LIST ──────────────────────────────────────────────────────── */
  596. /* Headline left, bullets right. Max 3 bullets in Broadside — this style
  597. prizes density of impact over density of information. */
  598. .slide--list .slide-body {
  599. display: grid;
  600. grid-template-columns: 2fr 3fr;
  601. gap: calc(var(--pad-x) * 0.8);
  602. align-items: center;
  603. }
  604. .list-head {
  605. display: flex;
  606. flex-direction: column;
  607. gap: var(--gap-md);
  608. padding-top: var(--gap-sm);
  609. }
  610. .bullet-list {
  611. list-style: none;
  612. display: flex;
  613. flex-direction: column;
  614. gap: var(--gap-md);
  615. }
  616. .bullet-list li {
  617. display: grid;
  618. grid-template-columns: 1.2em 1fr;
  619. gap: 0.5em;
  620. font-family: var(--f-body);
  621. font-size: var(--sz-lead);
  622. font-weight: 500;
  623. line-height: 1.4;
  624. }
  625. /* Orange dash marker */
  626. .bullet-list li::before {
  627. content: "/";
  628. color: var(--c-accent);
  629. font-family: var(--f-mono);
  630. font-weight: 700;
  631. }
  632. .dark .bullet-list li {
  633. color: var(--c-fg);
  634. }
  635. .light .bullet-list li {
  636. color: var(--c-fg);
  637. }
  638. /* ── 8. COMPARE ───────────────────────────────────────────────────── */
  639. /* Side-by-side before/after or A vs B. Orange "after" label. */
  640. .slide--compare .slide-body {
  641. display: grid;
  642. grid-template-columns: 1fr 1fr;
  643. height: 100%;
  644. }
  645. .compare-panel {
  646. display: flex;
  647. flex-direction: column;
  648. gap: var(--gap-md);
  649. padding: var(--gap-md) 0;
  650. }
  651. .compare-panel.left {
  652. padding-right: calc(var(--pad-x) * 0.55);
  653. border-right: 1px solid var(--c-border);
  654. }
  655. .compare-panel.right {
  656. padding-left: calc(var(--pad-x) * 0.55);
  657. }
  658. .compare-label {
  659. font-family: var(--f-mono);
  660. font-size: var(--sz-label);
  661. letter-spacing: 0.16em;
  662. text-transform: uppercase;
  663. padding-bottom: var(--gap-sm);
  664. border-bottom: 1px solid var(--c-border);
  665. color: var(--c-fg-2);
  666. }
  667. /* The "after" panel uses orange — the payoff */
  668. .compare-label.after {
  669. color: var(--c-accent);
  670. border-color: var(--c-accent);
  671. }
  672. /* ── 9. END ───────────────────────────────────────────────────────── */
  673. /* Closing slide. Dark background. Massive closing headline. No chrome. */
  674. .slide--end {
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: center;
  678. gap: var(--gap-md);
  679. }
  680. /* ╔══════════════════════════════════════════════════════════════════════╗
  681. ║ ZONE F · COMPONENTS ║
  682. ║ ║
  683. ║ Reusable pieces used across multiple layouts. ║
  684. ╚══════════════════════════════════════════════════════════════════════╝ */
  685. /* Accent rule — orange on dark, dark-ink on orange */
  686. .rule {
  687. width: 36px;
  688. height: 2px;
  689. background: var(--c-accent);
  690. }
  691. .orange .rule {
  692. background: #111111;
  693. }
  694. .rule.full {
  695. width: 100%;
  696. background: var(--c-border);
  697. }
  698. .orange .rule.full {
  699. background: rgba(17, 17, 17, 0.2);
  700. }
  701. /* Eyebrow / kicker label — orange on dark, dark-ink on orange */
  702. .kicker {
  703. font-family: var(--f-mono);
  704. font-size: var(--sz-label);
  705. letter-spacing: 0.14em;
  706. text-transform: uppercase;
  707. color: var(--c-accent);
  708. }
  709. .orange .kicker {
  710. color: rgba(17, 17, 17, 0.55);
  711. }
  712. /* Bordered tag */
  713. .tag {
  714. display: inline-block;
  715. font-family: var(--f-mono);
  716. font-size: var(--sz-label);
  717. letter-spacing: 0.14em;
  718. text-transform: uppercase;
  719. color: var(--c-accent);
  720. border: 1px solid var(--c-accent);
  721. padding: 0.3em 0.8em;
  722. line-height: 1;
  723. }
  724. .orange .tag {
  725. color: #111111;
  726. border-color: rgba(17, 17, 17, 0.4);
  727. }
  728. /* Image caption */
  729. .img-caption {
  730. font-family: var(--f-mono);
  731. font-size: var(--sz-caption);
  732. letter-spacing: 0.04em;
  733. opacity: 0.5;
  734. margin-top: 0.8vh;
  735. }
  736. /* ── Broadside-specific: slide number ─────────────────────────────── */
  737. /* The large catalogue number in the top-left corner of orange slides.
  738. Inspired by SPACE10 deck: "01" in small mono, top-left, low opacity. */
  739. .broadside-num {
  740. font-family: var(--f-mono);
  741. font-size: 1.1vw;
  742. font-weight: 500;
  743. letter-spacing: 0.1em;
  744. color: rgba(17, 17, 17, 0.45); /* dark ink on orange */
  745. }
  746. /* On dark slides the number uses muted fg */
  747. .dark .broadside-num {
  748. color: var(--c-fg-3);
  749. }
  750. /* Corner label utility — used for section labels at slide edges */
  751. .corner-label {
  752. font-family: var(--f-mono);
  753. font-size: var(--sz-label);
  754. letter-spacing: 0.1em;
  755. text-transform: uppercase;
  756. color: rgba(17, 17, 17, 0.4);
  757. }
  758. .dark .corner-label {
  759. color: var(--c-fg-3);
  760. }
  761. /* Orange slide cover: a thin top strip showing the slide number + section name */
  762. .broadside-top-chrome {
  763. display: flex;
  764. justify-content: space-between;
  765. align-items: center;
  766. margin-bottom: auto;
  767. padding-bottom: 0;
  768. }
  769. /* ── FADELIST (SPACE10 Before/During/After) ────────────────────────── */
  770. .slide--fadelist {
  771. display: flex;
  772. flex-direction: column;
  773. justify-content: space-between;
  774. }
  775. .fadelist-top {
  776. display: flex;
  777. justify-content: space-between;
  778. align-items: flex-start;
  779. }
  780. .fadelist-items {
  781. display: flex;
  782. flex-direction: column;
  783. align-items: flex-end;
  784. gap: 0;
  785. line-height: 0.92;
  786. }
  787. .fadelist-item {
  788. font-family: var(--f-display);
  789. font-size: 7.5vw;
  790. font-weight: 900;
  791. letter-spacing: -0.03em;
  792. color: #111111;
  793. line-height: 1;
  794. }
  795. .fadelist-item:nth-child(2) {
  796. opacity: 0.5;
  797. }
  798. .fadelist-item:nth-child(3) {
  799. opacity: 0.22;
  800. }
  801. .fadelist-title {
  802. font-family: var(--f-display);
  803. font-size: 10.5vw;
  804. font-weight: 900;
  805. line-height: 0.9;
  806. letter-spacing: -0.04em;
  807. color: #111111;
  808. align-self: flex-end;
  809. }
  810. /* Stats on orange: dark ink instead of cream */
  811. .orange .stat-value {
  812. color: #111111;
  813. }
  814. .orange .stat-label {
  815. color: rgba(17, 17, 17, 0.65);
  816. }
  817. .orange .stat-note {
  818. color: rgba(17, 17, 17, 0.4);
  819. }
  820. .orange .stat-card {
  821. border-top-color: rgba(17, 17, 17, 0.22);
  822. }
  823. /* Compare: right panel gets orange fill */
  824. .compare-panel.panel-orange {
  825. padding-left: calc(var(--pad-x) * 0.55);
  826. background: var(--c-accent);
  827. }
  828. .compare-panel.panel-orange .compare-label {
  829. color: rgba(17, 17, 17, 0.55);
  830. border-color: rgba(17, 17, 17, 0.22);
  831. }
  832. .compare-panel.panel-orange .h3 {
  833. color: #111111;
  834. }
  835. .compare-panel.panel-orange .lead {
  836. color: rgba(17, 17, 17, 0.7);
  837. }
  838. .compare-panel.panel-orange .bullet-list li {
  839. color: #111111;
  840. }
  841. .compare-panel.panel-orange .bullet-list li::before {
  842. color: rgba(17, 17, 17, 0.45);
  843. }
  844. /* ── CHART ─────────────────────────────────────────────────────────── */
  845. .slide--chart .slide-body {
  846. display: flex;
  847. flex-direction: column;
  848. gap: var(--gap-md);
  849. min-height: 0;
  850. }
  851. .chart-header {
  852. display: flex;
  853. justify-content: space-between;
  854. align-items: baseline;
  855. flex-shrink: 0;
  856. }
  857. .chart-wrapper {
  858. flex: 1;
  859. display: flex;
  860. flex-direction: column;
  861. justify-content: flex-end;
  862. min-height: 0;
  863. }
  864. .bar-track {
  865. height: 30vh;
  866. display: flex;
  867. align-items: flex-end;
  868. gap: 4vw;
  869. border-left: 1px solid var(--c-border);
  870. padding-left: 0.5vw;
  871. }
  872. .orange .bar-track {
  873. border-color: rgba(17, 17, 17, 0.2);
  874. }
  875. .bar-col {
  876. flex: 1;
  877. display: flex;
  878. flex-direction: column;
  879. align-items: flex-start;
  880. justify-content: flex-end;
  881. gap: 1vh;
  882. height: 100%;
  883. }
  884. .bar-fill {
  885. width: 100%;
  886. background: var(--c-fg-3);
  887. transition: height 0.6s var(--ease-enter);
  888. }
  889. .bar-fill.accent {
  890. background: var(--c-accent);
  891. }
  892. .orange .bar-fill {
  893. background: rgba(17, 17, 17, 0.22);
  894. }
  895. .orange .bar-fill.accent {
  896. background: #111111;
  897. }
  898. .bar-x-label {
  899. font-family: var(--f-mono);
  900. font-size: var(--sz-caption);
  901. letter-spacing: 0.1em;
  902. color: var(--c-fg-3);
  903. white-space: nowrap;
  904. text-transform: uppercase;
  905. }
  906. .orange .bar-x-label {
  907. color: rgba(17, 17, 17, 0.45);
  908. }
  909. .bar-val {
  910. font-family: var(--f-body);
  911. font-size: var(--sz-body);
  912. font-weight: 700;
  913. color: var(--c-fg-2);
  914. }
  915. .bar-val.hi {
  916. color: var(--c-accent);
  917. }
  918. .orange .bar-val {
  919. color: rgba(17, 17, 17, 0.55);
  920. }
  921. .orange .bar-val.hi {
  922. color: #111111;
  923. }
  924. .chart-baseline {
  925. height: 1px;
  926. background: var(--c-border);
  927. flex-shrink: 0;
  928. margin-top: 1px;
  929. }
  930. .orange .chart-baseline {
  931. background: rgba(17, 17, 17, 0.2);
  932. }
  933. .chart-source {
  934. flex-shrink: 0;
  935. font-family: var(--f-mono);
  936. font-size: var(--sz-caption);
  937. color: var(--c-fg-3);
  938. letter-spacing: 0.06em;
  939. margin-top: var(--gap-sm);
  940. }
  941. .orange .chart-source {
  942. color: rgba(17, 17, 17, 0.4);
  943. }
  944. /* ── DIAGRAM ────────────────────────────────────────────────────────── */
  945. .slide--diagram .slide-body {
  946. display: flex;
  947. flex-direction: column;
  948. justify-content: center;
  949. gap: var(--gap-lg);
  950. min-height: 0;
  951. }
  952. .flow {
  953. display: flex;
  954. align-items: stretch;
  955. gap: 0;
  956. }
  957. .flow-step {
  958. flex: 1;
  959. display: flex;
  960. flex-direction: column;
  961. gap: var(--gap-sm);
  962. padding-right: calc(var(--pad-x) * 0.35);
  963. }
  964. .flow-num {
  965. font-family: var(--f-display);
  966. font-size: 5vw;
  967. font-weight: 900;
  968. line-height: 1;
  969. color: var(--c-accent);
  970. letter-spacing: -0.03em;
  971. }
  972. .orange .flow-num {
  973. color: rgba(17, 17, 17, 0.2);
  974. }
  975. .flow-title {
  976. font-family: var(--f-heading);
  977. font-size: var(--sz-h3);
  978. font-weight: 700;
  979. line-height: 1.15;
  980. color: var(--c-fg);
  981. }
  982. .orange .flow-title {
  983. color: #111111;
  984. }
  985. .flow-desc {
  986. font-family: var(--f-body);
  987. font-size: var(--sz-body);
  988. color: var(--c-fg-2);
  989. line-height: 1.6;
  990. font-weight: 400;
  991. }
  992. .orange .flow-desc {
  993. color: rgba(17, 17, 17, 0.6);
  994. }
  995. .flow-arrow {
  996. display: flex;
  997. align-items: flex-start;
  998. padding-top: 1.2em;
  999. padding-right: calc(var(--pad-x) * 0.35);
  1000. font-size: 2.2vw;
  1001. color: var(--c-accent);
  1002. font-weight: 300;
  1003. flex-shrink: 0;
  1004. }
  1005. .orange .flow-arrow {
  1006. color: rgba(17, 17, 17, 0.3);
  1007. }
  1008. /* ── PIE / DONUT CHART ──────────────────────────────────────────────── */
  1009. .slide--pie .slide-body {
  1010. display: flex;
  1011. flex-direction: column;
  1012. gap: var(--gap-md);
  1013. min-height: 0;
  1014. }
  1015. .pie-row {
  1016. display: grid;
  1017. grid-template-columns: 1fr 1fr;
  1018. gap: calc(var(--pad-x) * 0.7);
  1019. align-items: center;
  1020. flex: 1;
  1021. min-height: 0;
  1022. }
  1023. .pie-donut {
  1024. width: min(28vw, 44vh);
  1025. height: min(28vw, 44vh);
  1026. border-radius: 50%;
  1027. position: relative;
  1028. flex-shrink: 0;
  1029. justify-self: center;
  1030. }
  1031. .pie-donut::after {
  1032. content: "";
  1033. position: absolute;
  1034. inset: 20%;
  1035. border-radius: 50%;
  1036. background: var(--c-bg);
  1037. }
  1038. .orange .pie-donut::after {
  1039. background: var(--c-bg-orange);
  1040. }
  1041. .pie-legend {
  1042. display: flex;
  1043. flex-direction: column;
  1044. gap: var(--gap-md);
  1045. }
  1046. .pie-item {
  1047. display: grid;
  1048. grid-template-columns: 0.8em 1fr auto;
  1049. gap: 1em;
  1050. align-items: center;
  1051. }
  1052. .pie-swatch {
  1053. width: 0.8em;
  1054. height: 0.8em;
  1055. border-radius: 2px;
  1056. flex-shrink: 0;
  1057. }
  1058. .pie-item-label {
  1059. font-family: var(--f-body);
  1060. font-size: var(--sz-lead);
  1061. font-weight: 700;
  1062. line-height: 1.4;
  1063. }
  1064. .pie-item-val {
  1065. font-family: var(--f-mono);
  1066. font-size: var(--sz-body);
  1067. font-weight: 500;
  1068. letter-spacing: 0.06em;
  1069. color: var(--c-accent);
  1070. }
  1071. .orange .pie-item-val {
  1072. color: #111;
  1073. }
  1074. .pie-total {
  1075. margin-top: var(--gap-sm);
  1076. padding-top: var(--gap-sm);
  1077. border-top: 1px solid var(--c-border);
  1078. font-family: var(--f-mono);
  1079. font-size: var(--sz-label);
  1080. letter-spacing: 0.1em;
  1081. color: var(--c-fg-3);
  1082. }
  1083. /* ── PYRAMID ─────────────────────────────────────────────────────────── */
  1084. .slide--pyramid .slide-body {
  1085. display: flex;
  1086. flex-direction: column;
  1087. justify-content: center;
  1088. gap: var(--gap-md);
  1089. min-height: 0;
  1090. }
  1091. .pyramid {
  1092. display: flex;
  1093. flex-direction: column;
  1094. gap: 3px;
  1095. align-items: center;
  1096. }
  1097. .pyr-level {
  1098. display: flex;
  1099. justify-content: space-between;
  1100. align-items: center;
  1101. padding: 1.5vh 2.5vw;
  1102. border-left: 4px solid var(--c-accent);
  1103. transition: width 0.3s;
  1104. }
  1105. .orange .pyr-level {
  1106. border-left-color: rgba(17, 17, 17, 0.4);
  1107. }
  1108. .pyr-level:nth-child(1) {
  1109. background: color-mix(in srgb, var(--c-accent) 75%, var(--c-bg));
  1110. width: 36%;
  1111. }
  1112. .pyr-level:nth-child(2) {
  1113. background: color-mix(in srgb, var(--c-accent) 50%, var(--c-bg));
  1114. width: 52%;
  1115. }
  1116. .pyr-level:nth-child(3) {
  1117. background: color-mix(in srgb, var(--c-accent) 28%, var(--c-bg));
  1118. width: 68%;
  1119. }
  1120. .pyr-level:nth-child(4) {
  1121. background: color-mix(in srgb, var(--c-accent) 14%, var(--c-bg));
  1122. width: 84%;
  1123. }
  1124. .pyr-level:nth-child(5) {
  1125. background: color-mix(in srgb, var(--c-accent) 6%, var(--c-bg));
  1126. width: 100%;
  1127. }
  1128. .pyr-name {
  1129. font-family: var(--f-heading);
  1130. font-size: var(--sz-h3);
  1131. font-weight: 900;
  1132. line-height: 1.1;
  1133. text-transform: lowercase;
  1134. }
  1135. .pyr-desc {
  1136. font-family: var(--f-body);
  1137. font-size: var(--sz-body);
  1138. color: var(--c-fg-2);
  1139. text-align: right;
  1140. max-width: 55%;
  1141. line-height: 1.4;
  1142. font-weight: 400;
  1143. }
  1144. /* ── VERTICAL TIMELINE ───────────────────────────────────────────────── */
  1145. .slide--vtimeline {
  1146. grid-template-rows: auto auto 1fr auto;
  1147. }
  1148. .vt-hl {
  1149. font-family: var(--f-heading);
  1150. font-size: var(--sz-h2);
  1151. font-weight: 900;
  1152. text-transform: lowercase;
  1153. letter-spacing: -0.03em;
  1154. padding-bottom: var(--gap-md);
  1155. border-bottom: 1px solid var(--c-border);
  1156. }
  1157. .vtimeline {
  1158. display: grid;
  1159. grid-template-columns: 8em 2px 1fr;
  1160. gap: 0;
  1161. min-height: 0;
  1162. padding-top: var(--gap-md);
  1163. }
  1164. .vt-date {
  1165. font-family: var(--f-mono);
  1166. font-size: var(--sz-caption);
  1167. letter-spacing: 0.1em;
  1168. color: var(--c-fg-3);
  1169. text-align: right;
  1170. padding: 0 1.5vw 3.5vh 0;
  1171. line-height: 1.4;
  1172. }
  1173. .vt-spine {
  1174. background: var(--c-border);
  1175. position: relative;
  1176. }
  1177. .vt-spine::before {
  1178. content: "";
  1179. position: absolute;
  1180. top: 0.2em;
  1181. left: -5px;
  1182. width: 10px;
  1183. height: 10px;
  1184. background: var(--c-accent);
  1185. }
  1186. .vt-content {
  1187. padding: 0 0 3.5vh 1.5vw;
  1188. }
  1189. .vt-title {
  1190. font-family: var(--f-heading);
  1191. font-size: var(--sz-h3);
  1192. font-weight: 900;
  1193. margin-bottom: 0.6vh;
  1194. line-height: 1.1;
  1195. text-transform: lowercase;
  1196. }
  1197. .vt-body {
  1198. font-family: var(--f-body);
  1199. font-size: var(--sz-body);
  1200. color: var(--c-fg-2);
  1201. line-height: 1.65;
  1202. font-weight: 400;
  1203. }
  1204. /* ── CYCLE PROCESS ───────────────────────────────────────────────────── */
  1205. .slide--cycle .slide-body {
  1206. display: flex;
  1207. flex-direction: column;
  1208. gap: var(--gap-md);
  1209. min-height: 0;
  1210. }
  1211. .cycle-grid {
  1212. display: grid;
  1213. grid-template-columns: 1fr 3em 1fr;
  1214. grid-template-rows: 1fr 3em 1fr;
  1215. gap: var(--gap-sm);
  1216. flex: 1;
  1217. min-height: 0;
  1218. align-items: center;
  1219. }
  1220. .cycle-step {
  1221. display: flex;
  1222. flex-direction: column;
  1223. gap: var(--gap-sm);
  1224. padding: var(--gap-md);
  1225. border-top: 3px solid var(--c-accent);
  1226. }
  1227. .cycle-num {
  1228. font-family: var(--f-display);
  1229. font-size: 4vw;
  1230. font-weight: 900;
  1231. color: var(--c-accent);
  1232. line-height: 1;
  1233. letter-spacing: -0.03em;
  1234. text-transform: lowercase;
  1235. }
  1236. .cycle-title {
  1237. font-family: var(--f-heading);
  1238. font-size: var(--sz-h3);
  1239. font-weight: 900;
  1240. line-height: 1.1;
  1241. text-transform: lowercase;
  1242. }
  1243. .cycle-desc {
  1244. font-family: var(--f-body);
  1245. font-size: var(--sz-body);
  1246. color: var(--c-fg-2);
  1247. line-height: 1.6;
  1248. font-weight: 400;
  1249. }
  1250. .cycle-arrow {
  1251. color: var(--c-fg-3);
  1252. font-size: 2.2vw;
  1253. display: flex;
  1254. align-items: center;
  1255. justify-content: center;
  1256. }
  1257. </style>
  1258. </head>
  1259. <body>
  1260. <div id="deck">
  1261. <!-- ══════════════════════════════════════════════════════════════════
  1262. LAYOUT 1 · COVER (Broadside: orange)
  1263. ──────────────────────────────────────────────────────────────────
  1264. The SPACE10 aesthetic: full orange fill, "01" top-left in tiny mono,
  1265. section label top-right. Massive weight-900 lowercase title.
  1266. Tiny mono subtitle. Author + date in bottom corners.
  1267. ══════════════════════════════════════════════════════════════════ -->
  1268. <section class="slide slide--cover orange">
  1269. <!-- Top chrome: slide number left, section label right -->
  1270. <div class="broadside-top-chrome">
  1271. <span class="broadside-num" data-anim="fade-in" data-delay="0"
  1272. >01</span
  1273. >
  1274. <span class="corner-label" data-anim="fade-in" data-delay="0"
  1275. >Broadside</span
  1276. >
  1277. </div>
  1278. <!-- Main content: fills the slide, anchored to bottom -->
  1279. <div class="cover-body">
  1280. <h1
  1281. class="display"
  1282. data-anim="fade-up"
  1283. data-delay="1"
  1284. style="max-width: 95%"
  1285. >
  1286. this is the broadside style
  1287. </h1>
  1288. <p
  1289. class="lead"
  1290. data-anim="fade-up"
  1291. data-delay="2"
  1292. style="opacity: 0.65; max-width: 55%"
  1293. >
  1294. Protest poster meets publication cover. Type so large it becomes
  1295. image.
  1296. </p>
  1297. </div>
  1298. <!-- Bottom meta: author left, date right -->
  1299. <div class="cover-meta" data-anim="fade-in" data-delay="3">
  1300. <span class="broadside-num">[[Author Name]]</span>
  1301. <span class="broadside-num">[Year] · Context</span>
  1302. </div>
  1303. </section>
  1304. <section class="slide slide--chapter orange">
  1305. <!-- Chapter number: top-left, same small mono as cover -->
  1306. <div
  1307. class="broadside-num"
  1308. data-anim="fade-in"
  1309. data-delay="0"
  1310. style="margin-bottom: var(--gap-lg)"
  1311. >
  1312. 02 / Chapter
  1313. </div>
  1314. <h2 class="h1" data-anim="fade-up" data-delay="1">
  1315. the next chapter begins here
  1316. </h2>
  1317. <p
  1318. class="lead"
  1319. data-anim="fade-up"
  1320. data-delay="2"
  1321. style="max-width: 50%; margin-top: var(--gap-md); opacity: 0.65"
  1322. >
  1323. One optional sentence that frames what this section is about.
  1324. </p>
  1325. </section>
  1326. <section class="slide slide--statement dark">
  1327. <header class="slide-chrome">
  1328. <span class="label muted">The Argument</span>
  1329. <span class="label muted">03</span>
  1330. </header>
  1331. <div class="statement-body">
  1332. <p class="kicker" data-anim="fade-in" data-delay="0">Core Thesis</p>
  1333. <div
  1334. class="rule"
  1335. data-anim="reveal-right"
  1336. data-delay="1"
  1337. style="margin: 1.8vh 0"
  1338. ></div>
  1339. <!-- The .accent class makes this orange — the punchline -->
  1340. <h2
  1341. class="h1 accent"
  1342. data-anim="fade-up"
  1343. data-delay="2"
  1344. style="max-width: 75%"
  1345. >
  1346. orange is not an accent. it is the room.
  1347. </h2>
  1348. </div>
  1349. <footer class="slide-foot">
  1350. <span class="label muted">Broadside</span>
  1351. <span class="label muted">[Author Name]</span>
  1352. </footer>
  1353. </section>
  1354. <section class="slide slide--split dark">
  1355. <header class="slide-chrome">
  1356. <span class="label muted">Details</span>
  1357. <span class="label muted">04</span>
  1358. </header>
  1359. <div class="slide-body">
  1360. <div class="split-text">
  1361. <p class="kicker" data-anim="fade-in" data-delay="0">Context</p>
  1362. <div
  1363. class="rule"
  1364. data-anim="reveal-right"
  1365. data-delay="1"
  1366. style="margin: 1.5vh 0"
  1367. ></div>
  1368. <h2 class="h2" data-anim="fade-up" data-delay="2">
  1369. when content needs image support
  1370. </h2>
  1371. <p
  1372. class="lead muted"
  1373. data-anim="fade-up"
  1374. data-delay="3"
  1375. style="max-width: 90%"
  1376. >
  1377. One or two sentences of supporting context. Short. Dense. No
  1378. padding.
  1379. </p>
  1380. <!-- Broadside list: max 3 items, forward-slash bullet -->
  1381. <ul class="bullet-list" data-anim="fade-up" data-delay="4">
  1382. <li>First key supporting point</li>
  1383. <li>Second point, equally direct</li>
  1384. <li>Third and final — end strong</li>
  1385. </ul>
  1386. </div>
  1387. <div class="split-image" data-anim="reveal-right" data-delay="2">
  1388. <div class="img-placeholder">Image Placeholder</div>
  1389. <p class="img-caption">Image caption or source · Year</p>
  1390. </div>
  1391. </div>
  1392. <footer class="slide-foot">
  1393. <span class="label muted">Broadside</span>
  1394. <span class="label muted">[Author Name]</span>
  1395. </footer>
  1396. </section>
  1397. <section class="slide slide--stats orange">
  1398. <header class="slide-chrome">
  1399. <span class="broadside-num">05</span>
  1400. <span class="corner-label">By the numbers</span>
  1401. </header>
  1402. <div class="slide-body">
  1403. <div class="stats-grid" data-anim="fade-up" data-delay="1">
  1404. <div class="stat-card">
  1405. <div class="stat-value" data-anim="scale-in" data-delay="1">
  1406. $3.5B
  1407. </div>
  1408. <div class="stat-label body">
  1409. Series E closed at $61.5B valuation
  1410. </div>
  1411. <div class="stat-note">[Source] · [Year]</div>
  1412. </div>
  1413. <div class="stat-card">
  1414. <div class="stat-value" data-anim="scale-in" data-delay="2">
  1415. 3×
  1416. </div>
  1417. <div class="stat-label body">
  1418. Enterprise deployments up quarter over quarter
  1419. </div>
  1420. <div class="stat-note">Primary research</div>
  1421. </div>
  1422. <div class="stat-card">
  1423. <div class="stat-value" data-anim="scale-in" data-delay="3">
  1424. #1
  1425. </div>
  1426. <div class="stat-label body">
  1427. App Store ranking · [Product Name] · [Date]
  1428. </div>
  1429. <div class="stat-note">App Store Charts</div>
  1430. </div>
  1431. </div>
  1432. </div>
  1433. <footer class="slide-foot">
  1434. <span class="broadside-num" style="opacity: 0.4">Broadside</span>
  1435. <span class="broadside-num" style="opacity: 0.4">[Author Name]</span>
  1436. </footer>
  1437. </section>
  1438. <section class="slide slide--fadelist orange">
  1439. <div class="fadelist-top">
  1440. <span class="broadside-num" data-anim="fade-in" data-delay="0"
  1441. >01</span
  1442. >
  1443. <div class="fadelist-items" data-anim="fade-up" data-delay="1">
  1444. <span class="fadelist-item">Before</span>
  1445. <span class="fadelist-item">During</span>
  1446. <span class="fadelist-item">After</span>
  1447. </div>
  1448. </div>
  1449. <div class="fadelist-title" data-anim="fade-up" data-delay="2">
  1450. the<br />session
  1451. </div>
  1452. <div
  1453. style="
  1454. display: flex;
  1455. justify-content: space-between;
  1456. align-items: flex-end;
  1457. padding-top: var(--gap-sm);
  1458. border-top: 1px solid rgba(17, 17, 17, 0.15);
  1459. "
  1460. >
  1461. <span class="broadside-num" style="opacity: 0.4"
  1462. >[Studio X] Guidelines</span
  1463. >
  1464. <span class="broadside-num" style="opacity: 0.4">06 / 10</span>
  1465. </div>
  1466. </section>
  1467. <section class="slide slide--list dark">
  1468. <header class="slide-chrome">
  1469. <span class="label muted">The Framework</span>
  1470. <span class="label muted">07</span>
  1471. </header>
  1472. <div class="slide-body">
  1473. <div class="list-head">
  1474. <p class="kicker" data-anim="fade-in" data-delay="0">Four rules</p>
  1475. <h2 class="h2" data-anim="fade-up" data-delay="1">
  1476. what separates<br />signal from noise
  1477. </h2>
  1478. </div>
  1479. <ul class="bullet-list" data-anim="fade-up" data-delay="2">
  1480. <li>Ship before it's ready — learn faster than you plan</li>
  1481. <li>
  1482. One metric that matters — ignore everything else this quarter
  1483. </li>
  1484. <li>
  1485. The customer is always wrong about solutions, never about problems
  1486. </li>
  1487. <li>
  1488. Speed is a feature — slow companies don't get a second chance
  1489. </li>
  1490. </ul>
  1491. </div>
  1492. <footer class="slide-foot">
  1493. <span class="label muted">Broadside</span>
  1494. <span class="label muted">[Author Name]</span>
  1495. </footer>
  1496. </section>
  1497. <section class="slide slide--quote dark">
  1498. <p
  1499. class="kicker accent"
  1500. data-anim="fade-in"
  1501. data-delay="0"
  1502. style="margin-bottom: var(--gap-lg)"
  1503. >
  1504. On speed
  1505. </p>
  1506. <div class="quote-text" data-anim="fade-up" data-delay="1">
  1507. "Move fast and you'll break things. Move slow and something else will
  1508. break you."
  1509. </div>
  1510. <div class="quote-attr" data-anim="fade-up" data-delay="2">
  1511. <span class="label accent">[Industry Leader]</span>
  1512. <span class="label muted">[Source] · [Year]</span>
  1513. </div>
  1514. </section>
  1515. <section class="slide slide--compare dark">
  1516. <header class="slide-chrome">
  1517. <span class="label muted">Before · After</span>
  1518. <span class="label muted">09</span>
  1519. </header>
  1520. <div class="slide-body">
  1521. <div class="compare-panel left">
  1522. <div class="compare-label" data-anim="fade-in" data-delay="0">
  1523. Before
  1524. </div>
  1525. <h3 class="h3" data-anim="fade-up" data-delay="1">
  1526. six-month build cycles
  1527. </h3>
  1528. <p class="lead muted" data-anim="fade-up" data-delay="2">
  1529. Teams planned for months before shipping anything. By launch, the
  1530. market had moved.
  1531. </p>
  1532. <ul
  1533. class="bullet-list"
  1534. data-anim="fade-up"
  1535. data-delay="3"
  1536. style="--sz-lead: 1.2vw"
  1537. >
  1538. <li>Waterfall planning, quarterly roadmaps</li>
  1539. <li>User testing at the end, not the start</li>
  1540. <li>Success measured by features shipped</li>
  1541. </ul>
  1542. </div>
  1543. <div class="compare-panel panel-orange">
  1544. <div class="compare-label after" data-anim="fade-in" data-delay="0">
  1545. After
  1546. </div>
  1547. <h3
  1548. class="h3"
  1549. data-anim="fade-up"
  1550. data-delay="1"
  1551. style="color: #111"
  1552. >
  1553. two-week iteration loops
  1554. </h3>
  1555. <p
  1556. class="lead"
  1557. data-anim="fade-up"
  1558. data-delay="2"
  1559. style="color: rgba(17, 17, 17, 0.65)"
  1560. >
  1561. Ship a rough version. Watch what users actually do. Rebuild. Ship
  1562. again.
  1563. </p>
  1564. <ul
  1565. class="bullet-list"
  1566. data-anim="fade-up"
  1567. data-delay="3"
  1568. style="--sz-lead: 1.2vw"
  1569. >
  1570. <li>Weekly user sessions, continuous discovery</li>
  1571. <li>Metrics reviewed daily, not quarterly</li>
  1572. <li>Success measured by behavior change</li>
  1573. </ul>
  1574. </div>
  1575. </div>
  1576. <footer class="slide-foot">
  1577. <span class="label muted">Broadside</span>
  1578. <span class="label muted">[Author Name]</span>
  1579. </footer>
  1580. </section>
  1581. <section class="slide slide--chart dark">
  1582. <header class="slide-chrome">
  1583. <span class="label muted">Growth Metrics</span>
  1584. <span class="label muted">11</span>
  1585. </header>
  1586. <div class="slide-body">
  1587. <div class="chart-header">
  1588. <h2 class="h2" data-anim="fade-up" data-delay="0">
  1589. revenue by quarter
  1590. </h2>
  1591. <span class="caption muted" data-anim="fade-in" data-delay="1"
  1592. >USD · Millions · FY 2025</span
  1593. >
  1594. </div>
  1595. <div class="chart-wrapper" data-anim="fade-up" data-delay="2">
  1596. <div class="bar-track">
  1597. <div class="bar-col">
  1598. <span class="bar-val">$1.2M</span>
  1599. <div class="bar-fill" style="height: 12vh"></div>
  1600. <span class="bar-x-label">Q1</span>
  1601. </div>
  1602. <div class="bar-col">
  1603. <span class="bar-val">$1.7M</span>
  1604. <div class="bar-fill" style="height: 17vh"></div>
  1605. <span class="bar-x-label">Q2</span>
  1606. </div>
  1607. <div class="bar-col">
  1608. <span class="bar-val">$2.1M</span>
  1609. <div class="bar-fill" style="height: 21vh"></div>
  1610. <span class="bar-x-label">Q3</span>
  1611. </div>
  1612. <div class="bar-col">
  1613. <span class="bar-val hi">$2.8M</span>
  1614. <div class="bar-fill accent" style="height: 28vh"></div>
  1615. <span class="bar-x-label">Q4</span>
  1616. </div>
  1617. </div>
  1618. <div class="chart-baseline"></div>
  1619. </div>
  1620. <p class="chart-source" data-anim="fade-in" data-delay="3">
  1621. Source: Internal finance data · Q4 2025 Annual Report
  1622. </p>
  1623. </div>
  1624. <footer class="slide-foot">
  1625. <span class="label muted">Broadside</span>
  1626. <span class="label muted">[Author Name]</span>
  1627. </footer>
  1628. </section>
  1629. <section class="slide slide--diagram orange">
  1630. <header class="slide-chrome">
  1631. <span class="broadside-num">12</span>
  1632. <span class="corner-label">The Process</span>
  1633. </header>
  1634. <div class="slide-body">
  1635. <h2
  1636. class="h2"
  1637. style="color: #111; letter-spacing: -0.02em"
  1638. data-anim="fade-up"
  1639. data-delay="0"
  1640. >
  1641. how it works
  1642. </h2>
  1643. <div class="flow" data-anim="fade-up" data-delay="1">
  1644. <div class="flow-step">
  1645. <div class="flow-num">01</div>
  1646. <div class="flow-title">Discover</div>
  1647. <div class="flow-desc">
  1648. Talk to users. Read the data. Surface what's actually true vs.
  1649. what the team assumes.
  1650. </div>
  1651. </div>
  1652. <div class="flow-arrow">→</div>
  1653. <div class="flow-step">
  1654. <div class="flow-num">02</div>
  1655. <div class="flow-title">Define</div>
  1656. <div class="flow-desc">
  1657. Narrow to one problem worth solving. Write it as a testable
  1658. hypothesis, not a feature request.
  1659. </div>
  1660. </div>
  1661. <div class="flow-arrow">→</div>
  1662. <div class="flow-step">
  1663. <div class="flow-num">03</div>
  1664. <div class="flow-title">Design</div>
  1665. <div class="flow-desc">
  1666. Build the simplest thing that could prove or disprove the
  1667. hypothesis. Skip the polish.
  1668. </div>
  1669. </div>
  1670. <div class="flow-arrow">→</div>
  1671. <div class="flow-step">
  1672. <div class="flow-num">04</div>
  1673. <div class="flow-title">Deploy</div>
  1674. <div class="flow-desc">
  1675. Ship to real users. Measure behavior, not opinions. Repeat from
  1676. step one with new data.
  1677. </div>
  1678. </div>
  1679. </div>
  1680. </div>
  1681. <footer class="slide-foot" style="border-color: rgba(17, 17, 17, 0.15)">
  1682. <span class="broadside-num" style="opacity: 0.4">Broadside</span>
  1683. <span class="broadside-num" style="opacity: 0.4">[Author Name]</span>
  1684. </footer>
  1685. </section>
  1686. <section class="slide slide--pie dark">
  1687. <header class="slide-chrome">
  1688. <span class="label muted">Market Share</span>
  1689. <span class="label muted">13</span>
  1690. </header>
  1691. <div class="slide-body">
  1692. <h2
  1693. class="h2"
  1694. data-anim="fade-up"
  1695. data-delay="0"
  1696. style="font-weight: 900"
  1697. >
  1698. where the market sits
  1699. </h2>
  1700. <div class="pie-row" data-anim="fade-up" data-delay="1">
  1701. <!-- Donut: conic-gradient segments match legend order -->
  1702. <div
  1703. class="pie-donut"
  1704. style="
  1705. background: conic-gradient(
  1706. var(--c-accent) 0% 40%,
  1707. #3a3a38 40% 68%,
  1708. #555550 68% 88%,
  1709. #282826 88% 100%
  1710. );
  1711. "
  1712. ></div>
  1713. <div class="pie-legend">
  1714. <div class="pie-item">
  1715. <div
  1716. class="pie-swatch"
  1717. style="background: var(--c-accent)"
  1718. ></div>
  1719. <span class="pie-item-label">Leader</span>
  1720. <span class="pie-item-val">40%</span>
  1721. </div>
  1722. <div class="pie-item">
  1723. <div class="pie-swatch" style="background: #3a3a38"></div>
  1724. <span class="pie-item-label">Challenger</span>
  1725. <span class="pie-item-val">28%</span>
  1726. </div>
  1727. <div class="pie-item">
  1728. <div class="pie-swatch" style="background: #555550"></div>
  1729. <span class="pie-item-label">Followers</span>
  1730. <span class="pie-item-val">20%</span>
  1731. </div>
  1732. <div class="pie-item">
  1733. <div class="pie-swatch" style="background: #282826"></div>
  1734. <span class="pie-item-label">Other</span>
  1735. <span class="pie-item-val">12%</span>
  1736. </div>
  1737. <div class="pie-total">TOTAL MARKET: $[X]B · [Year] ESTIMATE</div>
  1738. </div>
  1739. </div>
  1740. <p class="chart-source" data-anim="fade-in" data-delay="2">
  1741. Source: [Industry report] · [Year] · Estimates only
  1742. </p>
  1743. </div>
  1744. <footer class="slide-foot">
  1745. <span class="label muted">[Author]</span>
  1746. <span class="label muted">[Year]</span>
  1747. </footer>
  1748. </section>
  1749. <section class="slide slide--pyramid dark">
  1750. <header class="slide-chrome">
  1751. <span class="label muted">The Hierarchy</span>
  1752. <span class="label muted">14</span>
  1753. </header>
  1754. <div class="slide-body">
  1755. <h2
  1756. class="h2"
  1757. data-anim="fade-up"
  1758. data-delay="0"
  1759. style="font-weight: 900"
  1760. >
  1761. what actually matters
  1762. </h2>
  1763. <div class="pyramid" data-anim="fade-up" data-delay="1">
  1764. <div class="pyr-level">
  1765. <span class="pyr-name">mission</span>
  1766. <span class="pyr-desc">why this exists</span>
  1767. </div>
  1768. <div class="pyr-level">
  1769. <span class="pyr-name">strategy</span>
  1770. <span class="pyr-desc">what we're betting on</span>
  1771. </div>
  1772. <div class="pyr-level">
  1773. <span class="pyr-name">product</span>
  1774. <span class="pyr-desc">what we're building</span>
  1775. </div>
  1776. <div class="pyr-level">
  1777. <span class="pyr-name">growth</span>
  1778. <span class="pyr-desc">how we reach people</span>
  1779. </div>
  1780. <div class="pyr-level">
  1781. <span class="pyr-name">operations</span>
  1782. <span class="pyr-desc">how we run the day-to-day</span>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. <footer class="slide-foot">
  1787. <span class="label muted">[Author]</span>
  1788. <span class="label muted">[Year]</span>
  1789. </footer>
  1790. </section>
  1791. <section class="slide slide--vtimeline dark">
  1792. <header class="slide-chrome">
  1793. <span class="label muted">The Story</span>
  1794. <span class="label muted">15</span>
  1795. </header>
  1796. <div class="vt-hl" data-anim="fade-up" data-delay="0">
  1797. how we got here
  1798. </div>
  1799. <div class="vtimeline" data-anim="fade-up" data-delay="1">
  1800. <!-- Event 1 -->
  1801. <div class="vt-date">[Year −3]</div>
  1802. <div class="vt-spine"></div>
  1803. <div class="vt-content">
  1804. <div class="vt-title">the idea</div>
  1805. <div class="vt-body">
  1806. One slide. Three slides. Nineteen rejections. One yes.
  1807. </div>
  1808. </div>
  1809. <!-- Event 2 -->
  1810. <div class="vt-date">[Year −2]</div>
  1811. <div class="vt-spine"></div>
  1812. <div class="vt-content">
  1813. <div class="vt-title">first product</div>
  1814. <div class="vt-body">
  1815. Launched to [N] users. [X]% used it daily after week one.
  1816. </div>
  1817. </div>
  1818. <!-- Event 3 -->
  1819. <div class="vt-date">[Year −1]</div>
  1820. <div class="vt-spine"></div>
  1821. <div class="vt-content">
  1822. <div class="vt-title">the pivot</div>
  1823. <div class="vt-body">
  1824. Killed [X] features. Found the one thing that changed retention.
  1825. </div>
  1826. </div>
  1827. <!-- Event 4 -->
  1828. <div class="vt-date">[Year 0]</div>
  1829. <div class="vt-spine"></div>
  1830. <div class="vt-content">
  1831. <div class="vt-title">now</div>
  1832. <div class="vt-body">
  1833. [N]k users. $[X]M ARR. The hard part starts here.
  1834. </div>
  1835. </div>
  1836. </div>
  1837. <footer class="slide-foot">
  1838. <span class="label muted">[Author] / [Year]</span>
  1839. <span class="label muted">15</span>
  1840. </footer>
  1841. </section>
  1842. <section class="slide slide--cycle dark">
  1843. <header class="slide-chrome">
  1844. <span class="label muted">The Loop</span>
  1845. <span class="label muted">16</span>
  1846. </header>
  1847. <div class="slide-body">
  1848. <h2
  1849. class="h2"
  1850. data-anim="fade-up"
  1851. data-delay="0"
  1852. style="font-weight: 900"
  1853. >
  1854. build · measure · learn
  1855. </h2>
  1856. <div class="cycle-grid" data-anim="fade-up" data-delay="1">
  1857. <!-- Row 1 -->
  1858. <div class="cycle-step">
  1859. <div class="cycle-num">01</div>
  1860. <div class="cycle-title">build</div>
  1861. <div class="cycle-desc">
  1862. Ship the smallest version that could prove the idea wrong.
  1863. </div>
  1864. </div>
  1865. <div class="cycle-arrow">→</div>
  1866. <div class="cycle-step">
  1867. <div class="cycle-num">02</div>
  1868. <div class="cycle-title">measure</div>
  1869. <div class="cycle-desc">
  1870. What did users actually do? Not what they said — what they did.
  1871. </div>
  1872. </div>
  1873. <!-- Row 2: arrows -->
  1874. <div class="cycle-arrow">↓</div>
  1875. <div></div>
  1876. <div class="cycle-arrow">↓</div>
  1877. <!-- Row 3 (reversed: left=04, right=03 to form clockwise loop) -->
  1878. <div class="cycle-step">
  1879. <div class="cycle-num">04</div>
  1880. <div class="cycle-title">learn</div>
  1881. <div class="cycle-desc">
  1882. Update the hypothesis. Kill what didn't work. Double what did.
  1883. </div>
  1884. </div>
  1885. <div class="cycle-arrow">←</div>
  1886. <div class="cycle-step">
  1887. <div class="cycle-num">03</div>
  1888. <div class="cycle-title">decide</div>
  1889. <div class="cycle-desc">
  1890. Ship to more users or go back to step one. There is no third
  1891. option.
  1892. </div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <footer class="slide-foot">
  1897. <span class="label muted">[Author] / [Year]</span>
  1898. <span class="label muted">16</span>
  1899. </footer>
  1900. </section>
  1901. <section class="slide slide--end orange">
  1902. <div class="broadside-top-chrome">
  1903. <span class="broadside-num" data-anim="fade-in" data-delay="0"
  1904. >10</span
  1905. >
  1906. <span class="corner-label" data-anim="fade-in" data-delay="0"
  1907. >End</span
  1908. >
  1909. </div>
  1910. <h1
  1911. class="display"
  1912. data-anim="fade-up"
  1913. data-delay="1"
  1914. style="
  1915. color: #111;
  1916. max-width: 80%;
  1917. line-height: 0.9;
  1918. letter-spacing: -0.04em;
  1919. "
  1920. >
  1921. let's<br />talk.
  1922. </h1>
  1923. <div
  1924. style="display: flex; flex-direction: column; gap: var(--gap-sm)"
  1925. data-anim="fade-up"
  1926. data-delay="2"
  1927. >
  1928. <p class="lead" style="color: rgba(17, 17, 17, 0.65); max-width: 45%">
  1929. [hello@company.com] · [@handle] · [company.com]
  1930. </p>
  1931. </div>
  1932. <div
  1933. style="
  1934. display: flex;
  1935. justify-content: space-between;
  1936. align-items: flex-end;
  1937. margin-top: auto;
  1938. padding-top: var(--gap-sm);
  1939. border-top: 1px solid rgba(17, 17, 17, 0.15);
  1940. "
  1941. >
  1942. <span class="broadside-num" style="opacity: 0.4">[Author Name]</span>
  1943. <span class="broadside-num" style="opacity: 0.4">[Year]</span>
  1944. </div>
  1945. </section>
  1946. </div>
  1947. <!-- /#deck -->
  1948. <nav id="nav-dots" aria-label="Slide navigation"></nav>
  1949. <div id="slide-counter"></div>
  1950. <script>
  1951. (function () {
  1952. const deck = document.getElementById("deck");
  1953. const dotsNav = document.getElementById("nav-dots");
  1954. const counter = document.getElementById("slide-counter");
  1955. const slides = Array.from(deck.querySelectorAll(".slide"));
  1956. const total = slides.length;
  1957. let current = 0;
  1958. let isAnimating = false;
  1959. // Size the deck to fit all slides side by side
  1960. deck.style.width = "calc(" + total + " * 100vw)";
  1961. // Build navigation dots dynamically from slide count
  1962. slides.forEach(function (_, i) {
  1963. const dot = document.createElement("button");
  1964. dot.className = "nav-dot";
  1965. dot.setAttribute("aria-label", "Slide " + (i + 1));
  1966. dot.addEventListener("click", function () {
  1967. goTo(i);
  1968. });
  1969. dotsNav.appendChild(dot);
  1970. });
  1971. function pad(n) {
  1972. return String(n).padStart(2, "0");
  1973. }
  1974. function goTo(index) {
  1975. if (isAnimating) return;
  1976. if (index < 0 || index >= total) return;
  1977. if (
  1978. index === current &&
  1979. slides[current].classList.contains("is-active")
  1980. )
  1981. return;
  1982. isAnimating = true;
  1983. slides[current].classList.remove("is-active");
  1984. current = index;
  1985. const slide = slides[current];
  1986. // Reset animations so re-visiting a slide re-plays them
  1987. slide.querySelectorAll("[data-anim]").forEach(function (el) {
  1988. el.style.animation = "none";
  1989. void el.offsetHeight; // force reflow to clear animation state
  1990. el.style.animation = "";
  1991. });
  1992. slide.classList.add("is-active");
  1993. deck.style.transform = "translateX(calc(-" + current + " * 100vw))";
  1994. // Update dots
  1995. dotsNav.querySelectorAll(".nav-dot").forEach(function (d, i) {
  1996. d.classList.toggle("is-active", i === current);
  1997. });
  1998. // Update counter
  1999. counter.textContent = pad(current + 1) + " / " + pad(total);
  2000. setTimeout(function () {
  2001. isAnimating = false;
  2002. }, 900);
  2003. }
  2004. // Keyboard navigation — arrows, space, Home/End
  2005. document.addEventListener("keydown", function (e) {
  2006. if (
  2007. e.key === "ArrowRight" ||
  2008. e.key === " " ||
  2009. e.key === "ArrowDown"
  2010. ) {
  2011. e.preventDefault();
  2012. goTo(current + 1);
  2013. }
  2014. if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
  2015. e.preventDefault();
  2016. goTo(current - 1);
  2017. }
  2018. if (e.key === "Home") goTo(0);
  2019. if (e.key === "End") goTo(total - 1);
  2020. });
  2021. // Touch swipe — 40px threshold
  2022. var touchStartX = 0;
  2023. document.addEventListener(
  2024. "touchstart",
  2025. function (e) {
  2026. touchStartX = e.touches[0].clientX;
  2027. },
  2028. { passive: true },
  2029. );
  2030. document.addEventListener(
  2031. "touchend",
  2032. function (e) {
  2033. var dx = e.changedTouches[0].clientX - touchStartX;
  2034. if (Math.abs(dx) > 40) goTo(current + (dx < 0 ? 1 : -1));
  2035. },
  2036. { passive: true },
  2037. );
  2038. // Mouse wheel — 1000ms lock prevents double-firing
  2039. var wheelLocked = false;
  2040. document.addEventListener(
  2041. "wheel",
  2042. function (e) {
  2043. if (wheelLocked) return;
  2044. var primary =
  2045. Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
  2046. goTo(current + (primary > 0 ? 1 : -1));
  2047. wheelLocked = true;
  2048. setTimeout(function () {
  2049. wheelLocked = false;
  2050. }, 1000);
  2051. },
  2052. { passive: true },
  2053. );
  2054. // Kick off on slide 1
  2055. goTo(0);
  2056. })();
  2057. </script>
  2058. </body>
  2059. </html>