/* Option B of the home page: the about, big and centred, with pictures behind certain
   words; then the selected work hung loosely down the page, free to be moved around;
   then a big footer. It sits on top of site.css and takes its colours, type and bars. */

.b{overflow-x:hidden;--dim:#8f8f8f;--bright:#f4f4f4}

/* ── between pages (b-transition.js) ───────────────────────────────────────
   The browser's view transitions. A project picture grows into the project page; any
   other move is a short crossfade. Off for anyone whose system asks for less motion. */
@view-transition{navigation:auto}
::view-transition-group(bt-hero){animation-duration:.8s;animation-timing-function:cubic-bezier(.3,.7,.2,1)}
::view-transition-image-pair(bt-hero){isolation:auto}
::view-transition-old(bt-hero),::view-transition-new(bt-hero){animation-duration:.8s;height:100%;object-fit:cover}
::view-transition-old(root),::view-transition-new(root){animation-duration:.45s}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* ── the top bar: name on the left, Frankfurt's time on the right ────────── */
.b-bar{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:baseline;
  justify-content:space-between;gap:20px;
  padding:var(--gap) max(var(--gap),env(safe-area-inset-right,0px)) 0 max(var(--gap),env(safe-area-inset-left,0px));
  font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.b-name span,.b-clock{color:var(--mid)}
.b-name span{margin-left:12px}
.b-clock time{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:8px}
/* the colon blinks, like a clock on an oven */
.b-clock .c{animation:blink 2s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* ── the about, filling the first screen ─────────────────────────────────── */
.b-hero{position:relative;min-height:100vh;min-height:100svh;display:grid;place-items:center;
  padding:96px max(var(--gap),6vw) 96px}
.b-copy{position:relative;z-index:2;display:grid;justify-items:center;text-align:center}
.b-about{position:relative;z-index:2;margin:0;max-width:23ch;text-align:center;color:var(--dim);
  font-size:clamp(36px,5.6vw,92px);line-height:1.02;letter-spacing:-.03em;text-wrap:balance;
  transition:color .5s var(--ease)}
/* the words with pictures are simply brighter than the rest */
.b-about .w{color:var(--bright);cursor:default;transition:color .3s ease}
/* while a picture shows, everything else steps right back and the word turns orange */
.b-hero.peeking .b-about,.b-hero.peeking .b-about .w{color:#3a3a3a}
.b-hero.peeking .b-about .w.on{color:var(--accent)}
/* the opening: each word rises into place, one after another (b.js splits them) */
.b-about .wd{display:inline-block;white-space:pre}
.b-in .b-about .wd{opacity:0;translate:0 .4em;filter:blur(4px)}
.b-in.go .b-about .wd{opacity:1;translate:0 0;filter:blur(0);
  transition:opacity .6s var(--ease),translate .75s var(--ease),filter .6s var(--ease);
  transition-delay:calc(var(--i) * 22ms + 30ms)}
/* a thin line at the bottom draws itself downwards, again and again: there's more below */
.b-scroll{position:absolute;left:50%;bottom:28px;width:1px;height:56px;overflow:hidden;
  background:rgba(212,212,212,.15)}
.b-scroll::after{content:"";position:absolute;inset:0;background:var(--ink);
  animation:drip 2.2s var(--ease) infinite;transform-origin:50% 0}
@keyframes drip{0%{transform:scaleY(0)}55%{transform:scaleY(1);transform-origin:50% 0}
  56%{transform-origin:50% 100%}100%{transform:scaleY(0);transform-origin:50% 100%}}

/* the picture behind the text: b.js moves it after the pointer, tilts it as you move,
   and drops fading copies behind it when you move fast */
.b-peek,.b-ghost{position:fixed;left:0;top:0;z-index:1;width:clamp(300px,37vw,640px);pointer-events:none}
.b-peek{opacity:0;transition:opacity .3s ease}
.b-peek.on{opacity:1}
.b-peek-in{overflow:hidden;border-radius:var(--radius);clip-path:inset(100% 0 0 0 round var(--radius));
  transition:clip-path .7s var(--ease)}
.b-peek.on .b-peek-in{clip-path:inset(0 0 0 0 round var(--radius))}
.b-peek img,.b-ghost img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;background:var(--well)}
.b-peek img{scale:1.25;transition:scale 1s var(--ease)}
.b-peek.on img{scale:1}
.b-peek img.swap{animation:swap .6s var(--ease)}
@keyframes swap{from{opacity:.2;scale:1.12}to{opacity:1;scale:1}}
.b-peek-cap{position:absolute;left:0;top:calc(100% + 10px);white-space:nowrap;
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.b-ghost img{border-radius:var(--radius)}
.b-ghost{animation:ghost .9s var(--ease) forwards}
@keyframes ghost{from{opacity:.55}to{opacity:0;scale:.82}}

/* ── a cursor of our own, on screens with a mouse ────────────────────────── */
.b-has-cursor,.b-has-cursor a,.b-has-cursor button{cursor:none}
.b-cursor{display:none}
.b-has-cursor .b-cursor{display:grid;place-items:center;position:fixed;left:0;top:0;z-index:20;
  width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--accent);
  pointer-events:none;transition:width .35s var(--ease),height .35s var(--ease),margin .35s var(--ease),
  background-color .3s ease,border-color .3s ease,opacity .3s ease}
.b-cursor span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--paper);
  opacity:0;transition:opacity .2s ease}
/* over a word with pictures: an open orange ring */
.b-cursor.ring{width:56px;height:56px;margin:-28px 0 0 -28px;background:transparent;border:1px solid var(--accent)}
/* over a project: a disc that says what you can do */
.b-cursor.label{width:78px;height:78px;margin:-39px 0 0 -39px}
.b-cursor.label span{opacity:1}
.b-cursor.grab{width:64px;height:64px;margin:-32px 0 0 -32px}
.b-cursor.link{width:6px;height:6px;margin:-3px 0 0 -3px}
.b-cursor.gone{opacity:0}

/* ── the selected work, hung loosely ─────────────────────────────────────── */
.b-work{position:relative;padding:clamp(80px,10vw,160px) max(var(--gap),4vw) 120px}
.b-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  max-width:1600px;margin:0 auto clamp(64px,8vw,120px);padding-bottom:12px;
  background:linear-gradient(var(--ink),var(--ink)) 0 100%/0 1px no-repeat;transition:background-size 1.4s var(--ease)}
