/* Direction A ("Index"), 2026-11. Black and white only; the serif carries the page, Inter does the work,
   JetBrains Mono is for code. Tokens, type scale and grid first, then the header and footer, then each page. */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/source-serif-4-400-normal.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/source-serif-4-400-italic.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/source-serif-4-600-normal.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:600;font-display:swap;src:url(/fonts/source-serif-4-600-italic.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/cormorant-garamond-600-normal.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-400-normal.woff2) format('woff2')}

:root{
  /* the page, body text, strong text, secondary text, hairlines, screenshot frames */
  --bg:#ffffff; --ink:#1a1a1a; --strong:#000000; --muted:#6b6b6b; --line:#e5e5e5; --shot-line:#d9d9d9;
  /* type scale */
  --t-hero:clamp(52px,9.4vw,140px); --t-title:clamp(48px,8vw,116px); --t-closing:clamp(52px,9vw,132px);
  --t-h2:clamp(36px,4.4vw,60px); --t-case:clamp(30px,3vw,42px); --t-lede:clamp(20px,1.8vw,24px);
  /* grid and the sticky header */
  --max:1240px; --gap:24px; --header-h:72px;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--bg:#000000;--ink:#e5e5e5;--strong:#ffffff;--muted:#a3a3a3;--line:#262626;--shot-line:#333333;color-scheme:dark}
}
:root[data-theme="dark"]{--bg:#000000;--ink:#e5e5e5;--strong:#ffffff;--muted:#a3a3a3;--line:#262626;--shot-line:#333333;color-scheme:dark}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;transition:background .25s ease,color .25s ease}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto}}
a{color:inherit;text-decoration:none}
p a,li a,.footer-mail{text-decoration:underline;text-underline-offset:3px}
.footer-links a,.row,.more,.brand{text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 48px),var(--max));margin:0 auto}
.wrap{width:100%;max-width:calc(var(--max) + 48px);margin:0 auto;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:8px 12px;z-index:100}
.skip-link:focus{left:8px}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* an anchored section, and anything the keyboard focuses, lands below the sticky header instead of behind it */
:target{scroll-margin-top:calc(var(--header-h) + 24px)}
html{scroll-padding-top:calc(var(--header-h) + 16px)}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.02em;text-wrap:balance;margin:0}


/* header: a full-width bar on the page's ground, sticky, with a hairline beneath. Below 900px the four
   destinations fold into a <details> menu; it opens without script, and site.js only adds Escape */
.site-header{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}
.site-header .bar{position:relative;display:flex;align-items:center;gap:32px;min-height:var(--header-h)}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--strong)}
.brand .mark{width:24px;height:24px;display:block;flex:none}
.brand .brand-name{font-family:var(--serif);font-size:19px;letter-spacing:-.01em}
.site-header .nav{display:flex;align-items:center;gap:28px;margin-left:auto;font-size:15px}
.site-header .nav > a:not(.cta){text-decoration:none;color:var(--muted);transition:color .2s ease}
.site-header .nav > a:not(.cta):hover,.site-header .nav > a[aria-current="page"]{color:var(--strong)}
.cta{display:inline-flex;align-items:center;border:1px solid var(--strong);color:var(--strong);padding:11px 18px;font-size:15px;font-weight:500;line-height:1;text-decoration:none;transition:background .2s ease,color .2s ease}
.cta:hover{background:var(--strong);color:var(--bg)}
.mode-toggle{background:none;border:0;color:var(--muted);font-size:18px;line-height:1;padding:6px;cursor:pointer}
.mode-toggle:hover{color:var(--strong)}
.glyph-sun{display:none}
:root[data-theme="dark"] .glyph-moon{display:none}
:root[data-theme="dark"] .glyph-sun{display:block}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .glyph-moon{display:none}:root:not([data-theme="light"]) .glyph-sun{display:block}}
.menu{display:none}
.menu summary{list-style:none;cursor:pointer;color:var(--strong);font-size:15px;padding:6px 0}
.menu summary::-webkit-details-marker{display:none}
.menu .menu-close,.menu[open] .menu-open{display:none}
.menu[open] .menu-close{display:inline}
.menu-panel{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:8px max(24px,env(safe-area-inset-right,0px)) 20px max(24px,env(safe-area-inset-left,0px))}
.menu-panel a{display:block;font-family:var(--serif);font-size:30px;line-height:1.2;letter-spacing:-.02em;color:var(--strong);text-decoration:none;padding-block:14px;border-bottom:1px solid var(--line)}
.menu-panel a:last-child{border-bottom:0}
@media (max-width:900px){
  .site-header .nav > a:not(.cta){display:none}
  .menu{display:block}
  .brand .brand-name{font-size:17px}
}
@media (max-width:520px){
  .site-header .nav{gap:18px}
  .brand .brand-name{display:none}
}


/* footer: the newsletter on the left (six columns), the links on the right (four), the sign-off on one line
   beneath. The field is a rule, not a box, and the button is a word on a rule: the footer keeps to hairlines */
