:root{
  --bg:#EFEDE8;
  --surface:#FAF9F6;
  --surface-2:#E4E2DA;
  --ink:#232320;
  --muted:#6B6A63;
  --line:#D9D6CE;
  --accent:#42553D;
  --clay:#A5795C;
  --on-accent:#F5F4EF;
  --band:#232320;
  --band-ink:#EFEDE8;
  --r:18px;
  --r-lg:26px;
  --maxw:1010px;
  --nav:62px;
}
[data-theme="dark"]{
  --bg:#141513;
  --surface:#1B1D18;
  --surface-2:#22241E;
  --ink:#E9E8E1;
  --muted:#8E8D83;
  --line:#2A2C25;
  --accent:#8AA07C;
  --clay:#BD9375;
  --on-accent:#141513;
  --band:#E9E8E1;
  --band-ink:#141513;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-size:16px;line-height:1.62;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1,h2{font-family:Fraunces,Georgia,serif;font-weight:600;letter-spacing:-.02em;line-height:1.02;margin:0}
h1{font-size:clamp(46px,8.4vw,86px)}
h2{font-size:clamp(28px,4.2vw,40px)}
h3{font-size:19px;font-weight:700;letter-spacing:-.02em;margin:0}
p{margin:0 0 16px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;width:100%}
.scribble{font-family:Caveat,cursive;font-size:20px;color:var(--clay);line-height:1.1}
.label{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--accent);border:1.5px solid var(--accent);border-radius:999px;padding:5px 13px}

/* intro curtain */
.intro{position:fixed;inset:0;z-index:200;background:var(--bg);display:grid;place-items:center;
  transition:transform 1.1s cubic-bezier(.65,0,.35,1)}
.intro.done{transform:translateY(-101%)}
.intro-in{text-align:center;padding:0 24px;transition:opacity .45s ease,transform .6s cubic-bezier(.16,1,.3,1)}
.intro.done .intro-in{opacity:0;transform:translateY(-16px)}
.intro-hi{display:block;font-family:Caveat,cursive;font-size:26px;color:var(--clay);opacity:0;
  animation:iFade .6s ease .15s forwards}
.intro-mask{overflow:hidden;padding-bottom:4px;margin-top:2px}
.intro-name{display:block;font-family:Fraunces,serif;font-size:clamp(38px,7vw,74px);font-weight:600;letter-spacing:-.03em;
  line-height:1.05;transform:translateY(110%);animation:iRise .95s cubic-bezier(.16,1,.3,1) .3s forwards}
.intro-rule{width:min(280px,62vw);height:3px;background:var(--line);margin:26px auto 0;overflow:hidden;border-radius:3px}
.intro-rule i{display:block;height:100%;width:100%;background:var(--clay);transform:scaleX(0);transform-origin:left;
  animation:iFill 1.25s cubic-bezier(.55,0,.25,1) .35s forwards}
.intro-skip{position:fixed;bottom:26px;left:0;right:0;text-align:center;font-family:Caveat,cursive;font-size:18px;
  color:var(--muted);opacity:0;animation:iFade .5s ease 1.1s forwards}
@keyframes iFade{to{opacity:1}}
@keyframes iRise{to{transform:none}}
@keyframes iFill{to{transform:scaleX(1)}}
body.locked{overflow:hidden}
body.locked .line > *,body.locked .fade,body.locked .underline path{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
  .intro{display:none}
}

.toggle{position:fixed;top:20px;right:20px;z-index:95;width:44px;height:44px;border-radius:14px;border:2px solid var(--ink);
  background:var(--surface);color:var(--ink);cursor:pointer;display:grid;place-items:center;
  transition:transform .35s cubic-bezier(.16,1,.3,1),background .3s,color .3s}
.toggle:hover{background:var(--clay);color:var(--on-accent);transform:rotate(-12deg)}
.toggle svg{width:19px;height:19px}
@media(max-width:700px){.toggle{top:14px;right:14px;width:40px;height:40px}}