.b-head.seen{background-size:100% 1px}
.b-head h2{margin:0;font-size:12px;font-weight:400;line-height:1.45;letter-spacing:.06em;text-transform:uppercase}
.b-head sup{font-size:inherit;vertical-align:baseline;margin-left:.6em;color:var(--accent)}
/* the archive sits beside the heading, greyed out, like the other tab */
.b-tabs{display:flex;align-items:baseline;gap:28px}
.b-arch{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5c5c5c;text-decoration:none;
  padding-block:4px;transition:color .2s ease}
.b-arch::after{content:" →"}
.b-arch:hover,.b-arch:focus-visible{color:var(--accent)}
.b-hint{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);white-space:nowrap}
.b-hint-drag::before{content:"↔ ";color:var(--accent)}
.b-tidy{display:none;font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--ink);
  background:none;border:0;padding:4px 0;cursor:pointer}
.b-tidy:hover{color:var(--accent)}
.b-moved .b-hint-drag{display:none}
.b-moved .b-tidy{display:inline}

/* the area keeps its shape as the window changes, so the four keep their places */
.b-hang{list-style:none;margin:0 auto;padding:0;position:relative;max-width:1600px;aspect-ratio:1/1.38}
.b-hang li{position:absolute;will-change:transform;touch-action:pan-y}
/* four sizes, four places: never a row, never a column. They're big, so they zigzag
   down the page with room between them for the drift and the float. */
.b-hang .h1{left:1%;top:0;width:58%}
.b-hang .h2{right:1%;top:34.5%;width:46%}
.b-hang .h3{left:4%;top:44.9%;width:47%}
.b-hang .h4{right:4%;top:72.5%;width:52%}
/* on a small laptop the words take up more of each card, so the lower ones sit lower */
@media (min-width:861px) and (max-width:1200px){.b-hang .h2{top:37.5%}.b-hang .h4{top:75%}}
.b-hang a,.b-block{display:block;text-decoration:none;user-select:none;-webkit-user-select:none}

/* a card: title and a short line on top, the picture with its year standing up beside it,
   then what it was and a way in. Square corners, like a print. */
.c-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:0 28px 10px 0}
.c-title{font-size:clamp(22px,2.1vw,34px);line-height:1.05;letter-spacing:-.025em;transition:color .25s ease}
.c-desc{max-width:17ch;text-align:right;font-size:13px;line-height:1.3;color:var(--mid)}
.c-media{display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:6px;align-items:start}
.c-year{writing-mode:vertical-rl;font-size:13px;line-height:1;letter-spacing:.04em;color:var(--mid);
  font-variant-numeric:tabular-nums;padding-top:2px}