.site-footer{border-top:1px solid var(--line);padding:56px 0 40px;font-size:15px}
body.home .site-footer{border-top-color:var(--home-footer-line)}
.footer-main{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:32px var(--gap);align-items:start}
.footer-nl{grid-column:1 / span 6;display:flex;flex-direction:column;gap:14px}
.footer-nl-title{font-family:var(--serif);font-size:26px;line-height:1.2;letter-spacing:-.015em;color:var(--strong);margin:0}
.footer-nl-fine{margin:0;color:var(--muted);max-width:44ch;text-wrap:pretty}
.subscribe{display:flex;align-items:flex-end;gap:20px;margin-top:8px;max-width:460px}
.subscribe input{flex:1;min-width:0;border:0;border-bottom:1px solid var(--muted);border-radius:0;background:transparent;color:var(--strong);padding:8px 0;font:inherit;font-size:16px;line-height:1.4;outline-offset:4px}
.subscribe input::placeholder{color:var(--muted)}
.subscribe input:focus{border-bottom-color:var(--strong)}
.subscribe button{border:0;border-bottom:1px solid var(--strong);border-radius:0;background:none;color:var(--strong);padding:8px 0;font:500 15px/1.4 var(--sans);cursor:pointer;outline-offset:4px}
.subscribe button:hover{opacity:.7}
/* why a form was turned back, in plain words beside the form that sent it */
.form-error{margin:0;max-width:56ch;font-size:15px;line-height:1.5;color:var(--ink)}
.qform .form-error{font-size:17px}
.form-error:focus{outline:none}
.footer-links{grid-column:9 / span 4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px var(--gap)}
/* a page that carries its own signup above the footer leaves the footer its links alone */
.footer-main > .footer-links:only-child{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:10px 28px}
.footer-links a{text-decoration:none;color:var(--muted)}
.footer-links a:hover{color:var(--strong)}
.footer-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;margin-top:56px;padding-top:24px;border-top:1px solid var(--line);color:var(--muted)}
body.home .footer-bottom{border-top-color:var(--home-footer-line)}
.footer-bottom .brand .brand-name{font-size:17px}
.footer-note{margin:0}
.footer-mail{margin-left:auto;color:var(--muted);text-decoration:none}
.footer-mail:hover{color:var(--strong)}
@media (max-width:900px){
  .footer-nl,.footer-links{grid-column:1 / -1}
}
@media (max-width:520px){
  .footer-mail{margin-left:0}
}


/* HOME, Direction A: the statement, the band, Work, What we do, How a project runs, Writings and the
   closing block, on the page's own ground in both themes. The hero's lede and the rows are the home's own
   versions of names other pages use, so they are scoped to body.home. */
body.home{--band-filter:none}
:root[data-theme="light"] body.home{--band-filter:invert(1)}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]) body.home{--band-filter:invert(1)}}
:is(body.home, body.work, body.services, body.quote) main > section{padding-block:clamp(72px,9vw,128px)}
:is(body.home, body.work, body.services, body.quote) main > section.flush{padding-top:0}
body.home .hero{padding-block:clamp(72px,12vw,160px) clamp(56px,7vw,96px)}
body.home .hero h1{font-size:var(--t-hero);line-height:.94;letter-spacing:-.035em;max-width:11ch;color:var(--strong)}
body.home .hero .grid{margin-top:clamp(40px,5vw,72px);align-items:end}
body.home .hero .lede{grid-column:1 / span 6;max-width:none;margin:0;font-family:var(--serif);font-size:var(--t-lede);line-height:1.45;color:var(--ink)}
body.home .hero .lede a{text-decoration:none;border-bottom:1px solid var(--muted)}
.hero .actions,.closing .actions{grid-column:9 / span 4;display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:flex-start}
.cta.solid{background:var(--strong);color:var(--bg)}
.cta.solid:hover{background:transparent;color:var(--strong)}
.actions .plain{font-size:15px;color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px}
.actions .plain:hover{color:var(--strong)}

/* the house pattern */
body.home .band{position:relative;overflow:clip;aspect-ratio:1920/560;max-height:520px;width:100%}
body.home .band img{width:100%;height:100%;object-fit:cover;display:block;filter:var(--band-filter)}
/* Where the browser runs scroll timelines and the visitor welcomes motion, the drawing rises slowly inside
   the band as the band crosses the screen: the band shows 560 of the drawing's 760 rows, so the drawing
   travels the other 200, from its top rows as the band comes in to its bottom rows as it leaves.
   overflow:clip above crops without making the band a scroll container, so the band's own view timeline
   follows the page; overflow:hidden would leave the timeline stuck. Everywhere else the band stays still. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: view()){
    body.home .band{view-timeline:--band block}
    body.home .band img{position:absolute;top:0;left:0;height:auto;object-fit:initial;animation:band-rise linear both;animation-timeline:--band}
  }
}
@keyframes band-rise{to{transform:translateY(calc(-100% * 200 / 760))}}

/* section heads: the serif title and a quiet link on one line, over a hairline */
.head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.head h2{font-size:var(--t-h2);letter-spacing:-.025em;line-height:1;color:var(--strong)}
.head .more{font-size:15px;color:var(--muted)}
.head .more:hover{color:var(--strong)}