.rail{position:fixed;right:20px;top:50%;transform:translateY(-50%);z-index:80;display:flex;flex-direction:column;gap:15px;align-items:flex-end}
.rail a{display:flex;align-items:center;gap:9px}
.rail i{display:block;width:11px;height:11px;border-radius:4px;border:1.5px solid var(--ink);background:transparent;transition:.3s}
.rail a.on i{background:var(--clay);transform:rotate(-10deg) scale(1.35)}
.rail span{font-family:Caveat,cursive;font-size:17px;color:var(--muted);opacity:0;transform:translateX(6px);transition:.3s}
.rail a:hover span,.rail a.on span{opacity:1;transform:none}
@media(max-width:1180px){.rail{display:none}}

section{min-height:100vh;padding:96px 0 84px;display:flex;flex-direction:column;justify-content:center}
.head{display:flex;align-items:center;gap:14px;margin-bottom:38px;flex-wrap:wrap}
.head .rule{height:1.5px;background:var(--ink);flex:1;opacity:.16}

.band{background:var(--band);color:var(--band-ink);overflow:hidden;padding:13px 0;border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink)}
.band .track{display:flex;width:max-content;white-space:nowrap;will-change:transform}
.band .track > *{margin-right:32px;flex:none}
.band .track span{font-family:Fraunces,serif;font-size:15px;font-weight:500}
.band .track i{width:9px;height:9px;border-radius:3px;background:var(--clay);flex:none;align-self:center;transform:rotate(-10deg)}

