/* Catalog and case pages. Same type, colours and glass as the showreel (reel.css);
   lilac marks stage work, green marks work for screens, as in the reel's chapters. */
@font-face{font-family:'Pliant';src:url(/fonts/pliant.woff) format('woff');font-weight:400 900;font-stretch:100% 125%;font-style:normal;font-display:swap}
:root{--bg:#050608;--bg-deep:#020308;--ink:#f5f6f8;--white:#f7f8fc;--soft:#bcc2ce;--mid:#7f8696;--body:#e4e7ee;
 --blue:#4d93ff;--lilac:#b58cff;--green:#2ee6a8;
 --w-06:rgba(255,255,255,.06);--w-075:rgba(255,255,255,.075);--w-1:rgba(255,255,255,.1);--w-12:rgba(255,255,255,.12);--w-13:rgba(255,255,255,.13);
 --w-16:rgba(255,255,255,.16);--w-2:rgba(255,255,255,.2);--w-34:rgba(255,255,255,.34);--panel-88:rgba(30,33,42,.88);--tile:#0c0f15;
 --f:'Pliant',system-ui,sans-serif;--ease:cubic-bezier(.2,0,0,1);--soft-spring:cubic-bezier(.3,1.3,.5,1);
 --fs-xs:12px;--fs-s:13.5px;--fs-m:15px;--fs-l:17px;--fs-read:16px;
 --side:clamp(16px,3.2vw,48px);--max:1680px;caret-color:var(--blue);accent-color:var(--blue)}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg-deep);color-scheme:dark;overflow-x:clip}
body{font-family:var(--f);font-stretch:112.5%;font-size:var(--fs-m);line-height:1.5;color:var(--ink);background:var(--bg-deep);-webkit-font-smoothing:antialiased;min-height:100svh;display:flex;flex-direction:column}
a{color:inherit}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
p,li{text-wrap:pretty}
::selection{background:color-mix(in srgb,var(--blue) 55%,transparent);color:var(--white)}
:focus-visible{outline:2px solid var(--white);outline-offset:3px;border-radius:10px}
.skip{position:fixed;left:16px;top:-60px;z-index:50;padding:8px 16px;background:var(--ink);color:var(--bg);border-radius:10px;text-decoration:none}
.skip:focus{top:12px}

/* Header: the reel's, kept on top while the page scrolls */
.glass{background:var(--w-075);-webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);box-shadow:inset 0 0 0 1px var(--w-12),inset 0 1px 0 var(--w-2)}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:14px var(--side);background:linear-gradient(var(--bg-deep) 40%,transparent)}
.brand{margin-right:auto;padding:12px 0;font-weight:700;font-size:15px;font-stretch:125%;letter-spacing:-.005em;text-decoration:none;color:var(--white)}
.brand span{color:var(--blue)}
:is(.cta,.back){display:flex;align-items:center;gap:8px;min-height:48px;padding:0 24px;white-space:nowrap;border-radius:99px;text-decoration:none;font-size:var(--fs-s);font-weight:500;transition:background-color .2s,scale .16s var(--ease)}
:is(.cta,.back):hover{background:var(--w-13)}
:is(.cta,.back):active{scale:.97}
.back svg,.to-top svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.back svg{margin-left:-6px}
.home-link svg{display:none}
.cta{background:color-mix(in srgb,var(--blue) 38%,var(--w-06))}
.cta:hover{background:color-mix(in srgb,var(--blue) 52%,var(--w-1))}

.wrap{flex:1;width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--side)}
.state{padding:12vh 0;color:var(--soft)}
.state a{color:var(--white)}

/* Catalog intro: the reel's big title, set on the page */
.intro{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 48px;padding:clamp(36px,7vw,96px) 0 clamp(24px,3vw,36px)}
.intro h1{font-size:clamp(44px,9vw,148px);font-weight:800;font-stretch:125%;line-height:.86;letter-spacing:-.02em;text-transform:uppercase;color:var(--white)}
.intro .lead{max-width:34ch;font-size:clamp(15px,1.2vw,17px);line-height:1.4;color:var(--soft);padding-bottom:.3em}