/* work: each case's words on the left, its gallery on the right */
.case{padding-block:clamp(40px,5vw,64px);border-bottom:1px solid var(--line);align-items:start}
.case .text{grid-column:1 / span 4;display:flex;flex-direction:column;gap:18px}
.case h3{font-size:var(--t-case);letter-spacing:-.02em;line-height:1.05;color:var(--strong)}
.case p{color:var(--ink);max-width:36ch;margin:0}
.case .read{font-size:15px;color:var(--strong);text-decoration:none;border-bottom:1px solid var(--strong);align-self:flex-start;padding-bottom:2px}
.case .gallery{grid-column:5 / span 8;min-width:0}

/* a case's frames, one at a time: the landing page, the app screens, then the stack card */
.gallery{container-type:inline-size}
.g-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.g-track::-webkit-scrollbar{display:none}
.slide{scroll-snap-align:start;aspect-ratio:16/10;margin:0;position:relative;overflow:hidden;container-type:inline-size}
.slide > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left;display:block}
.g-bar{display:flex;align-items:center;gap:16px;margin-top:16px}
/* the tabs and arrows need the script; without it the frames still scroll by touch */
body:not(.js) .g-bar{display:none}
.g-tabs{display:flex;flex-wrap:wrap;gap:4px 18px;flex:1;min-width:0}
.g-tabs button,.g-step{background:none;border:0;padding:4px 0;font:inherit;font-size:15px;color:var(--muted);cursor:pointer;border-bottom:1px solid transparent}
.g-tabs button:hover,.g-step:hover{color:var(--strong)}
.g-tabs button[aria-current="true"]{color:var(--strong);border-bottom-color:var(--strong)}
.g-step{font-size:18px;line-height:1;padding:6px}
.g-now{display:none;flex:1;margin:0;font-size:15px;color:var(--strong)}
.g-now span{color:var(--muted)}
@media (max-width:600px){.g-tabs{display:none}.g-now{display:block}}

/* a browser window drawn around a screen; its chrome scales with the shot and follows the site's theme */
:root{--chrome:#ececee;--chrome-field:#ffffff;--chrome-ink:#76767b;--chrome-strong:#1a1a1a;--chrome-dot:#cbcbcf;--chrome-line:#d6d6da;--win-shadow:0 24px 60px -24px rgba(0,0,0,.28)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--chrome:#232325;--chrome-field:#363638;--chrome-ink:#a3a3a8;--chrome-strong:#ececee;--chrome-dot:#4b4b4f;--chrome-line:#38383b;--win-shadow:0 30px 80px -20px rgba(0,0,0,.7)}}
:root[data-theme="dark"]{--chrome:#232325;--chrome-field:#363638;--chrome-ink:#a3a3a8;--chrome-strong:#ececee;--chrome-dot:#4b4b4f;--chrome-line:#38383b;--win-shadow:0 30px 80px -20px rgba(0,0,0,.7)}
.browser{border:1px solid var(--chrome-line);border-radius:max(7px,.8cqw);overflow:hidden;background:var(--chrome);box-shadow:var(--win-shadow)}
.chrome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr) minmax(0,1fr);align-items:center;height:max(20px,3.2cqw);padding-inline:max(8px,1.2cqw);border-bottom:1px solid var(--chrome-line)}
.chrome .left{display:flex;align-items:center;gap:max(10px,1.5cqw)}
.dots{display:flex;gap:max(4px,.55cqw)}
.dots i{display:block;width:max(5px,.8cqw);height:max(5px,.8cqw);border-radius:50%;background:var(--chrome-dot)}
.chrome svg{display:block;fill:none;stroke:var(--chrome-ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.navs{display:flex;gap:max(6px,.7cqw)}
.navs svg{width:max(10px,1.15cqw);height:max(10px,1.15cqw)}
.url{display:flex;align-items:center;justify-content:center;gap:max(4px,.45cqw);height:max(14px,2.1cqw);padding-inline:max(6px,1cqw);background:var(--chrome-field);border-radius:max(4px,.45cqw);font-family:var(--sans);font-size:max(9px,1cqw);line-height:1;color:var(--chrome-ink);white-space:nowrap;overflow:hidden;min-width:0}
.url .lock{flex:none;width:max(7px,.9cqw);height:max(7px,.9cqw)}
.url b{font-weight:400;color:var(--chrome-strong)}
.url .addr{overflow:hidden;text-overflow:ellipsis}
@container (max-width:560px){.navs{display:none}.url{font-size:max(7.5px,1.9cqw)}.chrome{grid-template-columns:minmax(0,1fr) minmax(0,3fr) minmax(0,1fr)}}

/* the stack card fills a frame on the case page in the product's own colours, set on it as custom properties.
   Its name and rows sit together, centred in the frame; auto margins centre them only while they fit, so a
   long stack starts at the top instead of spilling over both edges */
.stack{position:absolute;inset:0;display:flex;flex-direction:column;gap:4.2cqw;padding:5cqw 5.5cqw;font-size:clamp(9.5px,2.05cqw,18px);line-height:1.4;background:var(--st-bg);color:var(--st-ink)}
.st-head{display:flex;align-items:center;gap:2cqw;margin-top:auto}
.st-head img{height:5.4cqw;width:auto}
.st-name{font-family:var(--sans);font-weight:500;font-size:3.6cqw;line-height:1.05;letter-spacing:-.03em;color:var(--st-strong)}
.st-name b{font-weight:500;color:var(--st-accent)}
.st-rows{display:flex;flex-direction:column;margin:0 0 auto}
.st-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,8fr);gap:2.4cqw;padding-block:1.5cqw;border-top:1px solid var(--st-line)}
.st-row dt{font-weight:500;color:var(--st-accent)}
.st-row dd{margin:0}
.stack[data-heading="serif"] .st-name,.stack[data-heading="serif"] dt{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600}
.stack[data-heading="serif"] .st-name{font-size:4.4cqw;letter-spacing:-.01em}
.stack[data-heading="serif"] dt{font-size:1.15em}
/* on a phone the card drops its heading and tightens; this follows the rules it overrides */
@container (max-width:520px){.st-head{display:none}.st-rows{margin-top:auto}.st-row{padding-block:1cqw}.stack{line-height:1.28;padding:3.6cqw 4.5cqw}}