/* hero */
.line{overflow:hidden;padding-bottom:2px}
.line > *{display:block;transform:translateY(110%);animation:rise .95s cubic-bezier(.16,1,.3,1) .2s forwards}
.l2 > *{animation-delay:.32s}
@keyframes rise{to{transform:none}}
.fade{opacity:0;animation:fade .8s ease .62s forwards}
.fade.f2{animation-delay:.82s}
@keyframes fade{to{opacity:1}}
.hero-grid{display:grid;grid-template-columns:1fr 290px;gap:70px;align-items:center}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;gap:56px}}
.hello{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.wave{display:inline-block;transform-origin:70% 70%;animation:wave 3.2s ease-in-out infinite}
@keyframes wave{0%,60%,100%{transform:rotate(0)}68%{transform:rotate(16deg)}76%{transform:rotate(-8deg)}84%{transform:rotate(12deg)}}
.underline{display:block;width:min(340px,80%);margin-top:6px;overflow:visible}
.underline path{fill:none;stroke:var(--clay);stroke-width:5;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:420;animation:draw 1.1s cubic-bezier(.16,1,.3,1) .95s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.lede{font-size:17.5px;color:var(--muted);max-width:48ch;margin-top:22px}
.lede strong{color:var(--ink);font-weight:600;box-shadow:inset 0 -8px 0 color-mix(in srgb,var(--clay) 26%,transparent)}
.socials{display:flex;gap:10px;margin-top:30px;flex-wrap:wrap;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 24px;border-radius:14px;border:2px solid var(--ink);
  background:var(--surface);font-size:14.5px;font-weight:700;position:relative;overflow:hidden;transition:color .25s}
.btn em{position:relative;z-index:1;font-style:normal;display:flex;align-items:center;gap:8px}
.btn::after{content:"";position:absolute;inset:0;background:var(--clay);transform:translateY(101%);transition:transform .34s cubic-bezier(.16,1,.3,1)}
.btn:hover{color:var(--on-accent)}
.btn:hover::after{transform:none}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.primary::after{background:var(--clay)}

/* scroll cue */
#top{position:relative}
.scrolldown{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:5;opacity:0;color:var(--muted);
  animation:bob 2.2s ease-in-out infinite,fade .8s ease .95s forwards;
  transition:opacity .5s ease,color .3s}
.scrolldown svg{display:block;width:22px;height:13px}
.scrolldown:hover{color:var(--clay)}
.scrolldown.hide{opacity:0;pointer-events:none}
@media(max-width:700px){.scrolldown{bottom:14px}}
@media(max-height:680px){.scrolldown{display:none}}

/* photo stack */
.stack{position:relative;perspective:900px}
.stack::before{content:"";position:absolute;inset:18px -18px -18px 18px;border:2px solid var(--accent);border-radius:var(--r-lg);
  transition:inset .55s cubic-bezier(.16,1,.3,1);pointer-events:none}
.stack:hover::before{inset:9px -9px -9px 9px}
.portrait{position:relative;border:2px solid var(--ink);border-radius:var(--r-lg);overflow:hidden;background:var(--surface-2);
  transition:transform .3s ease-out;transform-style:preserve-3d}
.portrait img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 26%;filter:saturate(.94);
  transform:scale(1.03);transition:transform .9s cubic-bezier(.16,1,.3,1)}
.portrait:hover img{transform:scale(1.09)}
.sticker{position:absolute;z-index:3;font-family:Caveat,cursive;font-size:19px;font-weight:600;
  background:var(--clay);color:var(--on-accent);border:2px solid var(--ink);border-radius:12px;padding:3px 12px;
  transform:rotate(-7deg);transition:transform .4s cubic-bezier(.16,1,.3,1)}
.sticker.top{top:-16px;left:-20px}
.sticker.bottom{bottom:-16px;right:-16px;background:var(--surface);color:var(--ink);transform:rotate(5deg)}
.stack:hover .sticker.top{transform:rotate(3deg) translateY(-3px)}
.stack:hover .sticker.bottom{transform:rotate(-4deg) translateY(3px)}

/* now playing — top right. One line, same weight as the other stickers, and
   narrow enough to clear "that's me" on the opposite corner. The bars carry
   the live/last-played state; the tip on hover spells it out with the artist. */
.sticker.np{top:-20px;right:-32px;display:flex;align-items:center;gap:7px;
  max-width:min(202px,68%);padding:3px 13px 3px 10px;transform:rotate(4deg);
  background:var(--surface);color:var(--ink)}
.sticker.np[hidden]{display:none}
.stack:hover .sticker.np{transform:rotate(-1deg) translateY(-3px)}
.sticker.np:hover{transform:rotate(-3deg) translateY(-5px)}
/* overflow:hidden gives us the ellipsis, but it also clips at the content box —
   and Caveat is slanted, so the last glyph's flourish overhangs its advance
   width and loses its tail. The padding gives that overhang somewhere to sit. */
.np-song{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:1px 4px 1px 1px;margin:-1px -4px -1px -1px;line-height:1.5}
.eq{display:flex;align-items:flex-end;gap:2.5px;height:14px;flex:none}
.eq i{width:3px;border-radius:2px;background:var(--accent);height:35%;
  animation:eq .95s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:.28s}
.eq i:nth-child(3){animation-delay:.54s}
@keyframes eq{0%,100%{height:32%}50%{height:100%}}
.np.past .eq i{animation:none;height:42%;background:var(--muted)}
/* centred over the pill, and allowed to wrap — a long artist list should run
   onto a second line rather than truncate. width:max-content keeps a short
   one from stretching to the cap. */
.np-tip{position:absolute;bottom:calc(100% + 8px);left:50%;width:max-content;max-width:200px;
  font-family:Caveat,cursive;font-size:17px;line-height:1.18;color:var(--clay);text-align:center;
  opacity:0;pointer-events:none;transform:translate(-50%,6px) rotate(3deg);
  transition:opacity .3s,transform .3s cubic-bezier(.16,1,.3,1)}
.sticker.np:hover .np-tip{opacity:1;transform:translate(-50%,0) rotate(3deg)}

/* narrower windows put the portrait close to the edge, where a centred tip
   would spill off-screen — anchor it to the pill's right edge instead */
@media(max-width:1180px){
  .sticker.np{right:-10px}
  .np-tip{left:auto;right:0;transform:translate(0,6px) rotate(3deg)}
  .sticker.np:hover .np-tip{transform:translate(0,0) rotate(3deg)}
}
@media(max-width:520px){
  .sticker.np{max-width:74%}
  .np-tip{max-width:170px;font-size:16px}
}

/* experience */
.row{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:64px;padding:44px 0}
.row:nth-child(even) .figure{order:-1}
.row .text{max-width:23ch}
.row:nth-child(odd) .text{justify-self:end}
.year{display:inline-block;font-family:Caveat,cursive;font-size:21px;color:var(--clay);margin-bottom:8px;transform-origin:left center}
.row p{font-family:Fraunces,serif;font-size:clamp(23px,3vw,32px);font-weight:500;line-height:1.24;letter-spacing:-.015em;margin:0;
  transition:transform .45s cubic-bezier(.16,1,.3,1)}
.row:nth-child(odd) p{transform:rotate(-1.5deg)}
.row:nth-child(even) p{transform:rotate(1.2deg)}
.row:nth-child(odd) .year{transform:rotate(-2.5deg)}
.row:nth-child(even) .year{transform:rotate(2deg)}
.row:nth-child(odd) .plate .inner{transform:rotate(2deg)}
.row:nth-child(even) .plate .inner{transform:rotate(-2.4deg)}
.row:nth-child(odd) .plate:hover .inner,.row:nth-child(even) .plate:hover .inner{transform:rotate(0) translateY(-6px)}
.row p .hl{color:var(--accent);box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--accent) 30%,transparent);transition:box-shadow .3s;cursor:default}
.row p .hl:hover{box-shadow:inset 0 -26px 0 color-mix(in srgb,var(--accent) 16%,transparent)}
.figure{display:flex;justify-content:center}
.plate{position:relative;width:min(250px,68vw)}
.plate::before{content:"";position:absolute;inset:14px -14px -14px 14px;border:2px solid var(--clay);border-radius:var(--r-lg);
  transition:inset .55s cubic-bezier(.16,1,.3,1)}
