/* base reset (the page is standalone now) */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* Layout: one screen of scattered words over a hand-drawn shore; views slide in and out; project details live in a section below. Paper and ink only. */
:root{
  --paper:#EFECE6;
  --paper-2:#E1DCD2;
  --ink:#1B1A18;
  --ink-2:#4A4640;
  --ink-3:#817B71;
  --mid:#B6AFA2;
  --tex:none;
  --sans:'Instrument Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
  --serif:'Newsreader','Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;
  --slab:'Courier Prime','Courier New',Courier,ui-monospace,monospace;
  --gut:clamp(16px,3vw,44px);
  --gap:clamp(12px,1.6vw,24px);
  --ease:cubic-bezier(.2,.7,.1,1);
  color-scheme:light;
}
html{background:var(--paper)}
body{background-color:var(--paper);background-image:var(--tex);background-size:720px 720px;background-repeat:repeat;color:var(--ink);font-family:var(--sans);font-size:16px;letter-spacing:-.012em;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:clip}
body.locked{overflow:hidden}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:1.5px solid var(--ink);outline-offset:4px}
.caps{font-family:var(--slab);font-size:12.5px;line-height:1.5;letter-spacing:.06em;text-transform:uppercase;font-weight:400}
.muted{color:var(--ink-3)}

/* film grain, seamless tile */
.grain{position:fixed;inset:0;width:100%;height:100%;z-index:82;pointer-events:none;mix-blend-mode:multiply;display:block}