.c-foot{display:flex;justify-content:space-between;gap:16px;margin:10px 28px 0 0;
  font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.c-kind{color:var(--mid)}
.c-view{transition:color .25s ease;white-space:nowrap}
.c-view .arr{display:inline-block;margin-left:4px;transition:translate .35s var(--ease)}
.soon .c-view{color:var(--mid)}
.b-hang li:hover .c-title,.b-hang a:focus-visible .c-title,
.b-hang li:hover a .c-view,.b-hang a:focus-visible .c-view{color:var(--accent)}
.b-hang li:hover .c-view .arr{translate:3px -3px}
/* on hover the card lifts a little and leans towards the pointer (b.js), and its grey
   words brighten */
.b-hang a,.b-hang .b-block{transition:translate .6s var(--ease),rotate .6s var(--ease)}
.b-hang li:hover > a,.b-hang li:hover > .b-block{translate:0 -10px}
.c-desc,.c-kind,.c-year{transition:color .3s ease}
.b-hang li:hover .c-desc,.b-hang li:hover .c-kind,.b-hang li:hover .c-year{color:#d9d9d9}
.b-hang li.held > a,.b-hang li.held > .b-block{translate:0 0}
/* the float: each card bobs and sways gently on its own, as if hanging in water. Each one
   has its own pace and starts at a different point, so they never move together. It runs
   on transform, so it adds to the hover lift and the lean rather than replacing them. */
@keyframes float{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg)}
  25%{transform:translate3d(5px,-11px,0) rotate(.8deg)}
  50%{transform:translate3d(0,-20px,0) rotate(0deg)}
  75%{transform:translate3d(-5px,-10px,0) rotate(-.8deg)}}
.b-hang li > a,.b-hang li > .b-block{animation:float 7s ease-in-out infinite}
.b-hang li.h1 > *{animation-duration:7.4s;animation-delay:-1.2s}
.b-hang li.h2 > *{animation-duration:6.2s;animation-delay:-3.8s}
.b-hang li.h3 > *{animation-duration:8.1s;animation-delay:-5.1s}
.b-hang li.h4 > *{animation-duration:6.8s;animation-delay:-2.4s}
/* held in the hand, it stops floating */
.b-hang li.held > *{animation-play-state:paused}
.b-pic{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--well)}
.b-pic img{display:block;width:100%;height:100%;object-fit:cover;transition:scale .8s var(--ease),translate .6s var(--ease)}
/* a faint hairline on top, so pictures with a black background still show their edges */
.b-pic::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09)}
.b-hang li:hover .b-pic > img,.b-hang a:focus-visible .b-pic > img{scale:1.05}
.b-hang a:focus-visible{outline:none}
.b-hang a:focus-visible .b-pic{outline:2px solid var(--accent);outline-offset:3px}
/* picked up: the words drop away and only the picture stays in your hand */
.c-top,.c-foot,.c-year{transition:opacity .3s ease}
.b-hang li.held .c-top,.b-hang li.held .c-foot,.b-hang li.held .c-year{opacity:0}
.b-pic .pending{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);
  background:linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.45))}
/* the crossfading frames from site.js, sized to the picture */
.b-pic .layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* each card builds itself the first time it's on screen: title, picture, then the rest */
.b-in .b-hang li .c-top,.b-in .b-hang li .c-media,.b-in .b-hang li .c-foot{opacity:0;translate:0 50px}
.b-in .b-hang li.seen .c-top,.b-in .b-hang li.seen .c-media,.b-in .b-hang li.seen .c-foot{opacity:1;translate:0 0;
  transition:opacity 1s var(--ease),translate 1.2s var(--ease)}
.b-in .b-hang li.seen .c-media{transition-delay:.1s}
.b-in .b-hang li.seen .c-foot{transition-delay:.25s}
.b-hang li.held .c-top,.b-hang li.held .c-foot{transition:opacity .3s ease}

/* ── things I do: three numbered lists, one item a row, hairlines between ─ */
.b-info{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(40px,5vw,80px);align-items:start;
  max-width:1600px;margin:0 auto;padding:clamp(120px,14vw,240px) max(var(--gap),4vw) 0}
