/* Work listing (case-studies.html) and the case study pages (case-*.html, written by build-cases.mjs).
   Loaded after styles.css and contact.css. Each case sets two client colours, --c1 and --c2: the tinted
   bands are mixed from them, so the colour on these pages belongs to the client, not to Arkon. */

.wk-tint{color-scheme:light;color:#0d1211;background:linear-gradient(118deg,color-mix(in oklab,var(--c1) 24%,#f5f5f2),color-mix(in oklab,var(--c2) 30%,#f5f5f2))}
.wk-dark{color-scheme:dark;background:#0e0e0e;color:#fff}
:root[data-theme="dark"] .wk-dark{background:#171717}
:root[data-theme="dark"] .wk-card{background:#1c1c1c}
:root[data-theme="dark"] .wk-card-tag{background:#0e0e0e}
.wk-dark p,.wk-dark li{color:rgb(255 255 255 / .8)}
.wk-h2{font-family:var(--display);font-weight:500;font-size:clamp(1.75rem,2.9vw,2.6rem);line-height:1.08;letter-spacing:-.025em;text-wrap:balance}
.wk-text p{font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.6;max-width:62ch;text-wrap:pretty}
.wk-text p+p{margin-top:1.1em}

/* device frames, drawn in CSS around real screenshots */
.wk-browser{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgb(13 18 17 / .12),0 40px 80px -40px rgb(13 18 17 / .55)}
.wk-browser-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;background:#f3f4f2;border-bottom:1px solid rgb(13 18 17 / .1)}
.wk-browser-bar i{width:8px;height:8px;border-radius:50%;background:#dcdfda}
.wk-browser img{display:block;width:100%;height:auto}
.wk-phone{aspect-ratio:390 / 800;border:7px solid #0d1211;border-radius:34px;overflow:hidden;background:#0d1211;box-shadow:0 30px 60px -30px rgb(13 18 17 / .6)}
.wk-phone img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}

/* ── Listing ── */
.wk-list{padding-block:clamp(24px,4vw,56px) clamp(72px,9vw,128px)}
.wk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.6vw,36px)}
.wk-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#0e0e0e;color:#fff}
/* the screenshot fills the whole picture area: no coloured margin, no browser frame */
.wk-card-img,.wk-card-img.wk-tint{position:relative;aspect-ratio:1 / 1;overflow:hidden;padding:0;background:#0e0e0e}
.wk-card-img .wk-browser{width:100%;height:100%;border-radius:0;box-shadow:none}
.wk-card-img .wk-browser-bar{display:none}
.wk-card-img .wk-browser img{width:100%;height:100%;object-fit:cover;object-position:left top}
.wk-card-tag{position:absolute;left:14px;top:14px;z-index:1;padding:5px 10px;border-radius:999px;background:#0e0e0e;color:#fff;font-size:12.5px;line-height:1}
.wk-card-cap{display:flex;flex-direction:column;gap:10px;flex:1;padding:clamp(18px,2vw,26px)}
.wk-card-cap b{font-family:var(--display);font-weight:500;font-size:clamp(1.2rem,1.6vw,1.45rem);line-height:1.15;letter-spacing:-.02em}
.wk-card-cap span{font-size:13.5px;line-height:1.4;color:rgb(255 255 255 / .66)}
.wk-cta{padding-block:clamp(56px,7vw,96px);border-top:1px solid var(--line)}
.wk-cta .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}

/* ── Case study: hero ── */
.wk-hero{position:relative;overflow:hidden}
.wk-hero .wrap{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(24px,5vw,80px);align-items:center;min-height:min(84vh,800px);padding-block:clamp(48px,7vw,96px)}
/* the client's name, marked with a bar in its own colour, then the sector and the year */
.wk-kicker{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;margin-bottom:clamp(14px,1.8vw,22px);font-size:15px}
.wk-kicker b{position:relative;padding-left:15px;font-family:var(--display);font-weight:500;font-size:clamp(1.3rem,1.75vw,1.6rem);line-height:1.1;letter-spacing:-.02em}
.wk-kicker b::before{content:"";position:absolute;left:0;top:.12em;bottom:.08em;width:4px;border-radius:2px;background:var(--c1)}
.wk-kicker-meta{color:rgb(13 18 17 / .74)}
.wk-hero h1{font-family:var(--display);font-weight:500;font-size:clamp(2.4rem,4.6vw,4.1rem);line-height:1;letter-spacing:-.035em;text-wrap:balance}
/* back to the work page: a pill with a round arrow that leans left under the pointer */
.wk-back{display:inline-flex;align-items:center;gap:10px;margin-bottom:clamp(28px,4vw,56px);padding:5px 16px 5px 5px;border-radius:999px;background:rgb(255 255 255 / .62);box-shadow:inset 0 0 0 1px rgb(13 18 17 / .1);font-size:14.5px;font-weight:500;color:#0d1211;transition:background-color .2s}
.wk-back:hover{background:#fff}
.wk-back-i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#0d1211;color:#fff;font-size:15px;transition:translate .3s var(--ease)}
.wk-back .i{transform:rotate(180deg)}
.wk-back:hover .wk-back-i{translate:-3px 0}
.wk-devices{position:relative;margin-right:calc(var(--gutter)*-1 - 6vw)}
.wk-devices .wk-phone{position:absolute;left:-5%;bottom:-9%;width:19%}

/* ── intro: statement left, summary and service overview right ── */
.wk-intro .wrap,.wk-two{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,6vw,96px);align-items:start}
.wk-overview{margin-top:clamp(28px,3vw,40px)}
.wk-overview h3{font-weight:600;font-size:15.5px;margin-bottom:6px}
.wk-overview li{display:flex;gap:12px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--line);font-size:16px;color:var(--ink-2)}
.wk-overview li::before{content:"";flex:none;width:7px;height:7px;border-right:1.5px solid var(--ink-3);border-top:1.5px solid var(--ink-3);transform:rotate(45deg) translateY(-2px)}
.wk-facts{display:flex;flex-wrap:wrap;gap:12px 40px;margin-top:clamp(28px,3vw,40px);font-size:15px}
.wk-facts dt{color:var(--ink-3);font-size:13.5px}
.wk-facts dd{font-weight:500}
.wk-live{display:inline-flex;align-items:center;gap:8px;margin-top:26px;font-weight:500;border-bottom:1px solid var(--line-2);padding-bottom:3px}
.wk-live:hover{border-color:var(--ink)}

/* ── three crops of the finished site ── */
/* A full-width collage on the client's own colour: three rows of laptops and phones, the outer ones running off
   the edges. Everything inside is sized in cqw (1% of the stage width), so the whole picture scales as one. */
.wk-collage{position:relative;overflow:hidden;aspect-ratio:2 / 1;background:color-mix(in oklab,var(--c1) 88%,#000);color-scheme:light}
.wk-collage-stage{position:absolute;left:50%;top:50%;width:100%;aspect-ratio:2 / 1;transform:translate(-50%,-50%);container-type:inline-size}
.wk-collage-arcs{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:rgb(255 255 255 / .2);stroke-width:5}
.wk-lap,.wk-collage .wk-phone{position:absolute;filter:drop-shadow(0 1.6cqw 1.8cqw rgb(0 0 0 / .32))}
.wk-lap-screen{aspect-ratio:16 / 10;overflow:hidden;background:#0b0b0b;border:.55cqw solid #0b0b0b;border-bottom-width:.75cqw;border-radius:1.1cqw 1.1cqw 0 0}
.wk-lap-screen img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:.3cqw}
.wk-lap>i{display:block;height:1cqw;margin:0 -7%;border-radius:0 0 1.3cqw 1.3cqw;background:linear-gradient(#e4e5e2,#b3b6b1)}
.wk-collage .wk-phone{width:7.6cqw;border-width:.42cqw;border-radius:1.5cqw;box-shadow:none}
.wk-lap.l1{left:-4cqw;top:-13.5cqw;width:34cqw}
.wk-lap.l2{left:44cqw;top:-15.5cqw;width:36cqw}
.wk-lap.l3{left:-14cqw;top:15.5cqw;width:34cqw}
.wk-lap.l4{left:32.5cqw;top:13cqw;width:38cqw}
.wk-lap.l5{left:83cqw;top:15.5cqw;width:34cqw}
.wk-lap.l6{left:30cqw;top:42.5cqw;width:37cqw}
.wk-lap.l7{left:72cqw;top:44cqw;width:34cqw}
.wk-collage .wk-phone.p1{left:33cqw;top:-8.5cqw}
.wk-collage .wk-phone.p2{left:22.5cqw;top:17.5cqw}
.wk-collage .wk-phone.p3{left:72.8cqw;top:16cqw}
.wk-collage .wk-phone.p4{left:19cqw;top:43.5cqw}
/* printed pieces laid among the devices (Kazumi): flat sheets and cards, slightly turned */
.wk-paper{position:absolute;height:auto;border-radius:.3cqw;box-shadow:0 1.2cqw 2.2cqw rgb(0 0 0 / .38)}
.wk-paper.k-menu1{left:3cqw;top:-9.5cqw;width:12.5cqw;rotate:-3deg}
.wk-paper.k-menu2{left:16.5cqw;top:-10.5cqw;width:12.5cqw;rotate:2.5deg}
.wk-paper.k-card1{left:.5cqw;top:14.5cqw;width:18.5cqw;rotate:-5deg;border-radius:.6cqw}
.wk-paper.k-card2{left:2.5cqw;top:26.5cqw;width:18.5cqw;rotate:3deg;border-radius:.6cqw}
.wk-paper.k-flyer{left:76cqw;top:40.5cqw;width:13.5cqw;rotate:4deg}
@media (prefers-reduced-motion:no-preference){
  .js .wk-collage .wk-lap,.js .wk-collage .wk-phone{animation:wkfloat 1s var(--ease) both;animation-timeline:view();animation-range:entry 0% cover 34%}
  @keyframes wkfloat{from{opacity:.4;translate:0 3cqw}}
}

/* ── challenge and results ── */
.wk-two{grid-template-columns:minmax(0,.5fr) minmax(0,1fr)}
.wk-points{margin-top:28px;max-width:62ch}
.wk-points li{display:flex;gap:12px;align-items:baseline;padding:14px 0;border-top:1px solid rgb(255 255 255 / .16);font-size:16.5px}
.wk-points .i{flex:none;font-size:16px;transform:translateY(2px)}

/* ── approach: the page scrolls past on the left, the text stays in view on the right ── */
.wk-scroll .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);align-items:start}
.wk-sticky{position:sticky;top:calc(var(--header) + 40px)}
.wk-sticky .wk-text{margin-top:22px}
.wk-steps{margin-top:30px;counter-reset:step}
.wk-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:15px 0;border-top:1px solid var(--line);font-size:16px;line-height:1.5;color:var(--ink-2);counter-increment:step}
.wk-steps li::before{content:counter(step,decimal-leading-zero);font-family:var(--display);font-weight:500;font-size:14px;color:var(--ink-3);padding-top:2px}

/* ── what was delivered ── */
.wk-deliver .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);align-items:center;padding-block:clamp(56px,7vw,104px)}
.wk-deliver .wk-phone{width:min(270px,62%);margin-inline:auto}
.wk-deliver ul{margin-top:24px}
.wk-deliver li{padding:15px 0;border-top:1px solid rgb(13 18 17 / .16);font-size:17px}
.wk-deliver li:last-child{border-bottom:1px solid rgb(13 18 17 / .16)}

/* ── online ordering (when the project includes one): the menu page and its steps, then three phone screens ── */
.wk-order-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:center;margin-top:clamp(36px,5vw,72px)}
.wk-order-main .wk-steps{margin-top:0}
.wk-order-phones{display:flex;justify-content:center;gap:clamp(16px,5vw,72px);margin-top:clamp(36px,5vw,72px);padding:clamp(32px,5vw,72px) clamp(16px,4vw,48px);border-radius:16px}
.wk-order-phones figure{margin:0;width:min(220px,22%)}
.wk-order-phones figcaption{margin-top:16px;text-align:center;font-size:14.5px;color:rgb(13 18 17 / .72)}

/* ── printed pieces (branding projects): two cards on the first row, three sheets on the second ── */
.wk-print{background:var(--wash)}
.wk-print-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(14px,2.2vw,32px);margin-top:clamp(36px,5vw,72px);align-items:start}
.wk-print-grid img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 0 0 1px rgb(13 18 17 / .08),0 24px 48px -28px rgb(13 18 17 / .5)}
.wk-print-grid .is-wide{grid-column:span 3}
.wk-print-grid .is-tall{grid-column:span 2}
.wk-end-img.is-plain{padding:clamp(28px,6vw,80px)}
.wk-end-img.is-plain img{display:block;width:100%;height:auto;border-radius:8px;box-shadow:0 30px 60px -30px rgb(13 18 17 / .55)}

/* ── conclusion and related ── */
.wk-end .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);align-items:center}
.wk-end-img{border-radius:16px;padding:clamp(24px,5vw,64px) 0 clamp(24px,5vw,64px) clamp(24px,5vw,64px);overflow:hidden}
.wk-end-img .wk-browser{width:118%}
.wk-end .wk-text{margin-top:20px}
.wk-end .actions{margin-top:30px}
.wk-related{background:var(--wash)}
.wk-related-h{font-size:14.5px;color:var(--ink-2);margin-bottom:clamp(20px,3vw,36px)}