/* also built: five more under the cases, in the writings row style */
.also{padding-top:clamp(48px,6vw,80px)}
.also-h{font-size:26px;letter-spacing:-.01em;padding-bottom:16px;border-bottom:1px solid var(--line);color:var(--strong)}
.also .all{display:inline-block;margin-top:24px;font-size:15px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:2px}
.also .all:hover{color:var(--strong)}

/* rows: a label on the left, the title beside it, a hairline under each */
body.home .row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--gap);padding-block:24px;border-top:0;border-bottom:1px solid var(--line);align-items:baseline;animation:none}
body.home .row:last-child{border-bottom:1px solid var(--line)}
body.home .row .d{font-family:var(--serif);color:var(--muted);font-size:17px}
body.home .row .t{font-family:var(--serif);font-size:clamp(20px,2vw,26px);line-height:1.25;color:var(--strong)}
body.home a.row:hover .t{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
body.home .row.w{grid-template-columns:minmax(0,3fr) minmax(0,7fr) minmax(0,2fr)}
body.home .row.w .d{font-size:clamp(20px,2vw,26px);line-height:1.2;color:var(--strong)}
body.home .row.w .t{font-family:var(--sans);font-size:17px;line-height:1.5;color:var(--ink)}
body.home .row.w .u{justify-self:end;font-size:15px;color:var(--muted)}
body.home a.row.w:hover .t{text-decoration:none}
body.home a.row.w:hover .d{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

/* what we do: the word's cap top and the text's first cap line up. Serif caps start .155em into a
   .95 line box; Inter caps start 7.4px into an 18px/1.55 line */
.svc{--svc-w:clamp(48px,6.4vw,92px);padding-block:clamp(32px,4vw,48px);border-top:0;border-bottom:1px solid var(--line);align-items:start;column-gap:var(--gap)}
.svc:last-child{border-bottom:1px solid var(--line)}
.svc .w{grid-column:1 / span 4;font-family:var(--serif);font-size:var(--svc-w);line-height:.95;letter-spacing:-.03em;color:var(--strong)}
.svc .d{grid-column:5 / span 6;margin:0;font-size:18px;max-width:52ch;padding-top:max(0px,calc(var(--svc-w) * .155 - 7.4px))}
.svc .d a.ds-link{text-decoration:none;border-bottom:1px solid var(--muted)}
.svc .d .proof{display:block;margin-top:14px;font-size:15px;color:var(--muted)}
.svc .d .proof a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line)}
.svc .d .proof a + a{margin-left:18px}