/* ---------- the screen ---------- */
.screen{position:relative;height:100vh;height:100dvh;overflow:hidden}
.scene{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.m-top{position:fixed;top:calc(var(--y0) - 7px);left:0;right:0;z-index:86;margin:0;text-align:center;white-space:nowrap;font-size:clamp(13.5px,1.08vw,16px);letter-spacing:.04em;color:#fff;mix-blend-mode:difference;pointer-events:none;--y0:34px}
.nm{position:relative;display:inline-block;padding:7px 11px;pointer-events:auto;will-change:transform}
.nm .rays{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.nm .rays path{fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nm .lb{display:block}
.m-bot{position:absolute;bottom:26px;left:0;right:0;text-align:center;margin:0;letter-spacing:.2em}
.view{position:absolute;top:11%;bottom:11%;left:0;right:0;display:grid;--pitch:max(var(--rh,30px),6.8dvh,54px);grid-template-rows:repeat(var(--rows),minmax(var(--pitch),auto));align-content:safe center;align-items:center;padding-inline:var(--gut);padding-block:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;--rh:30px}
.view[hidden],.proj[hidden]{display:none}
.row{justify-self:start;margin-left:calc(var(--x) * 1%);white-space:nowrap;font-family:var(--slab);font-size:clamp(15px,1.2vw,18px);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.row .mt{margin-left:12px;font-size:.78em;letter-spacing:.12em;color:var(--ink-3)}
/* smaller screens: give every line room to breathe, let long lines wrap instead of running off, and scroll if it all won't fit */
@media (max-width:900px){.view{--rh:36px}.row{white-space:normal;line-height:1.5;max-width:calc(100% - var(--x) * 1%)}}
.mlink{position:relative;display:inline-block;color:var(--ink);font-weight:400;padding:7px 11px;margin:-7px -11px;will-change:transform}
.mlink .lb{display:block}
.mlink .ink{display:none}
.mlink .rays{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.mlink .rays path{fill:none;stroke:var(--ink);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mlink .ink{position:absolute;inset:0;padding:7px 11px;background:var(--ink);color:var(--paper);clip-path:circle(0px at 50% 50%);pointer-events:none}
.mlink .ink span{display:block;border-bottom:1px solid transparent;padding-bottom:1px}
.mlink .sel{position:absolute;left:-24px;top:50%;font-size:9px;transform:translate(-6px,-50%);opacity:0;transition:opacity .3s,transform .45s var(--ease)}
.mlink.is-sel .sel{opacity:1;transform:translate(0,-50%)}
.row.has-pre .sel{display:none}
@media (max-width:760px) and (orientation:portrait){
  .m-top{--y0:22px}
  .nm{padding:4px 9px}
  .view{top:9%;bottom:36%}
  .view[data-view="work"]{bottom:37%}
  .row{margin-left:calc(var(--xm) * 1%);max-width:calc(100% - var(--xm) * 1%);font-size:14px;letter-spacing:.02em}
  .m-bot{display:none}
}
@media (max-width:420px){.row .mt{display:none}}
@media (max-height:560px) and (orientation:landscape){
  .m-top{--y0:12px}
  .view{top:12%;bottom:14%}
  .row{font-size:12.5px}
  .mlink,.mlink .ink{padding:4px 9px}
  .mlink{margin:-4px -9px}
  .m-bot{display:none}
}

/* ---------- project frame on the work view ---------- */
.shot{position:absolute;left:56%;top:48%;width:min(34vw,540px);aspect-ratio:4/3;transform:translateY(-50%);pointer-events:none}
.shot svg{position:absolute;left:-16px;top:-16px;overflow:visible}
.shot svg path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.shot-img{position:absolute;inset:8px;overflow:hidden;background:var(--paper-2);clip-path:inset(0 0 100% 0);transition:clip-path .55s var(--ease)}
.shot.on .shot-img{clip-path:inset(0 0 0 0);transition:clip-path .8s var(--ease) .5s}
.shot-img > *{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.shot-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.shot-img video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%;display:block}
.shot-cap{position:absolute;left:8px;top:calc(100% + 16px);margin:0;opacity:0;transition:opacity .3s;white-space:nowrap}
.shot.on .shot-cap{opacity:1;transition:opacity .4s .7s}
@media (max-width:760px) and (orientation:portrait){.shot{left:auto;right:calc(var(--gut) + 8px);width:min(62vw,320px);aspect-ratio:3/2;top:auto;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:none}.shot-cap{left:auto;right:8px}}
@media (max-height:560px) and (orientation:landscape){.shot{width:min(34vw,300px);top:50%}.shot-cap{display:none}}
.portrait{position:absolute;left:58%;top:50dvh;width:min(27vw,380px);aspect-ratio:4/5;transform:translateY(-52%);pointer-events:none;touch-action:none}
.portrait.on{pointer-events:auto}
.p-photo{position:absolute;inset:8px;overflow:hidden;clip-path:circle(0px at 0 0);background:var(--paper-2)}
.p-photo > *{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 30%;filter:grayscale(1) contrast(1.06);mix-blend-mode:multiply}
.p-ring{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.p-ring path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.p-ring .r1{stroke-width:1.3}.p-ring .r2{stroke-width:.7;opacity:.45}
.portrait .p-lines{position:absolute;left:-16px;top:-16px;overflow:visible}
.portrait .p-lines path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.portrait .shot-cap{left:8px;white-space:normal;width:max(100%,170px);max-width:calc(100vw - var(--gut) * 2);line-height:1.45}
.portrait.on .shot-cap{opacity:1;transition:opacity .5s var(--cap-delay,0s)}
@media (max-width:760px) and (orientation:portrait){.portrait{left:auto;right:calc(var(--gut) + 8px);width:min(40vw,200px);top:auto;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:none}.portrait .shot-cap{display:none}}
@media (max-height:560px) and (orientation:landscape){.portrait{width:min(22vw,200px)}}
/* narrower screens (that are still tall enough): the picture goes above the words, and its caption wraps instead of running off the edge */
@media (max-width:900px) and (min-height:600px){
  .portrait{left:calc(var(--gut) + 14px);right:auto;top:11dvh;bottom:auto;width:min(34vw,200px);transform:none}
  .portrait .shot-cap{display:block;white-space:normal;width:max(100%,170px);max-width:calc(100vw - var(--gut) * 2 - 28px);line-height:1.45}
  .view[data-view="about"]{margin-top:calc(11dvh + min(34vw,200px) * 1.25 + 78px)}
}
/* narrower screens: the drawing sits in the middle, over the centred words */
@media (max-width:900px) and (min-height:600px){
  .portrait{left:50%;transform:translateX(-50%)}
  .portrait .shot-cap{left:50%;transform:translateX(-50%);text-align:center}
}


/* ---------- hand-drawn scroll bar ---------- */
.sb{position:fixed;right:5px;top:11%;bottom:17%;width:16px;z-index:40;opacity:0;pointer-events:none;transition:opacity .4s}
.sb.on{opacity:.45;pointer-events:auto}.sb.on.act,.sb.on:hover{opacity:1}
.sb svg{position:absolute;left:0;top:0;overflow:visible;display:block;filter:url(#rough)}
.sb-track path{fill:none;stroke:var(--ink);stroke-width:1;stroke-linecap:round;opacity:.8}
.sb-thumb{position:absolute;left:0;top:0;width:16px;cursor:grab;touch-action:none}
.sb-thumb path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.sb.act .sb-thumb{cursor:grabbing}
html.still .sb{transition:none}

/* ---------- project section ---------- */
.proj{padding-inline:var(--gut);padding-block:26px 0}
.pj-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px var(--gap)}
.pj-intro{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);padding-block:clamp(40px,8vh,96px) clamp(40px,6vh,72px)}
.pj-title{grid-column:1/12;margin:0;font-weight:500;font-size:clamp(48px,8.4vw,136px);line-height:.92;letter-spacing:-.05em;text-wrap:balance}
.pj-lede{grid-column:1/7;margin:clamp(24px,3vw,40px) 0 0;font-size:clamp(19px,1.6vw,23px);line-height:1.42;font-weight:300;max-width:38ch}
.pj-meta{grid-column:8/13;margin:clamp(24px,3vw,40px) 0 0;display:grid;grid-template-columns:1fr 1fr;gap:20px var(--gap);align-content:start}
.pj-meta dt{color:var(--ink-3);margin-bottom:4px}
.pj-meta dd{margin:0;font-size:15px;line-height:1.4}
@media (max-width:900px){.pj-lede,.pj-meta{grid-column:1/13}}
@media (max-width:520px){.pj-meta{grid-template-columns:1fr}}
.fig{margin:0}
/* every figure gets the same crude pen-sketched frame as the work hover and the about portrait */
.fig-frame{position:relative;padding:8px}
.fig-frame>svg{position:absolute;left:-16px;top:-16px;overflow:visible;pointer-events:none}
.fig-frame>svg path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.fig-try{position:absolute;right:14px;bottom:14px;padding:8px 14px;margin:0;background:var(--paper);color:var(--ink);border:0;cursor:pointer;font-family:var(--slab);font-weight:700;font-size:13px;letter-spacing:.04em}
.fig-try:focus-visible{outline:none}
.fig-art .fig-try svg.rays{inset:auto;left:0;top:0;width:auto;height:auto;object-fit:initial}
.fig-art iframe{position:static;display:block;width:100%;border:0;background:var(--paper-2)}
.fig-open{margin-left:auto;color:var(--ink)}
.pj-figs.md{grid-column:4/11}
.pj-figs.nw{max-width:380px}
.pj-figs.sm{display:block;max-width:480px;margin:clamp(20px,2.4vw,30px) 0 clamp(24px,3vw,36px)}
/* small cards, stacked: narrow enough to sit beside the text, big enough to read */
.pj-figs.cards{display:block;max-width:520px;margin:clamp(24px,3vw,36px) 0 clamp(28px,3vw,40px)}
.card-pile{display:flex;flex-direction:column;padding:6px 0 10px}
.pc{position:relative;width:84%;margin:0}
.pc+.pc{margin-top:-26px}
.pc0{--rot:-1.6deg;z-index:1}
.pc1{align-self:flex-end;--rot:1.4deg;z-index:2}
.pc2{--rot:-.8deg;z-index:3;margin-left:6%}
/* point at a card (hover, tap or focus) and the others slide off it so it can be seen whole */
.pc{transform:translate(var(--dx,0),var(--dy,0)) rotate(var(--rot,0deg)) scale(var(--sc,1));transition:transform .4s var(--ease);outline:none;cursor:pointer}
.pc.on{--rot:0deg;--sc:1.03;z-index:10}
.pc.before{--dy:-30px}
.pc.after{--dy:30px}
/* the interview boards sit in a pile too; the one you point at grows a lot so it can actually be read */
.pj-figs.cards.iv{max-width:560px;margin:clamp(28px,3vw,44px) 0 0}
.iv .pc.on{--sc:1.12}
@media (min-width:901px){
  .pj-figs.cards.iv{max-width:none;width:auto}
  .iv .pc0{width:44%}
  .iv .pc1,.iv .pc2{width:32%}
  .iv .pc.pc1{margin-top:36px}
  .iv .pc.pc2{margin-top:10px}
  .iv .pc.on{--sc:1.45}
  .iv .pc.before{--dx:-42%}
  .iv .pc.after{--dx:42%}
}
.iv.duo .pc{width:62%}
.iv.duo .pc1{width:40%}
@media (min-width:901px){
  .iv.duo .pc0{width:34%}
  .iv.duo .pc1{width:22%}
  .iv.duo .pc.pc1{margin-top:0}
  .iv.duo .pc.on{--sc:1.3}
  .iv.duo .pc.before{--dx:-30%}
  .iv.duo .pc.after{--dx:30%}
}
/* piles of any size: the cards share the row, overlapping a tenth, and the row leaves room for them to slide apart */
.iv.gp .pc{width:70%}
@media (min-width:901px){
  .pj-figs.cards.iv.gp{width:82%}
  .iv.gp .pc{width:calc((100% + (var(--n) - 1) * 10%) / var(--n))}
  .iv.gp .pc.pc1{margin-top:28px}
  .iv.gp .pc.pc2{margin-top:8px}
  .iv.gp .pc.pc3{margin-top:36px}
  .iv.gp .pc.on{--sc:1.35}
  .iv.gp .pc.before{--dx:calc(var(--sh) * -1%)}
  .iv.gp .pc.after{--dx:calc(var(--sh) * 1%)}
}
@media (prefers-reduced-motion:reduce){.pc{transition:none}}
.still .pc{transition:none}
.fig-cap{display:flex;gap:16px;padding-top:14px;color:var(--ink-3)}
.fig-cap b{font-weight:500;color:var(--ink)}
@media (max-width:560px){.pc{width:92%}.pc+.pc{margin-top:-20px}}
/* on wider screens the cards overlap sideways instead, in a loose diagonal, and the row runs a little past the text column */
@media (min-width:901px){
  .pj-figs.cards{max-width:none;width:calc(100% + 190px)}
  .card-pile{flex-direction:row;align-items:flex-start}
  .pc{width:40%}
  .pc+.pc{margin-top:0;margin-left:-10%}
  .pc.pc1{align-self:auto;margin-top:44px}
  .pc.pc2{margin-top:12px}
  .pc.before{--dx:-26%;--dy:0px}
  .pc.after{--dx:26%;--dy:0px}
}
@media (max-width:900px){.pj-figs.md,.pj-figs.cards{grid-column:1/13}}
.fig-art{position:relative;overflow:hidden;background:var(--paper-2);aspect-ratio:3/2;max-width:100%}
.fig-art svg,.fig-art img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.fig-art.img{aspect-ratio:auto}
.fig-art.img img{position:static;height:auto;object-fit:contain}
.fig-art.img video{position:static;display:block;width:100%;height:auto;object-fit:cover}
.pj-figs{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,2.4vw,32px)}
.pj-figs .fig:first-child{grid-column:1/-1}
@media (max-width:560px){.pj-figs{grid-template-columns:1fr}}
.fig figcaption{display:flex;gap:16px;padding-top:12px;color:var(--ink-3)}
.fig figcaption b{font-weight:500;color:var(--ink)}
.pj-cover .fig-art{aspect-ratio:16/9}
.pj-cover.vid{display:flex;align-items:center;gap:clamp(12px,2vw,28px)}
.pj-cover.vid .fig{flex:0 1 640px;min-width:0}
.pj-note{flex:1 1 200px;display:flex;align-items:center;gap:8px;min-width:0}
.note-arrow{flex:0 0 120px;width:120px;height:auto;overflow:visible;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.note-txt{min-width:0}
.note-hl{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-family:var(--slab);font-size:clamp(18px,1.7vw,24px);line-height:1.6;padding-right:20px}
.note-hl .hlx{font-weight:400;padding:5px 10px 4px;line-height:1.35;-webkit-text-stroke:.35px currentColor;white-space:nowrap}
.note-cap{margin:14px 0 0;max-width:34ch}
@media (max-width:900px){.pj-cover.vid{flex-direction:column;align-items:stretch}.pj-cover.vid .fig{flex:0 0 auto}.pj-note{order:-1;flex-direction:column-reverse;align-items:flex-start}.note-arrow{flex-basis:auto;width:96px;transform:rotate(-90deg);margin:26px 0 26px 14px}}
.pj-cover.vid .fig-art{aspect-ratio:16/9}
.pj-cover.vid.tall .fig{flex:0 1 380px}
.pj-cover.vid.wide .fig{flex:0 1 960px}
.pj-cover.vid.tall .fig-art{aspect-ratio:9/16}
.fig-art video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;background:#000}
@media (max-width:760px){.pj-cover .fig-art{aspect-ratio:4/3}}
.pj-sec{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);padding-top:clamp(64px,9vw,128px)}
.pj-label{grid-column:1/4;align-self:start;position:sticky;top:calc(env(safe-area-inset-top,0px) + 28px);margin:0;padding-top:8px}
.pj-body{grid-column:4/11;min-width:0}
.pj-body h2{margin:0 0 20px;font-size:clamp(26px,2.4vw,34px);font-weight:400;letter-spacing:-.025em;line-height:1.14;max-width:28ch;text-wrap:balance}
.pj-body p{margin:0 0 1.05em;font-size:18px;line-height:1.66;color:var(--ink-2);max-width:62ch}
.pj-body p strong{color:var(--ink);font-weight:500}
.pj-body p a{color:var(--ink)}
.fig-art.live{aspect-ratio:auto}
.fig-art.live iframe{display:block;width:100%;height:clamp(480px,78vh,760px);border:0;background:#fff}
.fig-art.live:not(.on) iframe{pointer-events:none}
.fig-art.live.on .live-go{display:none}
.fig-ph{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;padding:24px;text-align:center;color:var(--ink-3)}
.pj-body ul{margin:0 0 1.2em;padding:0;list-style:none;max-width:62ch;display:flex;flex-direction:column;gap:12px}
.pj-body li{position:relative;padding-left:28px;font-size:17px;line-height:1.5;color:var(--ink-2)}
.pj-body li::before{content:"";position:absolute;left:0;top:.8em;width:12px;height:1px;background:var(--ink)}
/* list items: each is a square pen-framed card with a marker tile and a crude icon, overlapped like the figure piles */
.lst .card-pile{padding:8px 0 22px}
.lst .pc{width:min(66%,250px);margin-left:0;z-index:var(--z)}
.lst .pc:nth-child(even){align-self:flex-end}
.lst .pc.on{z-index:20}
.lst .pc+.pc{margin-top:14px}
.lst .pc .fig-frame{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px;box-sizing:border-box;background:var(--paper)}
.li-ico.hlx{flex:0 0 auto;padding:7px;line-height:0;margin:0}
.li-ico svg{display:block;width:26px;height:26px}
.li-ico .hl-ink{display:grid;place-items:center}
.li-h{display:block;margin-bottom:5px;overflow-wrap:anywhere;font-family:var(--slab);font-weight:700;font-size:16.5px;line-height:1.25;letter-spacing:0;color:var(--ink);-webkit-text-stroke:0}
.li-t{min-width:0;font-size:15px;line-height:1.42;color:var(--ink-2)}
@media (min-width:901px){
  .lst .pc{width:calc((100% + (var(--n) - 1) * 4%) / var(--n));max-width:270px}
  .lst .pc+.pc{margin-top:0;margin-left:-4%}
  .lst .pc:nth-child(odd){margin-top:0}
  .lst .pc:nth-child(even){margin-top:16px;align-self:auto}
  .lst .pc .fig-frame{padding-right:38px}
  .lst .pc.on{--sc:1.22}
  .lst .pc.before{--dx:-22%}
  .lst .pc.after{--dx:22%}
}

html{scrollbar-width:none}
::-webkit-scrollbar{display:none}
.pj-quote{margin:clamp(24px,3vw,36px) 0 clamp(28px,3vw,40px);font-family:var(--sans);font-size:18px;max-width:62ch}
.pj-quote blockquote{margin:0;font-family:var(--slab);font-size:clamp(12px,1vw,14px);line-height:1.6;letter-spacing:-.01em}
/* Courier Prime has no medium, so regular gets a hairline stroke, as the labels do */
.pj-quote blockquote{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding-right:20px}
.pj-quote .hlx{font-weight:400;padding:5px 10px 4px;line-height:1.35;-webkit-text-stroke:.35px currentColor;white-space:nowrap}
.pj-quote figcaption{margin-top:14px}
.pj-fig{grid-column:4/13;margin-top:clamp(28px,3vw,44px)}
.pj-fig.wide{grid-column:1/13}
.metrics{grid-column:4/13;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);margin-top:clamp(20px,3vw,40px)}
.metric b{display:block;font-weight:300;font-size:clamp(34px,4.2vw,64px);line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.metric .hlx{font-weight:400;padding:.12em .2em .08em}
.metric > span{display:block;margin-top:12px;max-width:26ch;color:var(--ink-3)}
@media (max-width:900px){.pj-label{grid-column:1/13;position:static}.pj-body,.pj-fig,.metrics{grid-column:1/13}}
@media (max-width:560px){.metrics{grid-template-columns:1fr}}
.pj-end{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px;margin-top:clamp(110px,14vw,200px);padding-bottom:110px}
.next .nx-title{display:block;margin-top:14px;font-size:clamp(44px,8vw,128px);font-weight:500;letter-spacing:-.055em;line-height:.9;transition:transform .8s var(--ease)}
.next:hover .nx-title{transform:translateX(clamp(10px,2vw,28px))}
.rv{transition:opacity 1s var(--ease),transform 1.1s var(--ease);transition-delay:var(--d,0s)}
.rv.pre{opacity:0;transform:translateY(26px)}
.proj-in{animation:proj-in .6s var(--ease) both}
@keyframes proj-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* ---------- HUD ---------- */
.hud.caps{font-size:14px}
.hud{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:90;display:flex;align-items:center;gap:14px;padding:6px 10px;margin:-6px -10px;border-radius:30px;transition:background .4s}
body.scrolled .hud{background:var(--paper)}
.hud-l{left:var(--gut)}
.hud-r{right:var(--gut);font-variant-numeric:tabular-nums}
.pl-btn{width:36px;height:36px;border:2.2px solid var(--ink);border-radius:50%;display:grid;place-items:center;flex:none;transition:background .3s,color .3s}
.pl-btn:hover{background:var(--ink);color:var(--paper)}
.pl-btn,.pl-skip,.pl-vi{filter:url(#rough)}
.pl-btn .lb,.pl-skip .lb,.pl-vi .lb{display:grid;place-items:center}
.mo-btn:hover .mo-lbl{text-decoration:underline;text-underline-offset:4px}
.mo-btn .lb{display:inline-flex;align-items:center;gap:8px}
.pl-btn svg{width:14px;height:14px;display:block}
.pl-btn .i-pause{display:none}
.playing .pl-btn .i-play{display:none}
.playing .pl-btn .i-pause{display:block}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:14px}
.eq i{width:2px;height:3px;background:var(--ink)}
.playing .eq i{animation:eq .9s ease-in-out infinite}
.playing .eq i:nth-child(2){animation-delay:-.3s;animation-duration:.7s}
.playing .eq i:nth-child(3){animation-delay:-.6s;animation-duration:1.1s}
@keyframes eq{0%,100%{height:3px}50%{height:11px}}
.pl-title{max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-title .tt{display:inline-block}
.pl-title.slide{text-overflow:clip}
.pl-title.slide .tt{animation:titleSlide var(--dur,6s) ease-in-out infinite alternate}
@keyframes titleSlide{0%,18%{transform:translateX(0)}82%,100%{transform:translateX(calc(var(--ov,0px) * -1))}}
.pl-time{font-variant-numeric:tabular-nums;color:var(--ink-3);min-width:4ch}
.pl-skip,.pl-vi{display:grid;place-items:center;flex:none;color:var(--ink);transition:opacity .25s,transform .25s}
.pl-skip{width:28px;height:28px}
.pl-skip svg{width:13px;height:13px;display:block}
.pl-skip:hover{opacity:.55}
.pl-skip:active{transform:scale(.88)}
.pl-vi{width:26px;height:26px}
.pl-vi svg{width:23px;height:15px;display:block}
.pl-vi:hover{opacity:.55}
.pl-vi .wx,.pl-vi .w1,.pl-vi .w2,.pl-vi .w3{display:none}
.pl-vi.lvl-0 .wx{display:block}
.pl-vi.lvl-1 .w1,.pl-vi.lvl-2 .w1,.pl-vi.lvl-2 .w2,.pl-vi.lvl-3 .w1,.pl-vi.lvl-3 .w2,.pl-vi.lvl-3 .w3{display:block}
.pl-volg{display:inline-flex;align-items:center;gap:6px}
.pl-vol{display:inline-flex;align-items:center;height:32px;position:relative}
.pl-vol .vl{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;filter:url(#rough)}
.pl-vol .vl path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.pl-vol .vl path[data-k="rest"]{stroke:var(--ink-3,#7b766d)}
.pl-vol .vl path[data-k="knob"]{fill:var(--ink)}
.pl-vol input{-webkit-appearance:none;appearance:none;width:128px;height:32px;margin:0;background:transparent;cursor:pointer;--v:60%}
.pl-vol input::-webkit-slider-runnable-track{height:3.5px;background:transparent}
.pl-vol input::-moz-range-track{height:3.5px;background:transparent}
.pl-vol input::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;margin-top:-6.8px;background:transparent;border:0}
.pl-vol input::-moz-range-thumb{width:17px;height:17px;background:transparent;border:0}
.pl-vol input:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.mo-btn{display:inline-flex;align-items:center;gap:8px}
.mo-sw{width:42px;height:23px;border:2px solid var(--ink);border-radius:12px 17px 13px 18px / 16px 12px 17px 13px;position:relative;flex:none;filter:url(#rough);background:transparent;transition:background .3s}
.mo-sw::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:55% 45% 52% 48% / 48% 54% 46% 52%;background:var(--ink);transition:transform .35s var(--ease),background .3s}
/* on: the whole switch is filled in with marker, like the highlights, and the knob turns to paper */
.mo-btn[aria-checked="true"] .mo-sw{background:var(--ink)}
.mo-btn[aria-checked="true"] .mo-sw::after{transform:translateX(19px);background:var(--paper)}
.still .playing .eq i{animation:none;height:8px}
.still .rv,.still .rv.pre{transition:none;opacity:1;transform:none}
.still .proj-in{animation:none}
@media (max-width:760px){.hud-r .clock,#hud-city,.pl-time,.eq{display:none}.pl-title{max-width:9ch}.hud{gap:8px}.pl-vol input{width:52px}.hud-r{flex-direction:column;align-items:flex-end;gap:9px}.mo-btn .st{display:none}}

/* ---------- cursor ---------- */
.cur{position:fixed;left:0;top:0;z-index:100000;pointer-events:none;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:transparent;mix-blend-mode:difference;opacity:0;transition:width .5s var(--ease),height .5s var(--ease),margin .5s var(--ease),opacity .25s}
html.has-cur .cur{opacity:1}
.cur.link{background:var(--paper)}
.cur-trail{position:fixed;inset:0;width:100%;height:100%;z-index:99999;pointer-events:none;mix-blend-mode:difference;display:none}
html.has-cur .cur-trail{display:block}
html.has-cur,html.has-cur a,html.has-cur button{cursor:none}
.cur.link{width:28px;height:28px;margin:-14px 0 0 -14px}

.toast{position:fixed;left:50%;top:calc(24px + env(safe-area-inset-top,0px));z-index:95;transform:translate(-50%,-14px);opacity:0;background:var(--ink);color:var(--paper);padding:11px 16px;transition:all .5s var(--ease);pointer-events:none;max-width:calc(100vw - 32px);text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* svg placeholder classes */
.fi{fill:var(--ink)} .fm{fill:var(--mid)} .fp{fill:var(--paper)} .fs{fill:var(--paper-2)} .f3{fill:var(--ink-3)}
.sk{stroke:var(--ink);stroke-width:2} .skt{stroke:var(--ink);stroke-width:1} .skm{stroke:var(--ink-3);stroke-width:1.2}
.nf{fill:none}
.svgt{font-family:var(--sans);fill:var(--ink)}
.svgm{font-family:var(--sans);fill:var(--ink);letter-spacing:.1em}

@media (prefers-reduced-motion:reduce){
  .rv,.rv.pre{transition:none;opacity:1;transform:none}
  .playing .eq i{animation:none;height:8px}
  .proj-in{animation:none}
}

/* typewriter slab for display type; running text stays sans */
.pj-title,.pj-body h2,.nx-title,.metric b,.ct-mail{font-family:var(--slab);font-weight:400}
.pj-title{letter-spacing:-.04em;line-height:.95}
.pj-body h2{letter-spacing:-.01em}
.nx-title{letter-spacing:-.04em}
.metric b{letter-spacing:-.04em}
.mlink .lb,.mlink .ink span{padding-bottom:0}
/* the name floats, each letter on its own slow swell */
.m-top .fl{display:inline-block;animation:float var(--fd,5.5s) ease-in-out infinite;animation-delay:calc(var(--i) * -.55s);will-change:transform}
@keyframes float{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-3.5px) rotate(-2deg)}50%{transform:translateY(1px) rotate(.6deg)}75%{transform:translateY(-2px) rotate(1.4deg)}}
.still .m-top .fl{animation:none}
@media (prefers-reduced-motion:reduce){.m-top .fl{animation:none}}
/* the first two lines of every screen are its header, set as black highlights */
.row.hl{position:relative;color:var(--ink);font-weight:700;padding:5px 10px 4px;margin-left:calc(var(--x) * 1% - 10px);letter-spacing:.05em}
.row.hl .hl-ink,.hlx .hl-ink{position:absolute;inset:0;padding:inherit;background:var(--ink);color:var(--paper);-webkit-mask-image:linear-gradient(transparent,transparent);mask-image:linear-gradient(transparent,transparent);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.row.hl.done .hl-ink,.hlx.done .hl-ink{-webkit-mask-image:none;mask-image:none}
@media (max-width:760px) and (orientation:portrait){.row.hl{margin-left:calc(var(--xm) * 1% - 10px);padding:4px 8px 3px}}
.row .hlx{padding:2px 7px 1px;margin:0 1px}
.hlx{position:relative;display:inline-block;color:var(--ink);font-weight:700;padding:4px 8px 3px;-webkit-text-stroke:0}
.pj-meta dt{margin-bottom:7px}
/* weights by role: bold slab for things you act on or read first, regular slab for labels, sans from light to bold for reading */
.mlink{font-weight:700}
.m-top{font-weight:400;-webkit-text-stroke:.25px currentColor}
.pj-title,.nx-title,.ct-mail{font-weight:700}
.pj-body h2{font-weight:700}
.metric b{font-weight:400}
.fig figcaption b,.pj-top a,.pj-end .up,.pl-next,.mo-lbl,.btn{font-weight:700}
.pj-lede{font-weight:300}
.pj-body p strong{font-weight:700}
/* bold words in the running text: marker strips, a touch lighter than the headers */
.pj-body strong,.pj-lede strong{font-weight:400}
.pj-body strong .hlx,.pj-lede strong .hlx{font-weight:500;padding:1px 5px 0;margin:0 1px;line-height:1.3;-webkit-text-stroke:.3px currentColor}

.pj-meta dd{font-weight:500}
.pl-title{font-weight:700}
.clock{font-weight:700}

/* the regular typewriter text gets a touch more ink; Courier Prime only comes in regular and bold */
.row,.caps{-webkit-text-stroke:.35px currentColor}
.mlink,.row.hl,.pl-title,.clock,.pl-next,.mo-lbl,.btn,.fig figcaption b,.pj-top a,.pj-end .up,.pj-title,.nx-title,.pj-body h2{-webkit-text-stroke:0}

/* every menu screen is one column at the left of the screen, with its lines centred inside it */
.view{grid-template-columns:minmax(0,max-content);justify-content:start;padding-left:14%;padding-right:var(--gut)}
/* on smaller screens the column moves to the middle */
@media (max-width:900px){.view{justify-content:center;padding-inline:var(--gut)}}
.view .row{justify-self:stretch;margin-left:0;max-width:100%;text-align:center}
.view .row.hl{margin-left:0;justify-self:center}
/* project details hang off the right of a centred title, so the titles themselves stay centred */
.view .row{position:relative}
.view .row .mt{position:absolute;left:100%;top:50%;transform:translateY(-50%);white-space:nowrap}
@media (max-width:900px){.view .row .mt{position:static;display:inline;transform:none;margin-left:10px;white-space:normal}}

/* in the work list the project's year and type sit under its title, inside the same box */
.view .row .lb .mt{position:static;display:block;transform:none;margin:4px 0 0;white-space:nowrap;text-align:center;font-size:.72em;letter-spacing:.12em}
@media (max-width:900px){.view .row .lb .mt{white-space:normal}}


/* narrow windows and touch screens: each project's thumbnail sits in its box, under the title and details */
.view .row .lb .th:empty{display:none}
.view .row .lb .th{position:relative;display:block;width:min(240px,62vw);aspect-ratio:4/3;margin:10px auto 2px;overflow:hidden;background:var(--paper-2)}
.view .row .lb .th>*{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.view .row .lb .th video{object-position:50% 38%}
/* with the thumbnails in the boxes the work list is tall, so it gets the whole screen down to the music controls */
@media (max-width:900px),(hover:none),(pointer:coarse){.view[data-view="work"]{top:9%;bottom:calc(88px + env(safe-area-inset-bottom,0px));grid-template-rows:none;grid-auto-rows:auto;align-content:safe center;row-gap:30px}}

/* list cards that fit on one line: icon beside the text, and the card is only as wide as its content */
.lst .pc.one{width:fit-content;max-width:none}
.lst .pc.one .fig-frame{flex-direction:row;align-items:center;gap:12px;padding:12px 18px 12px 14px}
.lst .pc.one .li-t{white-space:nowrap}
@media (min-width:901px){.lst .pc.one .fig-frame{padding-right:34px}}

/* small screens: the wide video cover must not use its desktop width as a height, and the pen frames' overshoot must not make the page scroll sideways */
#proj{overflow-x:clip}
@media (max-width:900px){.pj-cover.vid.wide .fig{flex:0 0 auto}}

/* on phones the beach sits under the words, so the filler lines ("read a little", "grab my", "or just") go and the home menu fits without scrolling */
@media (max-width:760px) and (orientation:portrait),(max-height:560px){.row.fill{display:none}.view[data-view="menu"]{--pitch:max(calc((100% - 12px) / 8),52px);grid-template-rows:repeat(8,minmax(var(--pitch),auto))}}

/* About is part of the page, not a scrolling box: the screen grows to fit it, so the drawing, the photo and the words all scroll together */
.screen:has(.view[data-view="about"]:not([hidden])){height:auto;min-height:100vh;min-height:100dvh}
.view[data-view="about"]{position:relative;top:auto;bottom:auto;left:auto;right:auto;margin-top:11dvh;padding-bottom:max(11dvh,96px);overflow:visible}
@media (max-width:900px) and (min-height:600px){.view[data-view="about"]{margin-top:calc(11dvh + min(34vw,200px) * 1.25 + 78px)}}


/* phones: bigger labels, easier to read */
@media (max-width:760px){.mo-btn{gap:11px}.settings .mo-lbl{font-size:15px}}

/* settings: a hand-drawn gear in the top right opens a small pen-framed panel with the two switches */
.set-btn,.mus-btn{position:fixed;top:12px;right:var(--gut);z-index:91;width:38px;height:38px;padding:0;border:2.2px solid var(--ink);border-radius:50%;background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;filter:url(#rough);transition:background .3s,color .3s}
.set-btn svg,.mus-btn svg{width:21px;height:21px;display:block;transition:transform .7s var(--ease)}
.set-btn:hover,.set-btn[aria-expanded="true"],.mus-btn:hover,.mus-btn[aria-expanded="true"],.music-on .mus-btn{background:var(--ink);color:var(--paper)}
.set-btn[aria-expanded="true"] svg{transform:rotate(70deg)}
.set-btn:focus-visible,.mus-btn:focus-visible{outline:none}
.settings{position:fixed;top:64px;right:calc(var(--gut) + 6px);z-index:92;width:min(250px,calc(100vw - var(--gut) * 2 - 12px))}
.settings .fig-frame{border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:18px 20px 20px;background:var(--paper)}
.set-t{margin:0;font-weight:700;letter-spacing:.14em;font-size:13px}
html.still .set-btn svg{transition:none}

/* the music button and the frame of the player's panel only exist on phones */
.mus-btn,#player .pf{display:none}
@media (max-width:760px){
  /* both icons sit at the bottom: music on the left, settings on the right, each opening its own panel above it */
  .set-btn,.mus-btn{top:auto;bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  .mus-btn{display:grid;left:var(--gut);right:auto}
  .settings{top:auto;bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  #player.hud-l{display:none;left:var(--gut);bottom:calc(72px + env(safe-area-inset-bottom,0px));margin:0;padding:18px 20px;border-radius:12px;background:var(--paper);flex-wrap:wrap;gap:12px;max-width:calc(100vw - var(--gut) * 2 - 6px);z-index:92}
  #player.hud-l.open{display:flex}
  #player .pf{display:block;position:absolute;left:-16px;top:-16px;overflow:visible;pointer-events:none}
  #player .pf path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
  .hud-r{display:none}
  #player .pl-title{max-width:16ch}
  #player .pl-time{display:inline}
  #player .pl-volg{flex:1 1 100%}
  #player .pl-vol{flex:1}
  #player .pl-vol input{width:100%}
}

/* desktop with a mouse: only the volume icon shows until you point at it */
@media (min-width:761px) and (hover:hover){.pl-vol{display:none}.pl-volg.vol-open .pl-vol{display:inline-flex}}

/* both panels get film grain on top; their pen frames boil in stop motion (redrawn in app.js) */
.settings .fig-frame::after,.notes .fig-frame::after,#player::after{content:"";position:absolute;inset:0;border-radius:12px;pointer-events:none;display:none}
.settings .fig-frame::after,.notes .fig-frame::after{display:block}
@media (max-width:760px){#player.open::after{display:block}}
.settings .fig-frame::after,.notes .fig-frame::after,#player::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .55 -.08'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px 160px;mix-blend-mode:multiply;opacity:.3;animation:grainJump .5s steps(1) infinite}
@keyframes grainJump{0%{background-position:0 0}16%{background-position:-37px 21px}33%{background-position:52px -44px}50%{background-position:-18px -63px}66%{background-position:71px 30px}83%{background-position:-60px 48px}}
html.still .settings .fig-frame::after,html.still .notes .fig-frame::after,html.still #player::after{animation:none}

/* the version line is small print */
.view .row.small{font-size:.74em}

/* release notes: a centred pen-framed panel, opened from the version line */
.notes{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:95;width:min(580px,calc(100vw - var(--gut) * 2 - 12px))}
.notes .fig-frame{border-radius:12px;background:var(--paper);padding:24px 26px 26px}
.notes-x{position:absolute;right:12px;top:12px;width:30px;height:30px;padding:0;border:0;background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;filter:url(#rough)}
.notes-x svg{width:14px;height:14px;display:block}
.notes-x:hover{color:var(--ink-3)}
.notes-body{max-height:min(66dvh,560px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:4px 8px 4px 8px;margin:-4px -8px}
.notes-t{margin:0 0 14px;font-weight:700;letter-spacing:.14em;font-size:13px}
.notes-v{margin:0 0 26px}.notes-v:last-child{margin-bottom:0}
.notes-h{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-weight:400}
.notes-h .hlx{font-family:var(--slab);font-size:15px}
.notes-d{color:var(--ink-3);font-size:12px;letter-spacing:.1em}
.notes-v ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.notes-v li{position:relative;padding-left:20px;font-size:15px;line-height:1.45;color:var(--ink)}
.notes-v li::before{content:"";position:absolute;left:0;top:.72em;width:10px;height:1.5px;background:var(--ink);transform:rotate(-6deg)}
.notes-v.old li{color:var(--ink-2)}
.notes-v.old li::before{background:var(--ink-2)}

/* the version tabs: a ragged marker shape drawn as an outline when idle, and filled in solid for the chosen one */
.ntabs{display:flex;flex-wrap:wrap;gap:12px 10px;margin:0 0 20px}
.ntab{position:relative;padding:6px 14px 5px;border:0;background:transparent;color:var(--ink);font-family:var(--slab);font-weight:700;font-size:13px;letter-spacing:.04em;cursor:pointer;transition:color .25s}
.ntab .nt-o{position:absolute;inset:-1px -2px -1px -2px;width:calc(100% + 4px);height:calc(100% + 2px);overflow:visible;pointer-events:none}
.ntab .nt-o polygon{fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:opacity .2s}
.ntab.on .nt-o polygon{opacity:0}
.ntab .nt-l{position:relative;z-index:1;display:block}
.ntab::before{content:"";position:absolute;inset:-1px -2px -1px -2px;background:var(--ink);opacity:0;transition:opacity .2s;clip-path:polygon(1% 14%,6% 3%,19% 8%,35% 1%,52% 7%,70% 2%,88% 8%,99% 4%,97% 38%,100% 66%,97% 92%,84% 97%,66% 93%,48% 99%,30% 94%,14% 99%,3% 93%,0 70%,2% 42%)}
.ntab:nth-child(2n)::before{clip-path:polygon(0 8%,12% 2%,28% 9%,47% 2%,63% 8%,82% 1%,96% 6%,100% 30%,97% 58%,100% 86%,90% 95%,73% 99%,55% 94%,36% 99%,18% 94%,5% 98%,2% 70%,0 40%)}
.ntab.on::before{opacity:1}
.ntab.on{color:var(--paper)}
.ntab:not(.on):hover::before,.ntab:not(.on):focus-visible::before{opacity:.07}
.ntab:focus-visible{outline:none}

/* scroll bar inside the release notes panel */
.psb{position:absolute;right:7px;top:52px;bottom:22px;width:12px;opacity:0;pointer-events:none;transition:opacity .25s;z-index:2}
.psb.on{opacity:.55;pointer-events:auto}.psb.on:hover{opacity:1}
.psb svg{position:absolute;left:0;top:0;overflow:visible;display:block;filter:url(#rough)}
.psb-track path{fill:none;stroke:var(--ink-3);stroke-width:1;stroke-linecap:round;opacity:.8}
.psb-thumb{position:absolute;left:0;top:0;width:12px;cursor:grab;touch-action:none}
.psb-thumb path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
html.still .psb{transition:none}
