example.html 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  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>Mat Presentation</title>
  7. <!-- Preconnect to Google Fonts for faster loading -->
  8. <link rel="preconnect" href="https://fonts.googleapis.com" />
  9. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  10. <!-- Bricolage Grotesque: heavy rounded grotesque — the display workhorse of this template.
  11. DM Sans: clean and neutral for body copy.
  12. DM Mono: for labels, kickers, and metadata.
  13. Noto Sans SC: Chinese fallback for all roles. -->
  14. <link
  15. href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@300;400&family=Noto+Sans+SC:wght@400;500;700&display=swap"
  16. rel="stylesheet"
  17. />
  18. <style>
  19. /* ╔══════════════════════════════════════════════════════════════════════╗
  20. ║ ZONE A · TOKENS ║
  21. ║ ║
  22. ║ Mat theme — inspired by a product landing page with a dark ║
  23. ║ green surface and warm material tones. ║
  24. ║ Dark forest green as dominant environment. ║
  25. ║ Warm orange as the accent. ║
  26. ║ Cream type floating directly on the field. ║
  27. ╚══════════════════════════════════════════════════════════════════════╝ */
  28. :root {
  29. /* ── Palette — dark green surface with warm material tones ─────── */
  30. --c-bg: #232e26; /* dark forest green — the surface */
  31. --c-bg-alt: #2e3d30; /* slightly lighter green surface */
  32. --c-bg-light: #ede6d0; /* warm cream — info card + light slides */
  33. --c-bg-light-alt: #e4dac4;
  34. --c-fg: #f0e8d2; /* warm cream — primary text on dark */
  35. --c-fg-2: rgba(240, 232, 210, 0.58);
  36. --c-fg-3: rgba(240, 232, 210, 0.3);
  37. --c-fg-light: #1e2820; /* dark green — text on cream slides */
  38. --c-fg-light-2: rgba(30, 40, 32, 0.6);
  39. --c-fg-light-3: rgba(30, 40, 32, 0.3);
  40. --c-accent: #c07030; /* warm orange accent */
  41. --c-border: rgba(240, 232, 210, 0.12);
  42. --c-border-light: rgba(30, 40, 32, 0.14);
  43. /* Wood warm tone — used for the atmospheric bottom-right glow */
  44. --c-wood: #7a4e24;
  45. /* ── Typography ──────────────────────────────────────────────────── */
  46. /* Display/Heading: Bricolage Grotesque — heavy, rounded, mixed case.
  47. The defining font of this template. Weight 700–800 at display scale. */
  48. --f-display: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  49. --f-heading: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  50. /* Body: DM Sans — neutral, readable, lets the display type breathe */
  51. --f-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  52. /* Mono: DM Mono — for kickers, labels, metadata, rotated edge tags */
  53. --f-mono: "DM Mono", monospace;
  54. /* ── Type Scale ──────────────────────────────────────────────────── */
  55. /* vw units = responsive to viewport width */
  56. --sz-display: 12vw; /* hero cover title — massive, commanding */
  57. --sz-h1: 7vw; /* chapter / end slide headline */
  58. --sz-h2: 4vw; /* content slide headline */
  59. --sz-h3: 2.4vw; /* sub-headline, compare panel title */
  60. --sz-lead: 1.5vw; /* lead paragraph — slightly larger than body */
  61. --sz-body: 1.05vw; /* body text, bullets */
  62. --sz-caption: 0.82vw; /* image captions, footnotes */
  63. --sz-label: 0.7vw; /* chrome labels, kickers, mono tags */
  64. /* ── Spacing ─────────────────────────────────────────────────────── */
  65. --pad-x: 5.5vw; /* slide horizontal padding — tighter than skeleton */
  66. --pad-y: 5.5vh; /* slide vertical padding */
  67. --gap-lg: 4.5vh; /* between major content sections */
  68. --gap-md: 2.8vh; /* between related elements */
  69. --gap-sm: 1.4vh; /* between tightly related elements */
  70. /* ── Motion: zero — this template is fully static ───────────────── */
  71. --ease-slide: cubic-bezier(0.77, 0, 0.175, 1);
  72. --dur-slide: 0s;
  73. --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  74. --dur-enter: 0s;
  75. }
  76. /* ╔══════════════════════════════════════════════════════════════════════╗
  77. ║ ZONE B · ENGINE — DO NOT MODIFY ║
  78. ║ ║
  79. ║ Copied from skeleton.html. Deck flex layout, slide base, ║
  80. ║ theme classes, nav dots, slide counter. ║
  81. ║ Touching this breaks navigation. ║
  82. ╚══════════════════════════════════════════════════════════════════════╝ */
  83. *,
  84. *::before,
  85. *::after {
  86. box-sizing: border-box;
  87. margin: 0;
  88. padding: 0;
  89. }
  90. html,
  91. body {
  92. width: 100%;
  93. height: 100%;
  94. overflow: hidden;
  95. background: var(--c-bg);
  96. -webkit-font-smoothing: antialiased;
  97. }
  98. /* Deck container — all slides sit side by side horizontally */
  99. #deck {
  100. display: flex;
  101. height: 100vh;
  102. /* Width = N * 100vw, set dynamically by JS */
  103. transition: transform var(--dur-slide) var(--ease-slide);
  104. will-change: transform;
  105. }
  106. /* Slide base — each slide is one full viewport */
  107. .slide {
  108. flex: 0 0 100vw;
  109. width: 100vw;
  110. height: 100vh;
  111. position: relative;
  112. padding: var(--pad-y) var(--pad-x);
  113. display: grid;
  114. grid-template-rows: auto 1fr auto;
  115. overflow: hidden;
  116. }
  117. /* Prevent grid children from overflowing their row */
  118. .slide-body {
  119. min-height: 0;
  120. }
  121. /* Slide themes — overridden by the mat's own dark/light rules below */
  122. .slide.dark {
  123. background: var(--c-bg);
  124. color: var(--c-fg);
  125. }
  126. .slide.light {
  127. background: var(--c-bg-light);
  128. color: var(--c-fg-light);
  129. }
  130. /* ── Navigation dots ──────────────────────────────────────────────── */
  131. #nav-dots {
  132. position: fixed;
  133. bottom: 24px;
  134. left: 50%;
  135. transform: translateX(-50%);
  136. display: flex;
  137. gap: 7px;
  138. z-index: 100;
  139. }
  140. .nav-dot {
  141. width: 5px;
  142. height: 5px;
  143. border-radius: 50%;
  144. border: none;
  145. background: rgba(255, 255, 255, 0.22);
  146. cursor: pointer;
  147. transition:
  148. background 0.3s,
  149. transform 0.3s;
  150. padding: 0;
  151. }
  152. .nav-dot.is-active {
  153. background: rgba(255, 255, 255, 0.8);
  154. transform: scale(1.4);
  155. }
  156. /* Slide counter — bottom right, subtle */
  157. #slide-counter {
  158. position: fixed;
  159. bottom: 20px;
  160. right: 28px;
  161. font-family: var(--f-mono);
  162. font-size: 10px;
  163. letter-spacing: 0.12em;
  164. color: rgba(255, 255, 255, 0.25);
  165. z-index: 100;
  166. user-select: none;
  167. }
  168. /* ╔══════════════════════════════════════════════════════════════════════╗
  169. ║ ZONE C · TYPOGRAPHY ║
  170. ║ ║
  171. ║ All type classes written from scratch for the mat theme. ║
  172. ║ Bricolage Grotesque 700–800 for display and headings. ║
  173. ║ Headings are ALWAYS mixed case — never uppercase. ║
  174. ╚══════════════════════════════════════════════════════════════════════╝ */
  175. /* Display: the massive cover title. 12vw, very tight leading. */
  176. .display {
  177. font-family: var(--f-display);
  178. font-size: var(--sz-display);
  179. font-weight: 800;
  180. line-height: 0.88;
  181. letter-spacing: -0.03em;
  182. }
  183. /* H1: chapter/end slides. Slightly smaller than display, still commanding. */
  184. .h1 {
  185. font-family: var(--f-heading);
  186. font-size: var(--sz-h1);
  187. font-weight: 800;
  188. line-height: 0.92;
  189. letter-spacing: -0.025em;
  190. }
  191. /* H2: the workhorse content slide headline. */
  192. .h2 {
  193. font-family: var(--f-heading);
  194. font-size: var(--sz-h2);
  195. font-weight: 700;
  196. line-height: 1;
  197. letter-spacing: -0.02em;
  198. }
  199. /* H3: sub-headlines and compare panel labels. */
  200. .h3 {
  201. font-family: var(--f-heading);
  202. font-size: var(--sz-h3);
  203. font-weight: 600;
  204. line-height: 1.1;
  205. letter-spacing: -0.01em;
  206. }
  207. /* Lead: intro paragraph, slightly larger than body. */
  208. .lead {
  209. font-family: var(--f-body);
  210. font-size: var(--sz-lead);
  211. font-weight: 400;
  212. line-height: 1.55;
  213. }
  214. /* Body: general text. */
  215. .body {
  216. font-family: var(--f-body);
  217. font-size: var(--sz-body);
  218. font-weight: 400;
  219. line-height: 1.65;
  220. }
  221. /* Caption: image captions, footnotes. */
  222. .caption {
  223. font-family: var(--f-body);
  224. font-size: var(--sz-caption);
  225. font-weight: 400;
  226. line-height: 1.5;
  227. }
  228. /* Label: mono uppercase tracking — kickers, metadata, chrome. */
  229. .label {
  230. font-family: var(--f-mono);
  231. font-size: var(--sz-label);
  232. font-weight: 400;
  233. letter-spacing: 0.12em;
  234. text-transform: uppercase;
  235. }
  236. /* Contextual color helpers */
  237. .muted {
  238. color: var(--c-fg-2);
  239. }
  240. .accent {
  241. color: var(--c-accent);
  242. }
  243. .light .muted {
  244. color: var(--c-fg-light-2);
  245. }
  246. /* Bullet list: dash prefix in warm orange, body font at lead size */
  247. .bullet-list {
  248. list-style: none;
  249. display: flex;
  250. flex-direction: column;
  251. gap: var(--gap-md);
  252. padding: 0;
  253. }
  254. .bullet-list li {
  255. font-family: var(--f-body);
  256. font-size: var(--sz-lead);
  257. font-weight: 400;
  258. line-height: 1.5;
  259. display: grid;
  260. grid-template-columns: 1.4em 1fr;
  261. gap: 0.5em;
  262. }
  263. /* The dash before each bullet — warm orange accent via DM Mono */
  264. .bullet-list li::before {
  265. content: "—";
  266. color: var(--c-accent);
  267. font-family: var(--f-mono);
  268. }
  269. .light .bullet-list li {
  270. color: var(--c-fg-light);
  271. }
  272. /* ╔══════════════════════════════════════════════════════════════════════╗
  273. ║ MAT ATMOSPHERIC BACKGROUND ║
  274. ║ ║
  275. ║ Every dark slide has a subtle warm wood-brown radial glow ║
  276. ║ from the bottom-right corner, evoking a warm material edge. ║
  277. ║ No photography needed. ║
  278. ╚══════════════════════════════════════════════════════════════════════╝ */
  279. /* Atmospheric glow lives on ::before so it never competes with content */
  280. .slide.dark {
  281. background: var(--c-bg);
  282. color: var(--c-fg);
  283. position: relative;
  284. overflow: hidden;
  285. }
  286. .slide.dark::before {
  287. content: "";
  288. position: absolute;
  289. bottom: -10%;
  290. right: -5%;
  291. width: 55%;
  292. height: 70%;
  293. background: radial-gradient(
  294. ellipse at 70% 80%,
  295. rgba(122, 78, 36, 0.28) 0%,
  296. rgba(80, 50, 20, 0.14) 40%,
  297. transparent 70%
  298. );
  299. pointer-events: none;
  300. z-index: 0;
  301. }
  302. /* All direct children of dark slides sit above the glow pseudo-element */
  303. .slide.dark > * {
  304. position: relative;
  305. z-index: 1;
  306. }
  307. .slide.light {
  308. background: var(--c-bg-light);
  309. color: var(--c-fg-light);
  310. }
  311. /* ╔══════════════════════════════════════════════════════════════════════╗
  312. ║ CHROME + FOOT ║
  313. ║ ║
  314. ║ Header chrome (kicker + slide number) and footer foot ║
  315. ║ (deck name + author). Suppressed on cover, quote, and end slides. ║
  316. ╚══════════════════════════════════════════════════════════════════════╝ */
  317. .slide-chrome,
  318. .slide-foot {
  319. display: flex;
  320. justify-content: space-between;
  321. align-items: center;
  322. }
  323. .slide-chrome {
  324. padding-bottom: var(--gap-sm);
  325. border-bottom: 1px solid var(--c-border);
  326. margin-bottom: var(--gap-md);
  327. }
  328. .slide-foot {
  329. padding-top: var(--gap-sm);
  330. border-top: 1px solid var(--c-border);
  331. margin-top: var(--gap-md);
  332. }
  333. .light .slide-chrome,
  334. .light .slide-foot {
  335. border-color: var(--c-border-light);
  336. }
  337. /* Suppress chrome/foot on chromeless slide types */
  338. .slide--cover .slide-chrome,
  339. .slide--cover .slide-foot,
  340. .slide--quote .slide-chrome,
  341. .slide--quote .slide-foot,
  342. .slide--end .slide-chrome,
  343. .slide--end .slide-foot {
  344. display: none;
  345. }
  346. /* ╔══════════════════════════════════════════════════════════════════════╗
  347. ║ SHARED COMPONENTS ║
  348. ╚══════════════════════════════════════════════════════════════════════╝ */
  349. /* Kicker: mono uppercase in warm orange — the eyebrow label */
  350. .kicker {
  351. font-family: var(--f-mono);
  352. font-size: var(--sz-label);
  353. letter-spacing: 0.12em;
  354. text-transform: uppercase;
  355. color: var(--c-accent);
  356. }
  357. /* Rule: a short horizontal accent line */
  358. .rule {
  359. width: 32px;
  360. height: 1px;
  361. background: var(--c-accent);
  362. }
  363. /* Image placeholder — used until real photography is available */
  364. .img-placeholder {
  365. background: rgba(240, 232, 210, 0.06);
  366. border: 1px solid var(--c-border);
  367. display: flex;
  368. align-items: center;
  369. justify-content: center;
  370. font-family: var(--f-mono);
  371. font-size: var(--sz-label);
  372. letter-spacing: 0.1em;
  373. color: var(--c-fg-3);
  374. width: 100%;
  375. height: 100%;
  376. min-height: 30vh;
  377. }
  378. .light .img-placeholder {
  379. background: var(--c-bg-light-alt);
  380. color: var(--c-fg-light-3);
  381. }
  382. /* ╔══════════════════════════════════════════════════════════════════════╗
  383. ║ MAT SIGNATURE COMPONENT: INFO CARD ║
  384. ║ ║
  385. ║ The cream inset box — the single most distinctive move in this ║
  386. ║ template. Cream background on a dark green field creates immediate ║
  387. ║ material contrast. Used on the cover (bottom-left) and end slide ║
  388. ║ (right column). ║
  389. ╚══════════════════════════════════════════════════════════════════════╝ */
  390. .info-card {
  391. background: var(--c-bg-light);
  392. color: var(--c-fg-light);
  393. padding: var(--gap-md) calc(var(--pad-x) * 0.8);
  394. max-width: 28vw;
  395. display: flex;
  396. flex-direction: column;
  397. gap: var(--gap-sm);
  398. }
  399. .info-card-heading {
  400. font-family: var(--f-heading);
  401. font-size: var(--sz-h3);
  402. font-weight: 700;
  403. line-height: 1.1;
  404. letter-spacing: -0.01em;
  405. color: var(--c-fg-light);
  406. }
  407. .info-card-body {
  408. font-family: var(--f-body);
  409. font-size: var(--sz-body);
  410. font-weight: 400;
  411. line-height: 1.6;
  412. color: var(--c-fg-light-2);
  413. }
  414. /* ╔══════════════════════════════════════════════════════════════════════╗
  415. ║ MAT SIGNATURE COMPONENT: SIDE LABEL ║
  416. ║ ║
  417. ║ Rotated mono label on the right edge of cover and end slides. ║
  418. ║ Adds vertical depth and studio identity. ║
  419. ╚══════════════════════════════════════════════════════════════════════╝ */
  420. /* ╔══════════════════════════════════════════════════════════════════════╗
  421. ║ ZONE E · LAYOUT PATTERNS ║
  422. ║ ║
  423. ║ 9 slide types for the mat template. ║
  424. ║ All layout CSS written from scratch — not inherited from skeleton. ║
  425. ╚══════════════════════════════════════════════════════════════════════╝ */
  426. /* ── 1. COVER: four-quadrant free-float layout ───────────────────── */
  427. /* Top-left: massive display headline. */
  428. /* Top-right: lead copy anchored center-right. */
  429. /* Bottom-left: info card (cream inset). */
  430. /* Bottom-right: attribution label. */
  431. .slide--cover {
  432. display: grid;
  433. grid-template-rows: 1fr auto;
  434. grid-template-columns: 1fr 1fr;
  435. gap: 0;
  436. padding: var(--pad-y) var(--pad-x);
  437. }
  438. /* Top-left quadrant: kicker + display headline */
  439. .cover-headline {
  440. grid-column: 1;
  441. grid-row: 1;
  442. display: flex;
  443. flex-direction: column;
  444. justify-content: flex-start;
  445. padding-top: var(--gap-sm);
  446. gap: var(--gap-sm);
  447. }
  448. /* Top-right quadrant: supporting copy, vertically centered */
  449. .cover-copy {
  450. grid-column: 2;
  451. grid-row: 1;
  452. display: flex;
  453. flex-direction: column;
  454. justify-content: center;
  455. padding-left: var(--pad-x);
  456. gap: var(--gap-md);
  457. }
  458. /* Bottom row: info card left, attribution right */
  459. .cover-bottom {
  460. grid-column: 1 / 3;
  461. grid-row: 2;
  462. display: flex;
  463. align-items: flex-end;
  464. justify-content: space-between;
  465. gap: var(--gap-lg);
  466. padding-top: var(--gap-md);
  467. }
  468. /* ── 2. STATEMENT: asymmetric — headline left, copy right ────────── */
  469. /* Wide left column holds the bold claim. */
  470. /* Right column holds context and bullets. */
  471. .slide--statement {
  472. display: flex;
  473. flex-direction: column;
  474. justify-content: center;
  475. }
  476. .slide--statement .slide-body {
  477. display: grid;
  478. grid-template-columns: 1.1fr 1fr;
  479. gap: calc(var(--pad-x) * 1.4);
  480. align-items: center;
  481. min-height: 0;
  482. }
  483. /* Left side of statement: the headline zone */
  484. .stmt-headline {
  485. display: flex;
  486. flex-direction: column;
  487. gap: var(--gap-md);
  488. }
  489. /* Right side of statement: context and supporting detail */
  490. .stmt-copy {
  491. display: flex;
  492. flex-direction: column;
  493. gap: var(--gap-md);
  494. }
  495. /* ── 3. SPLIT: headline left | image center | copy right ─────────── */
  496. /* Three columns of roughly equal weight. */
  497. /* Center column is occupied by the visual object. */
  498. .slide--split {
  499. display: flex;
  500. flex-direction: column;
  501. justify-content: center;
  502. }
  503. .slide--split .slide-body {
  504. display: grid;
  505. grid-template-columns: 0.9fr 1.1fr 0.9fr;
  506. gap: 0;
  507. align-items: center;
  508. min-height: 0;
  509. }
  510. .split-left {
  511. display: flex;
  512. flex-direction: column;
  513. gap: var(--gap-md);
  514. padding-right: var(--pad-x);
  515. }
  516. /* Center: the product image or placeholder fills full height */
  517. .split-center {
  518. display: flex;
  519. align-items: center;
  520. justify-content: center;
  521. height: 52vh;
  522. }
  523. .split-right {
  524. display: flex;
  525. flex-direction: column;
  526. gap: var(--gap-md);
  527. padding-left: var(--pad-x);
  528. }
  529. /* ── 4. STATS: three large numbers with warm accent borders ─────── */
  530. /* Vertical dividers between cells, not horizontal top borders. */
  531. .slide--stats {
  532. display: flex;
  533. flex-direction: column;
  534. justify-content: center;
  535. }
  536. .slide--stats .slide-body {
  537. display: grid;
  538. grid-template-columns: repeat(3, 1fr);
  539. gap: 0;
  540. align-items: stretch;
  541. min-height: 0;
  542. }
  543. /* Each stat cell: left-padded except the first */
  544. .mat-stat {
  545. display: flex;
  546. flex-direction: column;
  547. gap: var(--gap-sm);
  548. padding: var(--gap-md) var(--pad-x) var(--gap-md) 0;
  549. border-right: 1px solid var(--c-border);
  550. }
  551. /* Last cell: no right border, has left padding */
  552. .mat-stat:last-child {
  553. border-right: none;
  554. padding-right: 0;
  555. padding-left: var(--pad-x);
  556. }
  557. /* Middle cell: symmetrical padding */
  558. .mat-stat:nth-child(2) {
  559. padding: var(--gap-md) var(--pad-x);
  560. }
  561. /* The big number — Bricolage Grotesque 800 at display scale */
  562. .mat-stat-val {
  563. font-family: var(--f-display);
  564. font-size: 5.5vw;
  565. font-weight: 800;
  566. line-height: 1;
  567. letter-spacing: -0.025em;
  568. color: var(--c-fg);
  569. }
  570. /* The <em> inside the number gets warm orange — e.g. "4.7<em>k</em>" */
  571. .mat-stat-val em {
  572. font-style: normal;
  573. color: var(--c-accent);
  574. }
  575. .mat-stat-label {
  576. font-family: var(--f-body);
  577. font-size: var(--sz-body);
  578. color: var(--c-fg-2);
  579. line-height: 1.5;
  580. }
  581. /* Light slide overrides for stats */
  582. .light .mat-stat {
  583. border-color: var(--c-border-light);
  584. }
  585. .light .mat-stat-val {
  586. color: var(--c-fg-light);
  587. }
  588. .light .mat-stat-label {
  589. color: var(--c-fg-light-2);
  590. }
  591. /* ── 5. QUOTE: full-slide pull quote, chromeless ─────────────────── */
  592. /* Large quotation mark in warm orange. */
  593. /* Quote text in Bricolage Grotesque — not a serif quote style. */
  594. .slide--quote {
  595. display: flex;
  596. flex-direction: column;
  597. justify-content: center;
  598. padding: calc(var(--pad-y) * 1.4) calc(var(--pad-x) * 1.1);
  599. }
  600. /* The decorative opening quote mark */
  601. .quote-mark {
  602. font-family: var(--f-display);
  603. font-size: 8vw;
  604. line-height: 0.6;
  605. color: var(--c-accent);
  606. margin-bottom: var(--gap-md);
  607. font-weight: 800;
  608. }
  609. /* The quote text: large, rounded grotesque, mixed case */
  610. .quote-text {
  611. font-family: var(--f-heading);
  612. font-size: 3.4vw;
  613. font-weight: 600;
  614. line-height: 1.2;
  615. letter-spacing: -0.02em;
  616. max-width: 70%;
  617. margin-bottom: var(--gap-lg);
  618. color: var(--c-fg);
  619. }
  620. /* Attribution block: name + role stacked */
  621. .quote-attr {
  622. display: flex;
  623. flex-direction: column;
  624. gap: 0.4vh;
  625. }
  626. .light .quote-text {
  627. color: var(--c-fg-light);
  628. }
  629. /* ── 6. LIST: wide left margin headline + right content column ───── */
  630. /* The wide asymmetric left margin creates air even when right */
  631. /* column has content. Spacious, editorial pacing. */
  632. .slide--list {
  633. display: flex;
  634. flex-direction: column;
  635. justify-content: center;
  636. }
  637. .slide--list .slide-body {
  638. display: grid;
  639. grid-template-columns: 0.7fr 1.5fr;
  640. gap: calc(var(--pad-x) * 1.2);
  641. align-items: center;
  642. min-height: 0;
  643. }
  644. /* Left column: headline zone */
  645. .list-head {
  646. display: flex;
  647. flex-direction: column;
  648. gap: var(--gap-md);
  649. }
  650. /* Right column: the actual list content */
  651. .list-items {
  652. display: flex;
  653. flex-direction: column;
  654. gap: var(--gap-md);
  655. }
  656. /* ── 7. COMPARE: Before / After split with a divider line ────────── */
  657. /* Three-column grid: left panel | divider | right panel. */
  658. .slide--compare {
  659. display: flex;
  660. flex-direction: column;
  661. justify-content: center;
  662. }
  663. .slide--compare .slide-body {
  664. display: grid;
  665. grid-template-columns: 1fr 1px 1fr;
  666. gap: 0;
  667. align-items: center;
  668. min-height: 0;
  669. height: 68vh;
  670. }
  671. /* Each compare panel */
  672. .compare-panel {
  673. display: flex;
  674. flex-direction: column;
  675. gap: var(--gap-md);
  676. padding: var(--gap-md) var(--pad-x);
  677. }
  678. .compare-panel.left {
  679. padding-left: 0;
  680. }
  681. .compare-panel.right {
  682. padding-right: 0;
  683. }
  684. /* The thin vertical divider line between panels */
  685. .compare-divider-line {
  686. background: var(--c-border);
  687. height: 100%;
  688. width: 1px;
  689. }
  690. /* Before label: muted mono */
  691. .compare-label {
  692. font-family: var(--f-mono);
  693. font-size: var(--sz-label);
  694. letter-spacing: 0.14em;
  695. text-transform: uppercase;
  696. color: var(--c-fg-3);
  697. margin-bottom: var(--gap-sm);
  698. }
  699. /* After label: warm orange accent */
  700. .compare-label.after {
  701. color: var(--c-accent);
  702. }
  703. .light .compare-label {
  704. color: var(--c-fg-light-3);
  705. }
  706. .light .compare-divider-line {
  707. background: var(--c-border-light);
  708. }
  709. /* ── 8. CHART: vertical bar chart ─────────────────────────────────── */
  710. .slide--chart .slide-body {
  711. display: flex;
  712. flex-direction: column;
  713. gap: var(--gap-md);
  714. min-height: 0;
  715. }
  716. /* Chart header: title left, unit label right */
  717. .chart-header {
  718. display: flex;
  719. justify-content: space-between;
  720. align-items: baseline;
  721. flex-shrink: 0;
  722. }
  723. /* Chart wrapper: grows to fill available height, bars aligned to bottom */
  724. .chart-wrapper {
  725. flex: 1;
  726. display: flex;
  727. flex-direction: column;
  728. justify-content: flex-end;
  729. min-height: 0;
  730. }
  731. /* The bar track: horizontal row with bars aligned to bottom */
  732. .bar-track {
  733. height: 30vh;
  734. display: flex;
  735. align-items: flex-end;
  736. gap: 3vw;
  737. border-left: 1px solid var(--c-border);
  738. padding-left: 0.5vw;
  739. }
  740. /* Each individual bar column */
  741. .bar-col {
  742. flex: 1;
  743. display: flex;
  744. flex-direction: column;
  745. align-items: flex-start;
  746. justify-content: flex-end;
  747. gap: 1vh;
  748. height: 100%;
  749. }
  750. /* The filled bar rectangle — height set inline as % */
  751. .bar-fill {
  752. width: 100%;
  753. background: var(--c-fg-3);
  754. }
  755. /* The accent bar: warm orange highlight */
  756. .bar-fill.accent {
  757. background: var(--c-accent);
  758. }
  759. /* X-axis label below each bar */
  760. .bar-x-label {
  761. font-family: var(--f-mono);
  762. font-size: var(--sz-caption);
  763. letter-spacing: 0.1em;
  764. color: var(--c-fg-3);
  765. white-space: nowrap;
  766. }
  767. /* Value label above the bar */
  768. .bar-val {
  769. font-family: var(--f-body);
  770. font-size: var(--sz-body);
  771. font-weight: 500;
  772. color: var(--c-fg-2);
  773. }
  774. /* Highlighted value on the accent bar */
  775. .bar-val.hi {
  776. color: var(--c-accent);
  777. font-weight: 600;
  778. }
  779. /* Baseline rule below the bars */
  780. .chart-baseline {
  781. height: 1px;
  782. background: var(--c-border);
  783. flex-shrink: 0;
  784. }
  785. /* Source attribution at the bottom */
  786. .chart-source {
  787. flex-shrink: 0;
  788. font-family: var(--f-mono);
  789. font-size: var(--sz-caption);
  790. color: var(--c-fg-3);
  791. letter-spacing: 0.06em;
  792. margin-top: var(--gap-sm);
  793. }
  794. /* ── 9. END: closing slide, chromeless, mirrors cover energy ─────── */
  795. /* Left column: headline and CTA. */
  796. /* Right column: info card (cream inset — the signature component).*/
  797. .slide--end {
  798. display: grid;
  799. grid-template-rows: 1fr auto;
  800. grid-template-columns: 1fr 1fr;
  801. gap: 0;
  802. padding: var(--pad-y) var(--pad-x);
  803. }
  804. /* Left main: headline content, bottom-aligned */
  805. .end-main {
  806. grid-column: 1;
  807. grid-row: 1;
  808. display: flex;
  809. flex-direction: column;
  810. justify-content: flex-end;
  811. gap: var(--gap-md);
  812. }
  813. /* Right side: info card in the right column */
  814. .end-side {
  815. grid-column: 2;
  816. grid-row: 1;
  817. display: flex;
  818. align-items: flex-end;
  819. padding-left: var(--pad-x);
  820. }
  821. /* Footer: label left and right, above a border */
  822. .end-foot {
  823. grid-column: 1 / 3;
  824. grid-row: 2;
  825. display: flex;
  826. justify-content: space-between;
  827. align-items: flex-end;
  828. border-top: 1px solid var(--c-border);
  829. padding-top: var(--gap-sm);
  830. margin-top: var(--gap-md);
  831. }
  832. </style>
  833. </head>
  834. <body>
  835. <div id="deck">
  836. <!-- ═══ SLIDE 01 · COVER ═══════════════════════════════════════════════ -->
  837. <!-- Four-quadrant free-float layout on dark forest green.
  838. Top-left: kicker + massive display headline (one word per line).
  839. Top-right: lead copy, center-right aligned.
  840. Bottom-left: cream info card (the signature material contrast).
  841. Bottom-right: attribution label.
  842. The side-label on the right edge echoes the product spec callout. -->
  843. <section
  844. class="slide dark slide--cover"
  845. data-slide="1"
  846. style="position: relative"
  847. >
  848. <div class="cover-headline">
  849. <span class="kicker">[Studio Name] · 2026</span>
  850. <h1 class="display" style="color: var(--c-fg)">Craft<br />Matters</h1>
  851. </div>
  852. <div class="cover-copy">
  853. <p class="lead" style="color: var(--c-fg-2); max-width: 90%">
  854. Designed for the hands that build things. [A one-line description of
  855. what this product does.]
  856. </p>
  857. <p class="caption" style="color: var(--c-fg-3)">
  858. [Tagline goes here]
  859. </p>
  860. </div>
  861. <div class="cover-bottom">
  862. <div class="info-card">
  863. <div class="info-card-heading">
  864. Designed by [Studio Name],<br />the precision studio tools lab.
  865. </div>
  866. <div class="info-card-body">
  867. [The world's most carefully considered [product category].]
  868. </div>
  869. </div>
  870. <span class="label muted">Product Design · April 2026</span>
  871. </div>
  872. </section>
  873. <!-- ═══ SLIDE 02 · STATEMENT ══════════════════════════════════════════ -->
  874. <!-- Wide asymmetric grid: bold claim left, context + bullets right.
  875. The left column width (1.1fr) gives the headline room to land. -->
  876. <section class="slide dark slide--statement" data-slide="2">
  877. <header class="slide-chrome">
  878. <span class="label muted">The Thesis</span>
  879. <span class="label muted">02</span>
  880. </header>
  881. <div class="slide-body">
  882. <div class="stmt-headline">
  883. <span class="kicker">Design Principle</span>
  884. <h2 class="h1" style="color: var(--c-fg)">
  885. Every surface is a decision.
  886. </h2>
  887. </div>
  888. <div class="stmt-copy">
  889. <p class="lead muted">
  890. The studio environment shapes the work that happens inside it.
  891. Materials that perform quietly let the maker stay in flow.
  892. </p>
  893. <ul class="bullet-list">
  894. <li>
  895. Surface texture calibrated for blade resistance without drag
  896. </li>
  897. <li>Grip underside prevents slip on any workbench material</li>
  898. <li>
  899. Grid lines printed in low-contrast ink — visible without
  900. competing
  901. </li>
  902. </ul>
  903. </div>
  904. </div>
  905. <footer class="slide-foot">
  906. <span class="label muted">[Studio Name] · Product Brief</span>
  907. <span class="label muted">Design Studio</span>
  908. </footer>
  909. </section>
  910. <!-- ═══ SLIDE 03 · SPLIT ══════════════════════════════════════════════ -->
  911. <!-- Three-column layout: headline left, image center, detail bullets right.
  912. The center column is the visual object — the product in its environment. -->
  913. <section class="slide dark slide--split" data-slide="3">
  914. <header class="slide-chrome">
  915. <span class="label muted">The Object</span>
  916. <span class="label muted">03</span>
  917. </header>
  918. <div class="slide-body">
  919. <div class="split-left">
  920. <span class="kicker">Material Detail</span>
  921. <h2 class="h2" style="color: var(--c-fg)">
  922. [A one-line description of what this product does.]
  923. </h2>
  924. <p class="lead muted">
  925. A two-layer construction built for the way real studio work
  926. actually happens.
  927. </p>
  928. </div>
  929. <!-- Image center: full-height placeholder until photography is ready -->
  930. <div class="split-center">
  931. <div class="img-placeholder">[Product Image]</div>
  932. </div>
  933. <div class="split-right">
  934. <ul class="bullet-list">
  935. <li>4mm recycled rubber base — weighted to stay flat</li>
  936. <li>Natural composite surface — self-healing up to 3000 uses</li>
  937. <li>Three colorways: Forest, Sand, Charcoal</li>
  938. </ul>
  939. </div>
  940. </div>
  941. <footer class="slide-foot">
  942. <span class="label muted">[Studio Name] · Product Brief</span>
  943. <span class="label muted">Design Studio</span>
  944. </footer>
  945. </section>
  946. <!-- ═══ SLIDE 04 · STATS ══════════════════════════════════════════════ -->
  947. <!-- Three large numbers separated by vertical dividers.
  948. The <em> tag inside .mat-stat-val renders in warm orange. -->
  949. <section class="slide dark slide--stats" data-slide="4">
  950. <header class="slide-chrome">
  951. <span class="label muted">By the Numbers</span>
  952. <span class="label muted">04</span>
  953. </header>
  954. <div class="slide-body">
  955. <!-- Headline above the three stats -->
  956. <h2
  957. class="h2"
  958. style="color: var(--c-fg); margin-bottom: var(--gap-lg)"
  959. >
  960. The numbers that define the [product category].
  961. </h2>
  962. <!-- Three stat cells — vertical borders between them -->
  963. <div
  964. style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 0"
  965. >
  966. <div class="mat-stat">
  967. <div class="mat-stat-val">4.7<em>k</em></div>
  968. <div class="mat-stat-label">
  969. Units sold in the first 90 days of launch, across 12 countries.
  970. </div>
  971. </div>
  972. <div class="mat-stat">
  973. <div class="mat-stat-val">3.2<em>×</em></div>
  974. <div class="mat-stat-label">
  975. Longer lifespan than the leading competitor in independent
  976. studio tests.
  977. </div>
  978. </div>
  979. <div class="mat-stat">
  980. <div class="mat-stat-val">#<em>1</em></div>
  981. <div class="mat-stat-label">
  982. Top-rated [product category] by Studio Supply Journal for two
  983. consecutive years.
  984. </div>
  985. </div>
  986. </div>
  987. </div>
  988. <footer class="slide-foot">
  989. <span class="label muted">[Studio Name] · Product Brief</span>
  990. <span class="label muted">Design Studio</span>
  991. </footer>
  992. </section>
  993. <!-- ═══ SLIDE 05 · QUOTE ══════════════════════════════════════════════ -->
  994. <!-- Chromeless. Full-slide pull quote with warm orange mark.
  995. Bricolage Grotesque at 3.4vw — weighted, not delicate.
  996. Attribution stacked below in mono label format. -->
  997. <section class="slide dark slide--quote" data-slide="5">
  998. <div class="quote-mark">"</div>
  999. <div class="quote-text">
  1000. Good design is as little design as possible.
  1001. </div>
  1002. <div class="quote-attr">
  1003. <span class="label accent">Dieter Rams</span>
  1004. <span class="label muted">Designer</span>
  1005. </div>
  1006. </section>
  1007. <!-- ═══ SLIDE 06 · LIST (light) ═══════════════════════════════════════ -->
  1008. <!-- Cream background — the warm inversion of the dark slides.
  1009. Wide left margin holds the headline zone.
  1010. Right 60% holds the bullet list.
  1011. This is the one slide in the deck where light background is used. -->
  1012. <section class="slide light slide--list" data-slide="6">
  1013. <header class="slide-chrome">
  1014. <span class="label" style="color: var(--c-fg-light-3)"
  1015. >Why It Matters</span
  1016. >
  1017. <span class="label" style="color: var(--c-fg-light-3)">06</span>
  1018. </header>
  1019. <div class="slide-body">
  1020. <div class="list-head">
  1021. <span class="kicker">The Case</span>
  1022. <h2 class="h2" style="color: var(--c-fg-light)">
  1023. What a studio tool should do for the maker.
  1024. </h2>
  1025. <p class="lead" style="color: var(--c-fg-light-2)">
  1026. Four principles that informed every material and dimension
  1027. decision in the [product category]'s design.
  1028. </p>
  1029. </div>
  1030. <div class="list-items">
  1031. <ul class="bullet-list">
  1032. <li>Disappear when in use so the work takes all the attention</li>
  1033. <li>
  1034. Improve output quality through surface calibration, not just
  1035. feel
  1036. </li>
  1037. <li>
  1038. Last long enough to become a trusted part of the studio
  1039. environment
  1040. </li>
  1041. <li>
  1042. Be honest about what it is — no branding that competes with the
  1043. work
  1044. </li>
  1045. </ul>
  1046. </div>
  1047. </div>
  1048. <footer class="slide-foot">
  1049. <span class="label" style="color: var(--c-fg-light-3)"
  1050. >[Studio Name] · Product Brief</span
  1051. >
  1052. <span class="label" style="color: var(--c-fg-light-3)"
  1053. >Design Studio</span
  1054. >
  1055. </footer>
  1056. </section>
  1057. <!-- ═══ SLIDE 07 · COMPARE ════════════════════════════════════════════ -->
  1058. <!-- Three-column grid: left panel | 1px divider line | right panel.
  1059. Before label is muted mono. After label gets warm orange accent.
  1060. Each panel has a heading, lead context, and 3 bullets. -->
  1061. <section class="slide dark slide--compare" data-slide="7">
  1062. <header class="slide-chrome">
  1063. <span class="label muted">Before / After</span>
  1064. <span class="label muted">07</span>
  1065. </header>
  1066. <div class="slide-body">
  1067. <div class="compare-panel left">
  1068. <div class="compare-label">The Old Way</div>
  1069. <h3 class="h3" style="color: var(--c-fg)">
  1070. Generic [product category] from a supply catalog.
  1071. </h3>
  1072. <p class="lead muted">
  1073. Works until it does not. Warps in heat, discolors with use, and
  1074. feels like an afterthought.
  1075. </p>
  1076. <ul class="bullet-list" style="--sz-lead: 1.05vw">
  1077. <li>Slips on polished surfaces without a grip layer</li>
  1078. <li>Grooves deepen and skew precision over time</li>
  1079. <li>Replaced every six months on average</li>
  1080. </ul>
  1081. </div>
  1082. <!-- The 1px vertical divider — a CSS column, not a border -->
  1083. <div class="compare-divider-line"></div>
  1084. <div class="compare-panel right">
  1085. <div class="compare-label after">The New Way</div>
  1086. <h3 class="h3" style="color: var(--c-fg)">
  1087. [Product Name], purpose-built.
  1088. </h3>
  1089. <p class="lead muted">
  1090. A surface that gets better with use. The material compresses and
  1091. recovers, keeping edges clean.
  1092. </p>
  1093. <ul class="bullet-list" style="--sz-lead: 1.05vw">
  1094. <li>Self-heals around use lines, keeping the surface flat</li>
  1095. <li>Grip base holds any workbench without adhesives</li>
  1096. <li>
  1097. 3000-use tested lifespan — typically 2 to 3 years in daily use
  1098. </li>
  1099. </ul>
  1100. </div>
  1101. </div>
  1102. <footer class="slide-foot">
  1103. <span class="label muted">[Studio Name] · Product Brief</span>
  1104. <span class="label muted">Design Studio</span>
  1105. </footer>
  1106. </section>
  1107. <!-- ═══ SLIDE 08 · CHART ══════════════════════════════════════════════ -->
  1108. <!-- Vertical bar chart. One bar is highlighted in warm orange (.accent).
  1109. Bar heights set inline as percentages of the 30vh bar-track.
  1110. Source attribution at the bottom in DM Mono. -->
  1111. <section class="slide dark slide--chart" data-slide="8">
  1112. <header class="slide-chrome">
  1113. <span class="label muted">Performance</span>
  1114. <span class="label muted">08</span>
  1115. </header>
  1116. <div class="slide-body">
  1117. <div class="chart-header">
  1118. <h2 class="h2" style="color: var(--c-fg)">
  1119. Lifespan by material category.
  1120. </h2>
  1121. <span class="label muted">Units: months of daily studio use</span>
  1122. </div>
  1123. <div class="chart-wrapper">
  1124. <div class="bar-track">
  1125. <!-- PVC Generic -->
  1126. <div class="bar-col">
  1127. <span class="bar-val">6</span>
  1128. <div class="bar-fill" style="height: 20%"></div>
  1129. <span class="bar-x-label">PVC</span>
  1130. </div>
  1131. <!-- Rubber Composite -->
  1132. <div class="bar-col">
  1133. <span class="bar-val">11</span>
  1134. <div class="bar-fill" style="height: 37%"></div>
  1135. <span class="bar-x-label">Rubber</span>
  1136. </div>
  1137. <!-- Glass -->
  1138. <div class="bar-col">
  1139. <span class="bar-val">18</span>
  1140. <div class="bar-fill" style="height: 60%"></div>
  1141. <span class="bar-x-label">Glass</span>
  1142. </div>
  1143. <!-- [Product Name] — accent bar, the highlighted data point -->
  1144. <div class="bar-col">
  1145. <span class="bar-val hi">30</span>
  1146. <div class="bar-fill accent" style="height: 100%"></div>
  1147. <span class="bar-x-label">[Product]</span>
  1148. </div>
  1149. <!-- Leather -->
  1150. <div class="bar-col">
  1151. <span class="bar-val">22</span>
  1152. <div class="bar-fill" style="height: 73%"></div>
  1153. <span class="bar-x-label">Leather</span>
  1154. </div>
  1155. </div>
  1156. <div class="chart-baseline"></div>
  1157. </div>
  1158. <div class="chart-source">
  1159. Source: Independent Material Durability Study · [Studio] Lab 2025
  1160. </div>
  1161. </div>
  1162. <footer class="slide-foot">
  1163. <span class="label muted">[Studio Name] · Product Brief</span>
  1164. <span class="label muted">Design Studio</span>
  1165. </footer>
  1166. </section>
  1167. <!-- ═══ SLIDE 09 · END ════════════════════════════════════════════════ -->
  1168. <!-- Chromeless. Mirrors the cover's four-quadrant energy.
  1169. Left column: kicker + closing headline + lead CTA.
  1170. Right column: info card (cream inset — signature material contrast).
  1171. Bottom foot: label pair, separated by a top border.
  1172. Side label on the right edge echoes Slide 01. -->
  1173. <section
  1174. class="slide dark slide--end"
  1175. data-slide="9"
  1176. style="position: relative"
  1177. >
  1178. <div class="end-main">
  1179. <span class="kicker">Ready to Build</span>
  1180. <h2 class="h1" style="color: var(--c-fg)">
  1181. Start with the right surface.
  1182. </h2>
  1183. <p class="lead muted" style="max-width: 85%">
  1184. Order the [Product Name] at [studio-website.com] or find it at
  1185. select independent supply stores worldwide.
  1186. </p>
  1187. </div>
  1188. <div class="end-side">
  1189. <div class="info-card">
  1190. <div class="info-card-heading">Get in touch.</div>
  1191. <div class="info-card-body">
  1192. hello@[studio-website.com]<br />
  1193. @[studio] on all platforms<br />
  1194. Available in 40+ countries
  1195. </div>
  1196. </div>
  1197. </div>
  1198. <div class="end-foot">
  1199. <span class="label muted">[Studio Name] · 2026</span>
  1200. <span class="label muted">[studio-website.com]</span>
  1201. </div>
  1202. </section>
  1203. </div>
  1204. <!-- /#deck -->
  1205. <nav id="nav-dots" aria-label="Slide navigation"></nav>
  1206. <div id="slide-counter"></div>
  1207. <script>
  1208. /* ── Navigation engine — copied verbatim from skeleton.html ──────── */
  1209. (function () {
  1210. const deck = document.getElementById("deck");
  1211. const dotsNav = document.getElementById("nav-dots");
  1212. const counter = document.getElementById("slide-counter");
  1213. const slides = Array.from(deck.querySelectorAll(".slide"));
  1214. const total = slides.length;
  1215. let current = 0;
  1216. /* Size the deck to fit all slides side by side */
  1217. deck.style.width = "calc(" + total + " * 100vw)";
  1218. /* Build navigation dots — one per slide */
  1219. slides.forEach(function (_, i) {
  1220. const dot = document.createElement("button");
  1221. dot.className = "nav-dot";
  1222. dot.setAttribute("aria-label", "Slide " + (i + 1));
  1223. dot.addEventListener("click", function () {
  1224. goTo(i);
  1225. });
  1226. dotsNav.appendChild(dot);
  1227. });
  1228. /* Zero-pad single-digit numbers for the counter display */
  1229. function pad(n) {
  1230. return String(n).padStart(2, "0");
  1231. }
  1232. /* Move to a specific slide by index */
  1233. function goTo(index) {
  1234. if (index < 0 || index >= total) return;
  1235. if (
  1236. index === current &&
  1237. slides[current].classList.contains("is-active")
  1238. )
  1239. return;
  1240. slides[current].classList.remove("is-active");
  1241. current = index;
  1242. const slide = slides[current];
  1243. slide.classList.add("is-active");
  1244. deck.style.transform = "translateX(calc(-" + current + " * 100vw))";
  1245. /* Update dots */
  1246. dotsNav.querySelectorAll(".nav-dot").forEach(function (d, i) {
  1247. d.classList.toggle("is-active", i === current);
  1248. });
  1249. /* Update counter — format: "01 / 09" */
  1250. counter.textContent = pad(current + 1) + " / " + pad(total);
  1251. }
  1252. /* Keyboard navigation: arrows, space, Home, End */
  1253. document.addEventListener("keydown", function (e) {
  1254. if (
  1255. e.key === "ArrowRight" ||
  1256. e.key === " " ||
  1257. e.key === "ArrowDown"
  1258. ) {
  1259. e.preventDefault();
  1260. goTo(current + 1);
  1261. }
  1262. if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
  1263. e.preventDefault();
  1264. goTo(current - 1);
  1265. }
  1266. if (e.key === "Home") goTo(0);
  1267. if (e.key === "End") goTo(total - 1);
  1268. });
  1269. /* Touch swipe — passive listeners to avoid blocking scroll */
  1270. var touchStartX = 0;
  1271. document.addEventListener(
  1272. "touchstart",
  1273. function (e) {
  1274. touchStartX = e.touches[0].clientX;
  1275. },
  1276. { passive: true },
  1277. );
  1278. document.addEventListener(
  1279. "touchend",
  1280. function (e) {
  1281. var dx = e.changedTouches[0].clientX - touchStartX;
  1282. if (Math.abs(dx) > 40) goTo(current + (dx < 0 ? 1 : -1));
  1283. },
  1284. { passive: true },
  1285. );
  1286. /* Mouse wheel — locked for 1000ms to prevent accidental multi-skip */
  1287. var wheelLocked = false;
  1288. document.addEventListener(
  1289. "wheel",
  1290. function (e) {
  1291. if (wheelLocked) return;
  1292. var primary =
  1293. Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
  1294. goTo(current + (primary > 0 ? 1 : -1));
  1295. wheelLocked = true;
  1296. setTimeout(function () {
  1297. wheelLocked = false;
  1298. }, 1000);
  1299. },
  1300. { passive: true },
  1301. );
  1302. /* Initialize — go to first slide */
  1303. goTo(0);
  1304. })();
  1305. </script>
  1306. </body>
  1307. </html>