/* how a project runs: four steps, each under a strong rule */
.steps{margin:40px 0 0;padding:0;border-top:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.step{border-top:1px solid var(--strong);padding-top:20px;display:flex;flex-direction:column;gap:10px}
.step h3{font-size:26px;letter-spacing:-.015em;color:var(--strong)}
.step p{margin:0;font-size:16px;color:var(--ink)}
.own{margin:56px 0 0;font-family:var(--serif);font-style:italic;font-size:clamp(24px,2.4vw,32px);color:var(--strong)}
.head:has(+ .steps){border-bottom:0;padding-bottom:0}

/* the closing block every page ends on */
.closing{padding-block:clamp(72px,9vw,128px);border-top:1px solid var(--line)}
.closing h2{font-size:var(--t-closing);line-height:.94;letter-spacing:-.035em;max-width:12ch;color:var(--strong)}
.closing .grid{margin-top:40px;align-items:end}
.closing p{grid-column:1 / span 6;margin:0;font-family:var(--serif);font-size:22px}

@media (max-width:900px){
  body.home .hero .lede,.hero .actions,.closing p,.closing .actions{grid-column:1 / -1}
  .case .text,.case .gallery{grid-column:1 / -1}
  .svc .w{grid-column:1 / -1}
  .svc .d{grid-column:1 / -1;padding-top:0}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.home .row,body.home .row.w{grid-template-columns:1fr;gap:6px}
  body.home .row.w .u{justify-self:start}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr}
}

/* WORK, CASE and the inner pages, Direction A. The page head comes in a few widths, so its rules are
   scoped to the pages that use each one. */
:is(body.work, body.case-page, body.services, body.about, body.quote, body.thanks, body.writings, body.essay, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head{padding-block:clamp(64px,10vw,140px) clamp(40px,5vw,72px);padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
body.case-page .page-head{padding-block:clamp(40px,6vw,88px) clamp(40px,5vw,64px)}
:is(body.work, body.case-page, body.services, body.about, body.quote, body.thanks, body.writings, body.essay, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head h1{font-size:var(--t-title);line-height:.95;letter-spacing:-.035em;max-width:13ch;margin:0;color:var(--strong)}
body.case-page .page-head h1{max-width:12ch}
:is(body.work, body.case-page, body.services, body.about, body.quote, body.thanks, body.writings, body.essay, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head .grid{margin-top:clamp(32px,4vw,56px);align-items:start}
:is(body.work, body.case-page, body.services, body.about, body.quote, body.thanks, body.writings, body.essay, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head .lede{grid-column:1 / span 6;max-width:none;margin:0;font-family:var(--serif);font-size:var(--t-lede);line-height:1.45;color:var(--ink)}
body.case-page .page-head .lede{grid-column:1 / span 7}
.head .count{font-size:15px;color:var(--muted)}

/* work: the case studies as cards, each landing page in its browser window */
.cards{padding-top:40px}
.card{grid-column:span 4;display:flex;flex-direction:column;gap:14px}
.card .shot{display:block;container-type:inline-size;text-decoration:none}
.card .frame{aspect-ratio:16/10;overflow:hidden}
.card .frame img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}
.card h3{font-size:clamp(26px,2.4vw,34px);letter-spacing:-.02em;line-height:1.05;margin-top:10px;color:var(--strong)}
.card p{max-width:40ch;margin:0}
.card .read{font-size:15px;color:var(--strong);text-decoration:none;border-bottom:1px solid var(--strong);align-self:flex-start;padding-bottom:2px;margin-top:4px}

/* work: a company or a project per row, its name, its sentence, then where to find it */
.entry{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap);padding-block:22px;border-bottom:1px solid var(--line);align-items:baseline}
.entry .n{grid-column:1 / span 3;font-size:clamp(20px,1.9vw,24px);line-height:1.2;letter-spacing:-.01em;color:var(--strong)}
.entry .b{grid-column:4 / span 6;margin:0;font-size:16px;max-width:62ch}
.entry .s{grid-column:10 / span 3;margin:0;justify-self:end;text-align:right;font-size:15px;color:var(--muted)}
.entry .s a,.go a,.facts a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:1px}
.entry .s a:hover,.go a:hover,.facts a:hover{border-bottom-color:var(--strong)}

/* work: the open source projects that lead their section, with their facts */
.features{border-bottom:1px solid var(--line)}
.feature{grid-column:span 6;padding-block:40px;display:flex;flex-direction:column;gap:18px}
.feature h3{font-size:clamp(34px,3.6vw,52px);letter-spacing:-.025em;line-height:1;color:var(--strong)}
.feature > p:not(.go){margin:0;font-family:var(--serif);font-size:clamp(19px,1.6vw,21px);line-height:1.45;max-width:44ch}
.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 24px;margin:6px 0 0;font-size:15px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;color:var(--ink)}
.go{display:flex;gap:24px;margin:0;font-size:15px}

/* case: the crumb, then the facts beside the lede */
.crumb{display:inline-block;font-size:15px;color:var(--muted);text-decoration:none;margin-bottom:clamp(28px,4vw,48px)}
.crumb:hover{color:var(--strong)}
body.case-page .page-head .facts{grid-column:9 / span 4;gap:10px 20px;margin:0}

/* case: a screen in its browser window, its caption under it */
.win{margin:0;container-type:inline-size}
.win .browser img{display:block;width:100%;height:auto}
.win figcaption{margin-top:18px;font-size:15px;color:var(--muted);max-width:60ch}

/* case: a row is a quiet label on the left and one statement on the right */
.part{padding-block:clamp(56px,7vw,96px) 0}
.part > .wrap > .grid{border-top:1px solid var(--line);padding-top:24px;align-items:start}
.part h2{grid-column:1 / span 4;font-family:var(--sans);font-size:15px;font-weight:400;letter-spacing:0;line-height:1.55;color:var(--muted)}
.say{grid-column:5 / span 8;margin:0;font-family:var(--serif);font-size:clamp(24px,2.5vw,34px);line-height:1.3;letter-spacing:-.012em;color:var(--strong);max-width:30ch;text-wrap:pretty}
.say.small{font-size:var(--t-lede);line-height:1.45;color:var(--ink);max-width:44ch}
.lenses{grid-column:5 / span 8;margin:0;display:flex;flex-direction:column}
.lens{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,5fr);gap:var(--gap);padding-block:20px;border-top:1px solid var(--line)}
.lens:first-child{border-top:0;padding-top:0}
.lens dt{font-family:var(--serif);font-size:clamp(20px,1.7vw,22px);line-height:1.3;color:var(--strong)}
.lens dd{margin:0;font-size:17px;max-width:46ch}
.screens{padding-block:clamp(56px,7vw,96px) 0}
.screens .wrap{display:flex;flex-direction:column;gap:clamp(56px,7vw,104px)}
.stack-frame{grid-column:5 / span 8;aspect-ratio:16/10;position:relative;overflow:hidden;container-type:inline-size;border:1px solid var(--shot-line);margin:0}