@media (prefers-reduced-motion:no-preference){
  .js .wk-hero h1,.js .wk-kicker{animation:rise .9s var(--ease) both}
  .js .wk-devices{animation:fade 1s .15s both}
}
@media (max-width:900px){
  .wk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wk-order-phones{flex-wrap:wrap}
  .wk-order-phones figure{width:40%}
  .wk-order-main,.wk-hero .wrap,.wk-intro .wrap,.wk-two,.wk-scroll .wrap,.wk-deliver .wrap,.wk-end .wrap{grid-template-columns:minmax(0,1fr)}
  .wk-hero .wrap{min-height:0}
  .wk-devices{margin:0 0 9% 5%}
  .wk-sticky{position:static}
  .wk-scroll .wk-browser{max-height:150vw;order:2}
  .wk-end-img .wk-browser{width:112%}
}
@media (max-width:560px){
  .wk-grid{grid-template-columns:minmax(0,1fr)}
  /* on a phone the collage is cropped to its centre, so the devices stay large enough to read */
  .wk-collage{aspect-ratio:1 / 1}
  .wk-collage-stage{width:215%}
  .wk-print-grid .is-wide,.wk-print-grid .is-tall{grid-column:span 6}
}

/* ── Work page, version 2 (case-studies-v2.html): dark title band, a sticky bar with the count and a grid/list switch,
   tall square-cornered tiles on each client's colour ── */
