/* Liner notes: one column, a big name, each section a track on the record, a little film grain over it all.
   Every visit lands on the light side (here comes the sun); dark is one click away, for that visit only. */
:root{
  color-scheme:light;
  --bg:#fbfbfa;
  --text:#1c1c1c;
  --muted:#7a7a7a;
  --faint:#a8a8a8;
  --line:rgba(0,0,0,.08);
  --hover:rgba(0,0,0,.035);
  --sans:Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:"Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --didone:"Playfair Display", "Bodoni 72", Didot, Georgia, serif;
  --gothic:UnifrakturMaguntia, "Old English Text MT", serif;
  /* the few house colours worth borrowing: Guardian navy, Harvard crimson, arXiv red */
  --guardian:#052962;
  --crimson:#a51c30;
  --arxiv:#b31b1b;
}
/* Dark: only when the visitor flips to it (the choice is saved) */
:root[data-theme="dark"]{
  --bg:#0f0f0f;
  --text:#ededed;
  --muted:#8b8b8b;
  --faint:#5c5c5c;
  --line:rgba(255,255,255,.08);
  --hover:rgba(255,255,255,.04);
  --guardian:#8fb4ec;
  --crimson:#e5707c;
  --arxiv:#f07068;
  color-scheme:dark;
}
:root[data-theme="light"]{color-scheme:light}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.65 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background-color .35s ease,color .35s ease}
::selection{background:var(--text);color:var(--bg)}
a{color:var(--text);text-decoration:underline;text-decoration-color:var(--faint);text-decoration-thickness:1px;text-underline-offset:3px;transition:text-decoration-color .2s}
a:hover{text-decoration-color:var(--text)}
p{margin:0 0 14px}
.muted{color:var(--muted)}
:focus-visible{outline:1px solid var(--text);outline-offset:3px;border-radius:3px}

.page{--pad-top:96px;max-width:640px;margin:0 auto;padding:var(--pad-top) 24px 64px}
section{margin-top:56px;scroll-margin-top:64px}
h1{font-size:15px;font-weight:600;margin:0;letter-spacing:-.005em}
h2{font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.012em;color:var(--text);margin:0 0 16px} /* a step above the text, so each section starts clearly */
.count{font:400 11px/1 var(--mono);letter-spacing:0;color:var(--faint);vertical-align:3px;margin-left:10px;white-space:nowrap}
/* every section is a track: a hairline across, the track number in small mono over its colour, then a big title */
:root:not([data-style="remaster"]) section:not(.about){margin-top:72px;padding-top:26px;border-top:1px solid var(--line);scroll-margin-top:52px}
:root:not([data-style="remaster"]) section:not(.about) > h2{font-size:26px;line-height:1.15;letter-spacing:-.03em;margin-bottom:22px;text-wrap:balance}
:root:not([data-style="remaster"]) section:not(.about) > h2 .count{vertical-align:6px}

/* Every section has its own colour from the prism, and the menu uses the same one: a dot by the title here,
   a tint when you point at a row, the underline in the menu while you're in it */