/* case: back to Work, or on to the next case in the loop */
.next{padding-block:clamp(72px,9vw,128px) 0}
.next .bar2{display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:28px}
.next a{color:var(--muted);font-size:15px;text-decoration:none}
.next a:hover{color:var(--strong)}
.next .to{font-family:var(--serif);font-size:clamp(24px,2.4vw,32px);color:var(--strong);letter-spacing:-.015em}
.next .to span{color:var(--muted)}

@media (max-width:900px){
  :is(body.work, body.case-page, body.services, body.about, body.quote, body.thanks, body.writings, body.essay, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head .lede,body.case-page .page-head .facts{grid-column:1 / -1}
  body.case-page .page-head .facts{margin-top:8px}
  .part h2,.say,.lenses,.stack-frame{grid-column:1 / -1}
  .part > .wrap > .grid{row-gap:14px}
  .card{grid-column:1 / -1}
  .card + .card{margin-top:24px}
  .entry{gap:6px}
  .entry .n,.entry .b,.entry .s{grid-column:1 / -1;justify-self:start;text-align:left}
  .feature{grid-column:1 / -1}
  .feature + .feature{border-top:1px solid var(--line)}
}
@media (max-width:600px){
  .lens{grid-template-columns:minmax(0,1fr);gap:6px}
}

/* SERVICES, ABOUT, QUOTE and the thanks page, Direction A */
:is(body.services, body.about, body.quote, body.thanks, body.writings, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head h1{max-width:18ch}
:is(body.services, body.about, body.quote, body.thanks, body.writings, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head .lede{grid-column:1 / span 7}
/* on a phone the lede runs the full width; this follows the rule above so it wins */
@media (max-width:900px){:is(body.services, body.about, body.quote, body.thanks, body.writings, body.designer-software, body.unsubscribe, body.privacy, body.readings) .page-head .lede{grid-column:1 / -1}}
.page-head .lede a{overflow-wrap:anywhere}
.page-head .back{margin:clamp(24px,3vw,40px) 0 0;font-size:15px}
.page-head div.lede p{margin:0}
.page-head div.lede p + p{margin-top:1em}
.page-head .lede a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--muted)}
.unsubscribe-form{margin-top:clamp(24px,3vw,40px)}
.page-head .back a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:1px}

/* services: each word's copy runs to two paragraphs, its proof links in a row under them */
#services .svc:first-child{border-top:1px solid var(--line)}
.svc .d p{margin:0}
.svc .d p + p{margin-top:12px;color:var(--ink)}
.svc .d .proof{margin-top:16px;display:flex;flex-wrap:wrap;gap:6px 20px}
.svc .d .proof a + a{margin-left:0}
.svc .d a.ds-link{text-decoration:none;border-bottom:1px solid var(--muted)}

/* about: a serif label set level with a quieter statement. The label's cap top meets the statement's:
   serif caps start .43em into a 1.5 line and .28em into a 1.2 one */
body.about .page-head + .part{padding-top:0}
body.about .part{--say:clamp(20px,1.8vw,24px);--lab:clamp(22px,2.1vw,28px);padding-block:clamp(48px,6vw,80px) 0}
body.about .part + .closing{margin-top:clamp(72px,9vw,128px)}
body.about .part h2{font-family:var(--serif);font-size:var(--lab);line-height:1.2;letter-spacing:-.01em;color:var(--strong);padding-top:max(0px,calc(var(--say) * .43 - var(--lab) * .28))}
body.about .say{font-size:var(--say);line-height:1.5;letter-spacing:0;color:var(--ink);max-width:44ch}
.say a{text-decoration:none;border-bottom:1px solid var(--muted)}
.say a:hover{border-bottom-color:var(--strong)}

