/* Akansha's portfolio. Grid carries from the design: 48 gutter, 312 text column, 40 gap, the rest is work. Everything moves in steps, no fades. */
:root{--ink:#14201C;--muted:#14201CB3;--line:#E6E8E4;--pad:48px;--k:1;--stitchline:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect x='.4' y='.4' width='5.200' height='5.200' fill='%23AD6B35'/%3E%3Cpath d='M.9 5.100 5.100 .9' stroke='%23D48341' stroke-width='1.600' stroke-linecap='round'/%3E%3Cpath d='M5.100 5.100 .9 .9' stroke='%23EE9449' stroke-width='1.600' stroke-linecap='round'/%3E%3C/svg%3E")}
*{box-sizing:border-box}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;background:#fff;color-scheme:only light}
body{margin:0;background:#fff;color:var(--ink);font-family:"Schibsted Grotesk",system-ui,sans-serif;font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
html,body,a,button{cursor:image-set(url(../assets/cursor.png) 2x) 14 14,url(../assets/cursor-28.png) 14 14,auto}
a{color:inherit;text-decoration:none}
p,h1,h2,h3,h4,figure{margin:0;font-weight:400}
img{display:block;max-width:100%}
.muted{color:var(--muted)}
.t14{font-size:14px;line-height:20px}.t16{font-size:16px;line-height:24px}.t20{font-size:20px;line-height:28px}
.t24{font-size:24px;line-height:32px;letter-spacing:-.01em}.t32{font-size:32px;line-height:40px;letter-spacing:-.01em}.t40{font-size:40px;line-height:48px;letter-spacing:-.01em}.t48{font-size:40px;line-height:48px;letter-spacing:-.01em}.t72{font-size:72px;line-height:76px;letter-spacing:-.035em}
/* big stats, as in Paper. They ease down on smaller screens */
.t120{font-size:clamp(72px,8.33vw,120px);line-height:.933;letter-spacing:-.035em}.t160{font-size:clamp(88px,11.11vw,160px);line-height:.925;letter-spacing:-.035em}
.w500{font-weight:500}.w600{font-weight:600}
/* nav */
.nav{position:absolute;z-index:5;top:32px;left:var(--pad);right:var(--pad);display:flex;justify-content:space-between;font-weight:500}
.brand{visibility:hidden}.links{display:flex;gap:24px}
body:has(.case,.about,.play) .brand{visibility:visible}
body:has(.case) .brand{visibility:hidden}
/* a link's underline sews in, stitch by stitch */
.st-link{position:relative;display:inline-block;width:max-content;max-width:100%}
.st-link::after{content:"";position:absolute;left:0;bottom:-6px;height:6px;width:0;background:var(--stitchline) left center repeat-x}
.st-link:hover::after,.st-link:focus-visible::after{width:100%;transition:width .15s steps(5,start)}
:focus-visible{outline:2px solid #D88642;outline-offset:3px}
/* the fit box: a product screen is real DOM at its design size, scaled to the column */
.fit{position:relative;width:100%;aspect-ratio:var(--w)/var(--h);overflow:hidden}
.fit-in{position:absolute;left:0;top:0;transform-origin:0 0;transform:translateX(var(--dx,0px)) scale(var(--s,1))}
.fit:not(.tile) .fit-in>*{position:relative!important;left:0!important;top:0!important}
.st-tile{position:absolute;left:0;top:0;pointer-events:none}
/* the Loom stays full size rather than scaled with the tile, so its controls work at any width */
.fit.demo .frame{position:absolute;left:6.452%;top:10.884%;width:87.097%;height:78.231%;overflow:hidden}
.fit.demo iframe{position:absolute;left:-3px;top:-3px;width:calc(100% + 6px);height:calc(100% + 6px);border:0}
.only-phone{display:none}
/* hero */
.hero{position:relative;height:calc(100vw*.625);min-height:560px;overflow:hidden}
.field{position:absolute;left:0;width:100%}
.hero .field{top:calc(100vw*264/1440);aspect-ratio:1440/704;z-index:0}
.band{position:absolute;inset:0;width:100%;height:100%}
.field canvas{position:absolute;inset:0;width:100%;height:100%}
.field.js .band{visibility:hidden}
.hero-title{position:absolute;z-index:2;left:var(--pad);top:calc(100vw*56/1440);font-size:calc(100vw*72/1440);line-height:calc(100vw*68/1440);letter-spacing:-.035em;white-space:nowrap}
.hero-lead{position:absolute;z-index:2;left:var(--pad);top:calc(100vw*296/1440);width:min(312px,21.6vw)}
.hero-made{position:absolute;z-index:2;left:var(--pad);top:calc(100vw*776/1440)}
/* work */
.work{padding:0 var(--pad)}
.work-item{display:grid;grid-template-columns:312px minmax(0,1fr);gap:40px;margin-bottom:64px}
.work-text{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.thumb{display:block}.thumb,.thumb *,.vtile,.vtile *{cursor:pointer}
.tile .fit-in{background:var(--bg)}
.tile canvas.st{position:absolute;left:0;top:0;width:992px;height:620px;pointer-events:none}
.tile .screen{position:absolute;left:64px;top:70px;width:864px;height:480px;overflow:hidden}
.tile .screen>div{position:relative!important;left:0!important;top:0!important;width:864px!important;height:480px!important}
/* blog */
.blog{display:grid;grid-template-columns:312px minmax(0,1fr);gap:40px;padding:64px var(--pad)}
.blog h2{margin-bottom:12px}
.posts{border-top:1px solid var(--line)}
.post{position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:39px 0;border-bottom:1px solid var(--line)}
.post canvas{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.post>div,.post>span{position:relative;z-index:1}.post>span{white-space:nowrap}
.post:focus-visible{outline:none}
/* footer */
.foot{position:relative;overflow:hidden}
.foot-text{padding:56px var(--pad) 0;position:relative;z-index:2}
.hello{font-size:clamp(72px,11.1vw,160px);line-height:.925;letter-spacing:-.035em;margin:0 0 28px -4px}
.hello{width:max-content;max-width:100%}
.can-wave .hello,.can-wave .hello a,.can-wave .links a[href="#hello"]{cursor:none}
.wave{position:fixed;left:0;top:0;width:56px;height:52px;pointer-events:none;z-index:50;display:none}.wave.on{display:block}
.wave canvas{display:block;width:56px;height:52px;animation:wave .6s steps(1,end) infinite}
@keyframes wave{0%{transform:none}50%{transform:translateY(-3px)}}
.can-wave .foot-row>p{cursor:none}
.love,.mini{position:fixed;left:0;top:0;pointer-events:none;z-index:50}
.love{display:none;width:28px;height:28px}.love.on{display:block}
.love canvas{display:block;width:28px;height:28px;animation:beat .6s steps(1,end) infinite}
@keyframes beat{0%{transform:scale(1)}50%{transform:scale(1.14)}}
.foot-row{display:flex;justify-content:space-between;margin-top:24px}.foot-links{display:flex;gap:24px;font-weight:500}
.foot .field{position:relative;aspect-ratio:1440/280;margin-top:128px}
/* case study */
.case{padding-top:56px}
.case-title{padding:0 var(--pad);font-size:clamp(40px,5vw,72px);line-height:.944;letter-spacing:-.035em}
.intro{display:grid;grid-template-columns:312px minmax(0,1fr);gap:40px;padding:40px var(--pad) 0}
.intro-left{display:flex;flex-direction:column;gap:40px}.meta{display:flex;flex-direction:column;gap:12px}
.block{display:grid;grid-template-columns:312px minmax(0,1fr);gap:40px;padding:80px var(--pad) 0}
.body{display:flex;flex-direction:column;gap:24px;min-width:0}
.body>p{max-width:864px}
.body .t16.muted{max-width:640px}
.stack{display:flex;flex-direction:column;min-width:0}
/* findings side by side (Publish, scratch flow): a rule on top instead of a box, the number in a soft pastel tag */
.cols2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.cols2>div{border-top:1px solid var(--ink);padding-top:16px;display:flex;flex-direction:column;gap:12px}
.cols2 .tag{align-self:flex-start;padding:2px 8px}
@media (max-width:640px){.cols2{grid-template-columns:minmax(0,1fr);gap:24px}}
/* blog posts: the stage name sits over its heading, picture rows keep each picture's shape and fill the column, the stage list is ruled */
.block-head{display:flex;flex-direction:column;gap:4px}
.post-hero{display:block;width:100%;aspect-ratio:992/620;object-fit:cover}
.post-page .body h3,.post-page .body h4,.post-page .body p{max-width:640px}
.jrow{display:flex;align-items:flex-start;width:100%}
.jrow img{display:block;flex:var(--a) 1 0;width:0;min-width:0;height:auto;aspect-ratio:var(--a);object-fit:cover}
.ruled{display:flex;flex-direction:column;border-top:1px solid var(--line);max-width:640px}
.ruled>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
@media (max-width:640px){.jrow{gap:8px!important}.post-page .body{gap:40px!important}.ruled>div{grid-template-columns:72px minmax(0,1fr)}}
.row{display:flex;flex-wrap:wrap;min-width:0}.row>*{flex:1 1 280px;min-width:0}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 24px}
.boxes>div{width:100%!important;flex-wrap:wrap}.boxes>div>div{flex:1 1 180px;width:auto!important;min-width:0}.boxes>div>div *{width:auto!important;max-width:100%}
.tbl{overflow-x:auto}.tbl>div{min-width:640px;width:100%!important}.tbl>div>div{width:100%!important}
.next{padding:96px var(--pad) 64px;display:flex;align-items:baseline;gap:16px;margin-left:352px;width:max-content;max-width:calc(100% - 352px)}
.next .arrow{visibility:hidden;transform:translateX(-16px)}
.next:hover .arrow,.next:focus-visible .arrow{visibility:visible;transform:none;transition:transform .15s steps(3,start)}
.next:hover .st-link::after,.next:focus-visible .st-link::after{width:100%;transition:width .15s steps(5,start)}
.next .st-link::after{bottom:-4px}
/* about */
.about{--p:min(389px,calc(30vw - 43px));position:relative;overflow-x:clip;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:128px var(--pad) 96px;min-height:880px}
.about-title{font-size:min(52px,3.61vw);line-height:1.077;letter-spacing:-.01em;white-space:nowrap}
.about-left,.story{position:relative;z-index:1}
.about-left{padding-left:min(96px,6.67vw)}
.stitched{position:relative;width:var(--p);margin-top:calc(var(--p)*.14)}.bands{position:absolute;pointer-events:none}
.shirt{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.about-photo{position:relative;width:100%;aspect-ratio:389/422;overflow:hidden}.about-photo img{position:absolute;right:0;bottom:0;width:123.529%;max-width:none;height:auto}
.story{display:flex;flex-direction:column;gap:32px;max-width:640px}.story h2{margin-bottom:8px}
/* play */
.play{display:grid;grid-template-columns:312px minmax(0,1fr);gap:40px;padding:104px var(--pad) 64px}
.play-right{display:flex;flex-direction:column;gap:56px;min-width:0}.play-item img{width:100%;margin-bottom:16px}.play-item h2,.play-item p{margin-bottom:4px}
.vtile{display:block;position:relative;width:100%;aspect-ratio:1072/640;margin-bottom:16px;overflow:hidden}.vtile video{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;display:block}
.vtile.full{aspect-ratio:16/9}.vtile.win{background:#E0B8A1}.vtile.win video{left:3.31%;top:6.25%;width:93.38%;height:89%;border-radius:1.2%/2.1%}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pair>img{display:block;width:100%;height:auto}
/* a prototype's phone, playing on its own */
.ptile{position:relative;aspect-ratio:532/640;overflow:hidden}.ptile video{position:absolute;left:50%;top:4.5%;height:91%;width:auto;aspect-ratio:640/1336;transform:translateX(-50%);display:block;object-fit:cover;border-radius:11.2%/5.4%}
.ptile.wide{aspect-ratio:1072/640}
.type video{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.type{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.type figure{position:relative}.type figcaption{position:absolute;left:16px;top:12px}
/* nuggets: the cursor does what the words say */
.nug{cursor:none!important}
.nug-cur,.nug-bit{position:fixed;left:0;top:0;pointer-events:none;z-index:50}
.nug-cur{display:none}.nug-cur.on{display:block}.nug-cur canvas{display:block}
.nug-cur.tip canvas{transform:rotate(-24deg);transition:transform .12s steps(2,end)}
.nug-cur.wob canvas{animation:wob .6s steps(1,end) infinite;transform-origin:50% 100%}
@keyframes wob{0%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
.planted{position:absolute;pointer-events:none;z-index:4;width:28px;height:28px}
.foot-left{margin:0 auto 0 32px}
.lost{position:relative;min-height:60vh;padding:160px var(--pad) 64px}.undone{margin:32px 0}.undone canvas{display:block;width:100%}
.lost h1{margin-bottom:12px}
@media (max-width:1000px){:root{--pad:24px}
.work-item,.blog,.intro,.block,.play{grid-template-columns:minmax(0,1fr);gap:20px}
.work-item>.thumb{order:-1}   /* stacked, the picture leads and the name and words follow */
.block{padding-top:56px}.next{margin-left:0;max-width:100%;font-size:28px;line-height:36px;width:auto}
.about{grid-template-columns:minmax(0,1fr);gap:64px}.about-left{padding-left:0}.about{--p:min(389px,60vw)}
.hero{display:flex;flex-direction:column;height:auto;min-height:0;padding:88px 0 32px}
.hero-title,.hero-lead,.hero-made{position:relative;left:auto;top:auto;padding:0 var(--pad)}
.hero-title{order:1;font-size:min(11vw,72px);line-height:1;white-space:normal}.hero-lead{order:2;width:auto;margin-top:20px}
.hero .field{order:3;position:relative;top:auto;margin:32px 0}.hero-made{order:4}
}
@media (max-width:1000px){.about-title{font-size:36px;line-height:40px;white-space:normal}.about{padding-top:96px}}
@media (max-width:1000px){.case{padding-top:96px}}
@media (max-width:640px){
.t72{font-size:48px;line-height:52px}.t40,.t48{font-size:28px;line-height:36px}.t32{font-size:24px;line-height:32px}
.links{gap:14px;font-size:14px}

/* the bands run wider than the screen on phones, so the stitches stay stitches */
.hero .field{width:170%;margin:24px 0 -56px -70%}
.foot .field{margin-top:56px;width:200%;margin-left:-50%}
.grid2{grid-template-columns:minmax(0,1fr)}.type{grid-template-columns:repeat(2,minmax(0,1fr))}.ptile{aspect-ratio:532/960}.ptile.wide{aspect-ratio:1/1}
.foot-row{flex-direction:column;gap:12px}.foot-links{flex-wrap:wrap;gap:8px 24px}
.blog{padding-top:40px}.post{flex-direction:column;align-items:flex-start;gap:4px;padding:24px 0}
.block{padding-top:48px}.row{row-gap:24px!important}
.only-wide{display:none}.only-phone{display:block}
.pan>.fit{width:100%}   /* phones: every picture fits the screen width (it used to keep 60% of its desktop size and swipe sideways) */
/* tables and boxes stack */
.tbl{overflow:visible}.tbl>div{min-width:0}
.tbl>div>div>div{width:auto!important;min-width:0;flex-shrink:1!important}
.tbl>div>div:has(>div:nth-child(3)){display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px!important}
.tbl>div>div>div:nth-child(2){grid-column:1/3;grid-row:2;color:var(--muted)}.tbl>div>div>div:nth-child(3){grid-column:2;grid-row:1}
.boxes>div>div{height:auto!important;gap:12px;flex-basis:100%}
.b-five>div>div{flex:1 1 140px;min-height:88px}
/* the Publish figures, laid out for a phone */
.vsteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px;font-size:14px;line-height:20px;font-weight:500}
.vsteps li{position:relative;padding:10px 12px;border:1px solid #D5D8D4;background:#fff}
.vsteps li+li::before{content:"↓";position:absolute;left:12px;top:-21px;line-height:20px;color:#9AA39E}
.vsteps .mark{align-self:flex-start;border:0;background:#F1F2EF;padding:4px 10px}.vsteps .mark.on{background:#F8E0A0}
.vsteps .mark::before{top:-21px}
.vcompare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vcompare>div>p{margin-bottom:12px}
.vbars{border-top:1px solid var(--line)}
.vbar{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:20px}
.vbar small{display:block;font-size:12px;line-height:16px;color:var(--muted)}
.vtrack{display:flex;align-items:center;gap:8px}.vtrack i{display:block;height:12px;flex:none}
.vresult{display:flex;flex-direction:column;gap:8px}.vresult .vhead{margin-top:24px}
.vseg{display:flex;gap:2px;height:28px}.vseg i{display:flex;align-items:center;padding-left:8px;min-width:0;font-style:normal;font-size:14px;font-weight:500;color:#fff}
.vlegend{list-style:none;margin:4px 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:20px}
.vlegend li{display:flex;align-items:center;gap:8px}.vlegend i{width:12px;height:12px;flex:none}}
@media (max-width:374px){.brand{display:none}.nav{justify-content:flex-end}.links{gap:12px}}
@media (prefers-reduced-motion:reduce){.wave canvas,.love canvas{animation:none}.st-link:hover::after,.post>span::after{transition:none}}
/* phones: a plain menu icon at the top left opens a full page of links, the page you are on is in ink; the X takes its place */
.menu-btn,.menu{display:none}
@media (max-width:640px){
.nav{justify-content:flex-start}.nav .brand,.nav .links{display:none}
.menu-btn{display:grid;place-items:center;width:44px;height:44px;margin:-10px 0 0 -12px;padding:0;border:0;background:none;color:var(--ink)}
.menu:not([hidden]){display:flex;flex-direction:column;justify-content:center;position:fixed;inset:0;z-index:100;background:#fff;padding:96px var(--pad)}
.menu-close{position:absolute;top:22px;left:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;color:var(--ink)}
.menu ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.menu a{display:inline-block;font-size:40px;line-height:48px;letter-spacing:-.01em;color:var(--muted)}
.menu a[aria-current=page]{color:var(--ink);font-weight:500}
html.menu-open,html.menu-open body{overflow:hidden}html.menu-open .nav{z-index:100}
}