.b-do{grid-column:1 / -1;margin:0 0 clamp(48px,6vw,104px);font-size:clamp(22px,2.1vw,34px);font-weight:400;
  line-height:1.05;letter-spacing:-.01em;text-transform:uppercase}
/* the lists hang like the cards: Areas high on the left, Services lower on the right,
   and the tools' logos under Services */
.b-col.areas{grid-column:1 / 6;grid-row:2}
.b-col.services{grid-column:8 / 13;grid-row:2;margin-top:clamp(180px,20vw,340px)}
.b-col.tools{grid-column:8 / 13;grid-row:3;margin-top:clamp(72px,8vw,140px)}
.b-lab{margin:0 0 20px;font-size:12px;font-weight:400;line-height:1.45;
  letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.b-things{list-style:none;margin:0;padding:0;
  background:linear-gradient(rgba(212,212,212,.2),rgba(212,212,212,.2)) 0 0/0 1px no-repeat;
  transition:background-size 1.2s var(--ease)}
.b-things li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;padding:20px 0 24px;
  border-bottom:1px solid rgba(212,212,212,.2)}
.t-name{font-size:clamp(18px,1.55vw,24px);line-height:1.15;letter-spacing:-.015em;
  transition:color .25s ease,translate .4s var(--ease)}
.t-desc{grid-column:1;font-size:13px;line-height:1.35;color:var(--mid);margin-top:8px;max-width:32ch;transition:translate .4s var(--ease)}
.t-num{grid-column:2;grid-row:1;font-size:clamp(18px,1.55vw,24px);line-height:1.15;color:var(--mid);
  font-variant-numeric:tabular-nums;transition:color .25s ease}
.b-things li:hover .t-name{color:var(--accent);translate:6px 0}
.b-things li:hover .t-desc{translate:6px 0}
.b-things li:hover .t-num{color:var(--accent)}
/* tools: just their logos, in one colour, in a row under a hairline */
.b-logos{list-style:none;margin:0;padding:28px 0 0;display:flex;flex-wrap:wrap;gap:28px 40px;
  border-top:1px solid rgba(212,212,212,.2)}
.b-logos li{color:var(--mid);transition:color .25s ease,translate .4s var(--ease)}
.b-col.tools .b-logos li:hover{color:var(--accent);translate:0 -4px}
.b-logos svg{display:block;width:clamp(28px,2.4vw,40px);height:clamp(28px,2.4vw,40px);fill:currentColor}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the lists arrive one after another: the top rule draws across, then the rows rise */
.b-col.seen .b-things{background-size:100% 1px}
.b-in .b-col li{opacity:0;translate:0 14px}
.b-in .b-col.seen li{opacity:1;translate:0 0;transition:opacity .8s var(--ease),translate .9s var(--ease);
  transition-delay:calc(var(--n,0) * 60ms + var(--c,0) * 120ms)}
.b-col:nth-of-type(2){--c:1}
.b-col:nth-of-type(3){--c:2}
.b-col li:nth-child(2){--n:1}.b-col li:nth-child(3){--n:2}.b-col li:nth-child(4){--n:3}
.b-col li:nth-child(5){--n:4}.b-col li:nth-child(6){--n:5}.b-col li:nth-child(7){--n:6}
.b-col li:nth-child(8){--n:7}.b-col li:nth-child(9){--n:8}.b-col li:nth-child(10){--n:9}

/* ── the footer: email in one corner, archive and LinkedIn in the other ──── */
.b-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;
  padding:clamp(200px,24vw,380px) max(var(--gap),env(safe-area-inset-right,0px)) calc(var(--gap) + env(safe-area-inset-bottom,0px)) max(var(--gap),env(safe-area-inset-left,0px))}
.b-foot .big{font-size:clamp(28px,4.6vw,76px);line-height:1;letter-spacing:-.035em;text-decoration:none;
  padding-block:.06em;
  background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat;
  transition:color .25s ease,background-size .5s var(--ease)}
.b-foot .big:hover,.b-foot .big:focus-visible{color:var(--accent);background-size:100% 2px}
.b-foot > .big{background-position:100% 100%}