.plate:hover::before{inset:7px -7px -7px 7px}
.plate .inner{position:relative;aspect-ratio:5/4;border:2px solid var(--ink);border-radius:var(--r-lg);background:var(--surface);
  display:grid;place-items:center;overflow:hidden;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.plate:hover .inner{transform:translateY(-5px)}
.plate-logo{max-width:64%;max-height:60%;width:auto;height:auto;object-fit:contain;
  transition:transform .5s cubic-bezier(.16,1,.3,1)}
.plate-logo.wordmark{max-width:82%;max-height:42%}
.plate:hover .plate-logo{transform:scale(1.08) rotate(-3deg)}
@media(max-width:820px){
  .row{grid-template-columns:1fr;gap:34px;padding:34px 0}
  .row:nth-child(even) .figure{order:0}
  .row:nth-child(odd) .text{justify-self:start}
  .row .text{max-width:26ch}
  .figure{justify-content:flex-start;padding-left:8px}
  .plate{width:min(200px,56vw)}
}

/* experience — the forward pass threading down the timeline.
   JS measures the path and the stop positions from the real row layout. */
#work .wrap{position:relative}
#work .head,#work .row,#work .footnote{position:relative;z-index:1}
.spine{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
.thread{fill:none;stroke:var(--line);stroke-width:1.6}
.thread.lit{stroke:var(--accent);stroke-width:2.4;stroke-linecap:round}
.stop{fill:var(--surface);stroke:var(--line);stroke-width:2;
  transition:fill .45s ease,stroke .45s ease,r .5s cubic-bezier(.2,1.4,.4,1)}
.stop.on{fill:var(--clay);stroke:var(--ink)}
.pulse{fill:var(--clay);stroke:var(--bg);stroke-width:2;opacity:0;transition:opacity .35s ease}
.pulse.on{opacity:1}
@media(max-width:900px){.spine{display:none}}

/* experience footnote */
.footnote{display:flex;align-items:flex-start;gap:14px;max-width:64ch;margin:26px auto 0;padding-left:8px;
  transform:rotate(-1.2deg)}
.footnote svg{flex:none;width:52px;height:44px;margin-top:2px;color:var(--clay);transform:rotate(6deg)}
.footnote svg path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:150;stroke-dashoffset:150;transition:stroke-dashoffset 1s cubic-bezier(.16,1,.3,1) .2s}
.footnote.in svg path{stroke-dashoffset:0}
.footnote span{font-family:Caveat,cursive;font-size:23px;line-height:1.35;color:var(--muted)}
.footnote b{font-weight:600;color:var(--accent)}
@media(max-width:620px){.footnote svg{width:40px}.footnote span{font-size:20px}}

/* projects — network */
#projects{display:flex;flex-direction:column;justify-content:center;padding:88px 0 56px;min-height:100vh}
#projects > .wrap{max-width:min(1500px,100%);padding:0 clamp(24px,4vw,64px)}
.graph.measuring .ring{display:none}
.net{display:block;margin-top:22px}
.graphwrap{width:100%;margin:0 0 22px}
.graph{width:100%;max-width:1500px;max-height:min(62vh,620px);height:auto;overflow:visible;display:block;
  margin:0 auto;touch-action:manipulation}
@media(max-width:820px){.graph{max-height:none}.graphwrap{padding:0 12px}}
.edge{fill:none;stroke:var(--line);stroke-width:1.4;opacity:.6;transition:stroke .35s ease,opacity .35s ease,stroke-width .35s ease}
.edge.lit{stroke:var(--accent);opacity:1;stroke-width:2.1;stroke-dasharray:6 9;animation:flow .9s linear infinite;
  filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 55%,transparent))}