:root{--spectrum:linear-gradient(90deg,var(--sp1),var(--sp2),var(--sp3),var(--sp4),var(--sp5),var(--sp6))}
section,.menu a{--c:var(--muted);--swatch:linear-gradient(var(--c),var(--c))}
#work,.menu a[href="#work"]{--c:var(--sp2);--swatch:var(--spectrum)}
#interests{--c:var(--sp3)}
#papers,.menu a[href="#papers"]{--c:var(--sp5)}
#press,.menu a[href="#press"]{--c:var(--sp1)}
#code,.menu a[href="#code"]{--c:var(--sp4)}
#music,.menu a[href="#music"]{--c:var(--sp6)}
#contact,.menu a[href="#contact"]{--c:var(--sp2)}
:root:not([data-style="remaster"]) section:not(.about) > h2::before{display:block;width:max-content;margin-bottom:14px;padding-left:20px;font:400 11px/1 var(--mono);letter-spacing:.02em;color:var(--faint);background:var(--swatch) 0 50% / 12px 3px no-repeat}
:root:not([data-style="remaster"]) section:nth-of-type(2) > h2::before{content:"A1"}
:root:not([data-style="remaster"]) section:nth-of-type(3) > h2::before{content:"A2"}
:root:not([data-style="remaster"]) section:nth-of-type(4) > h2::before{content:"A3"}
:root:not([data-style="remaster"]) section:nth-of-type(5) > h2::before{content:"A4"}
:root:not([data-style="remaster"]) section:nth-of-type(6) > h2::before{content:"A5"}
:root:not([data-style="remaster"]) section:nth-of-type(7) > h2::before{content:"B1"}
:root:not([data-style="remaster"]) section:nth-of-type(8) > h2::before{content:"B2"}
/* tracks rise in as they come into view (only once the script is running and watching for them) */
:root:not([data-style="remaster"]).reveal .page > section:not(.about){animation:none;transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
:root:not([data-style="remaster"]).reveal section:not(.about):not(.in){opacity:0;transform:translateY(24px)}

/* The menu: under the name, and once you scroll it's the only part of the header left on top */
.menu{grid-column:1;grid-row:5;display:flex;gap:20px;margin-top:20px;overflow-x:auto;scrollbar-width:none;font-size:13.5px}
.menu::-webkit-scrollbar{display:none}
.menu a{position:relative;flex:none;padding:9px 0 10px;color:var(--muted);text-decoration:none;transition:color .2s}
.menu a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--swatch);transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.menu a:hover,.menu a[aria-current]{color:var(--text)}
.menu a:hover::after{transform:scaleX(.3)}
.menu a[aria-current]::after{transform:none}
/* the header sticks, pulled up (--tuck, set by the script) so only the menu row stays in view. Its background and,
   once it's stuck, a hairline reach the window's edges; the page clips them, so nothing ever scrolls sideways */
body{overflow-x:clip}
.js .intro{position:sticky;top:var(--tuck,0px);z-index:5}
:root:not([data-style="remaster"]).js .intro::before{content:"";position:absolute;z-index:-1;inset:0 calc((100% - 100vw) / 2);background:var(--bg);transition:background-color .35s ease}
.intro::after{content:"";position:absolute;left:calc((100% - 100vw) / 2);right:calc((100% - 100vw) / 2);bottom:0;height:1px;background:var(--line);opacity:0;pointer-events:none;transition:opacity .2s}
.stuck .intro::after{opacity:1}

/* Light / dark switch: a half-moon */
.mode{grid-column:3;grid-row:5;justify-self:start;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:color .2s,background .2s,transform .5s cubic-bezier(.2,.7,.2,1)}
.mode:hover{color:var(--text);background:var(--hover)}
.mode svg{width:16px;height:16px}
.mode circle{fill:none;stroke:currentColor;stroke-width:1.4}
.mode path{fill:currentColor}
.mode.spin{transform:rotate(180deg)}
/* The record: switches between the original mix and the remaster */
.mix{grid-column:2;grid-row:5;justify-self:end;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:color .2s,background .2s,transform .8s cubic-bezier(.2,.7,.2,1)}
.mix:hover{color:var(--text);background:var(--hover)}
.mix svg{width:16px;height:16px}
.mix circle{fill:none;stroke:currentColor;stroke-width:1.4}
.mix .groove{stroke-width:.8;opacity:.55}
.mix .label{fill:currentColor;stroke:none}
.mix + .mode{margin-left:-8px}
.mix,.mode{margin-top:20px}
/* The record is always playing; a click gives it an extra turn (and the next one turns it back) */
.mix.push{transform:rotate(1turn)}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:no-preference){
  .mix svg{animation:spin 3.2s linear infinite}
}
/* What's on, always there and quiet: the pressing, then the side, right under the two switches. Point at a switch
   and its half lights up; anything the page has to say fades in over it for a moment. Once the menu is stuck
   on top it steps aside (under the bar), and comes back while you point at a switch */
.note{position:absolute;top:100%;right:30px;margin-top:6px;padding:2px 0 2px 10px;background:var(--bg);font:400 11px/1.4 var(--mono);color:var(--faint);white-space:nowrap;pointer-events:none;transition:opacity .3s,background-color .35s}
.note > span{transition:opacity .3s,color .3s}
.note .side:not(:empty)::before{content:"·";margin:0 .6em;color:var(--faint)}
.note .say{position:absolute;top:2px;right:0;color:var(--muted);opacity:0}
:root:not([data-style="remaster"]).stuck .note:not(.saying){opacity:0}
:root:not([data-style="remaster"]).stuck .intro:has(.mix:hover,.mode:hover) .note{opacity:1}
.note.saying .press,.note.saying .side{opacity:0}
.note.saying .say{opacity:1}
.intro:has(.mix:hover) .press,.intro:has(.mode:hover) .side,.note.lit-press .press,.note.lit-side .side{color:var(--text)}
/* The two switches sit in the very same spot in both looks: top right, exactly where the remaster's bar holds them,
   so flipping from one look to the other never moves the button you just pressed. Here they hang above the header,
   lined up with that bar rather than with this column, with what's on right under them. Once the menu is stuck on
   top they ride in it on wide screens; on narrow ones they scroll away with the header, as in the remaster */
