/* Aziz Tlili — portfolio
   Idea: complicated → simple. Things start a little tangled and settle as you arrive.
   Black and white. Red is only for the thing you can act on (and one underline). It never means "error". */
:root{
  --paper:#f6f5f3; --ink:#141312; --muted:#67635d; --line:#dcd9d4; --card:#ffffff;
  --grain:#b5833c; --grain-a:1.2; --grain-s:1.1; --grain-mode:beam;   /* light theme ("beam" = day): one sunbeam in the hero, slow dark particles over the whole page (site.js) */
  --red:#d81f26;            /* 5.2:1 on paper: AA for text */
  --display:"Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"JetBrains Mono", ui-monospace, Consolas, monospace;
  --gut:clamp(16px, 4vw, 56px);
  --max:1480px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --ph:clamp(400px, 60vh, 620px);   /* every phone screen is this tall */
}
/* Dark: follows the visitor's system, unless they picked a theme with the switch in the header (data-theme on <html>). */
:root{color-scheme:light}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--paper:#111010; --ink:#f2f0ed; --muted:#a39f98; --line:#2b2927; --card:#1a1918; --red:#ff4a4f; --grain:#f2f0ed; --grain-a:1; --grain-s:1; --grain-mode:stars; color-scheme:dark}
}
:root[data-theme="dark"]{--paper:#111010; --ink:#f2f0ed; --muted:#a39f98; --line:#2b2927; --card:#1a1918; --red:#ff4a4f; --grain:#f2f0ed; --grain-a:1; --grain-s:1; --grain-mode:stars; color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-stopped{overflow:hidden}
body{margin:0; background:var(--paper); color:var(--ink); font:17px/1.6 var(--body); -webkit-font-smoothing:antialiased; overflow-x:clip}
img{display:block; max-width:100%; height:auto}
a{color:inherit}
button{font:inherit; color:inherit}
::selection{background:var(--red); color:#fff}
:focus-visible{outline:2px solid var(--red); outline-offset:3px; border-radius:2px}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.skip{position:absolute; left:-9999px; top:8px; background:var(--ink); color:var(--paper); padding:8px 12px; z-index:60}
.skip:focus{left:8px}
.wrap{max-width:var(--max); margin:0 auto; padding:0 var(--gut)}
.label{font:500 12px/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0}
h1,h2,h3{font-family:var(--display); margin:0; line-height:1; text-wrap:balance; letter-spacing:-.03em; overflow-wrap:break-word}
p{margin:0}

/* Page transitions (Chrome, Edge, Safari): the page slides, and a case title flies from the list into the page */
@view-transition{navigation:auto}
::view-transition-old(root){animation:vt-out .4s cubic-bezier(.4,0,.2,1) both}
::view-transition-new(root){animation:vt-in .6s var(--ease) both}
@keyframes vt-out{to{opacity:0; transform:translateY(-28px)}}
@keyframes vt-in{from{opacity:0; transform:translateY(44px)}}
::view-transition-group(*){animation-duration:.65s; animation-timing-function:var(--ease)}

/* Scroll progress + cursor */
/* Our own scrollbar: the browser's is hidden (scrolling still works the same: wheel, keys, touch).
   A thin rounded thumb on the right shows only while you scroll, or when the pointer comes close to the edge,
   then fades away. It grows a little when you point at it, and you can drag it. */
html{scrollbar-width:none}
html::-webkit-scrollbar{width:0; height:0}
.sbar{position:fixed; top:6px; right:3px; bottom:6px; width:14px; z-index:90; pointer-events:none}
.sbar i{position:absolute; right:2px; top:0; width:4px; min-height:36px; border-radius:99px; background:var(--ink); opacity:0; pointer-events:auto; cursor:grab;
  transition:opacity .45s ease, width .25s var(--ease), right .25s var(--ease), background .2s}
.sbar.show i{opacity:.32}
.sbar i:hover,.sbar.drag i{width:7px; right:1px; opacity:.6; background:var(--ink)}
.sbar.drag i{cursor:grabbing}
.sbar.none{display:none}
html.drag-scroll{user-select:none}
.prog{position:fixed; inset:0 0 auto 0; height:3px; background:var(--red); transform:scaleX(0); transform-origin:left; z-index:40; pointer-events:none}
/* The cursor (desktop only; it replaces the system cursor): a tiny sun by day, a tiny black hole by night, 14px.
   Over anything clickable it grows a little; over the work it becomes the round "Open" / "Zoom" bubble. */
@media (hover:hover) and (pointer:fine){ html.has-cur, html.has-cur *{cursor:none !important}
  /* Over the astronaut or the hummingbird, the sun / black hole steps aside for a hand, so it's clear you can grab them
     (an open hand, closed while you hold one). */
  html.has-cur .astro, html.has-cur .astro *{cursor:grab !important}
  html.has-cur:has(.astro.held), html.has-cur:has(.astro.held) *{cursor:grabbing !important}
  html.has-cur:has(.astro:hover) .cur, html.has-cur:has(.astro.held) .cur{opacity:0} }
.cur{position:fixed; left:0; top:0; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background:transparent; pointer-events:none; z-index:100; display:grid; place-items:center; opacity:0;
  transition:width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease), background .2s, opacity .2s}
.cur.on{opacity:1}
.cur span{position:relative; font:500 12px/1 var(--mono); color:var(--paper); opacity:0; transition:opacity .15s; white-space:nowrap}
.cur.lab{width:88px; height:88px; margin:-44px 0 0 -44px; background:var(--ink)}
.cur.lab span{opacity:1}
.cur .orb{position:absolute; left:calc(var(--grow, 0px) / -2); top:calc(var(--grow, 0px) / -2); width:calc(14px + var(--grow, 0px)); height:calc(14px + var(--grow, 0px));
  border-radius:50%; transition:opacity .2s, transform .28s var(--ease), width .5s var(--ease), height .5s var(--ease), left .5s var(--ease), top .5s var(--ease), filter .5s}
.cur.lab .orb{opacity:0; transform:scale(.4)}
.cur.hot .orb{transform:scale(1.5)}
@keyframes cur-spin{to{transform:rotate(360deg)}}
@keyframes cur-spin-back{to{transform:rotate(-360deg)}}

/* Day: the sun. It gives off its own light, so there's no shadow on it: brightest, almost white, in the very centre,
   warming evenly to gold and orange at the edge all the way round (what astronomers call limb darkening), a soft glowing
   corona with faint rays turning slowly, and a gentle shimmer of light moving on its surface.
   As it swallows particles (home page) it grows (--grow, up to 8 px) and turns deeper red (--red, 0 to 1). */
.cur .orb{background:radial-gradient(circle, #fffef7 0, #fff7d6 26%, #ffe594 52%, #ffc657 76%, #f8a63c 91%, #ef8f2f 100%);
  box-shadow:0 0 5px 2px rgba(255,214,120,.75), 0 0 14px 5px rgba(255,200,92,.34), 0 0 26px 9px rgba(255,190,80,.14);
  filter:hue-rotate(calc(var(--red, 0) * -26deg)) saturate(calc(1 + var(--red, 0) * .9));
  animation:sun-pulse 3.6s ease-in-out infinite}
.cur .orb::before{content:""; position:absolute; inset:0; border-radius:50%; mix-blend-mode:screen; animation:cur-spin 11s linear infinite; opacity:.7;
  background:radial-gradient(circle at 32% 38%, rgba(255,255,255,.7) 0 7%, rgba(255,255,255,0) 22%), radial-gradient(circle at 66% 58%, rgba(255,255,255,.55) 0 6%, rgba(255,255,255,0) 19%),
    radial-gradient(circle at 48% 76%, rgba(255,255,255,.45) 0 5%, rgba(255,255,255,0) 16%)}
.cur .orb::after{content:""; position:absolute; inset:-45%; border-radius:50%; animation:cur-spin-back 18s linear infinite; filter:blur(.6px);
  background:repeating-conic-gradient(rgba(255,200,100,.42) 0 4deg, rgba(255,200,100,0) 4deg 15deg);
  -webkit-mask:radial-gradient(circle closest-side, transparent 50%, #000 56%, rgba(0,0,0,.35) 74%, transparent 100%);
  mask:radial-gradient(circle closest-side, transparent 50%, #000 56%, rgba(0,0,0,.35) 74%, transparent 100%)}
@keyframes sun-pulse{0%,100%{box-shadow:0 0 5px 2px rgba(255,214,120,.75), 0 0 14px 5px rgba(255,200,92,.34), 0 0 26px 9px rgba(255,190,80,.14)}
  50%{box-shadow:0 0 7px 3px rgba(255,218,130,.85), 0 0 18px 7px rgba(255,204,100,.4), 0 0 32px 12px rgba(255,190,80,.18)}}
/* The finale at 22: the sun swells and flares deep red, then fades as night falls. */
.cur.nova .orb{animation:sun-nova .75s cubic-bezier(.5,0,.75,0) forwards}
@keyframes sun-nova{0%{transform:scale(1)} 70%{transform:scale(1.9); filter:hue-rotate(-34deg) saturate(2.1) brightness(1.15)} 100%{transform:scale(2.5); opacity:0; filter:hue-rotate(-36deg) saturate(2.2) brightness(1.3)}}

/* Night: the black hole is a small vector picture (.bh, drawn in site.js): the shadow, the disk bent over the top by
   gravity, the near side passing in front, a thin bright ring. Nothing spins: clumps of light flow slowly along the
   disk, and the whole thing breathes very gently. The sun (.orb) is hidden at night. */
.cur .bh{display:none; position:absolute; left:50%; top:50%; width:24px; height:24px; margin:-12px 0 0 -12px; overflow:visible;
  transition:opacity .2s, transform .28s var(--ease); animation:bh-breathe 5s ease-in-out infinite}
.cur.lab .bh{opacity:0; transform:scale(.4)}
.cur.hot .bh{transform:scale(1.4)}
.bh-flow{animation:bh-flow 3.4s linear infinite}
.bh-flow2{animation:bh-flow2 4.6s linear infinite}
@keyframes bh-flow{to{stroke-dashoffset:-13.4}}
@keyframes bh-flow2{to{stroke-dashoffset:11}}
@keyframes bh-breathe{0%,100%{filter:brightness(.92)} 50%{filter:brightness(1.08)}}
:root[data-theme="dark"] .cur .orb{display:none}
:root[data-theme="dark"] .cur .bh{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .cur .orb{display:none}
  :root:not([data-theme="light"]) .cur .bh{display:block}
}
@media (prefers-reduced-motion:reduce){ .cur .orb, .cur .orb::before, .cur .orb::after, .cur .bh, .bh-flow, .bh-flow2{animation:none !important} }
@media (hover:none),(pointer:coarse){.cur{display:none}}

/* Header */
.top{position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter:blur(12px); border-bottom:1px solid transparent; transition:border-color .2s}
.top.scrolled{border-bottom-color:var(--line)}
.top .wrap{display:flex; align-items:center; justify-content:space-between; gap:16px; height:64px}
.brand{font:700 18px/1 var(--display); text-decoration:none; letter-spacing:-.01em}
.nav{display:flex; gap:clamp(12px,2.5vw,28px); align-items:center}
.nav a{font:500 14px/1 var(--body); text-decoration:none; padding:8px 0; position:relative}
.nav a::after{content:""; position:absolute; left:0; right:100%; bottom:2px; height:2px; background:var(--red); transition:right .25s}
.nav a:hover::after,.nav a:focus-visible::after{right:0}
.nav .cta{background:var(--ink); color:var(--paper); padding:10px 14px; border-radius:99px; display:inline-block; transition:background .2s, color .2s}
.nav .cta::after{display:none}
.nav .cta:hover,.nav .cta:focus-visible{background:var(--red); color:#fff}
@media (max-width:560px){.nav .hide-s{display:none}}
/* Language switch: the current one is underlined, the others are quieter. */
.lang{display:flex; align-items:center}
.lang button{background:none; border:0; padding:8px 5px; font:500 12px/1 var(--mono); letter-spacing:.04em; color:var(--muted); cursor:pointer; transition:color .2s}
.lang button[aria-pressed="true"]{color:var(--ink); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px}
.lang button:hover,.lang button:focus-visible{color:var(--red)}

/* Hero */
.hero{padding:clamp(28px,4.5vh,64px) 0 clamp(24px,4vh,48px); min-height:calc(100svh - 64px); display:flex; align-items:center}
.hero .wrap{width:100%}
.static .hero{min-height:0}
.eyebrow{font:500 clamp(13px,1.1vw,15px)/1.4 var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:clamp(14px,2.6vh,32px); opacity:0; animation:fade .7s .1s forwards}
/* Sized by the smaller of width and height, so the whole first screen fits on a laptop too. */
/* Text on the left, the screen on the right. On a phone they stack: name, headline, screen, sentence. */
.hero-grid{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(24px,4vw,72px); align-items:center}
.hero-grid:not(:has(.stage-col)){grid-template-columns:minmax(0,1fr)}
.hero-text{min-width:0}
/* The script shrinks this further if the longest person doesn't fit on one line. */
.h{font-size:clamp(36px,min(6.6vw,13vh),150px); font-weight:800; line-height:.95; letter-spacing:-.045em}
.hero-grid:not(:has(.stage-col)) .h{font-size:clamp(36px,min(8.2vw,13vh),168px)}

/* The stage: one screen at a time, the one that belongs to the person in the headline. */
.stage-col{min-width:0; opacity:0; animation:fade .9s .6s forwards}
.stage{--sh:clamp(300px,min(66vh,44vw),660px); position:relative; height:var(--sh)}
.slide{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:0; margin:0; border:0; background:none; text-decoration:none; cursor:pointer;
  opacity:0; visibility:hidden; pointer-events:none; transform:translateY(26px) scale(.985);
  transition:opacity .45s ease, transform .7s var(--ease), visibility 0s .7s}
div.slide{cursor:default}
.slide.on{opacity:1; visibility:visible; pointer-events:auto; transform:none; transition-delay:.14s,.14s,0s}
.slide.leaving{visibility:visible; transform:translateY(-26px) scale(.985)}
.slide[hidden]{display:none}
.dev{display:block; position:relative; overflow:hidden; background:#141312; border:1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  box-shadow:0 36px 60px -34px rgba(0,0,0,.45); transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:box-shadow .3s}
.dev img{display:block; width:100%; height:100%; object-fit:cover; object-position:top; max-width:none}
.dev.phone{height:calc(100% - 34px); aspect-ratio:9/19; border-radius:clamp(22px,2.4vw,34px); padding:7px}
.dev.phone img{border-radius:clamp(16px,1.9vw,27px)}
/* The desktop frame fits the screen inside it (--ar, its width / height, set once it loads): as wide as the column
   allows, but never so tall that it leaves the stage. The whole screen always shows, nothing cropped. */
.dev.wide{width:min(100%, calc((var(--sh) - 34px - 28px) * var(--ar, 1.5))); border-radius:12px; display:flex; flex-direction:column}
.dev.wide img{flex:none; height:auto; aspect-ratio:var(--ar, 1.5); object-fit:contain}
.dev.wide.secret{width:100%; aspect-ratio:10/7.1; max-height:calc(100% - 34px)}
.bar{display:flex; gap:6px; align-items:center; flex:0 0 26px; padding:0 12px}
.bar i{width:7px; height:7px; border-radius:50%; background:#4a4744}
.slide:focus-visible{outline:0} .slide:focus-visible .dev{outline:2px solid var(--red); outline-offset:4px}
.slide:hover .dev,.slide:focus-visible .dev{box-shadow:0 44px 70px -34px rgba(0,0,0,.6)}
.cap{display:flex; align-items:center; gap:8px; font:500 12px/1.4 var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); min-height:20px}
.cap b{font-weight:500; color:var(--ink)}
.cap i{font-style:normal; transition:transform .25s var(--ease)}
.slide:hover .cap,.slide:focus-visible .cap{color:var(--red)} .slide:hover .cap b,.slide:focus-visible .cap b{color:var(--red)}
.slide:hover .cap i,.slide:focus-visible .cap i{transform:translateX(4px)}
/* Work that's under contract: a dark card with the outline of a page, and a few honest words. */
.vault{position:relative; flex:1; min-height:0; display:grid; place-items:center; background:#1b1a19; color:#f2f0ed; overflow:hidden}
.sk{position:absolute; inset:0; display:grid; grid-template-columns:1fr 1fr 1fr; grid-auto-rows:1fr; gap:10px; padding:14px; filter:blur(3px); opacity:.5}
.sk i{background:#34312f; border-radius:6px}
.sk i:first-child{grid-column:span 2}
.vt{position:relative; display:flex; flex-direction:column; gap:10px; align-items:center; text-align:center; padding:16px 22px; max-width:30ch; font:400 clamp(14px,1.2vw,17px)/1.45 var(--body)}
.vt em{font:500 12px/1 var(--mono); font-style:normal; letter-spacing:.08em; text-transform:uppercase; display:inline-flex; align-items:center; gap:8px}
.vt em::before{content:""; width:7px; height:7px; border-radius:50%; background:#ff4a4f}
/* The markers: one per person. The current one fills up while its screen is showing. */
.ticks{display:flex; align-items:center; justify-content:center; gap:4px; margin-top:10px}
.ticks[hidden],.tick[hidden],.pp[hidden],.stage-col[hidden]{display:none}
.tick{position:relative; flex:0 0 28px; height:28px; padding:0; border:0; background:none; cursor:pointer; transition:flex-basis .4s var(--ease)}
.tick::before,.tick i{content:""; position:absolute; left:2px; right:2px; top:13px; height:2px; background:var(--line); border-radius:2px}
.tick i{background:var(--ink); transform:scaleX(0); transform-origin:left}
.tick.on{flex-basis:56px}
.tick.on i{transform:scaleX(1)}
.ticks.run .tick.on i{animation:tick 3.6s linear both}
@keyframes tick{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tick:hover::before{background:var(--muted)}
.pp{flex:0 0 28px; width:28px; height:28px; margin-left:8px; padding:0; border:1px solid var(--line); border-radius:50%; background:none; cursor:pointer; display:grid; place-items:center; transition:border-color .2s}
.pp i{display:block; width:8px; height:9px; border-left:2.5px solid var(--ink); border-right:2.5px solid var(--ink)}
.pp.paused i{width:0; height:0; border-style:solid; border-width:5px 0 5px 8px; border-color:transparent transparent transparent var(--ink); margin-left:2px}
.pp:hover,.pp:focus-visible{border-color:var(--red)}
@media (max-width:860px){
  .hero-grid{display:flex; flex-direction:column; align-items:stretch; gap:0}
  .hero-text{display:contents}
  /* Tablets and phones: who you are first (eyebrow, headline, the sentence), then the work as proof below it. */
  .eyebrow{order:1} .h{order:2} .sub{order:3} .stage-col{order:4; margin-top:clamp(24px,4vh,40px)} .hint{order:5; align-self:flex-start}
  .h{font-size:clamp(34px,10.5vw,72px)}
  .stage{--sh:clamp(250px,40vh,400px)}
}
/* Phones: the hero sizes to its content (no forced full screen, so nothing falls off the bottom), a bigger headline,
   and a taller preview so the screens are easier to see. The preview fades in just after the text. */
@media (max-width:600px){
  .hero{min-height:0; padding:clamp(20px,4vh,36px) 0 clamp(24px,4vh,36px); align-items:flex-start}
  .h{font-size:clamp(40px,12.2vw,64px)}
  .sub{margin-top:16px; font-size:17px}
  .stage-col{margin-top:28px; animation-delay:1.1s}
  .stage{--sh:clamp(320px,54vh,440px)}
  .hint{margin-top:22px}
}
.w{display:inline-block; overflow:hidden; vertical-align:top; padding:.1em .04em .16em; margin:-.1em -.04em -.16em}
/* The headline simply rises into place, then a red line draws under the second line. */
.w > i{display:inline-block; font-style:normal; transform:translateY(112%); animation:rise 1s var(--ease) forwards; animation-delay:calc(var(--i) * 110ms + 180ms)}
@keyframes rise{to{transform:none}}
@keyframes fade{to{opacity:1}}
@keyframes line{to{transform:scaleX(1)}}
.end{position:relative}
.end::after{content:""; position:absolute; left:.02em; right:.06em; bottom:.04em; height:.07em; background:var(--red); transform:scaleX(0); transform-origin:left; animation:line .9s var(--ease) 1.1s forwards}
/* The people: one word slides out upwards, the next slides in from below. */
.who{display:block; width:fit-content; max-width:100%}
.rw{display:inline-block; transition:transform .38s var(--ease), opacity .38s ease}
.rw.out{transform:translateY(-60%); opacity:0}
.rw.pre{transform:translateY(60%); opacity:0; transition:none}
.sub{font-size:clamp(17px,1.55vw,22px); max-width:44ch; margin-top:clamp(18px,3.4vh,40px); opacity:0; animation:fade .8s 1s forwards}

/* "Scroll down": a small line that keeps travelling down. */
.hint{display:inline-flex; align-items:center; gap:8px; margin-top:clamp(28px,6vh,72px); font:500 13px var(--mono); color:var(--muted); text-decoration:none; opacity:0; animation:fade .8s 1.5s forwards}
.hint .ar{font-size:15px}

.hint:hover,.hint:focus-visible{color:var(--red)}
/* At a glance */
.short{border-top:1px solid var(--line)}
.facts-list{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:0; background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden}
@media (max-width:980px){.facts-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.facts-list{grid-template-columns:minmax(0,1fr)}}
.facts-list div{background:var(--paper); padding:clamp(16px,2vw,24px); display:flex; flex-direction:column; gap:8px}
.facts-list div.wide{grid-column:1 / -1}
.facts-list dt{font:500 12px/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.facts-list dd{margin:0; font:700 clamp(18px,1.6vw,24px)/1.2 var(--display); letter-spacing:-.02em}
.short-act{display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:clamp(20px,3vw,36px)}
.btn{display:inline-block; font:500 15px/1 var(--body); padding:14px 20px; border-radius:99px; text-decoration:none; background:var(--ink); color:var(--paper); border:1px solid var(--ink); transition:background .2s, color .2s, border-color .2s}
.btn.ghost{background:none; color:var(--ink)}
.btn:hover,.btn:focus-visible{background:var(--red); border-color:var(--red); color:#fff}
.next-link{font:500 14px var(--mono); text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:2px}
.next-link:hover,.next-link:focus-visible{color:var(--red); border-color:var(--red)}
.avail{margin-top:14px; font:500 13px var(--mono); color:var(--muted)}

/* Marquee */
.marq{overflow:hidden; border-block:1px solid var(--line); padding:clamp(12px,1.8vw,24px) 0}
.marq .tr{display:flex; width:max-content; animation:marq 46s linear infinite}
/* Outline letters, drawn as a thin shadow all around letters filled with the page colour.
   A real text stroke shows this font's inner joins (in the L, A, P, e); this way only the outside edge shows. */
.marq span{font:800 clamp(34px,6vw,96px)/1 var(--display); letter-spacing:0; white-space:nowrap; color:var(--paper); display:flex; align-items:center;
  text-shadow:1.4px 0 0 var(--ink), -1.4px 0 0 var(--ink), 0 1.4px 0 var(--ink), 0 -1.4px 0 var(--ink),
    1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink),
    1.3px .55px 0 var(--ink), -1.3px .55px 0 var(--ink), 1.3px -.55px 0 var(--ink), -1.3px -.55px 0 var(--ink),
    .55px 1.3px 0 var(--ink), -.55px 1.3px 0 var(--ink), .55px -1.3px 0 var(--ink), -.55px -1.3px 0 var(--ink)}
.marq span::after{content:""; width:.16em; height:.16em; border-radius:50%; background:var(--ink); margin:0 .42em}
@keyframes marq{to{transform:translateX(-50%)}}

/* Sections */
.sec{padding:clamp(56px,9vw,128px) 0}
.sec-head{display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:clamp(20px,3vw,40px)}
.sec-head h2{font-size:clamp(30px,4.6vw,64px); font-weight:800}
.sec-head .more{font:500 13px var(--mono); text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:2px; white-space:nowrap}
.sec-head .more:hover,.sec-head .more:focus-visible{color:var(--red); border-color:var(--red)}
@media (max-width:700px){.sec-head{flex-direction:column; align-items:flex-start; gap:10px}}
[id]{scroll-margin-top:84px}
@media (prefers-reduced-motion:no-preference){html:not(.lenis){scroll-behavior:smooth}}

/* Lead cases */
.rows{list-style:none; margin:0; padding:0; border-top:1px solid var(--ink)}
.row a{display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:clamp(12px,2vw,28px); align-items:baseline; padding:clamp(22px,3.2vw,40px) 0; border-bottom:1px solid var(--line); text-decoration:none; transition:opacity .3s}
.row .n{font:500 13px var(--mono); color:var(--muted)}
.row h3{font-size:clamp(32px,6.6vw,104px); font-weight:800; letter-spacing:-.045em; transition:color .2s, transform .45s var(--ease); width:fit-content}
.row .line{display:block; margin-top:12px; color:var(--muted); font-size:clamp(15px,1.3vw,18px); max-width:52ch; transition:transform .45s var(--ease)}
.row .meta{font:500 13px var(--mono); color:var(--muted); text-align:right; white-space:nowrap}
.row .meta b{display:block; color:var(--ink); font-weight:500}
.row a:hover h3,.row a:focus-visible h3{color:var(--red); transform:translateX(14px)}
.row a:hover .line,.row a:focus-visible .line{transform:translateX(14px)}
@media (hover:hover){.rows:has(a:hover) .row a:not(:hover){opacity:.26}}
.row .thumb{display:none}
@media (max-width:760px){
  .row a{grid-template-columns:minmax(0,1fr)}
  .row .meta{text-align:left; white-space:normal}
  /* On a phone, the screen shows whole: a tall phone screen sits centred at a set height, a wide one fills the width. */
  .row .thumb{display:flex; justify-content:center; margin-top:16px; padding:14px; border-radius:14px; border:1px solid var(--line); background:color-mix(in srgb, var(--ink) 5%, var(--card))}
  .row .thumb img{display:block; width:auto; height:auto; max-width:100%; max-height:min(62vh,440px); border-radius:10px}
}
.float{position:fixed; left:0; top:0; width:auto; pointer-events:none; z-index:15; opacity:0; transition:opacity .25s; border-radius:16px; overflow:hidden; box-shadow:0 30px 70px rgba(0,0,0,.22); background:var(--card); will-change:transform}
.float.on{opacity:1}
/* The whole screen, never cropped: a phone screen is held by its height, a wide one by its width. */
.float img{display:block; width:auto; height:auto; max-width:min(30vw,420px); max-height:min(64vh,600px)}
.float .words{width:min(26vw,360px)}
.float .words{padding:28px; font:700 22px/1.2 var(--display); background:var(--ink); color:var(--paper)}
.float .words::before{content:""; display:block; width:32px; height:4px; background:var(--red); margin-bottom:16px}
@media (hover:none),(max-width:760px){.float{display:none}}

/* More work: tiles open a viewer */
.grid{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(28px,3.4vw,56px) clamp(14px,2vw,28px)}
.tile{grid-column:span var(--span,4); display:flex; flex-direction:column; gap:12px; min-width:0; text-align:left; background:none; border:0; padding:0; cursor:pointer}
/* One height for every tile, so each row lines up whatever the tile's width. */
.tile .pic{position:relative; overflow:hidden; border-radius:16px; background:var(--card); border:1px solid var(--line); height:clamp(240px,25vw,430px)}
.tile .pic img{width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .9s var(--ease)}
/* Every screen is shown whole, never cropped: it sits inside a panel tinted with the project's own colour,
   with a little space around it, rounded corners and a soft shadow. Phone screens follow the same idea. */
.tile .pic{background:color-mix(in srgb, var(--tint, var(--ink)) 11%, var(--card))}
.tile:not(.phone) .pic{display:grid; place-items:center; padding:clamp(14px,7%,40px) clamp(14px,6%,40px)}
.tile:not(.phone) .pic img{width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; border-radius:10px; box-shadow:0 1px 0 rgba(20,19,18,.06), 0 18px 40px -14px rgba(20,19,18,.28)}
.tile.phone .pic{background:color-mix(in srgb, var(--tint, #6f66f0) 13%, var(--card))}
.tile.phone .pic img{position:absolute; left:50%; top:8%; width:auto; height:84%; object-fit:contain; border-radius:14px; box-shadow:0 18px 40px rgba(20,19,18,.18); transform:translateX(-50%)}
.tile:hover .pic img,.tile:focus-visible .pic img{transform:scale(1.045)}
.tile.phone:hover .pic img,.tile.phone:focus-visible .pic img{transform:translateX(-50%) scale(1.045)}
.tile h3{font-size:clamp(20px,1.9vw,28px); font-weight:700; letter-spacing:-.02em; display:flex; justify-content:space-between; align-items:baseline; gap:12px; transition:color .2s}
.tile h3 small{font:500 12px var(--mono); color:var(--muted); letter-spacing:0; white-space:nowrap}
.tile:hover h3,.tile:focus-visible h3{color:var(--red)}
.tile .line{color:var(--muted); font-size:15px; line-height:1.45}
.tile .tag{font:500 12px var(--mono); color:var(--muted)}
.tile .count{position:absolute; left:12px; bottom:12px; font:500 11px var(--mono); background:var(--ink); color:var(--paper); padding:6px 9px; border-radius:99px}
@media (max-width:980px){.tile{grid-column:span 6}.tile.lg{grid-column:span 12}}
@media (max-width:560px){.tile,.tile.lg{grid-column:span 12}.tile .pic,.tile.lg .pic{height:auto; aspect-ratio:4/3}}
.js .tile .pic{clip-path:inset(0 0 100% 0); transition:clip-path 1.1s var(--ease)}
.js .tile.in .pic{clip-path:inset(0)}

dialog.viewer{border:0; padding:0; margin:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; background:var(--paper); color:var(--ink); overflow:hidden}
dialog.viewer[open]{display:flex; flex-direction:column; animation:sheet .55s var(--ease)}
dialog.viewer::backdrop{background:rgba(0,0,0,.5)}
@keyframes sheet{from{transform:translateY(5%); opacity:0}}
.v-head{display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:clamp(16px,2.4vw,32px) var(--gut) clamp(12px,1.6vw,20px)}
.v-head h2{font-size:clamp(34px,5.4vw,84px); font-weight:800; margin-top:8px}
.v-line{color:var(--muted); max-width:60ch; margin-top:10px}
.v-story{max-width:68ch; margin-top:14px; display:grid; gap:8px; font-size:clamp(15px,1.15vw,17px); line-height:1.55}
.v-links{display:flex; flex-wrap:wrap; gap:8px 24px}
.v-link{display:inline-block; margin-top:12px; font-weight:600; text-decoration:none; border-bottom:2px solid var(--ink)}
.v-link:hover,.v-link:focus-visible{color:var(--red); border-color:var(--red)}
.v-close{background:var(--ink); color:var(--paper); border:0; border-radius:99px; padding:12px 16px; font:500 13px var(--mono); cursor:pointer; white-space:nowrap}
.v-close:hover,.v-close:focus-visible{background:var(--red); color:#fff}
.v-strip{flex:1; min-height:0; display:flex; gap:clamp(12px,1.6vw,24px); overflow-x:auto; overflow-y:hidden; padding:8px var(--gut) clamp(16px,2vw,28px); cursor:grab; scrollbar-width:thin}
.v-strip.dragging,.phones.dragging{cursor:grabbing; user-select:none}
.v-strip figure{margin:0; flex:0 0 auto; height:100%; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px}
.v-strip img{height:100%; width:auto; max-width:none; border-radius:14px; border:1px solid var(--line); background:var(--card); -webkit-user-drag:none}
.v-strip figcaption,.ph figcaption,.wd figcaption{font:500 12px/1.4 var(--mono); color:var(--muted)}
/* The real website, running inside a MacBook Pro: the visitor scrolls, clicks and plays as if they were on it.
   The site is laid out at a laptop's width (1512 px) and scaled down to fit the screen. */
.v-live{flex:1; min-height:0; container-type:size; display:grid; place-items:center; padding:4px var(--gut) clamp(14px,2vw,26px)}
.v-mac{width:min(100cqw, calc((100cqh - 34px) * 1.47)); display:flex; flex-direction:column; align-items:center}
.mac-lid{position:relative; width:91%; padding:1.3% 1.3% 1.6%; border-radius:clamp(10px,1.4cqw,20px) clamp(10px,1.4cqw,20px) 4px 4px;
  background:#0c0c0d; box-shadow:0 0 0 2px #2e2f31, 0 0 0 3px #4a4b4e}
.mac-lid::before{content:""; position:absolute; z-index:1; top:1.3%; left:50%; width:11%; height:3.2%; transform:translateX(-50%); background:#0c0c0d; border-radius:0 0 8px 8px}
.mac-scr{position:relative; aspect-ratio:1512/982; overflow:hidden; background:#111; border-radius:3px}
.mac-scr iframe{position:absolute; left:0; top:0; width:1512px; height:982px; border:0; transform-origin:0 0; background:#111}
.mac-base{position:relative; width:100%; height:clamp(9px,1.5cqw,18px); border-radius:2px 2px 14px 14px / 2px 2px 100% 100%;
  background:linear-gradient(#cfd0d3, #9fa1a5 55%, #6d6f73); box-shadow:0 18px 30px -16px rgba(0,0,0,.55)}
.mac-base::before{content:""; position:absolute; top:0; left:50%; width:14%; height:45%; transform:translateX(-50%); background:linear-gradient(#8d8f93,#b4b6b9); border-radius:0 0 8px 8px}
.v-live-note{margin-top:14px; font:500 12px/1.4 var(--mono); color:var(--muted); text-align:center}
html.in-frame .cur{opacity:0}

/* Quotes */
/* Kind words: one recommendation at a time, the person under it, then everyone's faces to move between them. */
.rec-stage{display:grid}
.rec{grid-area:1/1; margin:0; display:flex; flex-direction:column; justify-content:space-between; gap:clamp(24px,3.5vw,44px);
  opacity:0; visibility:hidden; transform:translateX(28px); transition:opacity .4s ease, transform .6s var(--ease), visibility 0s .6s}
.rec.from-left{transform:translateX(-28px)}
.rec.on{opacity:1; visibility:visible; transform:none; transition-delay:0s}
.rec blockquote{margin:0}
.rec p{font:700 clamp(26px,3.6vw,56px)/1.1 var(--display); letter-spacing:-.03em; max-width:24em; text-wrap:pretty}
.rec p::before{content:"\201C"; display:block; font-size:1.5em; line-height:.8; height:.55em; color:var(--muted)}
.rec-by{display:flex; align-items:center; gap:16px}
.av{position:relative; flex:0 0 auto; width:56px; height:56px; border-radius:50%; overflow:hidden; background:var(--line); display:grid; place-items:center}
.av img{width:100%; height:100%; object-fit:cover; display:block}
.av.ini::after,.av:not(:has(img))::after{content:attr(data-ini); font:600 15px/1 var(--body); color:var(--ink)}
.rec-who{display:flex; flex-direction:column; gap:2px; font-size:15px; line-height:1.4; color:var(--muted)}
.rec-who b{font-weight:600; color:var(--ink)}
.rec-who a{text-decoration:none} .rec-who a:hover,.rec-who a:focus-visible{color:var(--red)}
.rec-tn{font:500 12px/1.4 var(--mono); letter-spacing:.02em}
.rec-nav{position:relative; display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:clamp(36px,5vw,64px); padding-top:24px; border-top:1px solid var(--line)}
/* While it moves by itself, a line fills the top edge to show how long until the next one. */
.rec-time{position:absolute; left:0; right:0; top:-1px; height:2px; overflow:hidden; pointer-events:none}
.rec-time i{display:block; height:100%; background:var(--ink); transform:scaleX(0); transform-origin:left; opacity:0; transition:opacity .3s}
.recs.auto .rec-time i{opacity:1}
@keyframes rec-time{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.rec-pp i{display:block; width:9px; height:11px; margin:auto; border-left:3px solid currentColor; border-right:3px solid currentColor}
.rec-pp.paused i{width:0; height:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor; margin-left:calc(50% - 3px)}
.rec-pp[hidden]{display:none}
.faces{display:flex; gap:6px; min-width:0; overflow-x:auto; scrollbar-width:none; padding:4px; margin:-4px}
.faces::-webkit-scrollbar{display:none}
.face{flex:0 0 auto; padding:0; border:0; background:none; border-radius:50%; cursor:pointer; outline-offset:2px}
.face .av{width:44px; height:44px; opacity:.45; filter:grayscale(1); transition:opacity .25s, filter .25s, box-shadow .25s}
.face:hover .av,.face:focus-visible .av{opacity:.85; filter:none}
.face.on .av{opacity:1; filter:none; box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--ink)}
.face .av.ini::after,.face .av:not(:has(img))::after{font-size:13px}
.rec-ctrl{display:flex; align-items:center; gap:10px; flex:0 0 auto}
.rec-count{font:500 13px var(--mono); color:var(--muted); margin-right:8px; font-variant-numeric:tabular-nums}
.rec-count b{color:var(--ink); font-weight:500}
.rec-arrow{width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:none; font-size:18px; cursor:pointer; transition:border-color .2s, background .2s, color .2s}
.rec-arrow:hover,.rec-arrow:focus-visible{border-color:var(--ink); background:var(--ink); color:var(--paper)}
@media (max-width:700px){
  .rec-nav{flex-direction:column; align-items:stretch; gap:16px}
  .rec-ctrl{justify-content:space-between}
  .av{width:48px; height:48px}
}

/* About */
.about-top{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:clamp(24px,5vw,88px); align-items:start}
.about-top.solo{grid-template-columns:minmax(0,1fr)}
.portrait{margin:0; border-radius:18px; overflow:hidden; aspect-ratio:4/5; background:var(--card); border:1px solid var(--line); position:sticky; top:96px}
.portrait img{width:100%; height:100%; object-fit:cover; object-position:50% 38%}
@media (max-width:860px){.about-top{grid-template-columns:minmax(0,1fr)} .portrait{max-width:320px; position:static}}
.about .lead{font:700 clamp(22px,2.6vw,40px)/1.18 var(--display); letter-spacing:-.025em; max-width:26em}
/* A few things about me: short title, one or two sentences. With an odd number, the last one takes the full width. */
.things li:last-child:nth-child(odd){grid-column:1/-1}
.things{list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 clamp(20px,3vw,48px); counter-reset:th}
@media (max-width:640px){.things{grid-template-columns:minmax(0,1fr)}}
.things li{border-top:1px solid var(--line); padding:18px 0 22px; display:flex; flex-direction:column; gap:6px}
.things li::before{counter-increment:th; content:"0" counter(th); font:500 12px var(--mono); color:var(--muted)}
.things b{font:700 clamp(19px,1.6vw,24px)/1.2 var(--display); letter-spacing:-.02em}
.things span{color:var(--muted)}

/* The reggae line. Hovering it turns the whole About section Rasta: green, gold and red, and a riddim plays. */
.about{--rs-g:#1e9e55; --rs-y:#f2c230; --rs-r:#d93a2b; position:relative; isolation:isolate}
.about::before{content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0; transition:opacity .6s ease;
  background:radial-gradient(60% 50% at 12% 18%, color-mix(in srgb,var(--rs-g) 22%,transparent), transparent 70%),
    radial-gradient(55% 45% at 85% 45%, color-mix(in srgb,var(--rs-y) 16%,transparent), transparent 70%),
    radial-gradient(60% 50% at 30% 92%, color-mix(in srgb,var(--rs-r) 18%,transparent), transparent 70%)}
.about::after{content:""; position:absolute; left:0; right:0; top:0; height:6px; pointer-events:none; transform:scaleX(0); transform-origin:left; transition:transform .7s cubic-bezier(.2,.8,.2,1);
  background:linear-gradient(90deg, var(--rs-g) 0 33.3%, var(--rs-y) 33.3% 66.6%, var(--rs-r) 66.6%)}
.about.rasta::before{opacity:1}
.about.rasta::after{transform:scaleX(1)}
.about .portrait, .things li::before, .things b, .about .lead{transition:color .5s, border-color .5s, box-shadow .5s}
.about.rasta .portrait{border-color:var(--rs-y); box-shadow:0 0 0 4px var(--rs-g), 0 0 0 8px var(--rs-y), 0 0 0 12px var(--rs-r)}
.about.rasta .things li{border-top-color:color-mix(in srgb,var(--rs-y) 45%,transparent)}
.about.rasta .things li:nth-child(3n+1)::before{color:var(--rs-g)}
.about.rasta .things li:nth-child(3n+2)::before{color:var(--rs-y)}
.about.rasta .things li:nth-child(3n)::before{color:var(--rs-r)}
.about.rasta .lead .sw.on:nth-child(3n+1){color:var(--rs-g)}
.about.rasta .lead .sw.on:nth-child(3n+2){color:var(--rs-y)}
.about.rasta .lead .sw.on:nth-child(3n){color:var(--rs-r)}
/* The reggae line is a real button inside the list item, styled to look exactly like the other lines. */
.about.rasta .riddim b{background:linear-gradient(90deg, var(--rs-g), var(--rs-y) 50%, var(--rs-r)); -webkit-background-clip:text; background-clip:text; color:transparent}
/* The play button below the reggae line: a small pill. A play triangle when idle; pause bars and moving levels while playing. */
.rd-play{all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:9px; width:fit-content; margin-top:8px; padding:8px 14px 8px 12px;
  border:1px solid var(--line); border-radius:99px; font:500 12px var(--mono); color:var(--ink); letter-spacing:.02em; cursor:pointer; transition:border-color .2s, background .2s}
.rd-play:hover{border-color:var(--ink)}
.rd-play:focus-visible{outline:2px solid var(--ink); outline-offset:3px}
.about.rasta .rd-play{border-color:var(--rs-y)}
.rd-ic{display:block; width:0; height:0; border-left:8px solid currentColor; border-top:5px solid transparent; border-bottom:5px solid transparent}
.riddim.on .rd-ic{width:8px; height:10px; border:0; background:linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px)}
.rd-eq{display:none}
.riddim.on .rd-eq{display:inline-flex}
.riddim.on .rd-eq{align-items:flex-end; gap:2px; height:12px}
.rd-eq s{display:block; width:3px; height:4px; border-radius:1px; background:currentColor; text-decoration:none}
.about.rasta .rd-eq s:nth-child(1){background:var(--rs-g)} .about.rasta .rd-eq s:nth-child(2){background:var(--rs-y)}
.about.rasta .rd-eq s:nth-child(3){background:var(--rs-r)} .about.rasta .rd-eq s:nth-child(4){background:var(--rs-g)}
.riddim.on .rd-eq s{animation:rd-bounce .81s ease-in-out infinite alternate}
.riddim.on .rd-eq s:nth-child(2){animation-delay:-.2s} .riddim.on .rd-eq s:nth-child(3){animation-delay:-.5s} .riddim.on .rd-eq s:nth-child(4){animation-delay:-.65s}
@keyframes rd-bounce{from{height:3px} to{height:12px}}
@media (prefers-reduced-motion:reduce){.riddim.on .rd-eq s{animation:none; height:8px} .about::after{transition:none}}
.scrub.live .sw{opacity:.16; transition:opacity .4s, color .5s}
.scrub.live .sw.on{opacity:1}
.two{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(24px,5vw,96px)}
.two > *{min-width:0}
@media (max-width:860px){.two{grid-template-columns:minmax(0,1fr)}}
.about .text{display:flex; flex-direction:column; gap:18px; font-size:clamp(17px,1.4vw,19px); max-width:60ch}
.about .teach{border-left:3px solid var(--ink); padding-left:16px; font-weight:500}
.path{list-style:none; margin:clamp(40px,6vw,88px) 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); border-top:1px solid var(--ink)}
.path li{padding:16px 16px 0 0; display:flex; flex-direction:column; gap:4px; position:relative}
.path li::before{content:""; position:absolute; top:-5px; left:0; width:9px; height:9px; border-radius:50%; background:var(--ink)}
.path li:last-child::before{background:var(--paper); border:2px solid var(--ink); width:11px; height:11px; top:-6px}
.path .y{font:500 13px var(--mono); color:var(--muted)}
.path b{font:700 19px/1.2 var(--display); transition:color .2s}
.path .r{color:var(--muted); font-size:15px}
.path a{display:flex; flex-direction:column; gap:4px; text-decoration:none}
.path .go{font:500 12px var(--mono); margin-top:6px; border-bottom:1px solid var(--ink); align-self:flex-start; padding-bottom:1px}
.path a:hover b,.path a:focus-visible b,.path a:hover .go,.path a:focus-visible .go{color:var(--red); border-color:var(--red)}
@media (max-width:700px){.path{grid-template-columns:1fr; border-top:0; border-left:1px solid var(--ink)} .path li{padding:0 0 22px 20px} .path li::before{top:6px; left:-5px}}
/* Languages are plain words, not pills: they're not buttons, so they don't look like buttons. */
.langs{list-style:none; padding:0; margin:12px 0 0; font:700 clamp(22px,2.3vw,34px)/1.2 var(--display); letter-spacing:-.02em; max-width:18em}
.langs li{display:inline}
.langs li:not(:last-child)::after{content:", "}
.langs li:last-child::after{content:"."}
.langs.learning{color:var(--muted)}
.steps{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:clamp(16px,2.5vw,40px); counter-reset:s}
.steps li{border-top:1px solid var(--ink); padding-top:16px; display:flex; flex-direction:column; gap:8px}
.steps li::before{counter-increment:s; content:"0" counter(s); font:500 13px var(--mono); color:var(--muted)}
.steps b{font:700 clamp(22px,2vw,30px)/1.1 var(--display); letter-spacing:-.02em}
.steps span{color:var(--muted)}

/* Contact */
.contact{padding:clamp(72px,12vw,180px) 0 36px; border-top:1px solid var(--ink)}
.contact h2{font-size:clamp(56px,15vw,260px); font-weight:800; letter-spacing:-.06em; line-height:.86}
.contact h2 a{text-decoration:none; transition:color .25s}
.contact h2 a:hover,.contact h2 a:focus-visible{color:var(--red)}
.c-line{font-size:clamp(18px,1.7vw,24px); max-width:34em; margin-top:clamp(20px,3vw,36px)}
.c-row{display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:clamp(20px,3vw,36px)}
.mail{font:700 clamp(20px,2.6vw,36px)/1.1 var(--display); text-decoration:none; border-bottom:3px solid var(--ink); padding-bottom:4px; transition:color .2s, border-color .2s; word-break:break-all}
.mail:hover,.mail:focus-visible{color:var(--red); border-color:var(--red)}
/* Write to me (filled), Open in Gmail, Copy email: one look, one size. */
.c-acts{display:flex; flex-wrap:wrap; gap:10px; margin-top:clamp(18px,2.4vw,28px)}
.c-btn{display:inline-flex; align-items:center; min-height:44px; background:none; border:1px solid var(--ink); border-radius:99px; padding:10px 18px; font:500 14px var(--body); color:var(--ink); text-decoration:none; cursor:pointer; transition:background .2s, color .2s, border-color .2s}
.c-btn.main{background:var(--ink); color:var(--paper)}
.c-btn:hover,.c-btn:focus-visible{background:var(--red); border-color:var(--red); color:#fff}
.foot{display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 24px; margin-top:clamp(48px,8vw,110px); padding-top:20px; border-top:1px solid var(--line); font:500 13px var(--mono); color:var(--muted)}
.foot nav{display:flex; gap:20px}
.foot a{text-decoration:none}
.foot a:hover,.foot a:focus-visible{color:var(--red)}

/* Case page */
.c-hero{padding:clamp(36px,6vw,88px) 0 0}
.back{font:500 13px var(--mono); color:var(--muted); text-decoration:none}
.back:hover,.back:focus-visible{color:var(--red)}
.c-hero h1{font-size:clamp(48px,11vw,190px); font-weight:800; letter-spacing:-.055em; line-height:.9; margin-top:clamp(16px,2.5vw,32px); width:fit-content}
.c-hero .sub{font:600 clamp(20px,2.4vw,34px)/1.2 var(--display); letter-spacing:-.02em; max-width:26em; margin-top:clamp(16px,2vw,28px)}
.c-meta{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:clamp(16px,2.4vw,40px); margin-top:clamp(32px,5vw,72px); padding-top:20px; border-top:1px solid var(--ink)}
.c-meta div{display:flex; flex-direction:column; gap:6px}
.c-meta b{font-weight:500}
.results{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:clamp(16px,3vw,48px); padding:clamp(40px,7vw,104px) 0 0}
.results div{display:flex; flex-direction:column; gap:10px}
.results strong{font:800 clamp(72px,13vw,220px)/.84 var(--display); letter-spacing:-.06em; font-variant-numeric:tabular-nums}
.results span{max-width:22ch; font-size:clamp(16px,1.3vw,19px)}
.results-note{font:500 12px var(--mono); color:var(--muted); margin-top:16px}
.context{font:600 clamp(22px,2.7vw,42px)/1.18 var(--display); letter-spacing:-.025em; max-width:28em; padding:clamp(48px,8vw,120px) 0}
/* The company link sits right under the paragraph; the small note under it is quieter. */
.c-site{display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin-top:calc(clamp(48px,8vw,120px) * -1 + 20px); padding-bottom:clamp(48px,8vw,120px)}
.c-site a{font-weight:600; text-decoration:none; border-bottom:2px solid var(--ink)}
.c-site a:hover,.c-site a:focus-visible{color:var(--red); border-color:var(--red)}
.c-site span{font:500 12px/1.5 var(--mono); color:var(--muted)}
.block{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:clamp(20px,4vw,80px); padding:clamp(40px,7vw,112px) 0; border-top:1px solid var(--line)}
.block .txt{position:sticky; top:96px; align-self:start; display:flex; flex-direction:column; gap:18px}
.block h2{font-size:clamp(28px,3.6vw,52px); font-weight:800}
.block p{font-size:clamp(17px,1.35vw,19px); max-width:46ch}
.block .media{min-width:0}
.block.solo .txt{position:static}
.block.solo .media p{font:600 clamp(20px,2.2vw,32px)/1.25 var(--display); letter-spacing:-.02em; max-width:30em}
@media (max-width:900px){.block{grid-template-columns:minmax(0,1fr)}.block .txt{position:static}}
.block.rule{background:var(--ink); color:var(--paper); border:0; border-radius:clamp(18px,2vw,32px); padding:clamp(28px,5vw,80px); margin:clamp(8px,2vw,24px) 0 clamp(8px,2vw,24px)}
.block.rule + .block{border-top:0}
.block.rule h2::before{content:""; display:block; width:44px; height:5px; background:var(--red); margin-bottom:22px}
.block.rule .txt p{font:600 clamp(19px,1.7vw,25px)/1.32 var(--display); letter-spacing:-.01em}
.block.rule figcaption{color:color-mix(in srgb, var(--paper) 62%, transparent)}
.block.rule .scr{border-color:color-mix(in srgb, var(--paper) 18%, transparent)}

/* Phone screens: one height for all. Taller screens scroll by themselves inside the frame. */
.phones{display:flex; gap:clamp(12px,1.6vw,24px); overflow-x:auto; scrollbar-width:none; cursor:grab; margin-right:calc(var(--gut) * -1); padding-right:var(--gut)}
.phones::-webkit-scrollbar{display:none}
.block.rule .phones{margin-right:0; padding-right:0}
.ph{flex:0 0 auto; margin:0; display:flex; flex-direction:column; gap:12px; width:calc(var(--ph) * 9 / 16)}
.scr{display:block; width:100%; padding:0; height:var(--ph); overflow:hidden; border-radius:clamp(20px,2vw,30px); border:1px solid var(--line); background:var(--card); cursor:zoom-in}
.zoom{transition:border-color .2s}
.zoom:hover,.zoom:focus-visible{border-color:var(--red)}
.frame:has(.zoom:hover),.frame:has(.zoom:focus-visible){border-color:var(--red)}
.scr img,.shot img{width:100%; -webkit-user-drag:none}
.pan img{animation:pan var(--dur,8s) ease-in-out infinite alternate; animation-play-state:paused; will-change:transform}
.inview .pan img{animation-play-state:running}
@keyframes pan{0%,14%{transform:translateY(0)} 86%,100%{transform:translateY(var(--pan,0))}}
@media (max-width:560px){:root{--ph:440px}}
.wides{display:flex; flex-direction:column; gap:clamp(20px,3vw,44px)}
.wd{margin:0; display:flex; flex-direction:column; gap:12px}
.frame{border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--card); transition:border-color .2s}
.frame::before{content:""; display:block; height:30px; border-bottom:1px solid var(--line);
  background:radial-gradient(circle at 16px 15px, var(--line) 4px, transparent 5px), radial-gradient(circle at 32px 15px, var(--line) 4px, transparent 5px), radial-gradient(circle at 48px 15px, var(--line) 4px, transparent 5px)}
.shot{display:block; width:100%; padding:0; border:0; background:none; aspect-ratio:16/10; overflow:hidden; cursor:zoom-in}

.stories{list-style:none; margin:0; padding:0; counter-reset:st; border-top:1px solid var(--ink)}
.stories li{display:grid; grid-template-columns:64px minmax(0,5fr) minmax(0,7fr); gap:clamp(12px,3vw,56px); padding:clamp(24px,3.6vw,52px) 0; border-bottom:1px solid var(--line)}
.stories li::before{counter-increment:st; content:"0" counter(st); font:500 13px var(--mono); color:var(--muted); padding-top:.5em}
.stories h3{font-size:clamp(24px,2.8vw,42px); font-weight:800; line-height:1.04}
.stories p{color:var(--muted); font-size:clamp(16px,1.3vw,19px); max-width:56ch}
.stories h3 small{display:block; margin-top:10px; font:500 13px var(--mono); letter-spacing:.02em; color:var(--muted)}
/* The link under a story: same look whether it opens a page or a tile's screens. */
.s-go{display:inline-block; margin-top:14px; padding:0 0 2px; background:none; border:0; border-bottom:2px solid var(--ink); font:600 15px var(--body); color:var(--ink); text-decoration:none; cursor:pointer}
.s-go:hover,.s-go:focus-visible{color:var(--red); border-color:var(--red)}
@media (max-width:860px){.stories li{grid-template-columns:minmax(0,1fr); gap:10px}.stories li::before{padding:0}}
.closing{padding:clamp(40px,7vw,104px) 0}
.next{display:block; text-decoration:none; padding:clamp(48px,8vw,120px) 0; border-top:1px solid var(--ink); overflow:hidden}
.next .label{display:block; margin-bottom:14px}
.next strong{display:block; font:800 clamp(44px,10vw,170px)/.9 var(--display); letter-spacing:-.055em; transition:color .2s, transform .5s var(--ease)}
.next:hover strong,.next:focus-visible strong{color:var(--red); transform:translateX(18px)}

/* Reveal on scroll */
/* Logos: grey and quiet until someone points at one, then in full colour. Same treatment everywhere. */
.logos-label{margin-top:clamp(36px,5vw,64px)}
.logos{list-style:none; padding:0; margin:14px 0 0; display:flex; flex-wrap:wrap; align-items:center; gap:14px clamp(28px,4vw,56px)}
.logo{display:block; padding:8px 0; margin:0; background:none; border:0; cursor:pointer}
.logo img,.s-logo,.c-logo{display:block; height:26px; width:auto; max-width:150px; object-fit:contain; filter:grayscale(1) contrast(1.1); opacity:.62; mix-blend-mode:multiply; transition:filter .35s ease, opacity .35s ease, transform .35s var(--ease)}
.logo img.sq,.s-logo.sq{height:34px}
.logo:hover img,.logo:focus-visible img{filter:none; opacity:1; transform:translateY(-3px)}
.s-logo{height:22px; margin-bottom:14px}
.s-logo.sq{height:28px}
.stories li:hover .s-logo{filter:none; opacity:1}
.c-logo{height:30px; margin:clamp(20px,3vw,36px) 0 clamp(12px,1.6vw,18px); opacity:.85}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) :is(.logo img,.s-logo,.c-logo){filter:grayscale(1) invert(1) brightness(1.2); mix-blend-mode:screen}
  :root:not([data-theme="light"]) :is(.logo:hover img,.logo:focus-visible img,.stories li:hover .s-logo){filter:grayscale(1) invert(1) brightness(1.6)}
}
:root[data-theme="dark"] :is(.logo img,.s-logo,.c-logo){filter:grayscale(1) invert(1) brightness(1.2); mix-blend-mode:screen}
:root[data-theme="dark"] :is(.logo:hover img,.logo:focus-visible img,.stories li:hover .s-logo){filter:grayscale(1) invert(1) brightness(1.6)}

/* The theme switch: a sun that becomes a moon. Its rays fold in, and a shadow slides over the disc. */
/* The astronaut (dark theme only) and what it says when it reaches the pointer. */
.astro{position:fixed; left:0; top:0; width:112px; height:112px; z-index:35; cursor:grab; touch-action:none; opacity:0; will-change:transform; filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}
.astro img{width:100%; height:100%; display:block; -webkit-user-drag:none; user-select:none}
.astro-body{position:absolute; inset:0; display:block; transform-origin:50% 55%}
.astro canvas{display:block; width:100%; height:100%}
.astro.is-3d{filter:drop-shadow(0 12px 20px rgba(0,0,0,.4))}
/* A soft halo that slowly pulses behind it. */
.astro-glow{position:absolute; inset:-30%; border-radius:50%; background:radial-gradient(circle, rgba(140,180,255,.22), rgba(140,180,255,0) 62%); animation:astro-glow 3.2s ease-in-out infinite}
@keyframes astro-glow{0%,100%{opacity:.55; transform:scale(.92)} 50%{opacity:1; transform:scale(1.06)}}
/* A glint of light that crosses the visor every few seconds. */
.astro-visor{position:absolute; left:26%; top:10%; width:36%; height:34%; border-radius:50%; overflow:hidden; mix-blend-mode:screen; pointer-events:none}
.astro-visor::after{content:""; position:absolute; top:-20%; bottom:-20%; width:35%; left:-60%; background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0)); transform:skewX(-12deg); animation:astro-glint 4.2s ease-in-out 1.2s infinite}
@keyframes astro-glint{0%{left:-60%} 28%{left:120%} 100%{left:120%}}
/* Jetpack puffs. */
/* Cartoon puffs: little round clouds with a warm core, like a toy jetpack. */
/* The little cloud a visitor vanishes in when the theme changes: soft puffs, pale with a grey edge so they show by day and by night. */
/* The visitor, its card and its cloud each get their own layer in the theme switch, so they aren't frozen in the
   picture of the old page while the new theme grows from the button: the vanishing cloud shows straight away. */
.astro{view-transition-name:astro-visitor} .astro-say{view-transition-name:astro-card}
.astro-fx{position:fixed; inset:0; z-index:36; pointer-events:none; view-transition-name:astro-fx}
.astro-cloud{position:fixed; left:0; top:0; z-index:36; border-radius:50%; pointer-events:none; opacity:0; filter:blur(1.5px);
  background:radial-gradient(circle at 42% 38%, #fff 0 30%, rgba(236,233,228,.9) 45%, rgba(170,166,160,.45) 68%, rgba(170,166,160,0) 74%)}
.astro-puff{position:fixed; left:0; top:0; z-index:34; border-radius:50%; background:radial-gradient(circle at 40% 40%, #fff 0 35%, rgba(255,214,160,.85) 36% 55%, rgba(255,170,110,0) 72%); pointer-events:none; transition:transform 1.2s cubic-bezier(.2,.7,.3,1), opacity 1.2s ease}
.astro.wave img{animation:astro-wave .9s var(--ease)}
.astro.held{cursor:grabbing}
.astro-say.short{width:auto; max-width:250px; padding:12px 16px}
/* Phones: the visitor's card spans the screen, minus a 16px margin each side. */
@media (max-width:599px){ body .astro-say{width:calc(100vw - 32px)} body .astro-say.short{width:auto; max-width:calc(100vw - 32px)} }
.astro-line{font-weight:600}
.astro-p.key{font-weight:700; font-size:15px}
@keyframes astro-wave{0%,100%{transform:none} 25%{transform:rotate(-14deg)} 50%{transform:rotate(10deg)} 75%{transform:rotate(-6deg)}}
.astro-say{position:fixed; left:0; top:0; z-index:36; width:280px; padding:16px 18px; border-radius:16px 16px 16px 4px; background:var(--ink); color:var(--paper);
  display:flex; flex-direction:column; gap:6px; font-size:14px; line-height:1.45; box-shadow:0 20px 50px -20px rgba(0,0,0,.6);
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .35s ease, visibility 0s .35s}
.astro-say.on{opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s}
.astro-say b{font:500 12px/1.3 var(--mono); letter-spacing:.08em; text-transform:uppercase}
.astro-acts{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px}
.astro-go{display:inline-flex; padding:9px 14px; border-radius:99px; background:var(--red); color:#fff; text-decoration:none; font-weight:600; font-size:13px}
.astro-go:hover,.astro-go:focus-visible{background:var(--paper); color:var(--ink)}
.astro-bye{background:none; border:0; color:inherit; opacity:.7; font:500 12px var(--mono); cursor:pointer; padding:6px}
.astro-bye:hover,.astro-bye:focus-visible{opacity:1; text-decoration:underline}

/* Sand: one canvas fixed behind every page. */
.dust{position:fixed; inset:0; width:100vw; height:100vh; z-index:-1; pointer-events:none}
.brand{white-space:nowrap}

/* The logo: square and letters in the text colour, a thin page-colour line keeps the A and Z apart. */
.mark{display:block; overflow:visible}
.mark .m-frame{stroke:currentColor; stroke-dasharray:1; stroke-dashoffset:0}
.mark .m-a,.mark .m-z{fill:currentColor; stroke:var(--paper); stroke-width:1; transform-box:fill-box; transform-origin:center}
.brand{display:inline-flex; align-items:center; gap:10px}
/* Very narrow phones: just the logo mark (the link still says the name to screen readers), so the menu fits on one line. */
@media (max-width:400px){ .brand span{display:none} }
.brand .mark{width:26px; height:26px; flex:0 0 auto}
/* On hover: the square slowly draws itself again while the A lifts a little and the Z eases sideways and back. */
.brand:hover .m-frame,.brand:focus-visible .m-frame{animation:m-draw 1.3s cubic-bezier(.45,0,.2,1)}
.brand:hover .m-a,.brand:focus-visible .m-a{animation:m-lift 1.1s cubic-bezier(.45,0,.2,1)}
.brand:hover .m-z,.brand:focus-visible .m-z{animation:m-sway 1.1s cubic-bezier(.45,0,.2,1) .1s}
@keyframes m-draw{from{stroke-dashoffset:1} to{stroke-dashoffset:0}}
@keyframes m-lift{0%,100%{transform:none} 45%{transform:translateY(-14%)}}
@keyframes m-sway{0%,100%{transform:none} 45%{transform:translateX(8%)}}
@keyframes m-up{from{transform:translateY(28%); opacity:0; filter:blur(2px)}}
@keyframes m-in{from{transform:translateX(18%); opacity:0; filter:blur(2px)}}

/* Opening screen: the logo draws itself, then the page lifts away like a curtain. */
.loader{position:fixed; inset:0; z-index:300; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(22px,3.4vh,34px); background:var(--paper); color:var(--ink); clip-path:inset(0 0 0 0); transition:clip-path 1.1s cubic-bezier(.65,0,.25,1)}
.loader .mark{width:clamp(60px,8vw,92px); height:auto; aspect-ratio:1; transition:transform 1.1s cubic-bezier(.65,0,.25,1), opacity .8s ease}
.loader .m-frame{animation:m-draw 1.6s cubic-bezier(.45,0,.2,1) .15s both}
.loader .m-a{animation:m-up 1.1s cubic-bezier(.3,.7,.2,1) .95s both}
.loader .m-z{animation:m-in 1.1s cubic-bezier(.3,.7,.2,1) 1.2s both}
/* The welcome line, word by word, after the mark. */
.ld-line{margin:0; font:500 clamp(13px,1.1vw,15px)/1.5 var(--mono); letter-spacing:.04em; color:var(--muted); text-align:center; padding:0 24px; transition:opacity .6s ease, transform 1.1s cubic-bezier(.65,0,.25,1)}
.ld-line span{display:inline-block; opacity:0; transform:translateY(6px); filter:blur(3px); animation:ld-word .9s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(1.35s + var(--d) * 90ms)}
@keyframes ld-word{to{opacity:1; transform:none; filter:none}}
.loader.quick .m-frame{animation-duration:.8s; animation-delay:0s}
.loader.quick .m-a{animation-duration:.6s; animation-delay:.3s}
.loader.quick .m-z{animation-duration:.6s; animation-delay:.42s}
.loader.out{clip-path:inset(0 0 100% 0)}
.loader.out .mark{transform:translateY(-28px); opacity:0}
.loader.out .ld-line{transform:translateY(-18px); opacity:0}
html.loading{overflow:hidden}
/* While it shows, the first screen waits, so its own animation plays when the page appears. */
html.loading .hero,html.loading .hero *{animation-play-state:paused !important}
html.loading .reveal.in{opacity:0; transform:translateY(22px)}
html.loading .split.in .ww > span{transform:translateY(135%)}
@media (max-width:420px){.top .wrap{gap:8px} .nav{gap:8px} .lang button{padding:8px 3px} .theme{width:32px} .nav .cta{padding:9px 12px}}
/* Music credit cards: hover (or tab to) a music button and a small card says what's playing, who made it, and links to
   it on YouTube. The card stays open while the pointer moves onto it, so the link can be clicked. */
.mwrap{position:relative; display:inline-flex}
.mcard{position:absolute; top:calc(100% + 10px); right:-8px; z-index:70; min-width:190px; max-width:250px; padding:12px 14px; border-radius:12px;
  background:var(--ink); color:var(--paper); display:flex; flex-direction:column; gap:2px; text-align:left; white-space:normal;
  font:400 13px/1.4 var(--body); box-shadow:0 18px 40px -18px rgba(0,0,0,.55);
  opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .2s, transform .2s var(--ease), visibility 0s .2s}
.mcard::before{content:""; position:absolute; left:0; right:0; top:-12px; height:12px}   /* a bridge, so moving onto the card keeps it open */
.mcard:empty{display:none}
.mwrap:hover .mcard, .mwrap:focus-within .mcard{opacity:1; visibility:visible; transform:none; transition-delay:0s}
.mcard .mc-k{font:500 10.5px/1.4 var(--mono); letter-spacing:.06em; text-transform:uppercase; opacity:.6; margin-bottom:2px}
.mcard b{font:700 14px/1.3 var(--display); letter-spacing:-.01em}
.mcard .mc-a{opacity:.8}
.mcard a{margin-top:6px; color:inherit; font:500 12px var(--mono); text-decoration:underline; text-underline-offset:3px; width:fit-content}
.mcard a:hover,.mcard a:focus-visible{color:var(--red)}
.riddim .mcard{left:0; right:auto; top:calc(100% + 8px)}
/* Background music button in the header: four sound bars, still and faded when paused, dancing while it plays. */
.bgm{display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:none; color:var(--ink); cursor:pointer; transition:color .2s, transform .2s}
.bgm:hover,.bgm:focus-visible{color:var(--red)}
.bgm:active{transform:scale(.9)}
.bgm-bars{display:flex; align-items:flex-end; gap:2px; height:14px; opacity:.55; transition:opacity .3s}
.bgm-bars i{display:block; width:2.5px; border-radius:1px; background:currentColor; height:4px; transition:height .3s}
.bgm-bars i:nth-child(2){height:7px} .bgm-bars i:nth-child(3){height:5px} .bgm-bars i:nth-child(4){height:3px}
.bgm.on .bgm-bars{opacity:1}
.bgm.on .bgm-bars i{animation:bgm-dance 1.1s ease-in-out infinite alternate}
.bgm.on .bgm-bars i:nth-child(2){animation-duration:.8s; animation-delay:-.3s} .bgm.on .bgm-bars i:nth-child(3){animation-duration:1.3s; animation-delay:-.6s} .bgm.on .bgm-bars i:nth-child(4){animation-duration:.95s; animation-delay:-.2s}
@keyframes bgm-dance{from{height:3px} to{height:14px}}
/* On hover (or keyboard focus) the bars turn into what a click will do: a pause sign while playing, a play sign when paused. */
.bgm{position:relative}
.bgm-bars,.bgm-ic{grid-area:1/1}
.bgm-ic{width:0; height:0; border-left:9px solid currentColor; border-top:6px solid transparent; border-bottom:6px solid transparent; margin-left:2px;
  opacity:0; transform:scale(.6); transition:opacity .18s, transform .18s var(--ease)}
.bgm.on .bgm-ic{width:10px; height:12px; margin-left:0; border:0; background:linear-gradient(90deg, currentColor 0 3.5px, transparent 3.5px 6.5px, currentColor 6.5px 10px)}
.bgm:hover .bgm-ic,.bgm:focus-visible .bgm-ic{opacity:1; transform:none}
.bgm:hover .bgm-bars,.bgm:focus-visible .bgm-bars{opacity:0; transform:scale(.6)}
.bgm-bars{transition:opacity .18s, transform .18s var(--ease)}
@media (prefers-reduced-motion:reduce){.bgm.on .bgm-bars i{animation:none} .bgm.on .bgm-bars i:nth-child(odd){height:10px} .bgm.on .bgm-bars i:nth-child(even){height:6px}}
@media (max-width:420px){.bgm{width:30px}}
.theme{display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:none; color:var(--ink); cursor:pointer; transition:background .2s, color .2s, transform .2s}
.theme:hover,.theme:focus-visible{color:var(--red)}
.theme:active{transform:scale(.9)}
.theme svg{width:20px; height:20px; overflow:visible; transition:transform .6s var(--ease)}
.theme .rays{transform-origin:12px 12px; transition:transform .5s var(--ease), opacity .3s}
.theme .disc{transition:r .5s var(--ease)}
.theme .shade{transition:transform .6s var(--ease)}
.theme[data-mode="dark"] svg{transform:rotate(-40deg)}
.theme[data-mode="dark"] .rays{transform:scale(.4) rotate(90deg); opacity:0}
.theme[data-mode="dark"] .disc{r:8.5px}
.theme[data-mode="dark"] .shade{transform:translate(-8px,6px)}
/* Changing theme: the new one opens as a circle from the switch. */
html.theme-vt::view-transition-old(root){animation:none}
html.theme-vt::view-transition-new(root){animation:theme-in .75s cubic-bezier(.6,0,.2,1) both}
html.theme-vt::view-transition-group(*){animation-duration:0s}
@keyframes theme-in{from{clip-path:circle(0 at var(--tx,50%) var(--ty,0))} to{clip-path:circle(var(--tr,150vmax) at var(--tx,50%) var(--ty,0))}}

/* Signs of life, kept small. */
/* Titles: every word rises out of its own little window, one after another. */
/* Each word rises inside its own window. The window has room on every side (and gives it back with negative margins,
   so nothing moves): big titles are set very tight, and letters, apostrophes and full stops reach past their box. */
.ww{display:inline-block; overflow:hidden; vertical-align:top; padding:.14em .14em .2em; margin:-.14em -.14em -.2em}
.ww > span{display:inline-block; transform:translateY(135%); transition:transform .9s var(--ease); transition-delay:calc(var(--d) * 45ms)}
.split.in .ww > span{transform:none}
/* Quotes: words fade up one after another each time a quote comes in. */
.qw{display:inline-block; opacity:0; transform:translateY(.28em); filter:blur(3px); transition:opacity .5s ease, transform .7s var(--ease), filter .5s ease; transition-delay:calc(var(--d) * 22ms + 120ms)}
.rec.on .qw{opacity:1; transform:none; filter:none}
.rec:not(.on) .qw{transition-delay:0s}
/* Arrows nudge the way they point when their link is hovered or focused. */
.ar{display:inline-block; transition:transform .35s var(--ease)}
a:hover > .ar.r, a:focus-visible > .ar.r, button:hover > .ar.r, button:focus-visible > .ar.r{transform:translateX(4px)}
a:hover > .ar.l, button:hover > .ar.l, button:focus-visible > .ar.l{transform:translateX(-4px)}
a:hover > .ar.ur, a:focus-visible > .ar.ur, button:hover > .ar.ur{transform:translate(2px,-2px)}
a:hover > .ar.d, a:focus-visible > .ar.d{transform:translateY(3px)}
.path a:hover .go .ar, .path a:focus-visible .go .ar{transform:translateX(4px)}
/* Underlined links: on hover the line slides away to the right and draws itself back in from the left. */
.v-link,.s-go,.c-site a,.mail,.next-link,.sec-head .more,.path .go,.rec-who a{border-bottom-color:transparent !important; background:linear-gradient(currentColor,currentColor) left bottom / 100% var(--ul,1px) no-repeat}
.v-link,.s-go,.c-site a{--ul:2px}
.mail{--ul:3px}
.rec-who a{--ul:1px; background-size:0 1px}
.v-link:hover,.s-go:hover,.c-site a:hover,.mail:hover,.next-link:hover,.sec-head .more:hover,.path a:hover .go,
.v-link:focus-visible,.s-go:focus-visible,.c-site a:focus-visible,.mail:focus-visible,.next-link:focus-visible,.sec-head .more:focus-visible{animation:redraw .7s var(--ease)}
.rec-who a:hover,.rec-who a:focus-visible{background-size:100% 1px; transition:background-size .4s var(--ease)}
@keyframes redraw{0%{background-size:100% var(--ul,1px); background-position:right bottom} 45%{background-size:0 var(--ul,1px); background-position:right bottom} 46%{background-size:0 var(--ul,1px); background-position:left bottom} 100%{background-size:100% var(--ul,1px); background-position:left bottom}}
/* Buttons give a little when pressed. */
.btn:active,.c-btn:active,.rec-arrow:active,.pp:active,.nav .cta:active,.face:active,.copy:active{transform:scale(.94)}

.js .reveal{opacity:0; transform:translateY(22px); transition:opacity .8s ease, transform .9s var(--ease)}
.js .reveal.in{opacity:1; transform:none}

@media (prefers-reduced-motion: reduce){
  @view-transition{navigation:none}
  .js .reveal,.js .tile .pic{opacity:1; transform:none; clip-path:none; transition:none}
  .w > i,.eyebrow,.sub,.hint,.stage-col{animation:none; transform:none; opacity:1}
  .rw,.slide,.tick,.rec,.face .av{transition:none}
  .rec,.rec.from-left{transform:none}
  .ww > span,.qw{transform:none; opacity:1; filter:none; transition:none}
  .ar{transition:none}
  .v-link,.s-go,.c-site a,.mail,.next-link,.sec-head .more,.path .go{animation:none !important}
  .btn:active,.c-btn:active,.rec-arrow:active,.pp:active,.nav .cta:active,.face:active,.copy:active{transform:none}
  .slide{transform:none}
  .dev{transform:none}
  .ticks.run .tick.on i{animation:none}
  .hint i::after{animation:none; top:0; height:100%}
  .row h3,.row .line,.tile .pic img,.next strong{transition:none}
  .marq .tr{animation:none}
  .pan img{animation:none}
  .scr.pan,.shot.pan{overflow-y:auto}
  .end::after{transform:scaleX(1); animation:none}
}

/* Section dividers, at night: a faint neon line, a cool light that glows just a little. */
:root{--neon-line:var(--line); --neon-glow:transparent}
:root[data-theme="dark"]{--neon-line:rgba(190,228,255,.42); --neon-glow:rgba(140,205,255,.55)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--neon-line:rgba(190,228,255,.42); --neon-glow:rgba(140,205,255,.55)}}
/* The glow sits only just under the line (a soft fade, never a shadow round the whole box, which drew faint lines down the sides). */
.sec[style*="border-top"], .short, .foot, .block{border-top-color:var(--neon-line) !important;
  background-image:linear-gradient(color-mix(in srgb, var(--neon-glow) 22%, transparent), transparent 8px); background-repeat:no-repeat}

/* The day visitor (hummingbird): no night glow, a soft daylight shadow, and pollen instead of jetpack puffs. */
.astro.day .astro-glow{display:none}
.astro.day.is-3d{filter:drop-shadow(0 14px 14px rgba(70,50,20,.22))}
/* The astronaut's trail: soft blurred wisps (animated from site.js) that blend into one continuous, windy trail. */
.astro-smoke{position:fixed; left:0; top:0; z-index:34; border-radius:50%; pointer-events:none; will-change:transform, opacity;
  background:radial-gradient(circle, rgba(225,232,248,.75) 0, rgba(200,212,238,.35) 45%, rgba(200,212,238,0) 70%); filter:blur(2px)}
.astro-puff.pollen{filter:blur(.4px);background:radial-gradient(circle at 40% 40%, #fff6c9 0 30%, rgba(233,185,35,.9) 31% 55%, rgba(233,185,35,0) 72%)}
