/* v1 homepage: fixed stage, snap-scroll between projects */
html{scroll-snap-type:y mandatory;background:#fff}
body.home{background:#fff;color:#000;font-family:'Montserrat','Proxima Nova',system-ui,sans-serif;overflow-x:hidden}
.home .stage{position:fixed;inset:0;z-index:1;overflow:hidden;background:#fff}
.home .bg{position:absolute;inset:0;background:#000 center/cover no-repeat;opacity:0;transform:scale(1.07);transition:opacity 1.1s ease,transform 2.4s cubic-bezier(.2,.7,.2,1);}
.home .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.18) 40%,rgba(0,0,0,.55))}
.home .bg.on{opacity:1;transform:scale(1)}
.home .bg.plain::after{display:none}
.home .txt{position:absolute;inset:0;color:#fff;pointer-events:none;opacity:0;transition:opacity .5s ease}
.home .txt.on{opacity:1;transition-delay:.25s}
.home .txt.intro{color:#fff}
.home .big{position:absolute;left:var(--m);bottom:clamp(20px,4vw,58px);margin:0;font-family:var(--display);font-weight:400;font-size:calc(clamp(64px,15.3vw,250px)*var(--fs,1));line-height:.746;text-transform:uppercase;letter-spacing:-.01em}
.home .big{display:flex;flex-direction:column;align-items:flex-start}
.home .ln{display:block;overflow:visible;clip-path:inset(0 -60vw 0 -60vw);line-height:.746;padding:.3em 0;margin:-.3em 0} /* clips the rising reveal top and bottom only; letters are never cut off at the sides */
.home .ln i{display:block;font-style:normal;transform:translateY(175%);transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.home .txt.on .ln i{transform:none;transition-delay:.35s}
.home .txt.on .ln:nth-child(2) i{transition-delay:.45s}
.home .hit{position:absolute;inset:0;z-index:2;display:block}
.home .go{position:absolute;right:var(--m);bottom:var(--gb);z-index:3;width:var(--gs);aspect-ratio:1;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;color:#fff;transition:background .3s,color .3s,opacity .4s,transform .4s}
.home .go svg{width:46%;height:auto}
.home .go:hover,.home .go:focus-visible{background:var(--accent,#92D400);border-color:#fff;color:#fff}
.home .go{pointer-events:auto}
.home .go svg{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
.home .rail{position:fixed}
.home .rail nav a{text-shadow:0 0 14px rgba(0,0,0,.45)}
.home{--gs:clamp(58px,10.8vw,155px);--gb:clamp(20px,4.4vw,64px)}
.home .txt .brand{position:absolute;top:calc(var(--rt) + var(--lb)*.57);bottom:auto;right:calc(var(--m) + var(--gs)/2);width:calc(var(--lb)*var(--lw,1));height:auto;max-height:none;transform:translate(50%,-50%);object-fit:contain}
.snap{position:relative;z-index:0;pointer-events:none}
.snap i{display:block;height:100vh;height:100svh;scroll-snap-align:start;scroll-snap-stop:always}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:820px){
 .home .rail{position:fixed}
 }

@media(prefers-reduced-motion:reduce){.home .bg,.home .txt,.home .ln i,.home .mid{transition:none!important}.home .ln i{transform:none}}

.home .bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease}
.home .bg video.ok{opacity:1}

.home .txt .nm{position:absolute;margin:0;right:calc(var(--m) + var(--gs)/2);bottom:calc(var(--gb) + var(--gs) + clamp(10px,1.2vw,16px));transform:translateX(50%);white-space:nowrap;font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.22em;text-transform:uppercase;text-shadow:0 0 14px rgba(0,0,0,.45)}
@media(max-width:820px){.home .txt .nm{font-size:10px;letter-spacing:.16em}}

/* project name above the arrow: never wider than the arrow; longer names stack */
.home .txt .nm{white-space:normal;width:var(--gs);min-width:min-content;text-align:center;line-height:1.55;text-wrap:balance}

/* scroll position indicator: hairline track on the arrow's center line, between the brand logo and the project name */
.home .prog{position:absolute;z-index:3;right:calc(var(--m) + var(--gs)/2);top:calc((var(--rt) + var(--lb)*1.14 + 100vh - var(--gb) - var(--gs) - 72px)/2);top:calc((var(--rt) + var(--lb)*1.14 + 100svh - var(--gb) - var(--gs) - 72px)/2);transform:translate(50%,-50%);display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;pointer-events:none;font-family:var(--sans);font-weight:600;font-size:9px;letter-spacing:.2em;line-height:1;font-variant-numeric:tabular-nums}
.home .prog span{display:block;height:9px;padding-left:.2em;transition:opacity .4s}
@media(max-height:560px){.home .prog{display:none}}

/* scroll indicator: hidden on the intro, fades in from project 1 */
.home .prog{transition:opacity .5s ease}

/* headline lines never wrap; home.js shrinks a headline (--fs) when its longest line would run into the arrow */
.home .big .ln{white-space:nowrap}

/* giant FatFrank headlines: open up the letter spacing so letters stop touching */
.home .big,.cbig,.abig,.rbig{letter-spacing:0;font-kerning:normal;font-feature-settings:"kern" 1}
.home .big,.home .big .ln i{letter-spacing:-.025em!important}

/* project index: always a slim column of ticks; hover/focus opens it into a right-aligned list (nothing swaps, the same ticks just spread and gain names) */
.home .prog{pointer-events:auto;align-items:flex-end;gap:12px;--rh:13px;transition:opacity .5s ease}
.home .prog::after{content:"";position:absolute;inset:-28px -34px -28px -190px}
.home .prog .pl{position:relative;z-index:1;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;align-items:flex-end;transition:gap .55s cubic-bezier(.22,.8,.2,1)}
.home .prog:hover .pl,.home .prog:focus-within .pl,.home .prog.open .pl{--rh:27px}
.home .prog .pl li{display:block}
.home .prog .pl button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;height:var(--rh);gap:10px;color:#fff;font:inherit;transition:height .55s cubic-bezier(.22,.8,.2,1)}
.home .prog .pl span{display:block;height:auto;padding:0;white-space:nowrap;text-transform:uppercase;text-align:right}
.home .prog .pl .pt2,.home .prog .pl .pn2{opacity:0;transform:translateX(10px);transition:opacity .25s ease,transform .5s cubic-bezier(.22,.8,.2,1);transition-delay:calc((9 - var(--i))*12ms)}
.home .prog .pl .pt2{font-size:8px;letter-spacing:.24em;color:rgba(255,255,255,.85)}
.home .prog .pl .pn2{min-width:1.6em;font-size:9px;letter-spacing:.2em;color:rgba(255,255,255,.7)}
.home .prog .pl .tk{display:flex;justify-content:flex-end;width:26px}
.home .prog .pl .tk i{display:block;width:8px;height:1px;background:#fff;opacity:.5;transition:width .45s cubic-bezier(.22,.8,.2,1),opacity .3s ease}
.home .prog .pl button.on .tk i{width:20px;opacity:1}
.home .prog:hover .pl .pt2,.home .prog:hover .pl .pn2,.home .prog:focus-within .pl .pt2,.home .prog:focus-within .pl .pn2,.home .prog.open .pl .pt2,.home .prog.open .pl .pn2{opacity:1;transform:none;transition-delay:calc(var(--i)*16ms)}
.home .prog .pl button.on .pt2,.home .prog .pl button.on .pn2{color:#fff}
.home .prog .pl button:not(.on) .pt2,.home .prog .pl button:not(.on) .pn2{color:rgba(255,255,255,.68)}
.home .prog .pl button:hover .pt2,.home .prog .pl button:hover .pn2,.home .prog .pl button:focus-visible .pt2,.home .prog .pl button:focus-visible .pn2{color:#fff}
.home .prog .pl button:hover .tk i,.home .prog .pl button:focus-visible .tk i{width:26px;opacity:1}
.home .prog .pl button:focus-visible{outline:1px solid rgba(255,255,255,.7);outline-offset:3px}
.home .prog,.home .prog .pl{text-shadow:0 0 14px rgba(0,0,0,.55),0 0 3px rgba(0,0,0,.35)}
@media(prefers-reduced-motion:reduce){.home .prog .pl,.home .prog .pl button,.home .prog .pl span,.home .prog .pl i{transition:none!important}}
/* labels sit outside the flow so the collapsed indicator is only as wide as its ticks; right edge lands on the arrow's centre line */
.home .prog{transform:translate(0,-50%)}
.home .prog .pl button{position:relative}
.home .prog .pl .tk{width:22px}
.home .prog .pl .pn2{position:absolute;right:32px;top:50%;margin-top:-5px;line-height:10px}
.home .prog .pl .pt2{position:absolute;right:68px;top:50%;margin-top:-5px;line-height:10px}
/* the counter lives in the list: the current project's number always shows beside its tick, the rest join it on hover */
.home .prog .pl button.on .pn2{opacity:1;transform:none;color:#fff;transition-delay:0s}

/* welcome screen: big mark on the reel; project 1 slides up over it */
.home .welcome{position:fixed;inset:0;z-index:1;overflow:hidden;background:#050706}
.home .welcome .bg{opacity:1;transform:scale(calc(1 + var(--wp,0)*.05));transition:none}
.home .welcome .bg::after{background:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.1) 45%,rgba(0,0,0,.32))}
.home .welcome .txt{opacity:1;transition:none;transform:translate3d(0,calc(var(--wp,0)*-9vh),0);opacity:calc(1 - var(--wp,0)*.75)}
.home .wm{position:absolute;left:50%;top:50%;width:clamp(170px,19.5vw,290px);aspect-ratio:1;background:var(--accent);transform:translate(-50%,-50%);animation:wmIn 1.1s cubic-bezier(.2,.8,.2,1) both}
.home .wm svg{display:block;width:100%;height:100%}
@keyframes wmIn{from{opacity:0;transform:translate(-50%,-47%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.home .wcue{all:unset;box-sizing:border-box;position:absolute;left:50%;bottom:clamp(24px,3.1vw,44px);transform:translateX(-50%);pointer-events:auto;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 14px;color:#fff;font-family:var(--sans);font-weight:600;font-size:9px;letter-spacing:.3em;text-transform:uppercase;text-shadow:0 0 14px rgba(0,0,0,.5);animation:wmIn 1.1s .5s cubic-bezier(.2,.8,.2,1) both}
.home .wcue i{display:block;width:1px;height:44px;background:linear-gradient(#fff,rgba(255,255,255,0));transform-origin:top;animation:cue 2s ease-in-out infinite}
@keyframes cue{0%{transform:scaleY(.25);opacity:.5}50%{transform:scaleY(1);opacity:1}100%{transform:scaleY(.25);opacity:.5}}
.home .wcue:focus-visible{outline:1px solid rgba(255,255,255,.7);outline-offset:3px}
.home .stage{z-index:2;transform:translate3d(0,100%,0)}
.home.sliding .stage{will-change:transform;box-shadow:0 -40px 90px rgba(0,0,0,.5)} /* the big layer and its shadow exist only while the stage is actually sliding */
.home .rail .logo{transition:opacity .45s ease,background .15s}
.home .go{animation:none!important}
.home .go svg{transform:none!important}
@media(prefers-reduced-motion:reduce){.home .wm,.home .wcue,.home .wcue i{animation:none}}

/* v2 welcome: no nav, mark parked bottom-left, the arrow stays put and turns as project 1 arrives */
.home .go{position:fixed;z-index:4}
.home .go svg{transform:none!important;transition:none}
@keyframes nudge2{0%,100%{translate:0 0}50%{translate:0 8px}}
@media(prefers-reduced-motion:reduce){.home.welcome-on .go{animation:none!important}}
.home .rail .logo{transition:opacity .45s ease,background .15s;pointer-events:auto}
.home.welcome-on .rail .logo{pointer-events:none}
.home.welcome-on .rail nav,.home.welcome-on .rail .soc{pointer-events:none}

/* welcome greeting, dead center */
.home .wh{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);font-family:var(--display);font-weight:400;font-size:calc(clamp(64px,15.3vw,250px)*var(--fs,1));line-height:.746;text-transform:uppercase;letter-spacing:-.025em;white-space:nowrap;text-align:center;color:#fff}
.home .wh .ln{display:block}
.home .wh .ln i{letter-spacing:-.025em;transition-delay:.3s}

/* nav fades in last, one row at a time, after project 1 has landed; leaving the project hides it at once */
.home .rail nav{opacity:1!important}
.home .rail nav a,.home .rail .soc{opacity:0;transform:translateY(6px);pointer-events:none;transition:opacity .15s ease,transform .15s ease,color .2s}
.home.nav-in .rail nav a,.home.nav-in .rail .soc{opacity:.95;transform:none;pointer-events:auto;transition:opacity .4s ease,transform .5s cubic-bezier(.2,.8,.2,1),color .2s}
.home.nav-in .rail nav a:nth-child(1){transition-delay:.08s}
.home.nav-in .rail nav a:nth-child(2){transition-delay:.16s}
.home.nav-in .rail nav a:nth-child(3){transition-delay:.24s}
.home.nav-in .rail nav a:nth-child(4){transition-delay:.32s}
.home.nav-in .rail .soc{transition-delay:.4s}
@media(prefers-reduced-motion:reduce){.home .rail nav a,.home .rail .soc{transition:none!important;transform:none}}

/* welcome pieces exit on scroll: the logo slides up off screen, the scroll arrow slides down off screen; the real nav logo and project arrow take over */
.home .wlogo{position:absolute;z-index:2;top:var(--rt);left:50%;width:var(--rl);aspect-ratio:1;margin-left:calc(var(--rl)/-2);background:var(--accent);transform:translate3d(0,calc(var(--wp,0)*-1*(var(--rt) + var(--rl) + 40px)),0)}
.home .wlogo svg{display:block;width:100%;height:100%}
.home .wgo{all:unset;box-sizing:border-box;position:absolute;z-index:2;left:50%;bottom:var(--gb);width:var(--ws);aspect-ratio:1;margin-left:calc(var(--ws)/-2);border:3px solid #fff;border-radius:50%;display:grid;place-items:center;color:#fff;cursor:pointer;transform:translate3d(0,calc(var(--wp,0)*(var(--gb) + var(--ws) + 40px)),0);animation:nudge2 1.8s ease-in-out infinite}
.home .wgo svg{width:46%;height:auto;transform:rotate(90deg)}
.home .wgo:hover,.home .wgo:focus-visible{background:var(--accent)}
.home .wgo:focus-visible{outline:1px solid rgba(255,255,255,.7);outline-offset:3px}
.home .go{transform:translate3d(0,100vh,0)} /* rides up with the stage; home.js sets the exact offset */
@media(max-width:820px){.home .wlogo{top:14px}}
@media(prefers-reduced-motion:reduce){.home .wgo{animation:none}}

/* nav logo: stays hidden until project 1 has landed, then fades in after a beat (just ahead of the nav rows); hides at once when going back */
.home .rail .logo{opacity:0;pointer-events:none;transition:opacity .2s ease,background .15s}
.home.nav-in .rail .logo{opacity:1;pointer-events:auto;transition:opacity .4s ease .05s,background .15s}

/* lime sweep: a 500px bar rides the stage's leading edge a little faster than the stage, so it crosses the welcome screen and leaves the top of the frame just as project 1 lands */
.home .sweep{position:fixed;left:0;right:0;top:0;height:500px;z-index:3;background:var(--accent);pointer-events:none;transform:translate3d(0,100vh,0)}

/* carousel nav: the active project is lime (tick, number and name) */
.home .prog .pl button.on .tk i{background:var(--accent,#92D400);opacity:1}
.home .prog .pl button.on .pt2,.home .prog .pl button.on .pn2,.home .prog .pl button.on:hover .pt2,.home .prog .pl button.on:hover .pn2{color:var(--accent,#92D400)}

.home.skip-in .rail nav a,.home.skip-in .rail .soc,.home.skip-in .rail .logo{transition:none!important}

.home .welcome{--ws:calc(var(--gs)*.6)}
.home .wc{position:absolute;z-index:2;margin:0;font-family:var(--sans);font-weight:600;font-size:11px;line-height:1.6;letter-spacing:.22em;text-transform:uppercase;color:#fff;text-shadow:0 0 14px rgba(0,0,0,.45);white-space:nowrap;line-height:1.55;opacity:calc(1 - var(--wp,0)*2)}
.home .wc s{opacity:.5;text-decoration:line-through}
.home .wtl{top:var(--rt);left:var(--m)}
.home .wsoc{position:absolute;z-index:2;top:var(--rt);right:var(--m);display:flex;gap:12px;color:#fff;opacity:calc(1 - var(--wp,0)*2)}
.home .wsoc a{display:grid;place-items:center;width:18px;height:18px;color:inherit;transition:opacity .2s}
.home .wsoc a:hover{opacity:.7}
.home .wsoc svg{width:16px;height:16px}
.home .wsoc svg,.home .wsoc svg *{fill:currentColor}
.home .wbl{bottom:var(--rt);left:var(--m)}
.home .wbr{bottom:var(--rt);right:var(--m);text-align:right}
@media(max-width:820px){.home .wtl,.home .wsoc{top:14px}.home .wbl,.home .wbr{bottom:20px}}

/* project index: each row's clickable area reaches left over the name and number, so there are no dead gaps inside a row (rows already touch top to bottom) */
@media(hover:hover){
  .home .prog .pl button{position:relative}
  .home .prog .pl button::before{content:"";position:absolute;top:0;bottom:0;right:0;width:250px}
}
