:root{--ink:#0b0b0c;--panel:#141416;--text:#ecebe7;--dim:#8d8c88;--line:rgba(236,235,231,.22);--grain:url(/img/cd/paper.webp);--ease:cubic-bezier(.2,.8,.2,1);--gut:clamp(16px,3vw,44px)}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;background:var(--ink)}
body{background:var(--ink);color:var(--text);font:400 16px/1.5 Archivo,Helvetica,Arial,sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
ol,ul{list-style:none;padding:0}
h1,h2{font-weight:700;font-stretch:125%;letter-spacing:-.02em;line-height:.98}
.label{font:400 11px/1.45 'Space Mono',ui-monospace,monospace;letter-spacing:.04em;text-transform:uppercase}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;top:-60px;left:12px;z-index:900;background:var(--text);color:var(--ink);padding:8px 12px}
.skip:focus{top:12px}
:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* The site opens on a wash of light with only the dividers' tabs showing, side by side along the bottom. One scroll brings the full list up, and the stage stays pinned while you browse it. */
.deck{--run:70svh;--hold:60svh;position:relative;height:calc(100svh + var(--run) + var(--hold))}
.stop{position:absolute;top:var(--run);width:1px;height:1px}
.hero{position:absolute;inset:0;z-index:1;overflow:hidden;background:#142a33 url(/img/cd/hero-wash.webp) center/cover;color:#fff}
.hero.gone{visibility:hidden}
.hero.gone *{animation-play-state:paused}
.hero::after{content:"";position:absolute;z-index:4;inset:0;background:url(/img/cd/hero-grain.webp) 0 0/300px;pointer-events:none}
.h-top{position:absolute;z-index:6;inset:clamp(16px,2.6vh,28px) var(--gut) auto;display:flex;justify-content:space-between;align-items:flex-start}
.h-top span{display:flex;gap:20px}
.h-top span a:hover{text-decoration:underline}
/* The big logo in the middle, framed by read-outs like a dashboard. The figures are real but there for the look. */
.h-logo{position:absolute;z-index:3;inset:clamp(76px,11svh,120px) 0 calc(var(--stack,160px) + 92px);display:flex;align-items:center;justify-content:center;pointer-events:none}
.h-logo svg{display:block;height:min(100%,38vw);width:auto;fill:#fff;overflow:visible}
.hd{position:absolute;z-index:5;color:rgba(255,255,255,.92);font-size:10.5px;line-height:1.6;text-shadow:0 1px 2px rgba(0,0,0,.4),0 0 12px rgba(0,0,0,.25);transition:opacity .14s linear}
.hd-h{display:flex;justify-content:space-between;gap:12px;padding-bottom:5px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.4);color:#fff}
.hd b{font-weight:400;color:#fff}
.hd i{font-style:normal;opacity:.75;margin-right:10px}
.d-tag{left:50%;bottom:calc(var(--stack,160px) + 58px);translate:-50% 0;display:flex;gap:clamp(14px,2vw,32px);white-space:nowrap}
/* Crosshairs at the corners of the logo's field and a tick ruler under the bar. */
.d-frame{position:absolute;z-index:5;inset:clamp(76px,11svh,120px) calc(var(--gut) + clamp(210px,19vw,300px)) calc(var(--stack,160px) + 92px);pointer-events:none;
  background:linear-gradient(#fff,#fff) 0 0/14px 1px,linear-gradient(#fff,#fff) 0 0/1px 14px,linear-gradient(#fff,#fff) 100% 0/14px 1px,linear-gradient(#fff,#fff) 100% 0/1px 14px,
  linear-gradient(#fff,#fff) 0 100%/14px 1px,linear-gradient(#fff,#fff) 0 100%/1px 14px,linear-gradient(#fff,#fff) 100% 100%/14px 1px,linear-gradient(#fff,#fff) 100% 100%/1px 14px;background-repeat:no-repeat;opacity:.7}
.d-frame span{position:absolute;font-size:9.5px}
.d-frame span:nth-child(1){left:20px;top:-4px}
.d-frame span:nth-child(2){right:20px;top:-4px}
.d-frame span:nth-child(3){left:20px;bottom:-5px}
.d-frame span:nth-child(4){right:20px;bottom:-5px}
.d-rule{position:absolute;z-index:3;left:var(--gut);right:var(--gut);top:clamp(52px,7svh,72px);height:7px;opacity:.5;pointer-events:none;
  background:repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 12px) 0 100%/100% 4px no-repeat,repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 120px) 0 0/100% 7px no-repeat}
.d-tag span::before{content:"+";margin-right:8px;opacity:.6}
.d-geo{left:var(--gut);top:clamp(76px,11svh,120px);width:170px}
.d-geo p:not(.hd-h){display:flex;justify-content:space-between}
.d-skill{left:var(--gut);top:calc(clamp(76px,11svh,120px) + 156px);width:170px}
.d-skill li{border-bottom:1px dotted rgba(255,255,255,.28)}
.d-cam{right:var(--gut);top:clamp(76px,11svh,120px);width:clamp(170px,17vw,270px);margin:0;padding:7px;border:1px solid rgba(255,255,255,.6);background:rgba(8,12,18,.45)}
.d-cam .hd-h{margin-bottom:7px}
.d-cam img{width:100%;aspect-ratio:4/5;object-fit:cover}
.d-cam figcaption{margin-top:6px}
.rec::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#ff4b3a;animation:rec 1.2s steps(2) infinite}
@keyframes rec{50%{opacity:0}}
.d-year{right:var(--gut);bottom:calc(var(--stack,160px) + 58px);width:clamp(150px,13vw,206px)}
.d-year li{display:grid;grid-template-columns:74px 1fr auto;align-items:center;gap:8px}
.d-year li i{margin:0}
.d-year li b{height:5px;background:linear-gradient(90deg,#fff calc(var(--v) * 100%),rgba(255,255,255,.18) 0)}
.h-moth{position:absolute;z-index:1;left:var(--x);top:var(--y);width:var(--w);height:auto;max-width:none;rotate:var(--r);animation:drift var(--t) ease-in-out infinite alternate,flap var(--f) ease-in-out infinite alternate;will-change:translate,scale}
.m1{--x:8%;--y:12%;--w:clamp(120px,19vw,300px);--r:-24deg;--t:19s;--f:1.5s}
.m2{--x:16%;--y:52%;--w:clamp(110px,15vw,240px);--r:18deg;--t:23s;--f:1.9s}
.m3{--x:64%;--y:50%;--w:clamp(120px,15vw,240px);--r:32deg;--t:17s;--f:1.3s;z-index:3}
.m4{--x:70%;--y:10%;--w:clamp(130px,21vw,340px);--r:58deg;--t:26s;--f:2.1s}
.m5{--x:84%;--y:60%;--w:clamp(90px,12vw,190px);--r:-40deg;--t:21s;--f:1.6s;z-index:3}
@keyframes drift{from{translate:-3vmin 3vmin}to{translate:5vmin -5vmin}}
@keyframes flap{from{scale:1 1}to{scale:.62 1}}
.h-low{position:absolute;z-index:5;left:var(--gut);bottom:calc(var(--stack,160px) + 18px);max-width:40%;transition:opacity .14s linear}
.h-low h1{font-size:clamp(20px,2.4vw,36px)}
.h-low .label{margin-top:.7em}
.h-scroll{position:absolute;z-index:5;right:var(--gut);bottom:calc(var(--stack,160px) + 18px);transition:opacity .14s linear}
/* A tab hovered on the opening screen: its case comes up over a dimmed picture. */
.hero::before{content:"";position:absolute;z-index:5;inset:0;background:rgba(7,8,12,.62);opacity:0;transition:opacity .16s linear;pointer-events:none}
.rack.peek .hero::before{opacity:1}
.rack.peek .h-low,.rack.peek .h-scroll,.rack.peek .hd{opacity:0}

/* Rack: dividers stacked like files, each row in front of the one above. Its name sits on a tab on its top edge. */
.rack{--p:0px;--top:72px;--tw:250px;--th:68px;--tb:50px;--head:calc(var(--top) + var(--tb));--step:calc((100% - var(--head)) / 11);--s:calc(var(--step) * 1.18);--d:400px;--cx:40%;--side:300px;
  position:sticky;top:0;height:100vh;height:100svh;min-height:560px;overflow:hidden;background:var(--ink);cursor:default}
/* Behind the dividers and as tall as the row of tabs, so the picture never shows above the list. */
.spine{position:absolute;inset:0 0 auto;height:var(--head);z-index:90;background:var(--ink);color:var(--text);padding:0 var(--gut);will-change:transform}
.spine>*{position:absolute;top:calc(var(--top) / 2);translate:0 -50%}
.spine .logo{left:var(--gut)}
.spine nav{right:var(--gut)}
.logo img{width:66px}
.spine nav{display:flex;gap:20px}
.spine nav a:hover{text-decoration:underline}

.strip{position:absolute;left:0;right:0;height:var(--s);top:calc(var(--head) + var(--step) * var(--i));z-index:var(--z);display:block;will-change:transform;transform:translate3d(0,100svh,0)}
/* A whole sheet, hidden by the ones in front: when the stack opens, the gap is this divider's own colour. */
.body{position:absolute;inset:0 0 auto;height:100svh;z-index:1;background:var(--col)}
/* A plain colour costs no memory however tall it is. The shadow it casts is a thin strip, off while it lies in the closed stack. */
.body::before{content:"";position:absolute;inset:auto 0 100%;height:14px;background:linear-gradient(0deg,rgba(0,0,0,.32),transparent)}
.strip.low .body::before{display:none}
/* One still layer of grain over the whole rack, instead of one per divider. */
.rack::after{content:"";position:absolute;inset:0;z-index:140;background:var(--grain);pointer-events:none}
/* The tab is part of the sheet: same layer, same colour. Script moves it from its slot in the bottom row to its step in the list. */
.tab{position:absolute;z-index:2;bottom:100%;margin-bottom:-1px;left:0;width:var(--tw);height:var(--th);color:var(--on);will-change:transform}
.tab-bg{position:absolute;inset:0;z-index:-1;will-change:transform}
.tab-bg::before{content:"";position:absolute;left:calc((var(--tw) - var(--th)) / 2);top:calc((var(--th) - var(--tw)) / 2);width:var(--th);height:var(--tw);background:var(--tab) 0 0/100% 100%;transform:rotate(-90deg)}
.t-open,.t-shut{position:absolute;inset:auto 0 calc(var(--tb) / 2 - .62em);display:flex;gap:9px;justify-content:center;align-items:center;line-height:1.05}
.t-open{opacity:0}
.tab i{font:400 11px/1 'Space Mono',monospace;letter-spacing:.04em;white-space:nowrap}
.tab b{font:700 13px/1.05 'Space Mono',monospace;text-transform:uppercase;white-space:nowrap;letter-spacing:.02em}
.t-shut b{font-size:11px}
.t-shut .nu{display:none}
@media (max-width:1180px){.t-shut .nm{display:none}.t-shut .nu{display:block}}
.strip:focus-visible{outline-offset:-5px}

.disc.jewel{position:absolute;z-index:var(--z);left:var(--cx);top:calc(var(--head) + var(--step) * (var(--i) + 1));width:var(--d);opacity:0;visibility:hidden;pointer-events:none;will-change:transform;transition:opacity 0s .3s,visibility 0s .3s}
.disc.jewel.on{opacity:1;visibility:visible;transition:none}
/* Binder closed: a case comes out from behind everything, tabs included. */
.rack.shut .disc.jewel{z-index:50}
.disc.jewel>.flat{inset:0;width:100%;height:100%;filter:none}
/* A glimpse of the project next to its case: same layer, so it moves with it for free. */
/* The preview is a baked page from a case file (tools/notes.mjs): it keeps its whole shape, tilt and shadow included. */
.disc.jewel>.pv{position:absolute;left:calc(100% + var(--pg,28px));top:-4%;width:var(--pw,300px);height:108%;max-width:none;object-fit:contain;object-position:0 50%}

/* Clear jewel case: card, tray (from a photo), disc, lid. Real proportions are 142 x 125 mm with a 120 mm disc. */
.jewel{position:relative;display:block;aspect-ratio:142/125;padding:0;border:0;background:none;color:inherit}
.jewel>img{position:absolute;inset:0;width:100%;height:100%}
.jewel>.inlay{inset:.5%;width:99%;height:99%;object-fit:cover;border-radius:.6%}
.cd{position:absolute;left:11.76%;top:2.24%;width:84.51%;aspect-ratio:1;display:block}
.cd img{position:absolute;inset:0;width:100%;height:100%}
.print{will-change:transform}
.lid{box-shadow:0 22px 44px -14px rgba(0,0,0,.85),0 3px 8px rgba(0,0,0,.5);border-radius:.9%}

/* Project details, on either side of the case in the gap. */
.readout{position:absolute;z-index:150;left:var(--p);right:0;top:0;height:var(--gap,0);color:var(--text);pointer-events:none;padding:16px 28px 14px;display:flex;flex-direction:column;justify-content:space-between;opacity:0;transition:opacity .14s linear;will-change:transform}
.readout.on{opacity:1}
.readout>.label{display:flex;gap:16px}
.readout>div{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.readout h2{font-size:clamp(20px,2.4vw,34px);max-width:calc(var(--side) - 40px)}
.readout div .label{opacity:.72;max-width:calc(var(--side) - 50px)}
.rack.open{cursor:pointer}

/* Loading screen */
#loader{position:fixed;inset:0;z-index:1000;background:var(--ink);color:var(--text);display:grid;place-items:center;opacity:0;transition:opacity .22s linear}
#loader.on{opacity:1}
.l-disc{width:min(64vmin,620px)}
.l-top,.l-low{position:absolute;left:var(--gut);right:var(--gut);display:flex;justify-content:space-between;gap:16px}
.l-top{top:24px}.l-low{bottom:40px}
.l-bar{position:absolute;left:var(--gut);right:var(--gut);bottom:24px;height:1px;background:#2c2c2e}
.l-bar b{display:block;height:100%;background:var(--text);transform:scaleX(0);transform-origin:0 50%}

/* Liner notes */
.notes{padding:clamp(64px,10vw,150px) var(--gut);display:grid;grid-template-columns:1fr 2fr 3fr;gap:clamp(24px,4vw,64px);align-items:start;border-top:1px solid var(--line)}
.notes>.label{color:var(--dim)}
.notes-pic img{width:100%}
.notes-text h2{font-size:clamp(30px,4vw,60px);margin-bottom:.7em}
.notes-text>p{max-width:56ch;margin-bottom:1em;color:#c9c8c3}
.tracks{margin-top:2.6em;border-top:1px solid var(--text)}
.tracks li{display:flex;gap:22px;padding:9px 0;border-bottom:1px solid var(--line)}
.tracks i{font-style:normal;color:var(--dim)}
.foot{border-top:1px solid var(--line);padding:clamp(40px,6vw,72px) var(--gut) 22px}
.foot>.label{color:var(--dim)}
.mail{display:block;font-weight:700;font-stretch:125%;letter-spacing:-.02em;line-height:1;font-size:clamp(25px,6vw,96px);margin:.35em 0 1.2em;overflow-wrap:anywhere}
.mail:hover{text-decoration:underline;text-decoration-thickness:.05em;text-underline-offset:.12em}
.colophon{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;flex-wrap:wrap;color:var(--dim)}
.colophon img{width:52px}

/* Project */
.pj-bar{display:flex;justify-content:space-between;align-items:center;padding:20px var(--gut)}
.pj-bar img{width:96px}
.pj-bar a:hover{text-decoration:underline}
/* A project page reads like a spread: big title, the disc small like a sticker on the file, facts in a table, then numbered plates on a 12-column grid. */
.pj-head{--g:clamp(12px,1.6vw,22px);overflow-x:clip;padding:clamp(16px,3vw,44px) var(--gut) clamp(36px,5vw,72px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g);row-gap:clamp(22px,3.2vw,48px);align-items:end}
.pj-file{grid-column:1/-1;display:flex;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.pj-file span:first-child::before{content:"";display:inline-block;width:.8em;height:.8em;background:var(--col);margin-right:.7em;vertical-align:-.05em}
.pj-head h1{grid-column:1/10;font-size:clamp(46px,9.6vw,176px);line-height:.88;letter-spacing:-.035em;overflow-wrap:anywhere;animation:rise .9s var(--ease) both}
#out{grid-column:10/13;justify-self:end;align-self:start;width:clamp(120px,15vw,240px);rotate:-7deg;cursor:pointer;animation:drop .9s .12s var(--ease) both;transition:rotate .5s var(--ease)}
#out:hover{rotate:-2deg}
@keyframes rise{from{transform:translate3d(0,22px,0);opacity:0}}
@keyframes drop{from{transform:translate3d(0,-40px,0) rotate(14deg);opacity:0}}
.pj-facts{grid-column:1/8;display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr;border-top:1px solid var(--text)}
.pj-facts div{padding:10px 14px 0 0;border-right:1px solid var(--line);margin-right:14px}
.pj-facts div:last-child{border:0;margin:0}
.pj-facts dt{color:var(--dim);margin-bottom:4px}
.pj-facts dd{margin:0;color:var(--text)}
.pj-desc{grid-column:8/13;max-width:54ch;color:#c9c8c3}
/* The project's colour as a running band, between the file and the plates. */
.pj-band{background:var(--col);color:var(--on);overflow:hidden;padding:clamp(8px,1vw,14px) 0;margin-bottom:clamp(36px,5vw,72px)}
.pj-band p{display:flex;width:max-content;font:700 125% clamp(20px,2.6vw,40px)/1 Archivo,sans-serif;letter-spacing:-.02em;text-transform:uppercase;animation:band 95s linear infinite;will-change:transform}
.pj-band span{padding-right:.9em}
.pj-band span:nth-child(3n+2){font:400 .42em/2.2 'Space Mono',monospace;letter-spacing:.04em;align-self:center}
@keyframes band{to{transform:translate3d(-50%,0,0)}}
.pj-body{--g:clamp(12px,1.6vw,22px);padding:0 var(--gut) clamp(64px,8vw,120px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(40px,6vw,96px) var(--g);max-width:1600px;margin:auto}
.pj-body>*{grid-column:1/-1;margin:0}
.pj-body>.l{grid-column:1/10}
.pj-body>.r{grid-column:4/13}
.pj-body>.long{grid-column:3/11}
.pj-body figcaption{display:flex;justify-content:space-between;gap:16px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);color:var(--dim)}
.pj-body figcaption span:first-child{color:var(--text)}
.shot img{width:100%}
.shots{display:flex;gap:var(--g)}
.shots .shot{min-width:0;margin:0}
/* Plates rise into place as they scroll in. */
.reveal .pj-body>*{transition:opacity .8s var(--ease),transform 1s var(--ease)}
.reveal .pj-body>:not(.in){opacity:0;transform:translate3d(0,56px,0)}
.video{position:relative;display:block;width:100%;padding:0;border:0;background:#111;color:#fff;cursor:pointer;aspect-ratio:16/9;overflow:hidden}
.video img{width:100%;height:100%;object-fit:cover}
.video .label{position:absolute;left:14px;bottom:12px;background:var(--ink);padding:8px 12px;font-size:13px}
.video iframe{width:100%;height:100%;border:0;display:block}
.next{display:grid;grid-template-columns:1fr auto;gap:6px 24px;align-items:end;background:var(--grain),var(--col);color:var(--on);padding:clamp(28px,4vw,52px) var(--gut);overflow:hidden;position:relative}
.next h2{font-size:clamp(32px,7vw,120px);grid-column:1}
.next .label{grid-column:1}
.next img{grid-column:2;grid-row:1/3;width:clamp(120px,19vw,280px);margin:-16% 0}
.lost{min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:var(--gut)}
.lost h1{font-size:clamp(38px,9vw,140px)}

@media (max-width:820px){
  .rack{--tw:204px;--th:54px;--tb:40px;min-height:620px}
  .t-open{gap:7px}
  .tab i{font-size:10px}
  .tab b{font-size:12px}
  .readout{padding:0 var(--gut) 6px;justify-content:flex-end}
  .readout>.label{display:none}
  .readout>div{flex-direction:column;align-items:flex-start;gap:2px}
  .readout h2{font-size:clamp(16px,4.6vw,28px);max-width:none;white-space:nowrap}
  .h-logo{inset:262px 0 calc(var(--stack,160px) + 186px)}
  .h-logo svg{height:min(100%,58vw)}
  .d-skill,.d-year,.d-frame span{display:none}
  .d-frame{inset:254px var(--gut) calc(var(--stack,160px) + 174px)}
  .d-rule{top:44px}
  .d-geo{top:58px;width:132px}
  .d-geo p:nth-child(n+5){display:none}
  .d-cam{top:58px;width:34vw;padding:5px}
  .d-cam figcaption,.d-cam .hd-h span:first-child{display:none}
  .d-tag{bottom:calc(var(--stack,160px) + 146px);gap:12px}
  .d-tag span:last-child{display:none}
  .readout div .label{text-align:left;max-width:none}
  .notes{grid-template-columns:1fr}
  .notes-pic{max-width:70%}
  .pj-head h1{grid-column:1/-1;grid-row:3;font-size:clamp(38px,11.5vw,72px);overflow-wrap:normal;margin-top:-6px}
  #out{grid-column:7/13;grid-row:2;width:min(38vw,170px);margin-bottom:-4px}
  .pj-facts{grid-column:1/-1;grid-template-columns:1fr 1fr}
  .pj-facts div:nth-child(2n){border:0;margin:0}
  .pj-facts div{padding-bottom:10px;border-bottom:1px solid var(--line)}
  .pj-desc{grid-column:1/-1}
  .pj-body>.l,.pj-body>.r,.pj-body>.long{grid-column:1/-1}
}
@media (max-width:620px){.shots{flex-direction:column}.shots .shot{flex:none!important}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