/* ── phones: smaller type, the work staggered down one column, no dragging ── */
@media (max-width:860px){
  .b-name span{display:block;margin:2px 0 0}
  .b-hero{padding:110px var(--gap) 96px}
  .b-about{font-size:clamp(34px,10vw,52px);max-width:none}
  .b-peek,.b-ghost{width:min(78vw,360px)}
  .b-head{margin-bottom:48px}
  .b-hint{display:none}
  .b-hang{aspect-ratio:auto;display:grid;gap:72px}
  .b-hang li{position:relative;left:auto!important;right:auto!important;top:auto!important}
  .b-hang .h1{width:100%}
  .b-hang .h2{width:86%;justify-self:end}
  .b-hang .h3{width:80%;margin-left:4%}
  .b-hang .h4{width:92%;justify-self:end}
  .b-info{grid-template-columns:minmax(0,1fr);row-gap:72px;padding-top:96px}
  .b-do{margin-bottom:0}
  .b-col.areas,.b-col.services,.b-col.tools{grid-column:1;grid-row:auto;margin-top:0;width:90%}
  .b-col.services,.b-col.tools{justify-self:end}
  .c-title{font-size:22px}
  .c-desc{font-size:12px}
  .b-foot .big{font-size:clamp(28px,9vw,44px)}
}

@media (prefers-reduced-motion:reduce){
  .b-peek,.b-peek-in,.b-peek img,.b-pic img,.b-about,.b-about .w,.b-head{transition:none}
  .b-scroll::after,.b-clock .c{animation:none}
  .b-hang li > a,.b-hang li > .b-block{animation:none}
  .b-things,.t-name{transition:none}
}

/* ── the footer comes in letter by letter: the first time it's on screen, the email and
   LinkedIn rise out of their own baseline one letter after another (b-transition.js
   splits them into letters) ── */
.b-foot .big .ln{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
.b-foot .big .ch{display:inline-block;white-space:pre}
.b-foot.wait .big .ch{translate:0 110%}
.b-foot.up .big .ch{translate:0 0;transition:translate 1s var(--ease) calc(var(--i) * 28ms)}
.b-foot.up > .big + .big .ch{transition-delay:calc(var(--i) * 28ms + 180ms)}
@media (prefers-reduced-motion:reduce){.b-foot.wait .big .ch{translate:none}}

/* ── the legal links, small, under LinkedIn in the bottom-right corner ──── */
.b-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;row-gap:14px}
.b-foot > .big:first-child{grid-column:1;grid-row:1;justify-self:start}
.b-foot > .big + .big{grid-column:2;grid-row:1}
.b-legal{grid-column:2;grid-row:2;justify-self:end;display:flex;gap:18px;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.b-legal a{color:var(--mid);text-decoration:none;transition:color .25s ease}
.b-legal a:hover,.b-legal a:focus-visible{color:var(--accent)}
@media (max-width:860px){
  .b-foot{grid-template-columns:minmax(0,1fr);row-gap:10px}
  .b-foot > .big + .big{grid-column:1;grid-row:2;justify-self:start}
  .b-legal{grid-column:1;grid-row:3;justify-self:start;margin-top:8px}
}

/* ── the 404: the home page's big sentence, with links for the way back ──── */
.b-404 .b-name{text-decoration:none;color:inherit}
.b-404 .b-about a.w{cursor:pointer;text-decoration:none;background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat;
  transition:color .25s ease,background-size .5s var(--ease)}
.b-404 .b-about a.w:hover,.b-404 .b-about a.w:focus-visible{color:var(--accent);background-size:100% 2px}

/* ── the cookie question: bottom left, saying no as easy as saying yes ─── */
.b-consent{position:fixed;left:max(var(--gap),env(safe-area-inset-left,0px));bottom:calc(var(--gap) + env(safe-area-inset-bottom,0px));
  z-index:30;width:min(360px,calc(100vw - var(--gap)*2));padding:16px 18px;background:#0f0f0f;border:1px solid #2a2a2a;
  border-radius:var(--radius);font-size:14px;line-height:1.45;color:var(--ink);animation:consent-in .5s var(--ease)}
.b-consent p{margin:0 0 14px}
.b-consent a{color:var(--ink);text-underline-offset:3px}
.b-consent a:hover{color:var(--accent)}
.b-consent-btns{display:flex;gap:8px}
.b-consent button{flex:1;font:inherit;font-size:14px;padding:9px 12px;border-radius:var(--radius);cursor:pointer;
  background:none;color:var(--bright,#f4f4f4);border:1px solid #3a3a3a;transition:border-color .25s ease,color .25s ease}
.b-consent button:hover,.b-consent button:focus-visible{border-color:var(--accent);color:var(--accent);outline:none}
@keyframes consent-in{from{opacity:0;translate:0 12px}}
@media (prefers-reduced-motion:reduce){.b-consent{animation:none}}