:root:not([data-style="remaster"]) .intro{--sw-top:calc(14px + var(--bar-photo) / 2 - 32px);--sw-right:calc(max(40px, (100vw - 1000px) / 2) - (100vw - 100%) / 2)}
:root:not([data-style="remaster"]) .mix,:root:not([data-style="remaster"]) .mode{position:absolute;grid-area:auto;top:calc(var(--sw-top) - var(--pad-top));right:var(--sw-right);margin:0}
:root:not([data-style="remaster"]) .mix{right:calc(var(--sw-right) + 38px)}
:root:not([data-style="remaster"]) .note{top:calc(var(--sw-top) + 36px - var(--pad-top));right:var(--sw-right);margin-top:0;padding:0;background:none}
:root:not([data-style="remaster"]) .note .say{top:0}
@media (max-width:820px){
  :root:not([data-style="remaster"]) .intro{--sw-top:calc(12px + (var(--bar-photo) - 32px) / 2);--sw-right:calc(20px - (100vw - 100%) / 2)}
  .page{--pad-top:112px} /* room for the switches and what's on above the photo */
}
@media (min-width:521px){
  :root:not([data-style="remaster"]).stuck .note{top:100%;margin-top:6px;padding:2px 0 2px 10px;background:var(--bg)}
  :root:not([data-style="remaster"]).stuck .note .say{top:2px}
}
@media (min-width:821px){
  :root:not([data-style="remaster"]).stuck .mix,:root:not([data-style="remaster"]).stuck .mode{top:auto;bottom:4.5px;animation:appear .25s ease}
}
@keyframes appear{from{opacity:0}}

/* Intro: name and title down the left, flush with the menu and the text below; the photo on the right */
.intro{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:1fr auto auto 1fr auto;column-gap:4px;align-items:center;margin-bottom:44px}
.intro > div{grid-column:1;grid-row:2}
/* the name, set big like the title on a sleeve */
.intro h1{font-size:clamp(36px,5.6vw,52px);line-height:1;letter-spacing:-.045em;text-wrap:balance}
.role{margin:12px 0 0;font:400 13px/1.4 var(--mono);color:var(--muted)}
/* the photo is the record's label: two fine grooves run round it */
.avatar{grid-column:2 / 4;grid-row:1 / 5;justify-self:end;position:relative;width:196px;height:196px;margin:18px;padding:0;border:0;border-radius:50%;overflow:hidden;background:var(--line);box-shadow:0 0 0 9px var(--bg),0 0 0 10px var(--line),0 0 0 17px var(--bg),0 0 0 18px var(--line);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:box-shadow .35s ease}
/* the photo can't be grabbed: clicks, right-clicks and long presses land on the button, never on the image itself */
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1);-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;pointer-events:none}
/* point at it and it leans in a little */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .avatar:hover img{transform:scale(1.08)}
}

.bio,.lede{font-size:17px;line-height:1.5;letter-spacing:-.01em}
/* the opening line, a size up */
:root:not([data-style="remaster"]) .bio{color:var(--muted)}
:root:not([data-style="remaster"]) .bio a{color:var(--text)}
:root:not([data-style="remaster"]) .lede{font-size:23px;line-height:1.4;letter-spacing:-.022em;text-wrap:pretty}
/* The project: a small picture of its main screen (the cloud is a place, over America in points of light), and
   beside it the name and the way in, in the project's periwinkle. The link is stretched over the whole row */