.edge.blip{stroke:var(--clay);opacity:.85;stroke-dasharray:3 26;animation:flow 1.4s linear 1}
@keyframes flow{to{stroke-dashoffset:-30}}
.node circle{fill:var(--surface);stroke:var(--ink);stroke-width:2;transition:fill .35s ease,r .4s cubic-bezier(.16,1,.3,1)}
.node text{font-family:"Plus Jakarta Sans",sans-serif;font-size:13px;font-weight:600;fill:var(--muted);transition:fill .3s}
.n-hid{transform-box:fill-box;transform-origin:center;animation:bob 4.5s ease-in-out infinite}
.n-hid:nth-of-type(2n){animation-duration:5.6s;animation-delay:-1.4s}
.n-hid:nth-of-type(3n){animation-duration:6.4s;animation-delay:-2.7s}
@keyframes bob{0%,100%{transform:translateY(-3px)}50%{transform:translateY(3px)}}
.n-in{cursor:pointer}
.n-in.lit circle,.n-hid.lit circle{fill:var(--clay)}
.n-in.lit text{fill:var(--ink)}
.n-hid.lit circle{stroke-width:2.4}
.out{cursor:pointer}
.out:focus{outline:none}
.out:focus-visible{outline:2px solid var(--clay);outline-offset:6px;border-radius:50%}
.out .body{fill:var(--surface)}
.out .num{font-family:Caveat,cursive;font-size:22px;fill:var(--ink);font-weight:600}
.out .cap{font-family:Fraunces,serif;font-size:19px;font-weight:600;fill:var(--muted);letter-spacing:-.01em;transition:fill .3s}
.out.on .body{fill:var(--accent)}
.out.on .num{fill:var(--on-accent)}
.out.on .cap{fill:var(--ink)}
.out:hover .body{fill:var(--clay)}
.out:hover .num{fill:var(--on-accent)}
.out .ring{fill:none;stroke:var(--accent);stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center}
.layerlab{font-family:Caveat,cursive;font-size:19px;fill:var(--muted)}

/* build-in: scattered points drift in from nowhere, then the edges knit them
   together. JS sets --dash (each path's own length), --dx/--dy (where that node
   starts out) and --d (its cue), so no two runs land the same way. */
.graph{transition:opacity .35s ease}
.graph.idle{opacity:0}
.graph.building{pointer-events:none}
.graph.building .edge{stroke-dasharray:var(--dash);stroke-dashoffset:var(--dash);
  animation:drawEdge .6s cubic-bezier(.33,1,.68,1) var(--d) forwards}
@keyframes drawEdge{to{stroke-dashoffset:0}}
.graph.building .n-in circle,
.graph.building .n-hid circle,
.graph.building .out .body{transform-box:fill-box;transform-origin:center;
  transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0;
  animation:gather .8s cubic-bezier(.2,.9,.25,1) var(--d) forwards}
@keyframes gather{
  from{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}
  35%{opacity:1}
  to{transform:none;opacity:1}}
.graph.building .n-in text,
.graph.building .out .num,
.graph.building .out .cap,
.graph.building .layerlab{opacity:0;animation:fade .45s ease var(--d) forwards}

/* readout sits under the net */
.panel{width:100%;max-width:760px;margin:0 auto;text-align:center;
  transition:opacity .28s ease,transform .38s cubic-bezier(.16,1,.3,1)}
