/* VOICE: playful, crafted, personal — a product builder's desk
   IDEA: pixel checkerboard + collected objects (stamps, torn note, folders) from the Figma file
   PICTURE: the pixel-script name lockup with avatar and floating tag pills
   COLOUR and TYPE: paper #f7f3f2, night #0f0f0f, sky #a0c1e4; Hanken Grotesk + pixel script art
   LAYOUT: Figma 1200 frame, scaled by % on tablet, restacked on phones */
:root{color-scheme:light;--paper:#f7f3f2;--ink:#171717;--mut:#5e5e59;--night:#0f0f0f;--sky:#a0c1e4;--line:#d6d6cf;--pill:#cfcfcf;--navh:80px;--gut:76px}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.4 "Hanken Grotesk",system-ui,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:2px solid #7a9eda;outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Navbar ---------- */
.nav{position:fixed;inset:0 0 auto 0;z-index:50;background:var(--paper);border-bottom:1px solid var(--line);transition:transform .38s cubic-bezier(.2,.7,.2,1)}
.nav.hide{transform:translateY(-101%)}
.nav-in{max-width:1200px;margin:auto;height:var(--navh);padding:0 var(--gut);display:flex;align-items:center;justify-content:space-between;gap:16px}
.loc{display:flex;gap:20px;font-size:13px;line-height:20px;white-space:nowrap}
.loc .m{color:var(--mut);font-variant-numeric:tabular-nums}
.links{display:flex;align-items:center;gap:32px}
.links a{font-size:14px;line-height:20px;text-decoration:none;position:relative}
.links a::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .25s}
.links a:hover::after{transform:scaleX(1)}
.menu{width:40px;height:40px;border-radius:20px;border:0;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .2s}
.menu:hover{background:#ecece5}
.menu span{display:block;width:14px;height:1.2px;background:var(--ink);box-shadow:0 -4px 0 var(--ink),0 4px 0 var(--ink);transition:.25s}
.menu[aria-expanded=true] span{box-shadow:none;transform:rotate(45deg)}
.menu[aria-expanded=true] span::after{content:"";display:block;width:14px;height:1.2px;background:var(--ink);transform:rotate(90deg)}
.scrim{position:fixed;inset:0;z-index:59;background:rgba(10,10,10,.45);opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.scrim.open{opacity:1;visibility:visible}
.sheet{position:fixed;inset:0 0 auto 0;z-index:60;background:var(--night);color:#fff;transform:translateY(-101%);visibility:hidden;transition:transform .55s cubic-bezier(.7,0,.2,1),visibility .55s}
.sheet.open{transform:none;visibility:visible}
.sheet-in{max-width:1200px;margin:auto;padding:47px var(--gut) 64px}
.back{width:40px;height:40px;margin-left:-12px;border:0;background:none;color:#fff;cursor:pointer;display:grid;place-items:center;border-radius:20px;transition:background .2s}
.back:hover{background:#1f1f1f}.back svg{width:20px;height:20px}
.mlist{list-style:none;margin:40px 0 0;padding:0;--s:.2654}
.mlist li{height:75px;opacity:0;transform:translateY(14px);transition:opacity .35s,transform .45s cubic-bezier(.2,.7,.2,1)}
.mlist li:last-child{height:auto}
.sheet.open .mlist li{opacity:1;transform:none}
.sheet.open .mlist li:nth-child(1){transition-delay:.18s}.sheet.open .mlist li:nth-child(2){transition-delay:.24s}.sheet.open .mlist li:nth-child(3){transition-delay:.3s}.sheet.open .mlist li:nth-child(4){transition-delay:.36s}
.mlist a{display:inline-flex;align-items:flex-start;gap:8px;text-decoration:none;color:#fff;--c:#fff}
.mlist a:hover,.mlist a:focus-visible{--c:#7a9eda;outline:none}
.mlist sup{font-size:12px;line-height:1;margin-top:-4px;color:#f7f3f2;min-width:18px}
.mw.m-about{--m:url(../img/m-about.png)}
.mw.m-works{--m:url(../img/m-works.png)}
.mw.m-playground{--m:url(../img/m-playground.png)}
.mw.m-contact{--m:url(../img/m-contact.png)}
.mw{position:relative;display:block;width:calc(var(--w) * var(--s) * 1px);height:calc(var(--h) * var(--s) * 1px);background:var(--c);-webkit-mask:var(--m) no-repeat 0 0/100% 100%;mask:var(--m) no-repeat 0 0/100% 100%;transition:background .2s}
.ul{position:absolute;left:26px;top:calc(110 * var(--s) * 1px + 3px);height:2px;width:calc(var(--w) * var(--s) * 1px);background:#7a9eda;transform:scaleX(0);transform-origin:left;transition:transform .3s}
.mlist a{position:relative}
.mlist a:hover .ul,.mlist a:focus-visible .ul{transform:scaleX(1)}
html.menu-open{overflow:hidden}

/* ---------- Hero ---------- */
.hero{padding-top:var(--navh);overflow:hidden}
.stage{position:relative;max-width:1200px;margin:auto;aspect-ratio:1200/640}
.lockup{position:absolute;left:5.83%;top:13.59%;width:70.92%;aspect-ratio:851/351}
.lockup img{position:absolute;height:auto}
.l-mehi{left:.22%;top:37.66%;width:99.76%}
.l-ava{left:50.18%;top:18.23%;width:15.98%;transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.lockup:hover .l-ava{transform:rotate(-8deg) translateY(-4%)}
.l-cel{left:.08%;top:0;width:50.76%}
.pills{position:absolute;inset:0;pointer-events:none}
.pill{position:absolute;pointer-events:auto;display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--pill);border-radius:100px;font-size:clamp(13px,1.667vw,20px);letter-spacing:.01em;padding:.6em 2.05em;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s,transform .3s}
.pill::before{content:"";width:8px;height:8px;background:currentColor;flex:none;transition:background .2s}
.pill:hover{background:var(--ink);color:#fff;transform:translateY(-3px)}
.pill:hover::before{background:var(--sky)}
.p1{left:59.5%;top:25.8%}.p2{left:76.75%;top:49.7%}.p3{left:58.4%;top:67.7%}

/* ---------- Pixel bands ---------- */
.band{position:relative;width:100%;aspect-ratio:15/2;overflow:hidden}
.band i{position:absolute;width:calc(100%/15);height:50%;background:var(--paper)}

/* ---------- About (dark) ---------- */
.dark{background:var(--night);color:var(--paper)}
.scene{position:relative;height:340vh}
.sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:flex;flex-direction:column}
.sc-body{flex:1;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:0 0 4vh;transition:opacity .2s linear}
.kicker{margin:0;font-size:20px;letter-spacing:.01em;line-height:26px}
.outline{margin:18px auto 0;padding:0 16px;font-weight:200;font-size:clamp(32px,6.667vw,80px);line-height:1.31;letter-spacing:.1em}
.outline span{display:block;width:fit-content;margin:0 auto;color:transparent;-webkit-text-stroke:1px #4b4b4b;background:linear-gradient(90deg,var(--f) 50%,transparent 50%) no-repeat;background-size:200% 100%;background-position:calc(100% - var(--p,0) * 100%) 0;-webkit-background-clip:text;background-clip:text;transition:-webkit-text-stroke-color .4s}
.outline span.done{-webkit-text-stroke-color:var(--f)}
.outline span:nth-child(-n+2){--f:var(--paper)}
.outline span:nth-child(3){--f:#c7d7ee}
.paper{position:absolute;left:50%;top:52%;width:min(668px,88vw,calc(72vh * 1.287));transform:translate(-50%,120vh);will-change:transform;filter:drop-shadow(0 28px 36px rgba(0,0,0,.55));pointer-events:none}

/* ---------- Experience ---------- */
.exp{padding-top:76px}
.exp-grid{max-width:1200px;margin:auto;padding:0 var(--gut);display:grid;grid-template-columns:repeat(4,200px);justify-content:space-between;gap:40px 24px}
.job{display:flex;flex-direction:column;gap:22px;font-size:16px;letter-spacing:.01em}
.job img{width:100%;max-width:200px;aspect-ratio:200/280;transition:transform .35s cubic-bezier(.3,1.5,.5,1)}
.job:nth-child(odd):hover img{transform:rotate(-3deg) translateY(-6px)}
.job:nth-child(even):hover img{transform:rotate(3deg) translateY(-6px)}
.job p{margin:0}.job b{font-weight:700;display:block;margin-bottom:9px}
@media (min-width:1024px){.job b{white-space:nowrap}}
.cta{display:flex;justify-content:center;margin:80px 0 147px}
.ghost{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--pill);border-radius:100px;padding:12px 41px;font-size:20px;letter-spacing:.01em;color:#fff;text-decoration:none;transition:background .2s,color .2s}
.ghost:hover{background:var(--paper);color:var(--ink)}
.ghost svg{width:24px;height:24px}

/* ---------- Works ---------- */
.works{padding-top:60px}
.works-head{position:relative;width:min(407px,72vw);margin:0 auto 68px}
.works-head .cur{position:absolute;left:93.1%;top:91.5%;width:16%;animation:bob 2.4s ease-in-out infinite}
@keyframes bob{50%{transform:translate(-4px,-5px)}}
.cards{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.card{display:block;background:#fafbf6;text-decoration:none;color:var(--ink)}
.card+.card{border-left:1px solid #fff}
.thumb{position:relative;aspect-ratio:400/328;overflow:hidden;container-type:inline-size;--u:.25cqw}
.t-sky{background:var(--sky)}.t-white{background:#fff}
.sq{position:absolute;width:20%;aspect-ratio:1;transition:transform .45s cubic-bezier(.3,1.4,.5,1)}
.t-sky .sq{background:#fff}.t-white .sq{background:var(--sky)}
.card:hover .sq:nth-child(odd){transform:translateY(-25%)}
.card:hover .sq:nth-child(even){transform:translateY(25%)}
.ph1{position:absolute;left:16.17%;top:7.11%;width:67.67%;height:auto;max-width:none;transform-origin:50% 100%;transition:transform .55s cubic-bezier(.25,1.3,.5,1),filter .4s;will-change:transform}
.card:hover .ph1{transform:scale(1.04);filter:drop-shadow(0 10px 18px rgba(22,61,53,.18))}
.t-phone .ph1{animation:phFloat 4.8s ease-in-out infinite}
@keyframes phFloat{0%,100%{scale:1}50%{scale:1.025}}
.t-phone .sq{animation:sqHop 6s steps(1,end) infinite}
.t-phone .sq:nth-child(2){animation-delay:-2s}.t-phone .sq:nth-child(3){animation-delay:-4s}
@keyframes sqHop{0%,100%{translate:0 0}33%{translate:0 -25%}66%{translate:0 25%}}
.card:hover .t-phone .sq{animation-play-state:paused}
.t-phone.pre .ph1{transform:translateY(55%);opacity:0}
.t-phone.pre .sq{transform:scale(0)}
.t-phone.in .ph1{transition:transform .9s cubic-bezier(.2,.9,.25,1) .15s,opacity .5s .15s}
.t-phone.in .sq{transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
.t-phone.in .sq:nth-child(2){transition-delay:.08s}.t-phone.in .sq:nth-child(3){transition-delay:.16s}
.lap{position:absolute;left:6.75%;top:10.06%;width:93.25%;height:auto;max-width:none;transform-origin:30% 100%;transition:transform .55s cubic-bezier(.25,1.3,.5,1),filter .4s}
.card:hover .lap{transform:scale(1.03);filter:drop-shadow(0 10px 18px rgba(22,61,53,.16))}
.t-lap.pre .lap{transform:translateY(45%);opacity:0}.t-lap.pre .sq{transform:scale(0)}
.t-lap.in .lap{transition:transform .9s cubic-bezier(.2,.9,.25,1) .15s,opacity .5s .15s}
.t-lap .sq{animation:sqHop 6s steps(1,end) infinite}.t-lap .sq:nth-child(2n){animation-delay:-2s}.t-lap .sq:nth-child(3n){animation-delay:-4s}
.card:hover .t-lap .sq{animation-play-state:paused}
.ph3{aspect-ratio:219/448}.ph3 img{position:absolute;inset:0;width:100%;height:100%}
.ph3 .scr{position:absolute;left:4.405%;top:1.883%;width:91.113%;height:96.235%;object-fit:cover;background:#060c0d;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%229.64676%208.43384%20199.537%20431.132%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M12.6904%2023.63C9.64676%2029.5835%209.64676%2037.377%209.64676%2052.964V395.036C9.64676%20410.623%209.64676%20418.417%2012.6904%20424.37C15.3677%20429.607%2019.6397%20433.865%2024.8941%20436.533C30.8676%20439.566%2038.6873%20439.566%2054.3268%20439.566H164.504C180.143%20439.566%20187.963%20439.566%20193.937%20436.533C199.191%20433.865%20203.463%20429.607%20206.14%20424.37C209.184%20418.417%20209.184%20410.623%20209.184%20395.036V52.964C209.184%2037.377%20209.184%2029.5835%20206.14%2023.63C203.463%2018.3932%20199.191%2014.1356%20193.937%2011.4673C187.963%208.43384%20180.143%208.43384%20164.504%208.43384H54.3268C38.6873%208.43384%2030.8676%208.43384%2024.8941%2011.4673C19.6397%2014.1356%2015.3677%2018.3932%2012.6904%2023.63Z%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%229.64676%208.43384%20199.537%20431.132%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M12.6904%2023.63C9.64676%2029.5835%209.64676%2037.377%209.64676%2052.964V395.036C9.64676%20410.623%209.64676%20418.417%2012.6904%20424.37C15.3677%20429.607%2019.6397%20433.865%2024.8941%20436.533C30.8676%20439.566%2038.6873%20439.566%2054.3268%20439.566H164.504C180.143%20439.566%20187.963%20439.566%20193.937%20436.533C199.191%20433.865%20203.463%20429.607%20206.14%20424.37C209.184%20418.417%20209.184%20410.623%20209.184%20395.036V52.964C209.184%2037.377%20209.184%2029.5835%20206.14%2023.63C203.463%2018.3932%20199.191%2014.1356%20193.937%2011.4673C187.963%208.43384%20180.143%208.43384%20164.504%208.43384H54.3268C38.6873%208.43384%2030.8676%208.43384%2024.8941%2011.4673C19.6397%2014.1356%2015.3677%2018.3932%2012.6904%2023.63Z%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.cbadge{position:absolute;left:78%;top:20%;z-index:3;width:27cqw;height:11.5cqw;border-radius:99px;background:#fff;border:1.5px solid #cfcfcf;color:#171717;font-size:5.6cqw;line-height:1;display:grid;place-items:center;letter-spacing:.01em;pointer-events:none;opacity:0;transform:translate(-50%,-50%) translate(-6cqw,8cqw) rotate(0deg) scale(.55);transition:transform .45s cubic-bezier(.3,1.5,.5,1),opacity .2s}
.card:hover .cbadge,.card:focus-visible .cbadge,.card:focus .cbadge{opacity:1;transform:translate(-50%,-50%) rotate(15deg) scale(1)}
.is-soon{cursor:default}.is-soon .go{opacity:.35}.card.is-soon:hover .go{background:#000;transform:none}
@media (hover:none){.cbadge{opacity:1;transform:translate(-50%,-50%) rotate(15deg) scale(1)}}
.det{background:#ebe9e4;padding:24px 28px 18px}
.cat{font-size:10px;font-weight:500;letter-spacing:1.3px;line-height:16px;color:var(--mut);text-transform:uppercase}
.det h3{margin:9px 0 0;font-size:clamp(22px,2.333vw,28px);font-weight:500;line-height:34px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row{display:flex;align-items:center;justify-content:space-between;margin-top:17px;font-size:12px;line-height:16px;color:var(--mut)}
.row{gap:20px}.row>span:first-child{min-width:0;line-height:18px;text-wrap:balance}
.go{width:40px;height:40px;border-radius:20px;background:#000;display:grid;place-items:center;transition:background .2s,transform .3s}
.go svg{width:24px;height:24px}
.card:hover .go{background:#7a9eda;transform:translateX(4px)}
.cnav{display:none}

/* ---------- Playground ---------- */
.pg{position:relative;max-width:1200px;margin:auto;aspect-ratio:1200/720}
.pg-title{position:absolute;left:16.5%;top:38.89%;width:67%}
.pg-title .ic{position:absolute;width:9.33%;transition:transform .3s}
.pg-title .ic:hover{transform:rotate(-12deg) scale(1.1)}
.ic-clip{left:87.54%;top:-8.1%}.ic-arrow{left:14.93%;top:62.84%;transform:rotate(-9.43deg)}
.folds{position:absolute;inset:0;margin:0;padding:0;list-style:none;pointer-events:none}
.fold{position:absolute;left:var(--x);top:var(--y);width:7.75%;pointer-events:auto}
.fold a{display:flex;flex-direction:column;align-items:center;gap:15px;text-decoration:none;color:var(--mut);font-size:12px;line-height:16px;text-align:center;white-space:nowrap}
.fold svg{width:100%;height:auto;overflow:visible;filter:drop-shadow(0 .8px .8px rgba(0,0,0,.3)) drop-shadow(0 1.6px 1.6px rgba(0,0,0,.1));transition:transform .35s cubic-bezier(.3,1.5,.5,1)}
.fw{position:relative;display:block;width:100%;container-type:inline-size}
.soon{position:absolute;left:69.5%;top:13.2%;z-index:2;width:80.6cqw;height:34.4cqw;border-radius:99px;background:#fff;border:1.5px solid #cfcfcf;color:#171717;font-size:17.2cqw;font-weight:400;line-height:1;display:grid;place-items:center;letter-spacing:.01em;pointer-events:none;opacity:0;transform:translate(-50%,-50%) translate(-14cqw,22cqw) rotate(0deg) scale(.55);transition:transform .45s cubic-bezier(.3,1.45,.5,1),opacity .2s}
.fold a:hover .soon,.fold a:focus-visible .soon{opacity:1;transform:translate(-50%,-50%) rotate(15deg) scale(1)}
.fold a{cursor:default}

/* ---------- Footer ---------- */
.ft-top{max-width:1200px;margin:auto;padding:42px var(--gut);display:flex;align-items:flex-end;gap:24px}
.ft-top img{width:227px;height:auto;margin-bottom:4px}
.ft-links{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:24px;font-size:12px;font-weight:300;letter-spacing:.09px;color:#fdfdfd}
.ft-links a{text-decoration:none}.ft-links a:hover{text-decoration:underline}
.ft-links i{width:1px;height:16px;background:#5e5e59}
.marquee{border-top:1px solid #5e5e59;overflow:hidden;padding:24px 0}
.track{display:flex;width:max-content;animation:mq 36s linear infinite}
.marquee:hover .track{animation-play-state:paused}
.track span{display:flex;align-items:center;gap:24px;padding-right:24px;font-size:12px;font-weight:300;color:#fdfdfd;white-space:nowrap}
.track span::after{content:"";width:4px;height:4px;background:#7c7c7c}
@keyframes mq{to{transform:translateX(-50%)}}

/* ---------- Tablet ---------- */
@media (max-width:1023px){
  :root{--gut:40px}
  .exp-grid{grid-template-columns:repeat(2,minmax(0,220px));justify-content:center;gap:56px 72px}
  .cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 var(--gut) 4px;scrollbar-width:none}
  .cards::-webkit-scrollbar{display:none}
  .card{flex:0 0 min(400px,78vw);scroll-snap-align:center}
  .card+.card{border:0}
  /* no white strip at the bottom of thumbnails on tablet/mobile */
  .t-lap .lap{top:auto;bottom:0}
  .det{padding:24px 24px 22px}
  .row{margin-top:20px;min-height:40px}
  .t-phone .sq[style*="top:75.91%"]{display:none}
  .cnav{display:flex;justify-content:flex-end;gap:8px;max-width:1200px;margin:16px auto 0;padding:0 var(--gut)}
  .cnav button{width:44px;height:44px;border-radius:22px;border:1px solid var(--pill);background:#fff;cursor:pointer;display:grid;place-items:center}
  .cnav button:hover{background:var(--ink);color:#fff}
  .cnav svg{width:20px;height:20px}
  .det h3{font-size:24px}
}
@media (max-width:720px){
  :root{--navh:64px;--gut:20px}
  .loc .gmt{display:none}
  .sheet{bottom:0;height:100svh}
  .sheet-in{padding:20px 20px 40px}
  .mlist{--s:.3;margin-top:36px}.mlist li{height:84px}
  .loc{gap:12px;font-size:12px}
}
/* ---------- Mobile ---------- */
@media (max-width:640px){
  .stage{aspect-ratio:auto;padding:40px 20px 48px}
  .lockup{position:relative;left:auto;top:auto;width:100%}
  .pills{position:static;display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
  .pill{position:static;font-size:15px;padding:9px 20px}
  .pill:nth-child(odd){transform:rotate(-2deg)}.pill:nth-child(even){transform:rotate(2deg)}
  .kicker{font-size:16px}
  .outline{letter-spacing:.06em}
  .outline span{-webkit-text-stroke-color:#5a5a5a}
  .scene{height:300vh}
  .exp{padding-top:56px}
  .exp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 16px}
  .job{gap:14px;font-size:14px}
  .job b{margin-bottom:4px}
  .cta{margin:56px 0 72px}
  .ghost{font-size:16px;padding:11px 24px}
  .works{padding-top:48px}
  .works-head{margin-bottom:44px}
  .pg{aspect-ratio:auto;padding:64px 20px 56px}
  .pg-title{position:relative;left:auto;top:auto;width:100%;margin:12px 0 48px}
  .folds{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:28px 24px;pointer-events:auto}
  .fold{position:static;width:auto;display:flex;justify-content:center}
  .fold a{width:72px}
  .det h3{white-space:normal;font-size:24px;line-height:30px}
  .ft-top{flex-direction:column;align-items:flex-start;gap:20px;padding:36px 20px}
  .ft-top img{width:180px}
  .ft-links{justify-content:flex-start}
}

/* ---------- Loader ---------- */
html.is-loading{overflow:hidden}
.loader{position:fixed;inset:0;z-index:100;overflow:hidden;pointer-events:auto}
.loader.gone{pointer-events:none}
.ld-grid{position:absolute;inset:0}
.ld-grid i{position:absolute;transition:opacity .35s steps(2,end)}
.ld-grid i.o{opacity:0}
.ld-word{position:absolute;left:50%;top:50%;width:min(466px,76vw);height:auto;transform:translate(-50%,-50%);shape-rendering:crispEdges;transition:opacity .3s,transform .5s}
.loader.gone .ld-word{opacity:0;transform:translate(-50%,-50%) scale(.96)}
.ld-pct{position:absolute;left:50%;bottom:clamp(24px,6vh,56px);transform:translateX(-50%);font-size:13px;color:#5e5e59;font-variant-numeric:tabular-nums;letter-spacing:.04em;transition:opacity .3s}
.loader.gone .ld-pct{opacity:0}

/* ---------- Case study page (#search-improvement) ---------- */
.case{display:none;background:var(--paper)}
body.view-case .case{display:block}
body.view-case main,body.view-case #contact,body.view-case .nav,body.view-case .sheet,body.view-case .scrim{display:none}
.c-hero{position:relative;background:#a0c1e4;overflow:hidden}
.c-stage{position:relative;max-width:1200px;margin:0 auto;aspect-ratio:1200/506}
.c-sq{position:absolute;width:11.667%;aspect-ratio:1;background:rgba(255,255,255,.12)}
.c-phone{position:absolute;left:37.5%;bottom:0;width:22.667%;height:auto;max-width:none}
.c-pill{position:absolute;height:auto;max-width:none;filter:drop-shadow(0 4px 10px rgba(23,23,23,.06));animation:cbob 5s ease-in-out infinite}
.c-pill.h{left:54.67%;top:41.1%;width:13.17%;animation-delay:-1.2s}
.c-pill.m{left:23.17%;top:61.46%;width:16.58%;animation-delay:-3s}
.c-pill.p{left:58.5%;top:84.39%;width:12%;animation-delay:-.4s}
@keyframes cbob{50%{transform:translateY(-6%)}}
.c-back{position:absolute;left:max(76px,calc(50% - 524px));top:64px;width:40px;height:40px;border-radius:20px;background:#000;color:#fff;display:grid;place-items:center;transition:transform .25s,background .2s}
.c-back:hover{transform:translateX(-3px);background:#222}
.c-back svg{width:20px;height:20px}
.c-meta{position:absolute;top:64px;right:max(76px,calc(50% - 524px));margin:0;display:grid;grid-template-columns:repeat(3,auto);gap:0 64px;font-size:12px;line-height:20px;letter-spacing:.02em;text-transform:uppercase;color:#171717}
.c-meta dt{font-weight:400}.c-meta dd{margin:4px 0 0;font-weight:600}
.c-wrap{max-width:1200px;margin:0 auto;padding:0 76px}
.c-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;padding:58px 0 126px}
.c-intro h1{margin:0;font-weight:400;font-size:clamp(40px,6vw,72px);line-height:1.06;letter-spacing:-.005em;text-transform:uppercase;color:#1d1715}
.toc{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(2,auto);gap:20px 64px;font-size:13px;text-transform:uppercase;letter-spacing:.01em}
.toc button,.toc span{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;display:grid;grid-template-columns:1.6em auto;column-gap:18px;align-items:baseline;text-transform:inherit;text-align:left;line-height:20px}
.toc span{cursor:default}
.toc button:hover b{text-decoration:underline;text-underline-offset:3px}
.toc i{font-style:normal;color:#5e5e59;font-variant-numeric:tabular-nums}.toc b{font-weight:400}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stat{background:#eae9e4;min-height:264px;padding:82px 41px 41px;display:flex;flex-direction:column;justify-content:flex-start}
.stat img{flex:none;align-self:flex-start;height:71px;width:auto;max-width:none;margin:0 0 14px -4px;display:block}
.stat p{margin:0;font-size:20px;line-height:1.5;color:#5e5e59;max-width:15em}
.prob{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:64px;align-items:center;padding:130px 0 62px}
.lbl{font-size:10px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 16px}
.prob h2{margin:0;font-weight:400;font-size:clamp(28px,3vw,36px);line-height:1.25;max-width:14em}
.prob ol{margin:20px 0 64px;padding-left:18px;font-size:12px;line-height:1.6;max-width:42em}
.prob h3{margin:0;font-weight:400;font-size:clamp(30px,3.4vw,41px);line-height:1.27;max-width:13.5em}
.prob mark{background:#000;color:#fff;padding:0 6px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.prob figure{margin:0}.prob figure img{width:100%;height:auto;border-radius:8px}
.sol{background:#000;color:#fff;padding-top:55px;overflow:hidden}
.tabs{display:flex;gap:10px;width:max-content;max-width:calc(100% - 32px);margin:0 auto;padding:12px;background:#333;border-radius:12px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;font:inherit;font-size:15px;color:#fff;background:transparent;border:1px solid #5a5a5a;border-radius:12px;padding:12px 16px;cursor:pointer;transition:background .2s,color .2s,border-color .2s;min-height:44px}
.tabs button:hover{border-color:#9a9a9a}
.tabs button[aria-selected=true]{background:#fff;color:#000;border-color:#fff}
.panel{display:grid;grid-template-columns:440px minmax(0,460px);justify-content:center;gap:72px;align-items:center;max-width:1200px;margin:0 auto;padding:40px 76px 0;min-height:665px;animation:pin .45s ease}
.panel[hidden]{display:none}
.panel.flip{grid-template-columns:minmax(0,460px) 430px}
.panel.flip .ph{order:2}
.panel .ph{align-self:end;line-height:0;position:relative}.panel .ph img{width:100%;height:auto}
.panel .ph img.pop{position:absolute;height:auto;max-width:none;filter:drop-shadow(0 12px 24px rgba(0,0,0,.25))}
.pop.p-h{left:0;top:22.56%;width:98.41%}.pop.p-m{left:1.28%;top:44.54%;width:97.21%}
.panel .tx{padding-bottom:40px}
@keyframes pin{from{opacity:0;transform:translateY(10px)}}
.panel h2{margin:0 0 14px;font-weight:400;font-size:clamp(28px,3vw,36px);line-height:1.2}
.panel h2 em{font-style:normal;color:#a7bfe1}
.panel p{margin:0 0 8px;font-size:15px;line-height:1.55;color:#e9e9e9;max-width:31em}
.panel p strong{color:#fff;font-weight:700}
.c-foot{background:#0f0f0f;color:#fff}
.c-foot .c-wrap{padding:64px 86px 40px}
.c-home{display:inline-flex;align-items:center;gap:22px;font-size:20px;text-decoration:none;color:#fff}
.c-home svg{width:18px;height:18px;transition:transform .25s}.c-home:hover svg{transform:translateX(-4px)}
.c-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;font-size:11px}
.c-links{display:flex;font-size:12px}
.c-links a{color:#fff;text-decoration:none;padding:0 24px;border-left:1px solid #5e5e59}
.c-links a:first-child{border:0}.c-links a:last-child{padding-right:0}.c-links a:hover{text-decoration:underline}
@media (max-width:1023px){
  .c-wrap{padding:0 40px}
  .c-meta{position:static;background:#a7bfe1;padding:4px 40px 24px;gap:0 40px;justify-content:start}
  .c-intro{flex-direction:column;align-items:flex-start;padding-bottom:72px}
  .stat{padding:48px 28px 28px;min-height:220px}.stat img{height:52px;margin-left:-3px}.stat p{font-size:16px}
  .prob{grid-template-columns:1fr;padding-top:80px}.prob figure{max-width:460px}
  .panel,.panel.flip{grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:40px;padding:32px 40px 0;min-height:0}
  .panel .tx,.panel.flip .tx{padding-bottom:24px}
  .panel:not(.flip){grid-template-columns:minmax(0,380px) minmax(0,1fr)}
  .c-foot .c-wrap{padding:56px 40px 32px}
}
@media (max-width:720px){
  .c-back{left:20px;top:20px}
  .c-meta{padding:0 20px 20px;gap:0 28px}
  .c-wrap{padding:0 20px}
  .c-intro{padding:40px 0 48px;gap:28px}
  .toc{gap:14px 28px;font-size:12px}.toc button,.toc span{column-gap:10px}
  .stats{grid-template-columns:1fr}
  .stat{min-height:0;padding:28px 24px}.stat img{height:48px;margin-left:-3px}
  .prob{gap:40px;padding:64px 0 48px}
  .prob figure{max-width:none;width:100%}
  .prob ol{margin-bottom:44px}
  .sol{padding-top:40px}
  .panel,.panel.flip,.panel:not(.flip){grid-template-columns:1fr;gap:28px;padding:32px 20px 0}
  .panel .ph,.panel.flip .ph{order:2;max-width:340px;margin:0 auto;width:100%}
  .panel .tx,.panel.flip .tx{padding:0;text-align:center}.panel p{margin-inline:auto}
  .tabs{flex-wrap:nowrap;width:fit-content;max-width:calc(100% - 16px);margin:0 auto;padding:5px;gap:4px;border-radius:10px}
  .tabs button{font-size:12px;padding:8px 8px;min-height:36px;border-radius:8px;letter-spacing:-.01em}
  .c-foot .c-wrap{padding:44px 20px 28px}
  .c-row{flex-direction:column-reverse;align-items:flex-start;gap:20px}
  .c-links a{padding:0 14px}.c-links a:first-child{padding-left:0}
}
@media (prefers-reduced-motion:reduce){
  .scene{height:auto}.sticky{position:relative;height:auto;padding-bottom:80px}
  .sc-body{padding:64px 0 48px}
  .outline span{--p:1!important;-webkit-text-stroke-color:var(--f)}
  .paper{position:relative;left:auto;top:auto;transform:none!important;margin:0 auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