.project{--p-acc:#6f8bff;position:relative;display:grid;grid-template-columns:240px minmax(0,1fr);align-items:center;gap:24px;margin:52px 0 0}
:root[data-theme="dark"] .project{--p-acc:#8fa3ff}
.project-art{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:12px;background:#121211;box-shadow:0 0 0 1px var(--line);pointer-events:none;-webkit-user-drag:none;transition:transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.project p{margin:0}
.project-kicker{display:flex;align-items:center;gap:8px;font:400 12px/1.4 var(--mono);color:var(--p-acc)}
.project-kicker::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,var(--p-acc) 22%,transparent)}
.project-name{margin:8px 0 0;font:600 22px/1.15 var(--sans);letter-spacing:-.025em;color:var(--text)}
.project-name a{color:inherit;text-decoration:none}
.project-name a::after{content:"";position:absolute;inset:-8px;z-index:1;border-radius:16px}
.project-name a:focus-visible{outline:none}
.project-name a:focus-visible::after{outline:1px solid var(--text);outline-offset:0}
.project-go{margin-top:10px !important;font:400 13.5px/1 var(--sans);color:var(--muted);transition:color .2s}
.project-go span{display:inline-block;margin-left:2px;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){
  .project:hover .project-go{color:var(--p-acc)}
  .project:hover .project-go span{transform:translate(2px,-2px)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .project:hover .project-art{transform:scale(1.02)}
}
@media (max-width:520px){
  .project{grid-template-columns:150px minmax(0,1fr);gap:16px;margin-top:44px}
  .project-art{border-radius:9px}
  .project-name{font-size:18px}
  .project-go{font-size:12.5px}
}

/* Elsewhere: logos instead of words, each one's name shows up under it on hover */
.links{display:flex;flex-wrap:wrap;gap:4px;margin:16px 0 0 -8px}
.links a{position:relative;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--muted);text-decoration:none;transition:color .2s,background .2s}
.links a:hover,.links a:focus-visible{color:var(--text);background:var(--hover)}
.links svg{width:17px;height:17px;fill:currentColor}
.links span{position:absolute;top:100%;left:50%;transform:translate(-50%,-2px);font:400 11px/1.4 var(--mono);color:var(--muted);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.links a:hover span,.links a:focus-visible span{opacity:1;transform:translate(-50%,2px)}

/* Interests: two quiet columns, one on phones */
.interests{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 24px}
.aside{margin:16px 0 0;font-size:13.5px}

/* What I work on: three threads, each under the prism colours it stands for, a heading and one line,
   with the papers inside the line underlined in the thread's colour */
.threads{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.threads li::before{content:"";display:block;height:3px;margin-bottom:10px;border-radius:1px}
.threads .t1::before{width:38px;background:linear-gradient(90deg,var(--sp1) 0 10px,transparent 0 14px,var(--sp2) 0 24px,transparent 0 28px,var(--sp3) 0)}
.threads .t2::before{width:10px;background:var(--sp5)}
.threads .t3::before{width:24px;background:linear-gradient(90deg,var(--sp4) 0 10px,transparent 0 14px,var(--sp6) 0)}
.threads .t1{--c:var(--sp2)} .threads .t2{--c:var(--sp5)} .threads .t3{--c:var(--sp6)}
.threads h3{font-size:15px;font-weight:600;margin:0 0 2px}
.threads p{margin:0;color:var(--muted)}
.threads a{text-decoration-color:var(--c);text-decoration-color:color-mix(in srgb,var(--c) 55%,transparent);text-decoration-thickness:1.5px}
.threads a:hover{text-decoration-color:var(--c)}

/* Lists: title, then source, year on the right */
.list{list-style:none;margin:0;padding:0}
.list li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;padding:9px 10px;margin:0 -10px;border-radius:8px;transition:background .15s}
.list li:hover{background:var(--hover);background:color-mix(in srgb,var(--c) 7%,transparent)}
.list a,.list .t{grid-column:1;font-weight:500;text-decoration:none}
.list a:hover{text-decoration:underline;text-decoration-color:var(--faint)}
/* the arrow hangs off the end of the title (a negative margin as wide as it is), so it never wraps onto a line of its own */
.list a::after{content:"↗";display:inline-block;width:12px;margin:0 -17px 0 5px;font-size:12px;color:var(--faint);opacity:0;transform:translate(-3px,2px);transition:opacity .2s,transform .2s,color .2s}
.list li:hover a::after{opacity:1;transform:none;color:var(--c)}
.list .src{grid-column:1;grid-row:2;color:var(--muted);font-size:13.5px}
.list .yr{grid-column:2;grid-row:1;color:var(--faint);font-size:13.5px;font-variant-numeric:tabular-nums}
.mono{font-family:var(--mono);font-size:13.5px}
.list a.mono{font-weight:400}

/* Journals and outlets, each set a little like its own masthead */
.v{font-weight:600;font-style:normal;font-size:1.04em;color:var(--text)}
.v-wapo,.v-faz{font-family:var(--gothic);font-weight:400;font-size:1.22em;line-height:1}
.v-nature,.v-ajph,.v-guardian,.v-harvard{font-family:var(--didone);font-weight:700}
.v-forbes{font-family:var(--didone);font-weight:900;letter-spacing:-.01em}
.v-mittr{font-weight:700;letter-spacing:-.025em}
.v-guardian{color:var(--guardian)}
.v-harvard{color:var(--crimson)}
.v-arxiv{color:var(--arxiv)}

/* New in the press: a small red tag by the year, gone on its own after a few weeks */
.js .fresh .yr::before{content:"New";display:inline-block;margin-right:8px;padding:0 7px;border-radius:99px;font:600 10.5px/18px var(--sans);letter-spacing:.02em;text-transform:none;color:#fff;background:var(--sp1);vertical-align:1px}

/* code & data: the kind as a little tinted tag */
.list .yr.tag{align-self:start;margin-top:2px;padding:0 8px;border-radius:99px;font:400 11px/20px var(--mono);color:var(--muted);background:var(--hover)}
.list .yr.tag.data{color:color-mix(in srgb,var(--sp5) 70%,var(--text));background:color-mix(in srgb,var(--sp5) 13%,transparent)}
.list .yr.tag.code{color:color-mix(in srgb,var(--sp4) 70%,var(--text));background:color-mix(in srgb,var(--sp4) 15%,transparent)}

/* "Show all" and other quiet buttons */
.more,.inline{font:inherit;color:var(--muted);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--faint);text-underline-offset:3px}
.more{margin-top:10px;font-size:13.5px}
.more:hover,.inline:hover{color:var(--text);text-decoration-color:var(--text)}
.js .list .extra{display:none}
.js .list.open .extra{display:grid}

.video{margin:4px 0 18px}
.video video{display:block;width:100%;aspect-ratio:16/9;border-radius:10px;background:#000}
.video.tall video{width:min(100%,300px);aspect-ratio:9/16}
/* the setlist under the video: the song playing is darker, the +1 waits its turn */
.tracks{display:flex;flex-wrap:wrap;gap:2px 18px;margin:10px 0 0;font-size:13.5px}
.track{font:inherit;color:var(--faint);background:none;border:0;padding:0;cursor:pointer;transition:color .2s}
.track span{margin-left:4px;color:var(--faint)}
.track b{font-weight:500;margin-right:4px}
.track:hover,.track[aria-pressed="true"]{color:var(--text)}

/* the last track: the way to get in touch, a size up so press can't miss it */
:root:not([data-style="remaster"]) #contact p{font-size:20px;line-height:1.45;letter-spacing:-.015em}
footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;margin-top:72px;padding-top:18px;border-top:1px solid var(--line);color:var(--faint);font-size:13px;font-variant-numeric:tabular-nums}
.clock:not(:empty)::before{content:" · "}
/* Now playing: a tiny equalizer, the song, the band */
.np{display:inline-flex;flex-basis:100%;align-items:center;gap:7px;white-space:nowrap;font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.np[hidden]{display:none}
.np .song{color:var(--muted);transition:color .2s}
.np:hover .song{color:var(--text)}
.top{color:var(--faint);text-decoration:none;white-space:nowrap}
.top:hover{color:var(--text)}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:9px;color:var(--muted)}
.eq i{width:2px;height:100%;background:currentColor;border-radius:1px;transform-origin:bottom;animation:eq 1.1s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:-.45s}
.eq i:nth-child(3){animation-delay:-.8s}
@keyframes eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}

/* A little film grain over everything, like a printed sleeve: fixed, so it never scrolls or seams, and it never
   takes a click. Dark specks on the light side, light ones on the dark side */
:root{--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--grain-o:.08}
:root[data-theme="dark"]{--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--grain-o:.06}
:root:not([data-style="remaster"]) body::after{content:"";position:fixed;inset:0;z-index:20;pointer-events:none;background:var(--grain);opacity:var(--grain-o)}

/* A soft entrance, nothing more */
@keyframes up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.js .page > *{animation:up .6s cubic-bezier(.2,.7,.2,1) both}
.js .page > *:nth-child(2){animation-delay:.06s}
.js .page > *:nth-child(3){animation-delay:.12s}
.js .page > *:nth-child(4){animation-delay:.18s}
.js .page > *:nth-child(5){animation-delay:.24s}
.js .page > *:nth-child(6){animation-delay:.3s}
.js .page > *:nth-child(n+7){animation-delay:.36s}

@media (max-width:520px){
  .page{--pad-top:88px;padding:var(--pad-top) 20px 48px}
  section{margin-top:44px}
  .interests{grid-template-columns:1fr}
  /* on a phone: the switches just above the photo, then name and photo, what's on (on two lines, under the photo),
     then the menu across the whole width */
  .avatar{width:118px;height:118px;margin:12px 12px 12px 8px;box-shadow:0 0 0 6px var(--bg),0 0 0 7px var(--line),0 0 0 11px var(--bg),0 0 0 12px var(--line)}
  .intro h1{font-size:34px}
  .role{font-size:12px}
  :root:not([data-style="remaster"]) .lede{font-size:20px}
  :root:not([data-style="remaster"]) section:not(.about){margin-top:56px;padding-top:22px}
  :root:not([data-style="remaster"]) section:not(.about) > h2{font-size:23px}
  .intro{grid-template-rows:1fr auto auto 1fr auto auto}
  :root:not([data-style="remaster"]) .note{position:relative;top:auto;right:auto;grid-column:1 / -1;grid-row:5;justify-self:end;margin-top:14px;padding:0;background:none;text-align:right}
  :root:not([data-style="remaster"]) .note .say{top:0}
  :root:not([data-style="remaster"]) .note > span:not(.say){display:block}
  :root:not([data-style="remaster"]) .note .side:not(:empty)::before{content:none}
  .menu{grid-column:1 / -1;grid-row:6;margin-top:6px;gap:12px;justify-content:space-between}
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
@media (prefers-reduced-motion:reduce){
  .js .page > *{animation:none}
  :root:not([data-style="remaster"]).reveal section:not(.about):not(.in){opacity:1;transform:none}
  .mix.push{transform:none}
  .eq i{animation:none;transform:scaleY(.6)}
}

/* ===== The 2026 remaster: same songs, more room. The same type as the original (one sans, the mono for small print),
   set wider: titles beside their sections, track numbers and hairlines. Everything below only applies with
   data-style="remaster" ===== */
:root{--sp1:#e5352b;--sp2:#f08c1f;--sp3:#f6d32b;--sp4:#43a047;--sp5:#2b7bd6;--sp6:#6b4fbb}
/* the photo in the bar; the original's switches line up with the bar from this too */
:root{--bar-photo:92px}
[data-style="remaster"] body{font-size:16px;overflow-x:clip}
[data-style="remaster"] ::selection{background:var(--sp6);color:#fff}
[data-style="remaster"] .page{max-width:1080px;padding:0 40px 64px}

/* sticky glass bar */
[data-style="remaster"] .intro{position:sticky;top:0;z-index:5;margin:0 calc(50% - 50vw);padding:14px max(40px, calc((100vw - 1000px) / 2));background:var(--bg);background:color-mix(in srgb,var(--bg) 70%,transparent);-webkit-backdrop-filter:saturate(1.5) blur(16px);backdrop-filter:saturate(1.5) blur(16px)}
[data-style="remaster"] .intro::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line);opacity:0;pointer-events:none;transition:opacity .2s}
[data-style="remaster"].stuck .intro::after{opacity:1}
/* in the bar: photo and name on the left; the menu and the two switches on the right, and what's on under them */
[data-style="remaster"] .intro{grid-template-columns:auto minmax(0,1fr) auto auto auto;grid-template-rows:1fr 1fr;column-gap:14px}
[data-style="remaster"] .avatar{grid-column:1;grid-row:1 / 3;justify-self:auto}
[data-style="remaster"] .intro > div{grid-column:2;grid-row:1 / 3}
[data-style="remaster"] .intro h1{font-size:18px;line-height:1.3;letter-spacing:-.01em}
[data-style="remaster"] .role{margin-top:2px}
[data-style="remaster"] .mix,[data-style="remaster"] .mode{grid-row:1;align-self:end;justify-self:auto;margin-top:0}
[data-style="remaster"] .note{position:relative;top:auto;right:auto;grid-row:2;align-self:start;justify-self:end;padding:0;background:none}
[data-style="remaster"] .note .say{top:0}
[data-style="remaster"] .menu{grid-column:3;grid-row:1;align-self:end;margin:0 12px 0 0;gap:22px}
[data-style="remaster"] .menu a{padding:6px 0}
[data-style="remaster"] .mix{grid-column:4}
[data-style="remaster"] .mode{grid-column:5}
[data-style="remaster"] .note{grid-column:3 / 6;margin-top:4px}
[data-style="remaster"] .avatar{width:var(--bar-photo);height:var(--bar-photo)}
[data-style="remaster"] section{scroll-margin-top:calc(var(--bar-photo) + 28px)}

/* the opening lines, a little bigger */
[data-style="remaster"] .about{margin-top:0;padding-top:clamp(16px,4vh,40px)}
[data-style="remaster"] .lede{font-size:20px;line-height:1.55;letter-spacing:-.015em;max-width:640px;margin-bottom:32px;text-wrap:pretty}
/* the one flourish in the hero: the spectrum, as an underline */
[data-style="remaster"] .hl{background:var(--spectrum) 0 100% / 100% 2px no-repeat;padding-bottom:3px}
[data-style="remaster"] .bio{font-size:20px;line-height:1.55;letter-spacing:-.015em;color:var(--muted);max-width:640px;margin-bottom:8px;text-wrap:pretty}
[data-style="remaster"] .bio a{color:var(--text)}
[data-style="remaster"] .links{gap:6px;margin:28px 0 0 -10px}
[data-style="remaster"] .links a{width:40px;height:40px;color:var(--text)}
[data-style="remaster"] .links svg{width:19px;height:19px}

/* small print stays small and quiet, in normal case, as in the original: no tracked capitals */
[data-style="remaster"] .role{font-size:14px}

/* sections: title on the left (sticky), content on the right */
[data-style="remaster"] section:not(.about){display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:64px;margin-top:96px;padding-top:32px;border-top:1px solid var(--line)}
[data-style="remaster"] section:not(.about) > *{grid-column:2}
[data-style="remaster"] section:not(.about) > h2{grid-column:1;grid-row:1 / span 12;align-self:start;position:sticky;top:116px;margin:0;font:600 24px/1.2 var(--sans);letter-spacing:-.025em;color:var(--text);text-wrap:balance}
[data-style="remaster"] h2 .count{display:block;margin:10px 0 0;vertical-align:0;color:var(--faint)}
/* every section is a track on the record: side A is the work, side B the rest */
[data-style="remaster"] section:not(.about) > h2::before{display:block;width:max-content;margin-bottom:12px;padding-left:18px;font:400 11px/1 var(--mono);color:var(--faint);background:var(--swatch) 0 50% / 10px 3px no-repeat}
[data-style="remaster"] section:nth-of-type(2) > h2::before{content:"A1"}
[data-style="remaster"] section:nth-of-type(3) > h2::before{content:"A2"}
[data-style="remaster"] section:nth-of-type(4) > h2::before{content:"A3"}
[data-style="remaster"] section:nth-of-type(5) > h2::before{content:"A4"}
[data-style="remaster"] section:nth-of-type(6) > h2::before{content:"A5"}
[data-style="remaster"] section:nth-of-type(7) > h2::before{content:"B1"}
[data-style="remaster"] section:nth-of-type(8) > h2::before{content:"B2"}

/* the three threads in three columns, each under the prism colours it stands for */
[data-style="remaster"] .threads{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
[data-style="remaster"] .threads li::before{margin-bottom:20px;border-radius:0}
[data-style="remaster"] .threads h3{font:600 18px/1.3 var(--sans);letter-spacing:-.015em;margin:0 0 8px}
[data-style="remaster"] .threads p{font-size:15px;line-height:1.6}

/* lists: hairlines, arrows always on */
[data-style="remaster"] .list li{margin:0;padding:18px 0;border-radius:0;border-bottom:1px solid var(--line);transition:padding .3s cubic-bezier(.2,.7,.2,1)}
[data-style="remaster"] .list li:first-child{padding-top:0}
[data-style="remaster"] .list li:hover{background:none;padding-left:10px}
[data-style="remaster"] .list a,[data-style="remaster"] .list .t{font-size:16px;font-weight:500;letter-spacing:-.015em}
[data-style="remaster"] .list a:hover{text-decoration:none}
[data-style="remaster"] .list a::after{opacity:1;transform:none}
[data-style="remaster"] .list li:hover a::after{color:var(--text);transform:translate(2px,-2px)}
[data-style="remaster"] .list .src{margin-top:4px}
[data-style="remaster"] .list .yr{font-size:13px;line-height:1.9}
[data-style="remaster"] .list .mono{font-size:14px}
/* the mastheads keep their own type among the small capitals */
[data-style="remaster"] .list .v{font-size:14.5px}
[data-style="remaster"] .list .v-wapo,[data-style="remaster"] .list .v-faz{font-size:17px}
[data-style="remaster"] .list .v-mittr{letter-spacing:-.025em}
[data-style="remaster"] .list .yr.tag{line-height:20px;font-size:11px}
[data-style="remaster"] .more{justify-self:start;margin-top:24px;color:var(--text);text-underline-offset:4px}

/* interests: a numbered index, and the line under it */
[data-style="remaster"] .interests{gap:0 32px;counter-reset:i}
[data-style="remaster"] .interests li{counter-increment:i;display:flex;align-items:baseline;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
[data-style="remaster"] .interests li::before{content:counter(i,decimal-leading-zero);font:400 11px/1 var(--mono);color:var(--faint)}
[data-style="remaster"] .aside{margin-top:24px;font-size:17px;line-height:1.5;color:var(--muted)}

[data-style="remaster"] .video video{border-radius:0}
[data-style="remaster"] .video.tall video{width:min(100%,340px)}
[data-style="remaster"] .tracks{gap:6px 24px;margin-top:14px}
[data-style="remaster"] section:last-of-type p{font-size:20px;line-height:1.5;letter-spacing:-.015em}
[data-style="remaster"] footer{margin-top:128px}
[data-style="remaster"] .eq i:nth-child(1){background:var(--sp1)}
[data-style="remaster"] .eq i:nth-child(2){background:var(--sp3)}
[data-style="remaster"] .eq i:nth-child(3){background:var(--sp5)}

/* sections rise in on scroll */
[data-style="remaster"].js .page > section{animation:none}
[data-style="remaster"].js section:not(.about){opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
[data-style="remaster"].js section.in{opacity:1;transform:none}

@media (max-width:820px){
  [data-style="remaster"] .page{padding:0 20px 48px}
  /* the bar gets a second row for the menu, and as you scroll it tucks up so only the menu stays */
  [data-style="remaster"] .intro{top:var(--tuck,0px);padding:12px 20px 0;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto}
  [data-style="remaster"] .avatar,[data-style="remaster"] .intro > div{grid-row:1}
  [data-style="remaster"] .mix,[data-style="remaster"] .mode{grid-row:1;align-self:center}
  [data-style="remaster"] .mix{grid-column:3}
  [data-style="remaster"] .mode{grid-column:4}
  [data-style="remaster"] .menu{grid-column:1 / -1;grid-row:2;margin:8px 0 0;gap:18px}
  [data-style="remaster"] .menu a{padding:10px 0 11px}
  [data-style="remaster"] section{scroll-margin-top:44px}
  /* no room in the bar on phones: what's on hangs under it, and steps aside once the page moves */
  [data-style="remaster"] .note{position:absolute;grid-area:auto;top:100%;right:20px;margin-top:10px}
  [data-style="remaster"].scrolled .note:not(.saying){opacity:0}
  [data-style="remaster"] .about{padding-top:34px}
  [data-style="remaster"] .threads{grid-template-columns:1fr;gap:32px}
  [data-style="remaster"] .bio,[data-style="remaster"] .lede{font-size:17px}
  [data-style="remaster"] section:not(.about){display:block;margin-top:72px;padding-top:24px}
  [data-style="remaster"] section:not(.about) > h2{position:static;font-size:22px;margin-bottom:18px}
  [data-style="remaster"] h2 .count{display:inline-block;margin:0 0 0 10px;vertical-align:5px}
}
@media (max-width:600px){
  [data-style="remaster"] .interests{grid-template-columns:1fr}
}
@media (max-width:520px){
  /* on a phone the menu spreads across the width, like a tab bar */
  [data-style="remaster"] .menu{gap:12px;justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){
  [data-style="remaster"] .mix svg{animation:none}
  [data-style="remaster"].js section:not(.about){opacity:1;transform:none;transition:none}
}

/* on paper: every section shows, no grain */
@media print{
  .reveal section{opacity:1 !important;transform:none !important}
  body::after{content:none !important}
}
