/* A template in the manner of davidluft.com: a quiet 800px column, a serif statement, a plain paragraph, case-study blocks with a facts row, and a left sidebar listing the work. Geist for text, Crimson Pro for the statements. */
:root { --ink: #171717; --text: #404040; --muted: #737373; --line: #e5e5e5; --cover: #f6f6f6; --bg: #fff; --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif; --sans: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --ease: cubic-bezier(.22, 1, .36, 1); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 948px; margin-inline: auto; padding-inline: 24px; }

/* Top row: plain, not sticky. It scrolls away with the page. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top-name { color: #404040; transition: color .2s ease; }
.top-name:hover { color: var(--ink); }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; color: #737373; transition: color .2s ease, background-color .2s ease; }
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--ink); }

/* The left sidebar, as on davidluft.com: fixed, 13px, a small green dot that slides to the project you are reading. It fades in once you scroll past the top, and only where there is room beside the column. */
.side { position: fixed; z-index: 40; top: 35px; left: 24px; width: calc(50vw - 514px); display: none; pointer-events: none; }
.side li { transition: opacity .36s cubic-bezier(.22,1,.36,1), translate .36s cubic-bezier(.22,1,.36,1); opacity: 0; translate: 0 6px; max-width: 100%; }
/* The list, in the form of recent.design's sidebar: a pale label per group, 13px rows 24px apart, the open one in black with a small dot after it. */
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; font-size: 13px; line-height: 18px; }
.side li.side-group { color: rgba(0,0,0,.267); height: 18px; margin: 22px 0 2px; }
.side li.side-group:first-child { margin-top: 0; }
.side li button { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; height: 24px; text-align: left; color: rgba(0,0,0,.486); transition: color .12s cubic-bezier(.2,0,0,1); }
.side li button:hover, .side li.on button { color: oklch(.15 0 0); }
.side li button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side li button b { flex: none; width: 8px; height: 8px; margin-left: 0; border-radius: 50%; background: #96d509; opacity: 0; scale: .4; transition: opacity .15s ease, scale .2s cubic-bezier(.2,1.4,.4,1); }
.side li.on button b { opacity: 1; scale: 1; }
.side.show { pointer-events: auto; }
.side.show li { opacity: 1; translate: 0 0; }
/* The top of the screen once you scroll: a thin soft blur with a little white in it, only about 30px tall so it hardly takes any of the page. */
.fade { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 44px; pointer-events: none; visibility: hidden; background: linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,.28) 45%, rgba(255,255,255,0)); }
/* progressive blur: each layer blurs a little more than the one below it, through its own window of the strip */
.fade i { position: absolute; inset: 0; }
.fade i:nth-child(1) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 12.5%, transparent 25%); mask-image: linear-gradient(to bottom, #000 0%, #000 12.5%, transparent 25%); }
.fade i:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.fade i:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.fade i:nth-child(4) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.fade i:nth-child(5) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.fade i:nth-child(6) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.fade.show { visibility: visible; }   /* no fade in or out: an opacity change would turn the blur off for a moment and flash plain white */
.side-about { position: fixed; z-index: 40; top: 30px; right: 24px; display: none; padding: 6px 0; color: #404040; font-size: 16px; line-height: 24px; opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity .16s cubic-bezier(.23,1,.32,1), translate .16s cubic-bezier(.23,1,.32,1); }
.side-about.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.side-about .t { position: relative; display: inline-block; transition: translate .2s cubic-bezier(.23,1,.32,1), opacity .2s cubic-bezier(.23,1,.32,1); }
.side-about:hover .t { opacity: .5; translate: 0 -1px; }
.side-about:active .t { opacity: 1; transition-duration: .1s; }
.side-about .dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 3px; opacity: 0; translate: 0 3px; pointer-events: none; transition: translate .2s cubic-bezier(.23,1,.32,1), opacity .2s cubic-bezier(.23,1,.32,1); }
.side-about:hover .dots { opacity: 1; translate: 0 0; }
.side-about .dots b { display: block; width: 4px; height: 4px; border-radius: 50%; transition: background-color .45s ease; }
@media (min-width: 1200px) { .side, .side-about { display: block; } }

/* Hero: the round photo, a serif statement, a plain paragraph and two ways to go on. */
.hero { padding-top: 64px; }
.hero .avrow + h1 { margin-top: 28px; }
.photo { position: relative; display: block; width: 80px; height: 80px; border-radius: 50%; overflow: clip; }
.photo .base { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.photo .face { position: absolute; left: 50%; top: -8px; width: 148.572px; height: 113.714px; transform: translateX(-50%); }
.photo .face img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
h1, .display { font-family: var(--serif); font-weight: 420; font-size: 40px; line-height: 44px; letter-spacing: -1.2px; color: var(--ink); text-wrap: balance; /* explicit line breaks */ }
.hero h1 { margin-top: 28px; max-width: 800px; }
.lede { margin-top: 20px; max-width: 648px; color: var(--text); text-wrap: pretty; }
.lede a, .prose a { text-decoration: underline; text-decoration-color: #c9c9c9; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.lede a:hover, .prose a:hover { text-decoration-color: var(--ink); }
.lede + .lede { margin-top: 24px; }
/* The linked names, as on davidluft.com: no underline, a row of 4px dots of changing colour under the word. On hover the word lifts a pixel and fades a little, and the colours start to run along the dots. */
.lnk, .lede a.lnk { position: relative; display: inline; text-decoration: none; cursor: pointer; }
.ld-t { position: relative; top: 0; transition: top .2s cubic-bezier(.22,1,.36,1), opacity .2s cubic-bezier(.22,1,.36,1); }
.lnk:hover .ld-t { opacity: .5; top: -1px; }
.lnk:active .ld-t { opacity: 1; transition-duration: .1s; }
.ld-clip { position: absolute; left: -6px; right: -6px; bottom: -3px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent); mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent); }
.ld-track { display: flex; width: 200%; animation: ldRun 4s linear infinite paused; }
.lnk:hover .ld-track { animation-play-state: running; }
.ld-set { display: flex; width: 50%; flex: none; }
.ld-set > i { flex: 1; display: block; }
.ld-set > i > b { display: block; width: 4px; height: 4px; border-radius: 50%; transition: filter .15s ease; }
.lnk:hover .ld-set b { filter: brightness(.9) saturate(1.25); }
@keyframes ldRun { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ld-track { animation: none; } }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero .cta { margin-top: 32px; }
.cta { align-items: center; gap: 12px; }
.cta .btn.dark { height: 36px; padding: 0 16px; font-size: 14px; }
/* Small grey chips, as on benlau.design: 6px corners, 14px medium text; the email one carries a copy icon. */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; background: #f5f5f5; color: #2b2b2b; font-size: 14px; line-height: 20px; font-weight: 500; transition: background-color .15s cubic-bezier(.4,0,.2,1), color .15s cubic-bezier(.4,0,.2,1); }
.chip:hover { background: #e6e6e6; }
.chip svg { flex: none; display: block; }
.chip .i-ok { opacity: 0; }
.chip.done .i-copy { opacity: 0; }
.chip.done .i-ok { opacity: 1; }
.chip .i-copy, .chip .i-ok { transition: opacity .15s ease; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; line-height: 20px; transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
/* The dark button, copied from davidluft.com: 4px corners, a soft top-lit gradient and an inner glow. */
.btn.dark { padding: 12px 16px; height: auto; border-radius: 4px; font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: 0; color: #fff; text-box: cap alphabetic; text-shadow: rgba(0,0,0,.5) 0 -1px; background: linear-gradient(rgb(75,75,75), rgb(32,32,32) 55%, rgb(21,21,21)); box-shadow: rgba(0,0,0,.92) 0 0 0 1px inset, rgba(255,255,255,0) 0 0 0 200px inset, rgba(255,255,255,.3) 0 0 6px inset, rgba(0,0,0,.08) 0 1px 1px -1px, rgba(0,0,0,.08) 0 2px 4px -1px, rgba(0,0,0,.06) 0 4px 8px -2px; transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s cubic-bezier(.32,.72,0,1); }
.btn.dark:hover { background: linear-gradient(rgb(75,75,75), rgb(32,32,32) 55%, rgb(21,21,21)); box-shadow: rgba(0,0,0,.78) 0 0 0 1px inset, rgba(255,255,255,.08) 0 0 0 200px inset, rgba(255,255,255,.42) 0 0 8px inset, rgba(0,0,0,.08) 0 1px 1px -1px, rgba(0,0,0,.08) 0 2px 4px -1px, rgba(0,0,0,.06) 0 4px 8px -2px; }
.btn.dark:active { transform: scale(.97); transition-duration: 90ms; box-shadow: rgba(0,0,0,.92) 0 0 0 1px inset, rgba(255,255,255,0) 0 0 0 200px inset, rgba(255,255,255,.24) 0 0 5px inset, rgba(0,0,0,.1) 0 1px 1px -1px, rgba(0,0,0,.08) 0 1px 2px -1px, rgba(0,0,0,.05) 0 2px 4px -2px; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05); }
.btn.light:hover { background: #fafafa; }

/* The hero mark, from the first version: my photo, Figma crossed out, then Claude pops in. All three are the same size. */
:root { --ico: 56px; }
.avrow { display: flex; align-items: center; gap: 16px; }
.avatar { position: relative; width: var(--ico); height: var(--ico); border-radius: 50%; overflow: clip; flex: none; display: block; }
.avatar .base { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
.avatar .photo { position: absolute; left: 50%; top: calc(var(--ico) * -.1); width: calc(var(--ico) * 1.857); height: calc(var(--ico) * 1.4214); transform: translateX(-50%); border-radius: 0; overflow: visible; }
.avatar .photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.swap { position: relative; display: flex; align-items: center; gap: 16px; user-select: none; -webkit-user-select: none; }
.swap span { position: relative; display: block; width: var(--ico); height: var(--ico); }
.swap svg { display: block; width: 100%; height: 100%; }
.swap .sw-f { transform: rotate(-6deg); }
.swap .sw-c { transform: rotate(5deg) scale(.4); opacity: 0; }
.swap .sw-x { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; }
.swap .sw-x path { fill: none; stroke: #d8392b; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.swap .sw-x .p1 { stroke-width: 6.4; }
.swap .sw-x .p2 { stroke-width: 4.2; opacity: .88; }
.swap.go .sw-x .p1 { animation: swDraw .38s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
.swap.go .sw-x .p2 { animation: swDraw .26s .5s cubic-bezier(.4, 0, .2, 1) forwards; }
.swap.go .sw-c { animation: swPop .55s .95s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.swap.still .sw-x path { animation: none; stroke-dashoffset: 0; }
.swap.still .sw-c { animation: none; opacity: 1; transform: rotate(5deg); }
@keyframes swDraw { to { stroke-dashoffset: 0; } }
@keyframes swPop { 0% { opacity: 0; transform: rotate(5deg) scale(.4); } 100% { opacity: 1; transform: rotate(5deg) scale(1); } }

/* "engineer": the sajjad.one-style lens (see lens.js). Without WebGL or on touch the plain word stays. */
.lens { position: relative; display: inline-block; }
.lens-t { display: inline-block; white-space: nowrap; }
.lens canvas { position: absolute; width: 0; height: 0; pointer-events: none; opacity: 0; }   /* lens.js sizes it itself; on a touch phone it does not run, and an unsized canvas (300 x 150) stuck out to the right and made the whole page wider than the screen */

/* Work. */
#work { margin-top: 48px; }
.project { margin-top: 96px; scroll-margin-top: 96px; }
.project:first-child { margin-top: 0; }
.cover { display: block; aspect-ratio: 3 / 2.1; border-radius: 12px; background: var(--cover); }   /* no hover change on covers */
/* As on davidluft.com: a two-column grid, the button on the title's baseline (its trimmed text aligns with the heading), pulled 8px out of the row at top and bottom. */
.ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; margin-top: 28px; }
.project h2 { font-family: var(--serif); font-weight: 420; font-size: 40px; line-height: 44px; letter-spacing: -1.2px; text-wrap: balance; }
.project .sum { margin-top: 12px; max-width: 648px; color: var(--text); }
.mgb-end { justify-self: end; margin: -6px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 40px; margin-top: 20px; }
.facts > div { display: flex; gap: 10px; }
.facts dt { font-weight: 500; font-size: 15px; line-height: 24px; }
.facts dd { color: var(--text); font-size: 15px; line-height: 24px; }
.facts dd.na { color: #a3a3a3; }
.note { margin-top: 48px; color: var(--muted); }

/* The project page. Left: back, the tabs of the page and the call to action, always in view from the start. Right: the project, section by section, each with its words and its pictures. Small, quiet type in the manner of benlau.design: pale grey labels, softer grey text. */
.pj { --pj-ink: #2b2b2b; --pj-body: #5c5c5b; --pj-label: #8f8f8e; width: 100%; max-width: 1400px; margin-inline: auto; padding: 32px 24px 96px; color: var(--pj-ink); }
.pj-grid { display: flex; flex-direction: column; gap: 40px; }
.pj-back { width: fit-content; margin-bottom: 24px; }
.pj-nav-top { display: flex; flex-direction: column; }
.pj-tabs, .pj-nav-bot { display: none; }
.pj-quote-m { margin-top: 72px; }
.pj-label { margin: 0 0 8px; color: var(--pj-label); font-size: 14px; line-height: 20px; font-weight: 500; }
.pj-title { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 44px; font-weight: 420; letter-spacing: -1.2px; color: var(--ink); }
.pj-text { margin: 0; max-width: 780px; color: var(--pj-body); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.pj-text + .pj-text { margin-top: 20px; }
.pj-intro { margin-top: 8px; }
.pj-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; }
.pj-link { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: #7c7c7c; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; text-decoration-color: #d9d9d9; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
.pj-link:hover { color: var(--pj-ink); text-decoration-color: currentColor; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pj-tag { padding: 2px 8px; border-radius: 4px; background: #f5f5f5; color: var(--pj-body); font-size: 12px; line-height: 16px; font-weight: 500; }
.pj-table { max-width: 720px; margin: 20px 0 0; }
.pj-trow { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 7px 0; font-size: 14px; line-height: 20px; }
.pj-trow + .pj-trow { border-top: 1px solid #efefef; }
.pj-trow dt { margin: 0; color: var(--pj-label); }
.pj-trow dd { margin: 0; color: var(--pj-ink); }
.pj-trow .na { color: #b5b5b4; }
.pj-trow .pj-link { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--pj-ink); }
.pj-meta { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 16px 0 0; }
.pj-meta > div { display: flex; gap: 10px; font-size: 14px; line-height: 20px; }
.pj-meta dt { color: var(--pj-label); font-weight: 500; }
.pj-meta dd { margin: 0; color: var(--pj-body); }
.pj-meta dd.na { color: #b5b5b4; }
.pj-sec { scroll-margin-top: 32px; }
.pj-sec, .pj-run, .pj-more { margin-top: 72px; }
.pj-run .pj-figs { margin-top: 0; }
/* Pictures that follow pictures keep the same 16px between them, whether they come from a section or from a run. */
.pj-sec.has-figs + .pj-run, .pj-run + .pj-run { margin-top: 16px; }
.pj-sec:first-child, .pj-back + .pj-sec { margin-top: 0; }
.pj-list { margin: 8px 0 0; padding-left: 18px; max-width: 620px; color: var(--pj-body); font-size: 16px; line-height: 24px; }
.pj-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; max-width: 900px; }
.pj-item .pj-it { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 26px; line-height: 30px; font-weight: 420; letter-spacing: -.6px; }
.pj-item .pj-text { margin-top: 8px; font-size: 14px; line-height: 20px; }
.pj-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 20px; }
.pj-stat b { display: block; font-family: var(--serif); font-weight: 420; font-size: 40px; line-height: 44px; letter-spacing: -1.2px; color: var(--pj-ink); }
.pj-stat span { display: block; margin-top: 2px; color: var(--pj-label); font-size: 13px; line-height: 16px; }
.pj-figs { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pj-fig { margin: 0; }
.pj-frame { width: 100%; aspect-ratio: 16 / 10.5; border-radius: 8px; background: var(--cover); }
.pj-fig figcaption { margin-top: 8px; color: #808080; font-size: 12px; line-height: 16px; }
.pj-quote { max-width: 620px; }
.pj-av { display: block; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; object-fit: cover; }
.pj-quote .q { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 34px; letter-spacing: -.5px; color: var(--pj-ink); text-wrap: pretty; }
.pj-by { margin: 16px 0 0; color: var(--pj-ink); font-size: 14px; line-height: 20px; font-weight: 500; }
.pj-by { display: flex; align-items: center; gap: 4px; }
.pj-x { display: inline-flex; color: #000; transition: opacity .15s ease; }
.pj-x:hover { opacity: .6; }
.pj-role { margin: 0; color: var(--pj-label); font-size: 14px; line-height: 20px; }
.pj-row { display: block; margin-top: 12px; font-size: 16px; line-height: 20px; }
.pj-row .t { color: var(--pj-ink); transition: opacity .2s ease; }
.pj-row .s { margin-left: 12px; color: #808080; }
.pj-row:hover .t { opacity: .5; }
.pj-cta { margin-top: 96px; }
.pj-cta-t { margin: 0; color: var(--pj-body); font-size: 15px; line-height: 22px; }
.pj-cta .cta, .pj-nav-cta .cta { margin-top: 0; }
@media (min-width: 1100px) {
  .pj { padding-inline: 32px; }
  .pj-grid { flex-direction: row; align-items: flex-start; gap: 80px; }
  .pj-nav { flex: none; width: 260px; align-self: stretch; }
  .pj-nav-in { position: fixed; top: 35px; left: 24px; bottom: 32px; width: max(260px, calc(50vw - 464px)); display: flex; flex-direction: column; justify-content: space-between; }
  .pj-tabs { display: block; list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 18px; }
  .pj-tabs li.grp { height: 18px; margin: 0 0 2px; color: rgba(0,0,0,.267); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pj-tabs a { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; height: 24px; color: rgba(0,0,0,.486); transition: color .12s cubic-bezier(.2,0,0,1); }
  .pj-tabs a:hover, .pj-tabs li.on a { color: oklch(.15 0 0); }
  .pj-tabs a:focus, .pj-tabs a:focus-visible { outline: none; }
  .pj-tabs a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pj-tabs a b { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #96d509; opacity: 0; scale: .4; transition: opacity .15s ease, scale .2s cubic-bezier(.2,1.4,.4,1); }
  .pj-tabs li.on a b { opacity: 1; scale: 1; }
  .pj-nav-bot { display: flex; flex-direction: column; gap: 40px; padding-bottom: 4px; }
  .pj-nav-bot .pj-quote .q { font-size: 20px; line-height: 26px; letter-spacing: -.3px; }
  .pj-nav-bot .pj-av { width: 36px; height: 36px; margin-bottom: 12px; }
  .pj-nav-bot .pj-by { margin-top: 12px; }
  .pj-quote-m { display: none; }
  .pj-main { flex: 1; min-width: 0; max-width: 960px; }
  .pj-cta { display: none; }
}
@media (max-width: 760px) { .pj-outs { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .pj-trow { grid-template-columns: 112px 1fr; } .pj { padding-top: 24px; } .pj-row .s { display: block; margin: 2px 0 0; } .pj-title { font-size: 32px; line-height: 36px; letter-spacing: -.9px; } .pj-quote .q { font-size: 24px; line-height: 30px; } }

/* Work with me: what I do, and how to start. */
.work-with { margin-top: 128px; }
.work-with h2 { font-family: var(--serif); font-weight: 420; font-size: 40px; line-height: 44px; letter-spacing: -1.2px; text-wrap: balance; }
.work-with .sum { margin-top: 12px; max-width: 648px; color: var(--text); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.services h3 { font-weight: 500; font-size: 16px; line-height: 24px; }
.services p { margin-top: 6px; color: var(--text); font-size: 15px; line-height: 24px; }

/* Footer. */
.foot { margin-top: 128px; padding-bottom: 72px; }
.foot p { color: var(--text); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.foot-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a, .foot-links button { transition: color .2s ease; }
.foot-links a:hover, .foot-links button:hover { color: var(--ink); }

/* About page. */
.about-hero { padding-top: 64px; }
.prose { margin-top: 24px; max-width: 648px; display: flex; flex-direction: column; gap: 16px; color: var(--text); text-wrap: pretty; }
.block { margin-top: 88px; }
.block h2 { font-family: var(--serif); font-weight: 420; font-size: 32px; line-height: 36px; letter-spacing: -.9px; }
.block .prose { margin-top: 16px; }
.roles { margin-top: 20px; display: flex; flex-direction: column; }
.role { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role b { font-weight: 500; }
.role span { color: var(--text); }

/* The same pointer as the live site. */
html, html * { cursor: url("assets/cursor.svg") 5 4, auto !important; }

@media (max-width: 640px) {
  h1, .display, .project h2, .work-with h2 { font-size: 32px; line-height: 36px; letter-spacing: -.9px; }
  .hero { padding-top: 40px; }
  .ph { grid-template-columns: 1fr; }
  .mgb-end { margin: 20px 0 0; justify-self: stretch; width: 100%; }
  .mgb-end .mgb-btn { width: calc(100% - 2px); }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .facts { gap: 4px 24px; }
  .role { grid-template-columns: 1fr; gap: 4px; }
  #work, .work-with, .foot, .block { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hero glass buttons (X, Email), copied from wabi.ai's hero pill: milky glass face, a conic hairline ring that turns on hover,
   a cast shadow that crossfades to a tighter one while the pill shrinks to .975. Sized down to our 36px row. */
@property --angle-1 { syntax: '<angle>'; inherits: false; initial-value: -75deg; }
@property --angle-2 { syntax: '<angle>'; inherits: false; initial-value: -45deg; }
.mgb { --ease-q: cubic-bezier(.25, 1, .5, 1); position: relative; z-index: 2; border-radius: 999vw; background-color: transparent; pointer-events: none; width: fit-content; transform: none; }
.mgb-btn { appearance: none; margin: 0; padding: 0; border-style: none; outline: 2px solid transparent; outline-offset: 3px; box-sizing: content-box; font: inherit; font-size: 14px; color: inherit; text-align: inherit; text-decoration: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: rgba(0,0,0,0); pointer-events: auto; z-index: 3; display: flex; align-items: center; justify-content: center; height: 38px; width: auto; border-radius: 999vw;
  background-color: rgba(255,255,255,.55);
  background-image: linear-gradient(-75deg, rgba(255,255,255,.10), rgba(255,255,255,.30), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 4px rgba(255,255,255,.665), inset 0 -4px 4px rgba(255,255,255,.85), inset 0 0 14px rgba(229,229,229,.55);
  -webkit-backdrop-filter: blur(clamp(4px, .5em, 14px)); backdrop-filter: blur(clamp(4px, .5em, 14px));
  transform: none; transition: transform 240ms var(--ease-q); }
.mgb-btn:hover { transform: scale(.975); }
.mgb-btn:focus-visible { outline-color: rgba(25,25,25,.58); }
.mgb-label { position: relative; width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; user-select: none; color: #363636; text-shadow: 0 .05em .05em rgba(0,0,0,.05); font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; padding-inline: 16px; line-height: 1; }
.mgb-label svg { flex: none; display: block; }
.mgb-ring { position: absolute; z-index: 1; border-radius: 999vw; width: calc(100% + 1px); height: calc(100% + 1px); top: -.5px; left: -.5px; padding: 1px; box-sizing: border-box;
  background-image: conic-gradient(from var(--angle-1) at 50% 50%, rgba(0,0,0,.5), rgba(0,0,0,0) 5% 40%, rgba(0,0,0,.5) 50%, rgba(0,0,0,0) 60% 95%, rgba(0,0,0,.5)), linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.5));
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0); -webkit-mask-clip: content-box, border-box; -webkit-mask-origin: content-box, border-box; -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0); mask-clip: content-box, border-box; mask-origin: content-box, border-box; mask-composite: exclude;
  transition: all 400ms var(--ease-q), --angle-1 500ms ease; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); pointer-events: none; }
.mgb-btn:hover .mgb-ring { --angle-1: -125deg; }
.mgb::before, .mgb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: .5; box-shadow: 0 7px 11px rgba(0,0,0,.07), 0 15px 12px rgba(0,0,0,.05); transform: scale(1); transition: transform 240ms var(--ease-q), opacity 240ms var(--ease-q); }
.mgb::after { opacity: 0; box-shadow: 0 3px 6.5px rgba(0,0,0,.07), 0 5px 7px rgba(0,0,0,.05); }
.mgb:has(.mgb-btn:hover)::before { opacity: 0; transform: scale(.975); }
.mgb:has(.mgb-btn:hover)::after { opacity: .5; transform: scale(.975); }
.mgb-shadow { position: absolute; width: calc(100% + 1em); height: calc(100% + 1em); top: -.5em; left: -.5em; filter: blur(clamp(1px, .0625em, 6px)); overflow: visible; pointer-events: none; z-index: 1; opacity: .5; font-size: 14px; }
.mgb:has(.mgb-btn:hover) .mgb-shadow { filter: blur(clamp(.25px, .0156em, 1.5px)); }
.mgb-shadow span { position: absolute; z-index: 0; border-radius: 999vw; background-image: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.015)); width: calc(100% - 1em - .125em); height: calc(100% - 1em - .125em); top: calc(1em - .25em); left: calc(1em - .4375em); padding: .125em; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0); -webkit-mask-clip: content-box, border-box; -webkit-mask-origin: content-box, border-box; -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0); mask-clip: content-box, border-box; mask-origin: content-box, border-box; mask-composite: exclude; transition: all 400ms var(--ease-q); }
.mgb .i-ok { opacity: 0; }
.mgb .chip-copy.done .i-copy { opacity: 0; }
.mgb .chip-copy.done .i-ok { opacity: 1; }
.mgb .i-copy, .mgb .i-ok { transition: opacity .15s ease; }
.mgb-btn.round { width: 38px; }
.mgb-btn.round .mgb-label { padding-inline: 0; }

/* The dark one (Book a call, View project): the same pill, in the dark of the old button, with a white ring. */
.mgb-btn.mgb-dark { background-color: #202020; background-image: linear-gradient(rgb(75,75,75), rgb(32,32,32) 55%, rgb(21,21,21)); border: 1px solid rgba(0,0,0,.92);
  box-shadow: inset 0 1px 4px rgba(255,255,255,.3), inset 0 -4px 4px rgba(0,0,0,.4), inset 0 0 14px rgba(255,255,255,.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mgb-dark .mgb-label { color: #fff; text-shadow: 0 -1px rgba(0,0,0,.5); }
.mgb-dark .mgb-ring { background-image: conic-gradient(from var(--angle-1) at 50% 50%, rgba(255,255,255,.5), rgba(255,255,255,0) 5% 40%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 60% 95%, rgba(255,255,255,.5)), linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.14)); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }
.mgb-btn { text-decoration: none; }

/* A project with its own title line: the name sits above it, small, and the line is the page's heading. */
.pj-kicker { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.pj-bigtitle { max-width: 760px; font-size: 48px; line-height: 50px; letter-spacing: -1.5px; text-wrap: balance; }
.pj-bigtitle + .pj-intro { margin-top: 20px; }
@media (max-width: 640px) { .pj-bigtitle { font-size: 34px; line-height: 38px; letter-spacing: -1px; } }

/* The Candy.ai cover: two phones on the grey cover, running the real app (candy-mock.js). */
.cover-mk { position: relative; overflow: hidden; }
.mk-host, .mk { position: absolute; inset: 0; }
.mk-link { position: absolute; inset: 0; z-index: 1; }
.mk-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--gap, 20px); }
/* the phone: Apple's silver iPhone 18 Pro render drawn over the live screen; the screen is cut to the real corner shape with the bezel's own mask (see the mockup artifact) */
.mk-phone { position: relative; flex: none; width: var(--pw, 200px); height: var(--ph, 410px); }
/* the soft shadow is a plain box-shadow on its own layer (a filter over live iframes makes the browser redraw them while you scroll) */
/* its box ends just inside the metal edge (the frame picture has a little empty margin below the phone): a box that reaches past the phone shows as a pale band between the phone and its shadow */
.mk-phone::before { content: ""; position: absolute; left: 3%; right: 3%; top: 2%; bottom: 1.7%; border-radius: calc(var(--ph, 410px) * .1); box-shadow: 0 14px 20px -4px rgba(0,0,0,.09); pointer-events: none; }
.mk-pin { position: absolute; left: 0; top: 0; width: 450px; height: 920px; transform: scale(var(--k, .45)); transform-origin: 0 0; }
.mk-screen { position: absolute; z-index: 1; left: 24px; top: 23px; width: 402px; height: 874px; border-radius: 62px; overflow: hidden; isolation: isolate; background: #0d0d0d center top / 100% 100% no-repeat;
  -webkit-mask: url(candy/frame/screen-mask.png) 0 0 / 100% 100% no-repeat; mask: url(candy/frame/screen-mask.png) 0 0 / 100% 100% no-repeat; }
.mk-screen iframe, .mk-screen video { position: absolute; left: 0; top: 0; width: 402px; height: 874px; border: 0; border-radius: 62px; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: #0d0d0d; }
.mk-phone.on iframe, .mk-phone.on video { opacity: 1; }
.mk-screen video { object-fit: cover; display: block; }
.mk-frame { position: absolute; inset: 0; z-index: 5; width: 450px; height: 920px; max-width: none; pointer-events: none; user-select: none; }
.mk-ctl { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.5); transition: background-color .2s ease, transform .2s ease; will-change: transform; transform: translateZ(0); }   /* no backdrop blur: it was drawn late over the live phones and showed as a black square */
.mk-ctl:hover { background: rgba(0,0,0,.6); }
.mk-ctl:active { transform: scale(.94); }
.mk-ico { display: block; width: 14px; height: 14px; background: #fff; }
.mk-ctl[data-playing="true"] .mk-ico { background: linear-gradient(90deg, #fff 0 4.5px, transparent 4.5px 9.5px, #fff 9.5px 14px); border-radius: 1px; }
.mk-ctl[data-playing="false"] .mk-ico { clip-path: polygon(18% 0, 100% 50%, 18% 100%); border-radius: 2px; }
.pj-mock { position: relative; overflow: hidden; }
/* The Dynamic Island, redrawn as a crisp vector pill over the render's (same size and place: 94.7 x 36.7 pt, 14 pt from the top of the screen), with the camera lens and a soft sensor glint. */
.mk-island { position: absolute; z-index: 6; left: 177.65px; top: 37px; width: 94.7px; height: 36.7px; border-radius: 99px; background: #000; pointer-events: none; box-shadow: 0 0 0 .5px rgba(255,255,255,.05); }
.mk-island b { position: absolute; right: 11px; top: 50%; width: 12.5px; height: 12.5px; margin-top: -6.25px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #3d4a78 0, #16203d 34%, #060912 62%, #000 100%); box-shadow: inset 0 0 0 .6px rgba(120,140,220,.28), 0 0 0 1.4px #07070a; }
.mk-island b::after { content: ""; position: absolute; left: 3.4px; top: 3px; width: 2.6px; height: 2.6px; border-radius: 50%; background: rgba(210,225,255,.55); filter: blur(.4px); }

/* A quiet badge beside the project name: how it was made. */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: #f5f5f5; color: #2b2b2b; font-family: var(--sans); font-size: 12.5px; line-height: 16px; font-weight: 500; letter-spacing: -.05px; white-space: nowrap; vertical-align: middle; }
.badge svg { flex: none; display: block; color: #171717; }
.ph-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.pj-kick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.pj-kick .pj-kicker { margin: 0; }
.fact-badge { display: flex; align-items: center; min-height: 24px; }
.pj-trow dd .badge { vertical-align: middle; }

/* The real iOS status bar (time, signal, Wi-Fi, battery) from the mockup artifact, white on the dark app; the app's own rough copy of it is hidden. */
.mk-status { position: absolute; z-index: 2; left: 0; top: 0; width: 402px; height: 54px; max-width: none; pointer-events: none; user-select: none; filter: invert(1); }
.mk-light .mk-status { filter: none; }   /* a light app keeps the dark status bar */

/* The project page is one centred column now (no sidebar): the words first, the screens below. */
.pj-grid { display: block !important; }
.pj-nav, .pj-nav-in { display: none !important; }
.pj-main { max-width: 880px; margin-left: auto !important; margin-right: auto !important; flex: none; }
.pj-quote-m, .pj-cta { display: block !important; }
.pj-screens { margin-top: 72px; }
.pj-screens .pj-figs { margin-top: 0; gap: 16px; }
.pj-cta { margin-top: 72px; }
.pj-cover { margin: 40px 0 0; }

/* A breakdown list: one quiet row per item, a hairline between, plain type (no big serif titles in columns). With a grey frame, the words sit on the left and the picture on the right. */
.pj-outs { display: flex !important; flex-direction: column; gap: 0 !important; max-width: none !important; margin-top: 24px; }
.pj-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; align-items: baseline; padding: 20px 0; border-top: 1px solid #efefef; }
.pj-item:last-child { border-bottom: 1px solid #efefef; }
.pj-item .pj-it { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: -.1px; color: var(--pj-ink); }
.pj-item .pj-text { margin: 0; max-width: 640px; font-size: 15px; line-height: 22px; }
.pj-outs.has-figs .pj-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; padding: 32px 0; }
.pj-outs.has-figs .pj-it { grid-column: 1; grid-row: 1; font-size: 17px; line-height: 24px; }
.pj-outs.has-figs .pj-item .pj-text { grid-column: 1; grid-row: 2; margin-top: 8px; }
.pj-outs.has-figs .pj-frame-s { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 720px) {
  .pj-item, .pj-outs.has-figs .pj-item { grid-template-columns: 1fr; row-gap: 6px; }
  .pj-outs.has-figs .pj-frame-s { grid-column: 1; grid-row: auto; order: 3; margin-top: 12px; }
  .pj-outs.has-figs .pj-it, .pj-outs.has-figs .pj-item .pj-text { grid-column: 1; grid-row: auto; }
}

/* A block of the story: a plain heading, its words, then its picture. */
.pj-bt { margin: 0 0 8px; font-family: var(--sans); font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -.2px; color: var(--pj-ink); }
.pj-sec .pj-bt + .pj-text + .pj-figs, .pj-sec .pj-bt + .pj-text + .pj-text + .pj-figs { margin-top: 20px; }

/* A tiny handwritten note at the foot of the cover, slanted, like a signature. */
.mk-note { position: absolute; z-index: 2; left: 24px; top: 22px; font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 17px; line-height: 1; font-weight: 500; color: #f27a2c; color: oklch(68% .18 52); transform: rotate(-5deg); transform-origin: left top; pointer-events: none; user-select: none; white-space: nowrap; }

/* The Candy cover is a little taller, so the two phones can be a little bigger. */
.cover.cover-mk { aspect-ratio: 15 / 11.55; }   /* 10% taller than the usual 3:2 cover */
.pj-cover .pj-frame { aspect-ratio: 15 / 11.55; }   /* the same shape as the cover on the home page */

/* Every frame on a page with a moving cover has the cover's shape. */
.pj-eq .pj-frame { aspect-ratio: 15 / 11.55; }
/* The testimonial sits in a box at the end of the story. */
.pj-quote-m .pj-quote { max-width: none; padding: 36px; border-radius: 12px; background: var(--cover); }
.pj-quote-m .pj-quote .q { max-width: 680px; }
@media (max-width: 640px) { .pj-quote-m .pj-quote { padding: 24px; } }

/* Facts in columns: the label above, its words below, like a project brief. */
.pj-meta2 { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 28px; }
.pj-mcol { min-width: 0; }
.pj-ml { margin: 0 0 4px; color: var(--pj-ink); font-size: 15px; line-height: 22px; font-weight: 500; }
.pj-mv { margin: 0; color: var(--pj-body); font-size: 15px; line-height: 24px; }
a.pj-mv { display: block; width: fit-content; }

/* A little less space between the blocks of a project with a moving cover. */
.pj-eq .pj-sec { margin-top: 48px; }
.pj-eq .pj-sec:first-of-type, .pj-eq .pj-back + .pj-sec { margin-top: 0; }
.pj-eq .pj-cover { margin-top: 36px; }
.pj-eq .pj-quote-m, .pj-eq .pj-cta { margin-top: 48px; }
.pj-eq .pj-sec .pj-bt + .pj-text + .pj-figs, .pj-eq .pj-sec .pj-bt + .pj-text + .pj-text + .pj-figs { margin-top: 16px; }

/* The testimonial is centred in its box. */
.pj-quote-m .pj-quote { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 44px 36px; }
.pj-quote-m .pj-quote .q { max-width: 680px; margin-inline: auto; }
.pj-quote-m .pj-av { margin-inline: auto; }
.pj-quote-m .pj-by { justify-content: center; }
.pj-quote-m .pj-role { text-align: center; }

/* The title with a button at its right (Try demo). */
.pj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pj-head .pj-bigtitle { flex: 1; min-width: 0; }
.pj-head .mgb { flex: none; margin-top: 8px; }
@media (max-width: 640px) { .pj-head { flex-direction: column; gap: 16px; } .pj-head .mgb { margin-top: 0; } }

/* Try demo sits under "My role", with room above it and more room before the cover. */
.pj-demo-row { margin-top: 24px; }
.pj-demo-row .mgb { margin: 0; }
.pj-eq .pj-cover { margin-top: 56px; }

/* Try demo hugs the left edge of the text. */
.pj-demo-row { display: flex; justify-content: flex-start; }
.pj-demo-row .mgb { margin: 0 !important; justify-self: start; width: fit-content; }
.pj-demo-row .mgb-btn { width: auto; }

/* ---- Phones (up to 640px): David Luft's measures. 16px at the sides, 20px at the top; headings 26/32 (Crimson Pro 420, -0.78px); text 14/20; summary 16px under the heading.
   Nothing here touches the desktop layout, and the phone mockup keeps its shape. ---- */
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-top: 20px; }
  h1, .display, .project h2, .work-with h2, .pj-title, .pj-bigtitle { font-size: 26px; line-height: 32px; letter-spacing: -.78px; }
  .hero h1 { margin-top: 20px; }
  .lede, .project .sum, .work-with .sum, .prose, .foot p, .services p, .pj-text, .pj-intro, .pj-mv { font-size: 14px; line-height: 20px; }
  .lede { margin-top: 20px; }
  .project .sum { margin-top: 16px; }
  .project { margin-top: 72px; }
  .facts dt, .facts dd { font-size: 14px; line-height: 20px; }
  .services h3 { font-size: 15px; line-height: 22px; }
  /* the View project button stays on a phone */
  /* the Candy cover is taller, so the two phones show well */
  .cover.cover-mk { aspect-ratio: 1 / 1.05; }
  .pj-cover .pj-frame, .pj-eq .pj-frame { aspect-ratio: 1 / 1.05; }
  .mk-note { display: none; }
  .mk-ctl { width: 28px; height: 28px; right: 8px; bottom: 8px; }
  .mk-ico { width: 9px; height: 9px; }
  .mk-ctl[data-playing="true"] .mk-ico { background: linear-gradient(90deg, #fff 0 3px, transparent 3px 6px, #fff 6px 9px); }
  /* the project page */
  .pj { padding-inline: 16px; padding-top: 20px; }
  .pj-bt { font-size: 16px; line-height: 24px; }
  .pj-ml { font-size: 14px; line-height: 20px; }
  .pj-meta2 { gap: 12px 32px; margin-top: 20px; }
  .pj-eq .pj-sec { margin-top: 40px; }
  .pj-quote-m .pj-quote .q { font-size: 20px; line-height: 26px; letter-spacing: -.3px; }
}

/* The bottom bar on a phone (davidluft.com): hidden on larger screens. */
.mnav { display: none; }
@media (max-width: 640px) {
  .mnav { display: block; position: fixed; z-index: 50; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); height: 68px; border-radius: 12px; background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 1px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.08), 0 4px 8px -2px rgba(0,0,0,.06);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .16s cubic-bezier(.23,1,.32,1), transform .2s cubic-bezier(.23,1,.32,1); }
  .mnav.show { opacity: 1; transform: none; pointer-events: auto; }
  .mnav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 12px; }
  .mnav-l { position: relative; display: flex; min-width: 0; align-items: center; }
  .mnav-sel { position: relative; display: flex; min-width: 0; align-items: center; gap: 4px; margin: -8px -4px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: #404040; background: rgba(0,0,0,.03); max-width: calc(100vw - 130px); transition: color .15s cubic-bezier(.2,0,0,1), background-color .15s cubic-bezier(.2,0,0,1); }
  .mnav-sel:active { background: rgba(0,0,0,.06); transition-duration: 0s; }
  .mnav-sel::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; bottom: -16px; }
  .mnav-lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  .mnav-chev { display: inline-flex; flex: none; transition: rotate .16s cubic-bezier(.2,0,0,1); }
  .mnav-chev svg { display: block; }
  .mnav.open .mnav-chev { rotate: 180deg; }
  .mnav-pop { position: absolute; z-index: 10; left: -4px; bottom: 100%; margin-bottom: 20px; width: max-content; max-width: calc(100vw - 40px); max-height: calc(100vh - 150px); overflow-y: auto; padding: 4px; border-radius: 12px; background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 1px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.08), 0 4px 8px -2px rgba(0,0,0,.06);
    opacity: 0; scale: .95; transform-origin: bottom left; pointer-events: none; transition: opacity .16s cubic-bezier(.23,1,.32,1), scale .16s cubic-bezier(.23,1,.32,1); }
  .mnav.open .mnav-pop { opacity: 1; scale: 1; pointer-events: auto; }
  .mnav-row { position: relative; display: flex; width: 100%; align-items: center; padding: 8px 16px 8px 8px; border-radius: 8px; font-size: 14px; line-height: 20px; text-align: left; color: #737373; transition: color .15s cubic-bezier(.2,0,0,1); }
  .mnav-row[aria-current] { color: #171717; }
  .mnav-row:active { background: rgba(0,0,0,.06); }
  .mnav-row .d { position: absolute; left: 8px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s cubic-bezier(.4,0,.2,1), scale .15s cubic-bezier(.2,0,0,1); }
  .mnav-row[aria-current] .d { opacity: 1; }
  .mnav-row .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: translate .2s cubic-bezier(.4,0,.2,1); }
  .mnav-row[aria-current] .l { translate: 8px 0; }
  .mnav-about { display: inline-flex; align-items: center; height: 68px; margin: -12px -4px -12px -24px; padding: 6px 12px 6px 24px; border-radius: 4px; font-size: 14px; line-height: 20px; color: #404040; }
  .mnav-about .ab { position: relative; display: inline-flex; }
  .mnav-about .t { display: inline-block; transition: translate .2s cubic-bezier(.4,0,.2,1), opacity .2s cubic-bezier(.4,0,.2,1); }
  .mnav-about:active .t { opacity: .5; transition-duration: .1s; }
  .mnav-about .dots { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: center; gap: 3px; opacity: 0; translate: 0 3px; pointer-events: none; transition: translate .2s cubic-bezier(.4,0,.2,1), opacity .2s cubic-bezier(.4,0,.2,1); }
  .mnav-about .dots b { display: block; width: 3px; height: 3px; border-radius: 50%; }
  .mnav-about:active .dots { opacity: 1; translate: 0 0; }
  .foot { padding-bottom: 104px; }
}
@media (max-width: 640px) and (hover: hover) {
  .mnav-row:hover .d { opacity: 1; scale: 1.5; }
  .mnav-row:hover .l { translate: 8px 0; }
  .mnav-about:hover .t { opacity: .5; translate: 0 -1px; }
  .mnav-about:hover .dots { opacity: 1; translate: 0 0; }
}

/* ---- Phone rhythm: small, even steps (4, 8, 12, 16, 20, 56), the way davidluft.com keeps it. ---- */
@media (max-width: 640px) {
  .hero .avrow + h1, .hero h1 { margin-top: 20px; }
  .lede + .lede { margin-top: 16px; }
  .hero .cta { margin-top: 24px; }
  #work { margin-top: 40px; }
  .project { margin-top: 56px; }
  .project:first-child { margin-top: 0; }
  .ph { margin-top: 20px; row-gap: 0; }
  .ph .mgb-end { margin: 12px 0 0; }
  .project .sum { margin-top: 12px; }
  .facts { margin-top: 12px; gap: 0 24px; }
  .work-with, .foot { margin-top: 56px; }
  .work-with .sum { margin-top: 12px; }
  .services { margin-top: 24px; gap: 16px; }
  .work-with .cta { margin-top: 24px; }
  .foot-row { margin-top: 16px; }
  /* the project page */
  .pj-sec, .pj-run, .pj-more { margin-top: 40px; }
  .pj-eq .pj-sec { margin-top: 32px; }
  .pj-eq .pj-cover, .pj-cover { margin-top: 28px; }
  .pj-demo-row { margin-top: 16px; }
  .pj-eq .pj-quote-m, .pj-eq .pj-cta, .pj-quote-m, .pj-cta { margin-top: 32px; }
  .pj-meta2 { margin-top: 16px; }
  .pj-table { margin-top: 16px; }
  .pj-back { margin-bottom: 16px; }
  .pj-bt { margin-bottom: 6px; }
  .pj-eq .pj-sec .pj-bt + .pj-text + .pj-figs, .pj-eq .pj-sec .pj-bt + .pj-text + .pj-text + .pj-figs, .pj-sec .pj-bt + .pj-text + .pj-figs, .pj-sec .pj-bt + .pj-text + .pj-text + .pj-figs { margin-top: 12px; }
  .pj-text + .pj-text { margin-top: 14px; }
}

/* ---- Phone, round 3 ---- */
@media (max-width: 640px) {
  /* View project goes under Role and Duration, full width (as davidluft.com's button), with clear air before the next project */
  .project { display: flex; flex-direction: column; margin-top: 72px; }
  .project:first-child { margin-top: 0; }
  .project > .cover { order: 0; }
  .project > .ph { display: contents; }
  .project > .ph h2 { order: 1; margin-top: 20px; }
  .project > .sum { order: 2; }
  .project > .facts { order: 3; }
  .project > .ph .mgb-end { order: 4; margin: 20px 0 0; width: 100%; align-self: stretch; justify-self: stretch; }
  .project > .ph .mgb-end .mgb-btn { width: calc(100% - 2px); }
  /* the names in the intro are plain words on a phone: no links, no coloured dotted lines */
  .lede a.lnk, .lede .lnk { pointer-events: none; cursor: auto; }
  .lnk .ld-clip { display: none; }
  /* the project selector of the bottom bar: no grey fill and no outline, as on davidluft.com */
  .mnav-sel, .mnav.open .mnav-sel { background: transparent; }
  .mnav-sel:active { background: rgba(0,0,0,.06); }
  .mnav-sel:focus, .mnav-sel:focus-visible, .mnav-about:focus, .mnav-about:focus-visible, .mnav-row:focus, .mnav-row:focus-visible { outline: none; }
}

/* Pre-promote the glass buttons so their first hover does not have to set up a layer and a blur on the spot. */
.mgb-btn { will-change: transform; transform: translateZ(0); }
.mgb-ring { will-change: opacity; }

/* The top of a project with a moving cover, a little tighter (desktop only), so more of the cover shows on the first screen. */
@media (min-width: 761px) {
  .pj:has(.pj-eq) { padding-top: 24px; }
  .pj-eq .pj-back { margin-bottom: 20px; }
  .pj-eq .pj-meta2 { margin-top: 24px; }
  .pj-eq .pj-sec:has(~ .pj-cover) { margin-top: 36px; }
  .pj-eq .pj-back + .pj-sec { margin-top: 0; }
  .pj-eq .pj-demo-row { margin-top: 20px; }
  .pj-eq .pj-cover { margin-top: 40px; }
}

/* The figures in a block of a project with a moving cover: small and close together, a line of facts rather than a headline. */
.pj-eq .pj-stats { gap: 6px 32px; margin-top: 14px; }
.pj-eq .pj-stat b { font-size: 22px; line-height: 26px; letter-spacing: -.5px; }
.pj-eq .pj-stat span { margin-top: 0; font-size: 12px; line-height: 16px; }
.pj-eq .pj-sec .pj-stats + .pj-figs { margin-top: 16px; }
.pj-text b { color: var(--pj-ink); font-weight: 600; }
.pj-in { align-items: center; gap: 6px; color: inherit; text-decoration: none; }

/* The big numbers of a result (stats: [...] in script.js): equal columns, so every number and its line of words start on the same edges. */
.pj-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; max-width: 900px; }
.pj-stat span { margin-top: 6px; font-size: 14px; line-height: 20px; max-width: 220px; }
@media (max-width: 640px) { .pj-stats { grid-template-columns: 1fr; gap: 20px; } .pj-stat span { max-width: none; } }

/* A short case study (compact: true in script.js): the blocks sit closer together, so the whole story reads in one go. */
.pj-main.pj-compact .pj-sec:not(#s-overview) { margin-top: 40px; }
.pj-main.pj-compact .pj-bt { margin-bottom: 6px; }
.pj-main.pj-compact .pj-text + .pj-text { margin-top: 10px; }
.pj-main.pj-compact .pj-list { margin-top: 4px; }
.pj-main.pj-compact .pj-bt + .pj-list { margin-top: 0; }
.pj-main.pj-compact .pj-sec .pj-figs { margin-top: 16px; }
.pj-main.pj-compact .pj-stats { margin-top: 12px; }
.pj-main.pj-compact .pj-cta { margin-top: 48px; }
@media (max-width: 640px) { .pj-main.pj-compact .pj-sec:not(#s-overview) { margin-top: 32px; } .pj-main.pj-compact .pj-cta { margin-top: 36px; } }
/* Words that follow a picture inside one block (Before, picture, After, picture). */
.pj-sec .pj-figs + .pj-text { margin-top: 28px; }
.pj-main.pj-compact .pj-sec .pj-figs + .pj-text { margin-top: 24px; }

/* The breakdown on a project page: the home page's sidebar, with Home at the top and the parts of the page under it. */
.side-pj li.side-home { margin-bottom: 22px; }
.side-pj li.side-home button { color: oklch(.15 0 0); }
.side-pj li.side-home button:hover { color: rgba(0,0,0,.486); }
@media (min-width: 1200px) { body.has-side .pj-back { display: none; } }
/* A list right under a paragraph gets the same air as a second paragraph. */
.pj-sec .pj-text + .pj-list, .pj-main.pj-compact .pj-text + .pj-list { margin-top: 12px; }
/* Under a two-line title the first words need more air: the letters that hang below the line (p, y) reach into the gap. */
.pj-main.pj-compact .pj-intro { margin-top: 16px; }
/* A project page with the breakdown at the left: more air above the title, and the list moves down with it so "Home" stays level with the first line. */
@media (min-width: 1200px) { body.has-side .pj { padding-top: 40px; } body.has-side .side-pj { top: 51px; } }
/* A title with set lines (lines: [...] in script.js): each line stands on its own on a wide screen, and flows as ordinary words on a narrow one. */
@media (min-width: 900px) { .tl { display: block; white-space: nowrap; } .pj-bigtitle.has-lines { max-width: none; text-wrap: initial; } }
/* One size for every cover. The home page's covers are 3% smaller than they were (900 -> 873 -> 856 wide: 3% smaller, then 2% more), and every picture inside a project
   (Candy.ai and the yearly offer case study alike) has that very size and shape: 856 wide, 15 : 11.55. The column of each page is as wide as its covers. */
.wrap { max-width: 904px; }
.pj-main { max-width: 856px; }
@media (min-width: 641px) { .pj-frame, .pj-eq .pj-frame, .pj-main.pj-compact .pj-frame { aspect-ratio: 15 / 11.55; } }
/* Every cover 3% shorter, at the same width (15 : 11.55 -> 15 : 11.2 for the covers with phones, 3 : 2.1 -> 3 : 2.037 for the plain grey ones). */
@media (min-width: 641px) { .cover { aspect-ratio: 3 / 2.037; } .cover.cover-mk, .pj-frame, .pj-eq .pj-frame, .pj-main.pj-compact .pj-frame { aspect-ratio: 15 / 11.2; } }
.pj-list b { color: var(--pj-ink); font-weight: 600; }

/* The footer is just the Back to top button, on the left under the work. */
.foot-row { justify-content: flex-start; margin-top: 0; }
.foot { margin-top: 96px; }
@media (max-width: 640px) { .foot { margin-top: 56px; } }

/* No Try demo button on a phone: the demo is built for a larger screen. */
@media (max-width: 640px) { .pj-demo-row { display: none; } }

/* Phone: 8px more air above the icons at the top of the home page. */
@media (max-width: 640px) { .hero { padding-top: 28px; } }

/* Phone: the picture of the yearly offer case study (the cover and its two phone frames) has exactly the size of its card on the home page: 358 wide, 1 : 1.05. Desktop is untouched. */
@media (max-width: 640px) {
  .pj-main.pj-compact .pj-frame { aspect-ratio: 1 / 1.05; }
}

/* Phone, Candy.ai: more room between the blocks that follow the cover (Chat & AI Profile, Generate, Subscription, ...), so they no longer sit against each other. */
@media (max-width: 640px) {
  .pj-eq .pj-cover ~ .pj-sec { margin-top: 64px; }
  .pj-eq .pj-cover ~ .pj-quote-m, .pj-eq .pj-cover ~ .pj-cta { margin-top: 64px; }
}

/* "Let's work together" is just its buttons now, under the work. */
.work-with { margin-top: 96px; }
.work-with .cta { margin-top: 0; }
@media (max-width: 640px) { .work-with { margin-top: 56px; } }

/* A button is drawn only once glass.js has turned it into the glass pill. Until then it holds its place but stays unseen, so the plain grey chip and the square dark button never flash on a slow first load.
   glass.js renames the element (mgb-btn), so this stops applying by itself. If glass.js never arrives, the plain button shows after 2.5 s. */
a.chip, button.chip, a.btn, button.btn { visibility: hidden; animation: raw-btn 0s linear 2.5s forwards; }
@keyframes raw-btn { to { visibility: visible; } }

/* The screen inside a phone mockup is a picture, never a page to use: a clear layer over it takes every touch and wheel, so the site scrolls and the app inside does not. */
.mk-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* desktop: more air between one section (its text and picture) and the next, so each picture clearly belongs to the paragraph above it */
@media (min-width: 641px) { .pj-eq .pj-cover ~ .pj-sec { margin-top: 88px; } }

/* Carton: a desktop screen on the grey cover, as in the Figma cover (screen.js). One window, centred, thin edge, soft shadow, no laptop. */
.sc-host { position: absolute; inset: 0; }
.sc-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sc-win { --r: 1440 / 888; width: 88%; aspect-ratio: var(--r); border-radius: 5px; overflow: hidden; background: #fff; transform: translateZ(0);
  box-shadow: 0 0 0 1.4px rgba(229,229,229,.31); }   /* as in the portfolio Figma (Claude portfolio 149:21095): the screen at 75% of the grey, a 1.4 px #E5E5E5 edge at 31%, radius ~4.6 */
.sc-win.sc-still { --r: 1200 / 640; border-radius: 5px; }
.sc-win video, .sc-win img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover.cover-sc { position: relative; overflow: hidden; }
.pj-sc { position: relative; overflow: hidden; }
@media (max-width: 640px) { .sc-win { width: 92%; border-radius: 4px; } .sc-win.sc-still { border-radius: 4px; } }
/* on a phone the whole window stays inside the grey, nothing runs off the edge */

/* on a phone the grey around a desktop screen hugs it, so the window is as large as the column allows and nothing is cut */
@media (max-width: 640px) {
  .sc-win { width: 92%; }
}

/* Carton's screen figures: a shorter grey than the phone covers, so the window sits with even, modest space above and below,
   and more room before the next section (as in the other case studies). The covers keep the shape every project cover has. */
@media (min-width: 641px) {
  .pj-sec:has(.pj-sc) + .pj-sec { margin-top: 104px !important; }
}
@media (max-width: 640px) { .pj-sec:has(.pj-sc) + .pj-sec { margin-top: 56px !important; } }
/* Carton's frames take the very shape of the home-page cover, on every screen size, like the other case studies */
@media (min-width: 641px) { .pj-frame.pj-sc { aspect-ratio: 15 / 11.2 !important; } }
@media (max-width: 640px) { .pj-frame.pj-sc, .cover.cover-sc { aspect-ratio: 4 / 3 !important; } }   /* phones only: a shorter grey for the desktop screens */

/* A case study with tight: true in script.js: blocks closer together, and the cover high enough to show on the first screen. */
.pj-main.pj-tight .pj-sec:not(#s-overview), .pj-main.pj-tight .pj-run, .pj-main.pj-tight .pj-more { margin-top: 48px; }
.pj-main.pj-tight .pj-cover { margin-top: 40px; }
@media (max-width: 760px) { .pj-main.pj-tight .pj-sec:not(#s-overview) { margin-top: 36px; } }
/* Surf Ride only: the same room after a picture as Carton and Lendscape (104 px; 56 px on phones) */
@media (min-width: 641px) { .pj-main:has(#s-find-a-surf) .pj-sec:has(.pj-figs) + .pj-sec { margin-top: 104px !important; } }
@media (max-width: 640px) { .pj-main:has(#s-find-a-surf) .pj-sec:has(.pj-figs) + .pj-sec { margin-top: 56px !important; } }
/* Surf Ride: six impact numbers on an even 3 x 2 grid (2 columns on phones) */
.pj-main:has(#s-find-a-surf) .pj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
@media (max-width: 640px) { .pj-main:has(#s-find-a-surf) .pj-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 24px; } }
/* Surf Ride on phones: the same near-square grey as the other phone-mockup case studies (Airbnb, Yearly) */
@media (max-width: 640px) { .pj-main:has(#s-find-a-surf) .pj-frame { aspect-ratio: 1 / 1.05; } }

/* Our cover and section films are pictures, not players: no clicks, no right-click "Show controls", no native buttons in any browser
   (Chrome/Edge controls bar, Safari's start-playback button in Low Power Mode, picture-in-picture, AirPlay). Only our own Play/Stop button works. */
.mk-screen video, .sc-win video { pointer-events: none !important; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mk-screen video::-webkit-media-controls, .sc-win video::-webkit-media-controls,
.mk-screen video::-webkit-media-controls-panel, .sc-win video::-webkit-media-controls-panel,
.mk-screen video::-webkit-media-controls-enclosure, .sc-win video::-webkit-media-controls-enclosure,
.mk-screen video::-webkit-media-controls-overlay-enclosure, .sc-win video::-webkit-media-controls-overlay-enclosure,
.mk-screen video::-webkit-media-controls-start-playback-button, .sc-win video::-webkit-media-controls-start-playback-button,
.mk-screen video::-webkit-media-controls-overlay-play-button, .sc-win video::-webkit-media-controls-overlay-play-button,
.mk-screen video::-webkit-media-controls-play-button, .sc-win video::-webkit-media-controls-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }

/* Branding (2026-11-16): the brand's own motion fills the cover; the detail page lists its pieces at their own shape. New classes only. */
.cover.cover-bv, .pj-frame.pj-bv, .pj-frame.pj-img { position: relative; overflow: hidden; container-type: size; }   /* the usual grey frame, at the usual size */
/* the piece sits in the middle of the grey, as large as it can be while leaving even grey around it (like the Carton screens) */
.bv-win { --rn: 1.6; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(84cqw, calc(82cqh * var(--rn))); aspect-ratio: var(--rn); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.4px rgba(229,229,229,.31); }
@media (max-width: 640px) { .bv-win { width: min(88cqw, calc(84cqh * var(--rn))); border-radius: 4px; } }
.bv, .bv-win > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: center / cover no-repeat; }
.bv { pointer-events: none !important; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bv::-webkit-media-controls, .bv::-webkit-media-controls-panel, .bv::-webkit-media-controls-enclosure, .bv::-webkit-media-controls-overlay-enclosure,
.bv::-webkit-media-controls-start-playback-button, .bv::-webkit-media-controls-overlay-play-button, .bv::-webkit-media-controls-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }
.bv-win > img { -webkit-user-select: none; user-select: none; }

/* Back to top sits in the contact row, at its right end (Abo, 2026-11-16); the footer row is gone. */
.work-with .cta .to-top { margin-left: auto; }
.work-with { padding-bottom: 72px; }   /* the room the footer used to leave under the page */
@media (max-width: 640px) { .work-with { padding-bottom: 104px; } }   /* clear of the phone menu bar at the bottom */
@media (max-width: 640px) { .work-with .cta .to-top { padding: 0; width: 36px; justify-content: center; } .work-with .cta .to-top .t { display: none; } }   /* on a phone: the arrow alone, round like X, so the row stays on one line */
@media (max-width: 640px) { .pj-cover .pj-frame.pj-bv { aspect-ratio: 16 / 10.5 !important; } }   /* on a phone the cover grey has the same shape as the pieces below it */