/* Filters: one pill, the lens slides to the chosen kind */
.tools{position:sticky;top:76px;z-index:15;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px}
.tools .filters{margin-bottom:0}
/* Search: a field in the same glass as the filters, to their right; a line under them says what was found */
.find{flex:0 1 400px;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 6px 0 18px;border-radius:99px;background:var(--panel-88);box-shadow:inset 0 0 0 1px var(--w-1);transition:box-shadow .2s}
.find:focus-within{box-shadow:inset 0 0 0 2px var(--blue)}
.find>svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--soft);stroke-width:1.7;stroke-linecap:round}
.find input{flex:1;min-width:0;height:44px;border:0;outline:0;background:none;font:inherit;font-size:var(--fs-m);color:var(--white)}
.find input::placeholder{color:var(--mid)}
.find input::-webkit-search-cancel-button{display:none}
.find kbd{flex:none;display:grid;place-items:center;min-width:24px;height:24px;margin-right:6px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--w-16);font:inherit;font-size:var(--fs-xs);color:var(--mid)}
.find:focus-within kbd,.find.has-q kbd{display:none}
.find-clear{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--soft);transition:background-color .2s,color .2s}
.find-clear:hover{background:var(--w-1);color:var(--white)}
.find-clear svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
@media(pointer:coarse){.find kbd{display:none}}
.find-note{margin:-8px 0 20px;font-size:var(--fs-s);line-height:1.5;color:var(--soft)}
.find-note b{font-weight:500;color:var(--white)}
.find-note button{padding:0;border-bottom:1px solid var(--w-34);font:inherit;color:var(--white);transition:border-color .2s}
.find-note button:hover{border-color:currentColor}
.find-empty{padding:8vh 0 4vh;text-align:center}
.find-empty p{font-size:var(--fs-l);color:var(--white);text-wrap:balance}
.find-empty .chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.find-empty .chips button{min-height:40px;padding:0 16px;border-radius:99px;background:var(--w-06);box-shadow:inset 0 0 0 1px var(--w-12);font-size:var(--fs-s);font-weight:500;color:var(--white);transition:background-color .2s}
.find-empty .chips button:hover{background:var(--w-13)}
.card mark{background:color-mix(in srgb,var(--blue) 34%,transparent);color:inherit;border-radius:3px;box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 34%,transparent)}
.filters{position:relative;display:inline-flex;gap:2px;padding:4px;border-radius:99px;margin-bottom:24px;background:var(--panel-88);box-shadow:inset 0 0 0 1px var(--w-1)}
.filters button{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 18px;border-radius:99px;font-size:var(--fs-s);font-weight:500;color:var(--soft);transition:color .2s}
.filters button:hover,.filters button[aria-pressed=true]{color:var(--white)}
.filters .n{font-size:var(--fs-xs);font-variant-numeric:tabular-nums;color:var(--mid)}
.filters button[aria-pressed=true] .n{color:var(--soft)}
.filters [data-filter=stage]:before,.filters [data-filter=digital]:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--lilac)}
.filters [data-filter=digital]:before{background:var(--green)}
.lens{position:absolute;left:0;top:4px;bottom:4px;width:var(--w,0);transform:translateX(var(--x,0));border-radius:99px;background:var(--w-13);box-shadow:inset 0 0 0 1px var(--w-16),inset 0 1px 0 var(--w-34);transition:transform .5s var(--soft-spring),width .4s var(--ease)}

/* Grid of works */
/* The grid and its tiles: shared/tile.css */