/* quote: the form takes the left seven columns; fields are a label over a single rule */
.qform{grid-column:1 / span 7;display:flex;flex-direction:column;gap:28px}
.qform label{display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--muted)}
.qform input,.qform textarea,.qform select{background:transparent;border:0;border-bottom:1px solid var(--muted);border-radius:0;color:var(--strong);font:inherit;font-family:var(--serif);font-size:20px;padding:8px 0;width:100%}
.qform textarea{resize:vertical;min-height:7.5em;line-height:1.45}
.qform select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 14px) 55%,calc(100% - 9px) 55%;background-size:5px 5px;background-repeat:no-repeat;padding-right:28px}
/* a transparent select gets a white popup with the page's light text in Chromium; the options take the page's colours */
.qform select option{background:var(--bg);color:var(--strong)}
.qform input:focus,.qform textarea:focus,.qform select:focus{outline:none;border-bottom-color:var(--strong)}
.qform input:focus-visible,.qform textarea:focus-visible,.qform select:focus-visible{outline:2px solid var(--strong);outline-offset:4px}
.qform input::placeholder,.qform textarea::placeholder{color:var(--muted);opacity:.8}
.qform .send{align-self:flex-start;margin-top:8px;cursor:pointer;font-family:var(--sans)}
.attach{display:flex;flex-direction:column;gap:10px}
.attach .tip{margin:0;font-family:var(--serif);font-size:18px;color:var(--ink)}
.attach .tip a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--muted)}
.attach .tip a:hover{border-bottom-color:var(--strong)}
.qform .file{position:relative;cursor:pointer}
.file .frow{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:4px}
.file .fbtn{border:1px solid var(--strong);color:var(--strong);padding:10px 16px;font-size:15px;font-weight:500;line-height:1;transition:background .2s,color .2s}
.file:hover .fbtn{background:var(--strong);color:var(--bg)}
.file:focus-within .fbtn{outline:2px solid var(--strong);outline-offset:3px}
.file .fname{font-size:15px;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.file .fname.on{color:var(--strong)}
.qform .file input{position:absolute;inset:auto auto 0 0;width:1px;height:1px;opacity:0;padding:0;border:0}
/* without the script the chosen file's name can't be shown, so the browser's own input stands in */
body:not(.js) .file .frow{display:none}
body:not(.js) .qform .file input{position:static;width:auto;height:auto;opacity:1;font-family:var(--sans);font-size:15px;border:0}
.attach .hint{margin:0;font-size:14px;color:var(--muted)}
.attach .hint.err{color:var(--strong)}
.qform .alt{margin:0;font-size:15px;color:var(--muted)}
.qform .alt a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line)}

@media (max-width:900px){
  .qform{grid-column:1 / -1}
  body.about .part h2{padding-top:0}
  body.about .part > .wrap > .grid{row-gap:12px}
}

/* WRITINGS and the ESSAY, Direction A */
/* the list: one essay per row, the date on the left, the title in the serif */
.wlist{padding-block:0}
.readings-list .list{border-top:1px solid var(--line)}
.wrow{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--gap);padding-block:24px;border-bottom:1px solid var(--line);align-items:baseline;text-decoration:none}
.wrow:first-child{border-top:1px solid var(--line)}
.wrow .d{font-family:var(--serif);font-size:17px;color:var(--muted)}
.wrow .t{font-family:var(--serif);font-size:clamp(20px,2vw,26px);line-height:1.25;color:var(--strong)}
.wrow:hover .t{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.pager{display:flex;justify-content:space-between;gap:24px;margin-top:28px;font-size:15px;color:var(--muted)}
.pager a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line)}
.tag-note{margin:clamp(24px,3vw,40px) 0 0;font-family:var(--serif);font-size:20px;color:var(--muted)}
.tag-note a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--muted)}
.wlist + .closing,.efoot + .closing,article + .closing,.readings-list + .closing{margin-top:clamp(72px,9vw,128px)}