.site-header.is-dark{background:#0e0e0e;border-bottom-color:transparent;color:#fff}
.site-header.is-dark .nav-list>li>a,.site-header.is-dark .menu-btn,.site-header.is-dark .theme-toggle{color:rgb(255 255 255 / .72)}
.site-header.is-dark .nav-list>li>a:hover,.site-header.is-dark .theme-toggle:hover,.site-header.is-dark .menu-btn:hover,.site-header.is-dark .menu-btn[aria-expanded="true"],.site-header.is-dark .nav-list>li>a[aria-current="page"]{color:#fff}
.site-header.is-dark .nav-list>li>a:hover,.site-header.is-dark .theme-toggle:hover,.site-header.is-dark .menu-btn:hover{background:rgb(255 255 255 / .1)}
.site-header.is-dark .btn{background:#fff;color:#0e0e0e}
.site-header.is-dark .btn:hover{background:#e8e8e6}
.site-header.is-dark :focus-visible{outline-color:#fff}
.w2-hero{background:#0e0e0e;color:#fff;text-align:center;padding-block:clamp(72px,11vw,170px) clamp(64px,10vw,150px)}
.w2-pill{display:inline-block;margin-bottom:clamp(18px,2.4vw,34px);padding:6px 12px;border-radius:6px;background:rgb(255 255 255 / .08);color:rgb(255 255 255 / .72);font-size:13px}
.w2-hero h1{font-family:var(--display);font-weight:500;font-size:clamp(3.4rem,10vw,8.75rem);line-height:.95;letter-spacing:-.045em}
.site-header.is-dark.is-scrolled{border-bottom-color:transparent}
.w2-bar{position:sticky;top:calc(var(--header) - 1px);z-index:40;box-shadow:0 -6px 0 #0e0e0e;background:#0e0e0e;color:rgb(255 255 255 / .72);border-top:1px solid rgb(255 255 255 / .12);font-size:14px}
.w2-bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:46px}
.w2-switch{display:flex;gap:2px}
.w2-switch button{padding:6px 10px;border:0;border-radius:6px;background:none;font:inherit;color:rgb(255 255 255 / .6);cursor:pointer}
.w2-switch button:hover{color:#fff}
.w2-switch button[aria-pressed="true"]{color:#fff;background:rgb(255 255 255 / .1)}
.w2-work{padding-block:clamp(20px,2.6vw,36px) clamp(72px,9vw,128px)}
.w2-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(40px,5vw,72px) clamp(16px,2vw,28px)}
.w2-item{display:flex;flex-direction:column}
.w2-tile{position:relative;aspect-ratio:4 / 5;overflow:hidden;container-type:inline-size;margin-bottom:22px;background:color-mix(in oklab,var(--c1) 88%,#000);color-scheme:light}
.w2-tile .wk-lap,.w2-tile .wk-phone{position:absolute;filter:drop-shadow(0 4cqw 5cqw rgb(0 0 0 / .32));box-shadow:none}
.w2-tile .wk-lap-screen{border-width:1.5cqw;border-bottom-width:2cqw;border-radius:3cqw 3cqw 0 0}
.w2-tile .wk-lap>i{height:2.6cqw;border-radius:0 0 3.4cqw 3.4cqw}
.w2-tile .wk-phone{border-width:1.3cqw;border-radius:5cqw}
.w2-tile.is-a .wk-lap{left:9cqw;top:22cqw;width:122cqw}
.w2-tile.is-a .wk-phone{left:7cqw;top:55cqw;width:31cqw}
.w2-tile.is-b .wk-lap{left:-58cqw;top:14cqw;width:120cqw}
.w2-tile.is-b .wk-phone{left:46cqw;top:30cqw;width:42cqw}
.w2-tile.is-c .wk-lap{left:-36cqw;top:30cqw;width:126cqw}
.w2-tile.is-c .wk-phone{left:62cqw;top:58cqw;width:30cqw}
.w2-view{position:absolute;left:50%;top:50%;translate:-50% -50%;padding:10px 16px;border-radius:999px;background:#fff;color:#0e0e0e;font-size:13.5px;font-weight:500;opacity:0;transition:opacity .2s}
.w2-item:hover .w2-view,.w2-item:focus-visible .w2-view{opacity:1}
.w2-name{font-family:var(--display);font-weight:500;font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.15;letter-spacing:-.025em}
.w2-sub{margin-top:6px;font-size:16px;color:var(--ink-2)}
.w2-meta,.w2-year{display:none}
/* list view: one line per project */
.w2-list.is-rows{display:block}
.w2-list.is-rows .w2-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.2fr) auto;gap:8px 28px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line)}
.w2-list.is-rows .w2-item:first-child{border-top:1px solid var(--line)}
.w2-list.is-rows .w2-item:hover .w2-name{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
.w2-list.is-rows .w2-tile{display:none}
.w2-list.is-rows .w2-sub{margin:0}
.w2-list.is-rows .w2-meta,.w2-list.is-rows .w2-year{display:block;font-size:15px;color:var(--ink-3)}
@media (max-width:900px){
  .w2-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .w2-list.is-rows .w2-item{grid-template-columns:minmax(0,1fr) auto}
  .w2-list.is-rows .w2-sub,.w2-list.is-rows .w2-meta{grid-column:1}
  .w2-list.is-rows .w2-year{grid-column:2;grid-row:1}
}
@media (max-width:560px){.w2-list{grid-template-columns:minmax(0,1fr)}}

/* ── Work page, version 3 (case-studies-v3.html): version 1's light header and title, version 2's tiles with rounded corners ── */
.w3 .w2-tile{border-radius:14px}
.w2-bar.is-light{background:var(--paper);color:var(--ink-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:none}
.w2-bar.is-light .w2-switch button{color:var(--ink-3)}
.w2-bar.is-light .w2-switch button:hover{color:var(--ink)}
.w2-bar.is-light .w2-switch button[aria-pressed="true"]{color:var(--ink);background:var(--wash)}
.w3 .w2-work{padding-top:clamp(24px,3vw,40px)}

/* ── Work tiles: extra layouts beside the three base ones (laptop + phone) ── */
.wk-tab{position:absolute;aspect-ratio:4 / 3;overflow:hidden;background:#0b0b0b;border:1.9cqw solid #0b0b0b;border-radius:5cqw;filter:drop-shadow(0 4cqw 5cqw rgb(0 0 0 / .34))}
.wk-tab img{display:block;width:100%;height:100%;object-fit:cover;object-position:left top;border-radius:2.6cqw}
.w2-tile .wk-paper{border-radius:1.4cqw;box-shadow:0 3.5cqw 6cqw rgb(0 0 0 / .36)}
/* tablet: software used at the counter */
.w2-tile.is-tablet .wk-tab{left:-9cqw;top:19cqw;width:98cqw;rotate:-4deg}
.w2-tile.is-tablet .wk-phone{left:60cqw;top:52cqw;width:31cqw;rotate:3deg}
/* card: a business card over the laptop, phone to the right */
.w2-tile.is-card .wk-lap{left:14cqw;top:56cqw;width:118cqw}
.w2-tile.is-card .wk-paper{left:7cqw;top:11cqw;width:60cqw;rotate:-7deg}
.w2-tile.is-card .wk-phone{left:63cqw;top:27cqw;width:29cqw;rotate:4deg}
/* sheet: a printed menu or flyer with the phone leaning on it */
.w2-tile.is-sheet .wk-paper{left:8cqw;top:10cqw;width:54cqw;rotate:-5deg}
.w2-tile.is-sheet .wk-phone{left:52cqw;top:36cqw;width:38cqw;rotate:5deg}
/* phones: two screens of a tool made for the phone */
.w2-tile.is-phones .wk-phone{left:12cqw;top:15cqw;width:39cqw;rotate:-5deg}
.w2-tile.is-phones .wk-phone.is-second{left:50cqw;top:33cqw;rotate:5deg}

/* collage extras: tablets (software used at the counter) and a photograph laid among the devices */
.wk-collage .wk-tab{border-width:.5cqw;border-radius:1.4cqw;filter:drop-shadow(0 1.6cqw 1.8cqw rgb(0 0 0 / .32))}
.wk-collage .wk-tab img{border-radius:.85cqw}
.wk-collage .wk-tab.t-left{left:-2.5cqw;top:17cqw;width:23cqw;rotate:-4deg}
.wk-collage .wk-tab.t-right{left:74cqw;top:41.5cqw;width:22cqw;rotate:3deg}
.wk-paper.k-photo{left:3cqw;top:-7cqw;width:25cqw;rotate:-3deg;border:.45cqw solid #fff;border-radius:.2cqw}
@media (prefers-reduced-motion:no-preference){.js .wk-collage .wk-tab{animation:wkfloat 1s var(--ease) both;animation-timeline:view();animation-range:entry 0% cover 34%}}

/* ── Key figures and chart, in the results section. Real numbers only; they count up or grow once on scroll. ── */
.wk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:clamp(40px,6vw,80px);border-top:1px solid rgb(255 255 255 / .16)}
.wk-stats>div{padding:clamp(20px,2.6vw,32px) clamp(12px,2vw,28px) 0 0}
.wk-stats>div+div{padding-left:clamp(12px,2vw,28px);border-left:1px solid rgb(255 255 255 / .16)}
.wk-stats dt{font-family:var(--display);font-weight:500;font-size:clamp(2.2rem,4.4vw,3.9rem);line-height:1;letter-spacing:-.035em;color:#fff;font-variant-numeric:tabular-nums}
.wk-stats dd{margin-top:12px;max-width:22ch;font-size:15px;line-height:1.4;color:rgb(255 255 255 / .68)}
.wk-stats>div{opacity:0;translate:0 12px;transition:opacity .6s var(--ease),translate .7s var(--ease)}
.wk-stats.is-in>div{opacity:1;translate:none}
.wk-stats.is-in>div:nth-child(2){transition-delay:.08s}
.wk-stats.is-in>div:nth-child(3){transition-delay:.16s}
.wk-stats.is-in>div:nth-child(4){transition-delay:.24s}
.wk-chart{margin:clamp(32px,4vw,48px) 0 0;max-width:62ch}
.wk-chart figcaption{font-weight:500;font-size:16px;color:#fff}
.wk-bars{display:flex;align-items:flex-end;gap:clamp(8px,1.4vw,18px);height:200px;margin-top:22px;padding-bottom:26px;border-bottom:1px solid rgb(255 255 255 / .2)}
.wk-bar{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;max-width:76px}
.wk-bar i{display:block;width:100%;height:calc(var(--v)*100%);min-height:3px;border-radius:5px 5px 0 0;background:color-mix(in oklab,var(--c1) 82%,#fff);transform:scaleY(0);transform-origin:bottom;transition:transform .9s var(--ease)}
.wk-bar:last-child i{background:#fff}
.wk-chart.is-in .wk-bar i{transform:none}
.wk-bar:nth-child(2) i{transition-delay:.06s}.wk-bar:nth-child(3) i{transition-delay:.12s}.wk-bar:nth-child(4) i{transition-delay:.18s}.wk-bar:nth-child(5) i{transition-delay:.24s}.wk-bar:nth-child(6) i{transition-delay:.3s}.wk-bar:nth-child(7) i{transition-delay:.36s}
.wk-bar b{margin-bottom:6px;font-weight:500;font-size:13.5px;color:rgb(255 255 255 / .86);font-variant-numeric:tabular-nums;opacity:0;transition:opacity .5s .5s}
.wk-chart.is-in .wk-bar b{opacity:1}
.wk-bar span{position:absolute;left:0;right:0;bottom:-24px;text-align:center;font-size:13px;color:rgb(255 255 255 / .6)}
.wk-chart-src{margin-top:14px;font-size:13.5px;color:rgb(255 255 255 / .5)}
@media (prefers-reduced-motion:reduce){.wk-stats>div,.wk-bar i,.wk-bar b{transition:none;opacity:1;translate:none;transform:none}}
@media (max-width:900px){
  .wk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wk-stats>div:nth-child(3){padding-left:0;border-left:0}
  .wk-stats>div:nth-child(n+3){margin-top:20px;border-top:1px solid rgb(255 255 255 / .16)}
}

/* ── Work page: the project name underlines itself when its tile is hovered ── */
.w2-name,.wk-card-cap b{align-self:flex-start;padding-bottom:3px;background:linear-gradient(currentColor,currentColor) 0 100% / 0 1.5px no-repeat;transition:background-size .4s var(--ease)}
.w2-item:hover .w2-name,.w2-item:focus-visible .w2-name,.wk-card:hover .wk-card-cap b,.wk-card:focus-visible .wk-card-cap b{background-size:100% 1.5px}
.w2-list.is-rows .w2-item:hover .w2-name{text-decoration:none}
@media (prefers-reduced-motion:reduce){.w2-name,.wk-card-cap b{transition:none}}

/* ════ 02/12, second batch ════ */

/* ── Case hero: the phone moves down a long capture of the client's site the way a person reads on a phone: a
   swipe, a pause to read, another swipe. Five swipes take it to the end, then it glides back to the top. It
   pauses under the pointer. ── */
.wk-phone.is-scroll{container-type:size}
.wk-phone.is-scroll img{height:auto;object-fit:fill;will-change:translate}
@media (prefers-reduced-motion:no-preference){
  .wk-phone.is-scroll img{animation:wkscroll 19s linear 1.6s infinite}
  .wk-phone.is-scroll:hover img{animation-play-state:paused}
  @keyframes wkscroll{
    0%,8%{translate:0 0;animation-timing-function:cubic-bezier(.25,.75,.2,1)}
    13%,24%{translate:0 calc((100cqh - 100%)*.2);animation-timing-function:cubic-bezier(.25,.75,.2,1)}
    29%,40%{translate:0 calc((100cqh - 100%)*.4);animation-timing-function:cubic-bezier(.25,.75,.2,1)}
    45%,56%{translate:0 calc((100cqh - 100%)*.6);animation-timing-function:cubic-bezier(.25,.75,.2,1)}
    61%,72%{translate:0 calc((100cqh - 100%)*.8);animation-timing-function:cubic-bezier(.25,.75,.2,1)}
    77%,90%{translate:0 calc(100cqh - 100%);animation-timing-function:cubic-bezier(.65,0,.25,1)}
    98%,100%{translate:0 0}
  }
}

/* ── The phrase a statement wants to stress sits on a block of the opposite colour (ink on a light page, light on a
   dark one). No colour, no change of typeface. ── */
.hl{background:var(--ink);color:var(--paper);padding:.02em .18em .08em;margin-inline:-.04em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ── Other clients: a slow band of greyed logos. A logo takes its colours back under the pointer and opens its
   case study. The band shares the footer's surface, so the two read as one block. ── */
.wk-logos{background:var(--deep);color:#fff;color-scheme:dark;padding-block:clamp(40px,5vw,72px) clamp(44px,5.5vw,80px);overflow:hidden}
.wk-logos-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:clamp(26px,3.2vw,44px)}
.wk-logos .wk-related-h{margin:0;color:rgb(255 255 255 / .7)}
.wk-logos-all{display:inline-flex;align-items:center;gap:6px;padding-bottom:3px;border-bottom:1px solid rgb(255 255 255 / .3);font-size:14.5px;font-weight:500;color:#fff;transition:border-color .18s}
.wk-logos-all:hover{border-color:#fff}
.wk-logos-all .i{font-size:16px;transition:transform .3s var(--ease)}
.wk-logos-all:hover .i{transform:translateX(3px)}
.wk-marquee{-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.wk-marquee-track{display:flex;align-items:center;width:max-content;animation:wkmarquee 90s linear infinite}
.wk-marquee:hover .wk-marquee-track,.wk-marquee:focus-within .wk-marquee-track{animation-play-state:paused}
.wk-marquee-track li{flex:none;padding-inline:clamp(22px,3vw,44px)}
.wk-logo{display:block;padding:12px 4px;opacity:.56;filter:grayscale(1);transition:opacity .35s,filter .35s,scale .4s var(--ease)}
.wk-logo img{display:block;width:auto;max-width:none;height:calc(var(--h)*1px)}
.wk-logo:hover,.wk-logo:focus-visible{opacity:1;filter:none;scale:1.05}
@keyframes wkmarquee{to{translate:-50% 0}}
@media (min-width:901px){.wk-logo img{height:calc(var(--h)*1.15px)}}
@media (prefers-reduced-motion:reduce){
  .wk-marquee{-webkit-mask-image:none;mask-image:none}
  .wk-marquee-track{animation:none;width:auto;flex-wrap:wrap;justify-content:center;row-gap:16px}
  .wk-marquee-track li[aria-hidden]{display:none}
}

/* ── Work page (version 3): title with the number of projects, and a short line about the work ── */
.w3-title{padding-bottom:clamp(18px,2.2vw,30px)}
.w3-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px 48px;flex-wrap:wrap}
.w3-title h1{display:flex;align-items:flex-start;gap:.07em}
.w3-count{margin-top:.42em;font:500 clamp(1.05rem,1.7vw,1.55rem)/1 var(--display);letter-spacing:0;color:var(--tenant-text);font-variant-numeric:tabular-nums}
:root[data-theme="dark"] .w3-count{color:var(--tenant-text-dark)}
.w3-lede{max-width:46ch;padding-bottom:clamp(6px,1.4vw,18px);font-size:clamp(1.0625rem,1.35vw,1.1875rem);line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.w3-lede b{font-weight:500;color:var(--ink)}
.w3 .w2-sub{max-width:38ch;line-height:1.45;text-wrap:pretty}
@media (prefers-reduced-motion:no-preference){
  /* the title rises first; its count drops in beside it, then the short line slides up into place */
  .js .w3-count{animation:w3count .7s .5s var(--ease) both}
  .js .w3-lede{animation:w3lede 1s .3s var(--ease) both}
  @keyframes w3count{from{opacity:0;scale:.4;translate:-8px 10px}}
  @keyframes w3lede{from{opacity:0;translate:0 22px}}
}

/* ── Work page (version 3): under the pointer a tile shows where and when the project was, and a round arrow ── */
.w3-more{position:absolute;inset:auto 0 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 13px 13px 20px;background:rgb(14 14 14 / .84);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);color:#fff;translate:0 102%;transition:translate .5s var(--ease)}
.w3-more-meta{display:flex;flex-direction:column;gap:1px;min-width:0;font-size:14px;line-height:1.35}
.w3-more-meta b{font-weight:500}
.w3-more-meta i{font-style:normal;color:rgb(255 255 255 / .72)}
.w3-go{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#fff;color:#0e0e0e;font-size:18px}
.w3-go .i{transition:translate .35s var(--ease)}
.w3-more .w3-go .i{translate:-14px 0;opacity:0;transition:translate .5s .12s var(--ease),opacity .3s .12s}
.w2-item:hover .w3-more,.w2-item:focus-visible .w3-more{translate:none}
.w2-item:hover .w3-more .w3-go .i,.w2-item:focus-visible .w3-more .w3-go .i{translate:none;opacity:1}

/* ── Work page (version 3): the tile that completes the last row. It takes the opposite colour of the page:
   dark on the light page, light on the dark page. ── */
.w3-next{position:relative;display:none;flex-direction:column;overflow:hidden;container-type:inline-size;min-height:300px;padding:clamp(22px,2.6vw,36px);border-radius:14px;background:var(--ink);color:var(--paper)}
@media (min-width:901px){.w3-next[data-r3="1"]{display:flex;grid-column:span 2}.w3-next[data-r3="2"]{display:flex}}
@media (min-width:561px) and (max-width:900px){.w3-next[data-r2="1"]{display:flex}}
.w3-next-k{position:relative;align-self:flex-start;padding:.3em .62em .36em;background:var(--paper);color:var(--ink);font-size:14.5px;font-weight:500;line-height:1.2}
.w3-next-h{position:relative;margin-top:auto;max-width:9.5em;font-family:var(--display);font-weight:500;font-size:clamp(1.9rem,3.5vw,3.2rem);line-height:1.02;letter-spacing:-.03em;text-wrap:balance}
.w3-next-foot{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:clamp(16px,1.8vw,26px);font-size:16px;line-height:1.45;color:color-mix(in srgb,var(--paper) 76%,var(--ink))}
.w3-next-foot>span:first-child{max-width:34ch}
.w3-next .w3-go{width:46px;height:46px;background:var(--paper);color:var(--ink)}
.w3-next:hover .w3-go .i{translate:3px 0}
/* the outline of a screen and a phone that are not there yet; they firm up under the pointer */
.w3-next-art{position:absolute;right:7cqw;top:11cqw;width:40cqw;aspect-ratio:1.42;pointer-events:none}
.w3-next-art i{position:absolute;border:1.5px dashed color-mix(in srgb,var(--paper) 38%,var(--ink));transition:border-color .35s}
.w3-next-art i:first-child{inset:0 0 12% 12%;border-radius:1.6cqw}
.w3-next-art i:first-child::after{content:"";position:absolute;left:50%;top:50%;width:5cqw;height:5cqw;translate:-50% -50%;background:linear-gradient(currentColor,currentColor) 50% 50% / 100% 1.5px no-repeat,linear-gradient(currentColor,currentColor) 50% 50% / 1.5px 100% no-repeat;color:color-mix(in srgb,var(--paper) 46%,var(--ink));transition:rotate .5s var(--ease)}
.w3-next-art i:last-child{left:0;bottom:0;width:22%;aspect-ratio:390 / 800;border-radius:2.4cqw;background:var(--ink)}
.w3-next:hover .w3-next-art i{border-color:color-mix(in srgb,var(--paper) 78%,var(--ink))}
.w3-next:hover .w3-next-art i:first-child::after{rotate:90deg}
@container (max-width:560px){.w3-next-art{display:none}}
@media (prefers-reduced-motion:reduce){.w3-more,.w3-more .w3-go .i,.w3-go .i,.wk-logo,.wk-back-i{transition:none}}

/* ── Every phone on the work and case study pages is drawn as an iPhone: the island at the top of the screen, the
   home bar at the bottom (it inverts whatever is under it, so it shows on light and dark pages), and a light edge
   on the frame. No markup: two generated boxes sized from the phone itself. ── */
.wk-phone{position:relative;outline:1px solid rgb(255 255 255 / .26);outline-offset:-1px}
.wk-phone::before{content:"";position:absolute;z-index:2;left:50%;top:1.4%;width:31%;aspect-ratio:3.45 / 1;translate:-50% 0;border-radius:999px;background:#000}
.wk-phone::after{content:"";position:absolute;z-index:2;left:50%;bottom:1.1%;width:36%;aspect-ratio:27 / 1;translate:-50% 0;border-radius:999px;background:#fff;mix-blend-mode:difference;opacity:.9}

/* ════ Phones and touch screens ════ */
/* no pointer to hover with: the bar with sector, place and year stays on each tile */
@media (hover:none){
  .w3-more{translate:none}
  .w3-more .w3-go .i{translate:none;opacity:1}
}
/* a statement with a highlighted phrase needs a little more room between lines, or one line's block covers the
   descenders of the line above */
.wk-h2:has(.hl){line-height:1.17}
@media (max-width:900px){
  /* the phone in the hero is larger, so its scrolling can be seen */
  .wk-devices .wk-phone{width:27%;left:-3%;bottom:-7%}
  .wk-devices{margin:0 0 12% 4%}
}
@media (max-width:560px){
  /* printed pieces: cards full width, sheets two to a row */
  .wk-print-grid .is-tall{grid-column:span 3}
  .wk-order-phones{gap:22px 16px;padding:28px 14px}
  .wk-order-phones figure{width:44%}
  .wk-logos-head{flex-wrap:wrap}
}

/* ── Case hero: the title sits on blocks of the opposite colour, one per line (the hero is always light, so the
   blocks are dark with white type) ── */
.wk-hero h1{line-height:1.17}
.wk-hero h1 mark{background:#0d1211;color:#fff;padding:.02em .15em .09em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ── "Project 11" tile: under the pointer the round arrow opens into a pill and "Contact Us" slides out of it ── */
.w3-next .w3-go{display:inline-flex;align-items:center;justify-content:center;gap:0;width:auto;min-width:46px;padding:0 13.5px;border-radius:999px;transition:gap .5s var(--ease),padding .5s var(--ease)}
.w3-go-t{max-width:0;overflow:hidden;white-space:nowrap;opacity:0;font-size:15px;font-weight:500;line-height:46px;transition:max-width .55s var(--ease),opacity .35s ease}
.w3-next:hover .w3-go,.w3-next:focus-visible .w3-go{gap:10px;padding:0 15px 0 20px}
.w3-next:hover .w3-go-t,.w3-next:focus-visible .w3-go-t{max-width:7em;opacity:1;transition:max-width .55s var(--ease),opacity .45s .12s ease}
@media (prefers-reduced-motion:reduce){.w3-next .w3-go,.w3-go-t{transition:none}}