.panel.swap{opacity:0;transform:translateY(10px)}
.panel .n{font-family:Caveat,cursive;font-size:22px;color:var(--clay);line-height:1}
.panel h3{font-family:Fraunces,serif;font-size:clamp(26px,3.6vw,40px);font-weight:600;letter-spacing:-.03em;margin:6px 0 12px}
.panel p{font-size:16px;color:var(--muted);max-width:58ch;margin:0 auto 18px}
.tags{display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:center}
.tag{font-size:11.5px;font-weight:600;padding:5px 11px;border-radius:8px;border:1.5px solid var(--line);color:var(--muted)}
.visit{display:inline-flex;align-items:center;gap:7px;margin-top:20px;font-size:14px;font-weight:700;color:var(--accent);
  border-bottom:2px solid color-mix(in srgb,var(--accent) 35%,transparent);padding-bottom:2px}
.visit svg{width:15px;height:15px;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.visit:hover svg{transform:translate(3px,-3px) rotate(10deg)}
@media(max-width:700px){
  .out .cap{font-size:15px}
  .node text{font-size:15px}
  .layerlab{font-size:20px}
}

/* contact — logos only */
.contact{text-align:center;padding-bottom:40px}
.contact > .rev p{color:var(--muted);max-width:40ch;margin:0 auto 46px}
.links{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
.link{width:96px;height:96px;border:2px solid var(--ink);border-radius:24px;background:var(--surface);
  display:grid;place-items:center;position:relative;overflow:visible;color:var(--ink);
  transition:transform .35s cubic-bezier(.16,1,.3,1),color .3s}
.link .fill{position:absolute;inset:0;background:var(--accent);border-radius:22px;transform:scaleY(0);transform-origin:bottom;
  transition:transform .42s cubic-bezier(.16,1,.3,1)}
.link svg{width:34px;height:34px;position:relative;z-index:1;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.link:nth-child(odd){transform:rotate(-2deg)}
.link:nth-child(even){transform:rotate(2deg)}
.link:hover{color:var(--on-accent);transform:rotate(0) translateY(-8px)}
.link:hover .fill{transform:scaleY(1)}
.link:hover svg{transform:scale(1.12)}
.link .tip{position:absolute;top:-34px;left:50%;transform:translate(-50%,8px) rotate(-3deg);font-family:Caveat,cursive;font-size:20px;
  color:var(--clay);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s cubic-bezier(.16,1,.3,1)}
.link:hover .tip{opacity:1;transform:translate(-50%,0) rotate(-3deg)}
@media(max-width:520px){.link{width:74px;height:74px;border-radius:20px}.link svg{width:28px;height:28px}}
/* entrance animations: JS arms only what is still below the fold, so nothing
   that is already on screen ever blinks out and back in */
.armed.rev{clip-path:inset(0 0 100% 0);opacity:0}
.armed.rev.in{animation:wipeIn .85s cubic-bezier(.16,1,.3,1) forwards}
@keyframes wipeIn{from{clip-path:inset(0 0 100% 0);opacity:0}to{clip-path:inset(0 0 0 0);opacity:1}}
.armed.stagger > *{opacity:0}
.armed.stagger.in > *{animation:riseIn .65s cubic-bezier(.16,1,.3,1) both}
.armed.stagger.in > *:nth-child(1){animation-delay:.04s}
.armed.stagger.in > *:nth-child(2){animation-delay:.11s}
.armed.stagger.in > *:nth-child(3){animation-delay:.18s}
.armed.stagger.in > *:nth-child(4){animation-delay:.25s}
@keyframes riseIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.armed.row .text,.armed.row .figure{opacity:0}
.armed.row.in .text{animation:riseIn .7s cubic-bezier(.16,1,.3,1) forwards}
.armed.row.in .figure{animation:riseIn .7s cubic-bezier(.16,1,.3,1) .12s both}

:focus-visible{outline:3px solid var(--clay);outline-offset:3px;border-radius:10px}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .rev,.stagger > *,.line > *,.fade,.row .text,.row .figure,.scrolldown{opacity:1;transform:translateX(-50%);clip-path:none}
  .armed.rev,.armed.stagger > *,.armed.row .text,.armed.row .figure{opacity:1;clip-path:none}
  .underline path{stroke-dashoffset:0}
}