/* the essay: its head, then one reading column from the fifth column, at most 66 characters a line */
.essay-head{padding-block:clamp(40px,6vw,88px) clamp(36px,4vw,56px)}
.essay-head h1{font-size:clamp(40px,5.6vw,80px);line-height:1.02;letter-spacing:-.03em;max-width:20ch;margin:0;color:var(--strong)}
.essay-head .grid{margin-top:clamp(24px,3vw,40px);row-gap:18px}
.essay-head .lede{grid-column:1 / span 7;max-width:none;margin:0;font-family:var(--serif);font-size:var(--t-lede);line-height:1.45;color:var(--ink)}
.essay-head .meta{grid-column:1 / span 7;margin:0;font-size:15px;color:var(--muted)}
.ebody{padding-block:clamp(16px,2vw,24px) 0}
.ebody > .wrap > .grid{border-top:1px solid var(--line);padding-top:clamp(36px,4vw,56px)}
.ebody .col{grid-column:5 / span 8;max-width:66ch;min-width:0;font-family:var(--serif);font-size:clamp(19px,1.5vw,21px);line-height:1.6;color:var(--ink)}
.ebody .col p,.ebody .col ul,.ebody .col ol,.ebody .col blockquote{margin:0 0 1.1em}
.ebody .col ul,.ebody .col ol{padding-left:1.2em}
.ebody .col blockquote{padding-left:1em;border-left:2px solid var(--line)}
.ebody .col h2{font-size:clamp(26px,2.4vw,32px);line-height:1.15;letter-spacing:-.015em;margin:2em 0 .55em;color:var(--strong)}
.ebody .col .updated{font-family:var(--sans);font-size:15px;color:var(--muted);margin-top:2em}
.ebody .col h3{font-size:clamp(21px,1.8vw,24px);line-height:1.25;letter-spacing:-.01em;margin:1.6em 0 .4em;color:var(--strong)}
.ebody .col h2:first-child,.ebody .col h3:first-child{margin-top:0}
.ebody .col hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}
.ebody .col hr + h2,.ebody .col hr + h3{margin-top:0}
.ebody .col a{text-decoration:none;border-bottom:1px solid var(--muted)}
.ebody .col a:hover{border-bottom-color:var(--strong)}
.efoot{padding-block:clamp(48px,6vw,80px) 0}
.tagrow{grid-column:5 / span 8;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;font-size:15px}
.tagrow a{color:var(--strong);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:1px}
.tagrow a:hover{border-bottom-color:var(--strong)}
.pn{margin:28px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);align-items:start;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:24px}
.pn a{display:flex;flex-direction:column;gap:6px;text-decoration:none}
.pn .next{grid-column:2;text-align:right;align-items:flex-end}
.pn .lbl{font-size:15px;color:var(--muted)}
.pn .ttl{font-family:var(--serif);font-size:clamp(19px,1.8vw,24px);line-height:1.25;color:var(--strong);max-width:32ch}
.pn a:hover .ttl{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

@media (max-width:900px){
  .essay-head .lede,.essay-head .meta,.ebody .col,.tagrow{grid-column:1 / -1}
  .wrow{grid-template-columns:1fr;gap:4px}
  .pn{grid-template-columns:1fr}
  .pn .next{grid-column:1;text-align:left;align-items:flex-start}
}

/* DESIGNER SOFTWARE: the essay in the reading column the essays use, each diagram framed inside it.
   On a phone a diagram swaps to its taller cut. */
@property --draw{syntax:"<number>";inherits:true;initial-value:0}
@keyframes ds-draw{from{--draw:0}to{--draw:1}}
.diagram{margin:2em 0 2.4em;color:var(--ink);border:1px solid var(--line);padding:clamp(18px,3vw,32px) clamp(14px,3vw,32px) clamp(14px,2vw,22px)}
.diagram .fig-m{display:none} .diagram svg{height:auto;display:block;margin:0 auto;width:100%}
.diagram figcaption{margin-top:18px;text-align:center;font-family:var(--sans);font-size:15px;line-height:1.5;color:var(--muted)}
.ds-link{color:inherit;text-decoration:underline;text-underline-offset:.16em;text-decoration-thickness:1px} a.ds-link:hover{text-decoration-thickness:2px}
.ds-body + .closing{margin-top:clamp(72px,9vw,128px)}
@media (max-width:760px){.diagram .fig-d{display:none} .diagram .fig-m{display:block} .diagram figcaption{font-size:14px}}

/* MOTION — native only; everything is visible at rest without scripts or support */
html{scroll-behavior:smooth}
@view-transition{navigation:auto}
::view-transition-old(root){animation:vt-out .22s ease both}
::view-transition-new(root){animation:vt-in .32s ease both}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0}}

/* The Designer Software diagrams draw their lines as they scroll into view, where the browser supports
   scroll timelines and the pointer is a mouse. Everywhere else they are simply drawn. */
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  @supports (animation-timeline: view()){
    /* the scroll timeline lives on the svg element and drives one inherited number; the lines and labels read it */
    .diagram .fig svg{animation:ds-draw linear both;animation-timeline:view();animation-range:entry 10% entry 80%}
    .diagram .fig :is(path,line,rect,circle,ellipse,polyline)[pathLength]{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--draw))}
    .diagram .fig text{opacity:calc((var(--draw) - .45) / .5)}
  }
}

/* flash after a form post, rendered at the top of main */
.flash{width:min(calc(100% - 48px),var(--max));margin:16px auto 0;font-size:15px;color:var(--muted)}