/* One entrance for the whole grid, in reading order. Only when the script runs: the server-rendered grid is visible without it. */
@media(prefers-reduced-motion:no-preference){
 .anim .item{opacity:0;translate:0 14px}
 .anim.is-in .item{opacity:1;translate:none;transition:opacity .6s var(--ease),translate .8s var(--ease);transition-delay:calc(min(var(--i,0),8) * 60ms)}
 ::view-transition-group(*){animation-duration:.35s;animation-timing-function:var(--ease)}
}

/* Case page: the article itself is styled in shared/case-content.css. It stands in the middle of the page,
   no wider than 1120 px; on wide screens a column with all the works runs on its left. */
.reader .top .back:last-of-type{margin-right:4px}
.reader-col{width:100%;max-width:1120px;margin-inline:auto;min-width:0}
.reader .case-preview{padding-top:clamp(24px,5vw,64px)}
.works-rail{display:none}
@media(min-width:1280px){
 .reader-wrap{display:grid;grid-template-columns:232px minmax(0,1fr);column-gap:clamp(32px,3.5vw,64px);max-width:1760px}
 .works-rail:not([hidden]){display:block;position:sticky;top:88px;align-self:start;max-height:calc(100svh - 104px);overflow-y:auto;overscroll-behavior:contain;margin-top:clamp(24px,5vw,64px);padding:3px 4px 24px 3px;margin-left:-3px;mask-image:linear-gradient(#000 calc(100% - 32px),transparent)}
 .reader-col{grid-column:2}
}
.rail-title{margin:0 0 10px 8px;font-size:var(--fs-xs);font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.rail-list{list-style:none;display:grid;gap:2px}
.rail-list{gap:10px}
.rail-list a{--tone:var(--green);position:relative;display:block;border-radius:12px;overflow:hidden;text-decoration:none;color:var(--white);box-shadow:inset 0 0 0 1px var(--w-1);transition:box-shadow .2s,opacity .2s}
.rail-list a[data-tone=stage]{--tone:var(--lilac)}
.rail-list a:not([aria-current]){opacity:.78}
.rail-list a:hover{opacity:1}
.rail-list a[aria-current=page]{box-shadow:0 0 0 2px var(--tone)}
.rail-cover{display:block;aspect-ratio:2}
.rail-cover .case-cover{border-radius:0}
.rail-meta{position:absolute;inset:auto 0 0;display:flex;align-items:baseline;gap:8px;padding:22px 10px 7px;background:linear-gradient(transparent,rgba(2,3,8,.62) 45%,rgba(2,3,8,.9));font-size:12.5px;font-weight:500;line-height:1.25}
.rail-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-year{flex:none;font-size:var(--fs-xs);color:var(--soft);font-variant-numeric:tabular-nums}
.rail-list a[aria-current=page] .rail-year{color:var(--tone)}

/* Back to the top: a round glass button that comes up after the first screen */
.to-top{position:fixed;right:var(--side);bottom:calc(24px + var(--lift,0px));z-index:25;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--white);opacity:0;translate:0 12px;pointer-events:none;transition:opacity .3s var(--ease),translate .4s var(--ease),background-color .2s}
.to-top.is-on{opacity:1;translate:none;pointer-events:auto}
.to-top:hover{background:var(--w-13)}
.to-top svg{width:18px;height:18px}

.more-works{padding:clamp(56px,7vw,104px) 0 0}
.more-works>h2{font-size:clamp(22px,2.4vw,34px);font-weight:800;font-stretch:125%;text-transform:uppercase;letter-spacing:-.01em;color:var(--white);margin-bottom:24px}

/* Footer */
.foot{width:100%;max-width:var(--max);margin:clamp(64px,8vw,120px) auto 0;padding:32px var(--side) 28px;border-top:1px solid var(--w-1);display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px}
.tile-link{font-size:clamp(20px,2.4vw,32px);font-weight:800;font-stretch:125%;text-transform:uppercase;letter-spacing:-.01em;color:var(--white);text-decoration:none;line-height:1}
.tile-link:hover{color:var(--blue)}
/* A cursor that lives by the link: it drifts, points and taps now and then, so the line reads as something to press. */
.tile-link{position:relative;display:inline-block}
.hint-cursor{position:absolute;right:-.82em;bottom:-1.02em;width:1.2em;height:1.2em;overflow:visible;pointer-events:none;transition:opacity .3s}
.hint-cursor path{fill:var(--white);stroke:#050608;stroke-width:1.6;stroke-linejoin:round;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.hint-cursor .tap{fill:none;stroke:var(--blue);stroke-width:1.6;opacity:0;transform-box:fill-box;transform-origin:center}
.tile-link:hover .hint-cursor{opacity:0}
@media(prefers-reduced-motion:no-preference){
 .hint-cursor{animation:hint-move 3.6s var(--ease) infinite}
 .hint-cursor .tap{animation:hint-tap 3.6s var(--ease) infinite}
}
@keyframes hint-move{0%,100%{translate:.5em .35em}38%{translate:0 0}46%{translate:0 0;scale:.86}54%{translate:0 0;scale:1}78%{translate:0 0}}
@keyframes hint-tap{0%,44%{opacity:0;scale:.2}48%{opacity:.9;scale:.4}70%,100%{opacity:0;scale:1.6}}
.legal{font-size:var(--fs-xs);line-height:1.5;color:var(--mid);text-align:right}
.legal p{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 14px}

@media(max-width:640px){
 .top{padding-top:10px;padding-bottom:10px}
 .reader .top .cta{display:none}
 .home-link{width:44px;padding:0;justify-content:center}.home-link svg{display:block;margin:0}.home-link .t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .to-top{width:44px;height:44px;bottom:calc(16px + var(--lift,0px))}
 :is(.cta,.back){min-height:44px;padding:0 20px}
 .tools{position:static;gap:10px}
 .find{order:-1;flex:1 1 100%}
 .filters{display:flex;width:100%}
 .filters button{flex:1;justify-content:center;padding:0 10px;gap:6px}
 .filters .n{display:none}
 .legal,.legal p{text-align:left;justify-content:flex-start}
}
@media(max-width:420px){.top{gap:8px}.brand{font-size:14px}:is(.cta,.back):not(.home-link){padding:0 14px}}
@media(max-width:360px){.brand{font-size:13px}}
@media(prefers-reduced-motion:reduce){.lens,.cv .case-cover,:is(.cta,.back){transition:none}.card:hover .case-cover{scale:none}}

/* Thin scrollbars in the page's colours */
*{scrollbar-width:thin;scrollbar-color:var(--w-2) transparent}
::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}::-webkit-scrollbar-thumb{border-radius:99px;background:var(--w-2)}

/* 404: a faulty LED wall in a bezel */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lost-main{display:flex;flex-direction:column;align-items:center;padding-top:clamp(24px,5vh,64px)}
.panel{position:relative;width:min(100%,1180px,calc((100svh - 300px) * 16 / 9));min-width:min(100%,300px);aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;
 box-shadow:0 0 0 1px var(--w-1),0 0 0 9px #0b0e14,0 0 0 10px var(--w-06),0 30px 80px -20px rgba(77,147,255,.18)}
.panel canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.panel-text{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:8px;background:#061128;color:var(--white)}
.panel-text b{font-size:clamp(64px,14vw,180px);font-weight:800;font-stretch:125%;line-height:.9}
.panel-text span{font-size:clamp(15px,2vw,24px);font-weight:600;color:var(--soft)}
.panel.live .panel-text{visibility:hidden}
.lost-note{margin-top:36px;color:var(--soft);text-align:center}
.lost-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
.lost .lost-actions :is(.cta,.back){display:flex}
@media(max-width:640px){.panel{border-radius:10px;box-shadow:0 0 0 1px var(--w-1),0 0 0 6px #0b0e14,0 0 0 7px var(--w-06)}.lost-note{margin-top:28px;font-size:14px}}
