/* Invisible Software. Tokens per theme; slides only use the variables. */ @font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: block; src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: block; src: url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } @font-face { font-family: 'Wix Madefor Text'; font-style: normal; font-weight: 400 800; font-display: block; src: url('fonts/wix-madefor-text-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'Wix Madefor Text'; font-style: normal; font-weight: 400 800; font-display: block; src: url('fonts/wix-madefor-text-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* Inter (SIL OFL 1.1), as in the phone demo; used by the recreated phone on from-my-phone. */ @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: block; src: url('fonts/inter-variable.woff2') format('woff2'); } /* Kody brand tokens, copied from the Kody source (packages/worker/public/styles.css, matching the live kody.codes CSS). Light and dark values are Kody's own; hex twins from kody.codes noted. */ :root { --color-primary: oklch(0.54 0.18 145); /* #008819 */ --color-on-primary: oklch(1 0 0); --color-primary-text: oklch(0.455 0.17 145); --color-background: oklch(0.98 0.002 250); /* #f7f8fa */ --color-surface: oklch(1 0 0); /* #ffffff */ --color-text: oklch(0.22 0.012 260); /* #171b20 */ --color-text-muted: oklch(0.44 0.014 260); /* #4e535a */ --color-border: oklch(0.84 0.008 250); /* #c7cbd0 */ --color-field-border: oklch(0.6 0.012 250); --color-danger: oklch(0.535 0.19 25); --color-warning: oklch(0.72 0.16 85); --lantern-glow: oklch(0.88 0.11 85 / 0.4); --primitive-packages: oklch(0.6 0.2 255); --primitive-apps: oklch(0.63 0.21 300); --pw-stage: oklch(0.955 0.004 250); --color-primary-dark: oklch(0.72 0.205 145); /* #33c447 */ --color-on-primary-dark: oklch(0.2 0.05 148); --color-primary-text-dark: oklch(0.75 0.2 145); --color-background-dark: oklch(0.19 0.008 255); /* #111417 */ --color-surface-dark: oklch(0.235 0.01 255); /* #1b1e23 */ --color-text-dark: oklch(0.945 0.005 250); /* #eaedf0 */ --color-text-muted-dark: oklch(0.72 0.01 255); /* #a0a5ab */ --color-border-dark: oklch(0.33 0.01 255); /* #32363b */ --color-field-border-dark: oklch(0.55 0.012 255); --color-danger-dark: oklch(0.75 0.16 25); --color-warning-dark: oklch(0.84 0.16 85); --lantern-glow-dark: oklch(0.8 0.13 80 / 0.55); --primitive-packages-dark: oklch(0.72 0.17 255); --primitive-apps-dark: oklch(0.72 0.19 300); --pw-stage-dark: #1c201c; --font-display: 'Bricolage Grotesque', system-ui, sans-serif; --font-body: 'Wix Madefor Text', system-ui, sans-serif; --font-mono: ui-monospace, 'SF Mono', Menlo, monospace; /* Kody radii (--radius-card 14px, --radius-xl 1rem) at the deck's 3x type scale (Kody body text is 17px; deck body text is 44 to 48px). */ --radius-card: 42px; --radius-xl: 48px; --radius-md: 24px; --ease: cubic-bezier(0.22, 1, 0.36, 1); /* Kody --ease-out */ --ease-io: cubic-bezier(0.65, 0, 0.35, 1); } /* Dark (default): Kody graphite. */ :root, html[data-theme='dark'] { --page: var(--color-background-dark); --surface: var(--color-surface-dark); --surface-2: var(--pw-stage-dark); --ink: var(--color-text-dark); --body: var(--color-text-dark); --muted: var(--color-text-muted-dark); --line: var(--color-border-dark); --field-line: var(--color-field-border-dark); --accent: var(--color-primary-dark); --accent-ink: var(--color-primary-text-dark); --on-accent: var(--color-on-primary-dark); --danger: var(--color-danger-dark); --warning: var(--color-warning-dark); --packages: var(--primitive-packages-dark); --apps: var(--primitive-apps-dark); --glow: var(--lantern-glow-dark); --whisper: oklch(from var(--color-text-dark) l c h / 0.07); --shadow: 0 30px 80px rgb(0 0 0 / 0.35); color-scheme: dark; } /* Light: Kody's near-white canvas. */ html[data-theme='light'] { --page: var(--color-background); --surface: var(--color-surface); --surface-2: var(--pw-stage); --ink: var(--color-text); --body: var(--color-text); --muted: var(--color-text-muted); --line: var(--color-border); --field-line: var(--color-field-border); --accent: var(--color-primary); --accent-ink: var(--color-primary-text); --on-accent: var(--color-on-primary); --danger: var(--color-danger); --warning: var(--color-warning); --packages: var(--primitive-packages); --apps: var(--primitive-apps); --glow: var(--lantern-glow); --whisper: oklch(from var(--color-text) l c h / 0.055); --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); color-scheme: light; } /* EpicProduct.engineer brand, from the live site's CSS (www.epicproduct.engineer): --primary #d85a00 light / #ff8c19 dark, --foreground #262626 light / #e5e5e5 dark. */ :root, html[data-theme='dark'] { --epe-primary: #ff8c19; --epe-foreground: #e5e5e5; } html[data-theme='light'] { --epe-primary: #d85a00; --epe-foreground: #262626; } /* Derived the way Kody's feature widgets (.pw) derive them: soft = 16% accent over the surface. */ :root, html[data-theme] { --soft: color-mix(in oklab, var(--accent) 16%, var(--surface)); --me-bubble: var(--soft); --me-ink: var(--ink); --them-bubble: var(--surface-2); --them-ink: var(--ink); --stroke: var(--ink); /* Highlighter: Kody's --color-warning amber. */ --hl: color-mix(in oklab, var(--warning) 45%, transparent); --open: var(--warning); } html[data-theme='light'] { --open: oklch(0.5 0.12 65); } * { box-sizing: border-box; } body { -webkit-font-smoothing: antialiased; } /* Kody canvas: flat background, the lantern glow behind the stage and the koala-shirt pattern whisper (same mask technique as the kody.codes landing sections). */ html, body, .reveal, html.reveal-viewport, .reveal-viewport { background: radial-gradient(ellipse 46% 40% at 50% 38%, color-mix(in oklab, var(--glow) 28%, transparent), transparent 72%), var(--page); background-color: var(--page); } .reveal::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 62% at 50% 46%, var(--whisper), transparent 74%); mask-image: url('img/kody-pattern.webp'); mask-size: 340px; mask-repeat: repeat; mask-position: center; -webkit-mask-image: url('img/kody-pattern.webp'); -webkit-mask-size: 340px; -webkit-mask-repeat: repeat; -webkit-mask-position: center; } .kody-mark { display: block; color: var(--ink); } html[data-theme='dark'] .kody-mark .km-outlined, html[data-theme='light'] .kody-mark .km-solid { display: none; } .reveal { color: var(--ink); font-family: var(--font-body); font-size: 48px; } .reveal .slide-background, .reveal .slide-backgrounds { background: none; background-color: transparent; } .reveal .slides { text-align: center; } .reveal[data-transition-speed='default'] .slides section { transition-duration: 0.6s; } /* Dome-safe stage: the 1920x1080 canvas keeps all content inside a centered box (240px left/right, 130px top, 150px bottom). Nothing important lives near the corners. */ .reveal .slides section { background: none; box-sizing: border-box; height: 100%; padding: 130px 240px 150px; line-height: 1.25; flex-direction: column; justify-content: center; align-items: center; } .reveal-viewport.reveal-scroll .reveal .scroll-page section { display: flex !important; } .reveal .progress { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--accent); height: 5px; } .reveal a { color: var(--accent-ink); text-decoration: none; } h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-transform: none; text-wrap: balance; } h1 { font-size: 150px; } h2 { font-size: 84px; } h3 { font-size: 56px; } p { margin: 0; } .accent { color: var(--accent-ink); } .muted { color: var(--muted); } .mono { font-family: var(--font-mono); } /* ---------- Step engine (deck.js): [data-at=N] shows from step N, [data-until=N] hides from step N. ---------- */ .reveal .step-marker { display: none !important; } .stepped { transition: opacity 650ms var(--ease), translate 800ms var(--ease), scale 800ms var(--ease), filter 650ms var(--ease); transition-delay: var(--td, 0ms); } .stepped:not(.is-shown) { opacity: 0; translate: 0 36px; pointer-events: none; transition-delay: 0ms; transition-duration: 380ms; } .stepped.is-gone { translate: 0 -48px; } .stepped.pop:not(.is-shown) { translate: 0 0; scale: 0.8; } .stepped.fade:not(.is-shown) { translate: 0 0; } /* ---------- Entry motion (deck.js adds .m-go when a slide becomes current). Resting state is the final frame. ---------- */ html[data-motion] section.m-go [data-m] { animation: m-rise 800ms var(--ease) backwards; animation-delay: calc(120ms + var(--d, 0ms)); } html[data-motion] section.m-go [data-m=fade] { animation-name: m-fade; animation-duration: 900ms; } html[data-motion] section.m-go [data-m=pop] { animation-name: m-pop; animation-duration: 700ms; } html[data-motion] section.m-go [data-m=draw] { animation: m-draw 1400ms var(--ease-io) backwards; animation-delay: calc(120ms + var(--d, 0ms)); } html[data-motion] section.m-go [data-m=wipe] { animation-name: m-wipe; animation-duration: 1100ms; animation-timing-function: var(--ease-io); } @keyframes m-rise { from { opacity: 0; translate: 0 40px; } } @keyframes m-fade { from { opacity: 0; } } @keyframes m-pop { from { opacity: 0; scale: 0.82; } } @keyframes m-draw { from { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } } @keyframes m-wipe { from { opacity: 0; clip-path: inset(0 100% 0 0); } 1% { opacity: 1; } to { clip-path: inset(0 0 0 0); } } [data-m=draw] { stroke-dasharray: 1 1; } /* Reduced motion or ?soft: same order, short fades in place. ?static: nothing moves. */ html[data-motion=soft] section.m-go [data-m] { animation-name: m-fade !important; animation-duration: 400ms !important; } html[data-motion=off] .stepped, html[data-motion=off] .stepped * { transition: none !important; } /* Arriving backward: show the final state at once (no transitions, no animations). */ section.m-instant, section.m-instant *, section.m-instant *::before, section.m-instant *::after { transition: none !important; animation: none !important; } /* Leaving backward: the entry animation rewinds, last in first out, and holds its start frame. */ html[data-motion=full] section.m-rev [data-m] { animation: m-rise 420ms var(--ease-io) reverse forwards; animation-delay: var(--rd, 0ms); } html[data-motion=full] section.m-rev [data-m=fade] { animation-name: m-fade; } html[data-motion=full] section.m-rev [data-m=pop] { animation-name: m-pop; } html[data-motion=full] section.m-rev [data-m=draw] { animation-name: m-draw; } html[data-motion=full] section.m-rev [data-m=wipe] { animation-name: m-wipe; } html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; } /* ---------- Shared: the embedded phone demo (src/c/demo.js) ---------- */ .demo { position: relative; width: 470px; height: 920px; flex: none; } .demo::before { content: ''; position: absolute; inset: 40px -60px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent); filter: blur(30px); } /* color-scheme light matches the demo document, so the iframe stays transparent in the dark theme. */ .demo iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; pointer-events: none; } /* Slide layout helpers. */ .row { display: flex; align-items: center; justify-content: center; } .stack { display: grid; place-items: center; } .stack > * { grid-area: 1 / 1; } .plate { background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); } .icon { width: 1em; height: 1em; }