/* v5 home page. Sizes follow the scale layer: label 11, body 15-16, title 17, section 22, large 28-52, display up to 104. */

/* hero (v1) with the logo (v3) */
.h5{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px 64px;padding:64px 0 56px}
.h5-main{display:flex;flex-direction:column;gap:18px;flex:1 1 560px;min-width:0}
.h5 h1{margin:0;font-size:clamp(3rem,8vw,6.4rem);line-height:.92;font-weight:700;letter-spacing:-0.055em}
.h5-side{flex:0 1 320px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.h5-side p{margin:0;color:var(--body);font-size:16px;line-height:1.55}
.h5-logo{width:72px;height:72px;margin-bottom:4px;animation:ox-float 7s ease-in-out infinite}
@keyframes ox-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@media (max-width:760px){.h5{padding:40px 0 40px}.h5-logo{width:56px;height:56px}}
/* phones: logo sits to the right of the headline */
@media (max-width:760px){
  .h5{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;align-items:center}
  .h5-main,.h5-side{display:contents}
  .h5 .mono-label{grid-column:1 / -1;margin-bottom:18px}
  .h5 h1{grid-column:1}
  .h5-logo{grid-column:2;grid-row:2;margin:0}
  .h5-side p{grid-column:1 / -1;margin-top:32px}
}

/* statement (v2, smaller) */
.st5{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;padding:72px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.st5 h2{margin:0;max-width:1000px;font-size:clamp(28px,3.8vw,52px);line-height:1;font-weight:700;letter-spacing:-0.045em;text-transform:uppercase}
.st5 p{margin:0;max-width:460px;color:var(--muted);font-size:16px;line-height:1.55}

/* selected work: v1 two-column layout, v2 tiles, 4:5 portrait crop */
.w5{display:flex;flex-direction:column;gap:28px;padding:72px 0}
.w5 .sec-head h2,.s5 .sec-head h2{font-size:22px;font-weight:500;letter-spacing:-0.02em;text-transform:none}
.w5-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 20px}
@media (max-width:700px){.w5-grid{grid-template-columns:minmax(0,1fr);gap:40px}}
.w5-item{display:flex;flex-direction:column;gap:14px;min-width:0}
.w5-media{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--soft)}
.w5-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover) and (pointer:fine){.w5-item:hover .w5-media img{transform:scale(1.03)}}
.w5-media.dark{background:var(--ink);color:#C4C2BB}
.w5-soon{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.w5-soon.muted{color:var(--muted)}
.w5-soon svg{width:40px;height:40px}
.w5-play{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:0;border-radius:2px;background:rgba(245,243,239,.94);color:#252525;font-family:var(--mono);font-size:11px;font-weight:500;line-height:1;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.w5-play svg{width:14px;height:14px}
.w5-media.more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:transparent;border:1px solid var(--line-2);text-decoration:none;color:var(--ink);font-size:22px;font-weight:500;letter-spacing:-0.02em;transition:background .2s}
.w5-media.more svg{width:28px;height:28px;color:var(--accent);transition:transform .2s}
@media (hover:hover) and (pointer:fine){.w5-media.more:hover{background:var(--surface);color:var(--ink)}}
@media (hover:hover) and (pointer:fine){.w5-media.more:hover svg{transform:translate(3px,-3px)}}
.w5-cap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;align-items:baseline}
.w5-cap h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-0.005em;text-transform:uppercase}
.w5-cap .num{font-family:var(--mono);font-size:11px;color:var(--accent)}
.w5-cap .meta{grid-column:1 / -1;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.w5-cap p{grid-column:1 / -1;margin:6px 0 0;color:var(--body);font-size:15px;line-height:1.5}
.w5-cap a{grid-column:1 / -1;margin-top:4px;font-size:14px;font-weight:500}

/* what we do: v2 scale, no numbers, readable side text */
.s5{display:flex;flex-direction:column;gap:8px;padding:72px 0}
.s5-list{list-style:none;margin:0;padding:0}
.s5-list li{border-bottom:1px solid var(--line)}
.s5-list a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);align-items:center;gap:12px 48px;padding:28px 0;text-decoration:none;color:var(--ink)}
.s5-list h3{margin:0;font-size:clamp(2.2rem,6.2vw,5.8rem);line-height:.92;font-weight:700;letter-spacing:-0.05em;text-transform:uppercase;transition:color .2s}
.s5-info{display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.5;color:var(--body)}
.s5-info b{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink)}
.s5-info svg{width:16px;height:16px;color:var(--accent);transition:transform .2s}
@media (hover:hover) and (pointer:fine){.s5-list a:hover h3{color:var(--accent)}}
@media (hover:hover) and (pointer:fine){.s5-list a:hover .s5-info svg{transform:translate(2px,-2px)}}
@media (max-width:760px){.s5-list a{grid-template-columns:minmax(0,1fr);padding:22px 0}.s5-list h3{font-size:clamp(1.9rem,9vw,2.6rem)}}

/* portal: feature list + animated window */
.p5{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:48px 64px;align-items:center;padding:80px 0}
@media (max-width:960px){.p5{grid-template-columns:minmax(0,1fr)}}
.p5-copy{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.p5-copy h2{margin:0;font-size:clamp(28px,3.4vw,40px);line-height:1.02;font-weight:600;letter-spacing:-0.04em}
.p5-copy > p:not(.mono-label){margin:0;color:var(--body);font-size:16px;line-height:1.55;max-width:420px}
.p5-tabs{list-style:none;margin:8px 0 12px;padding:0;width:100%;display:flex;flex-direction:column}
.p5-tabs button{position:relative;display:flex;flex-direction:column;gap:2px;width:100%;padding:14px 0 14px 18px;border:0;border-left:1px solid var(--line);background:none;font:inherit;text-align:left;color:var(--muted);cursor:pointer}
.p5-tabs b{font-size:17px;font-weight:500;color:var(--muted);transition:color .2s}
.p5-tabs span{font-size:14px;line-height:1.45;max-height:0;overflow:hidden;opacity:0;transition:max-height .35s ease,opacity .35s ease}
.p5-tabs i{position:absolute;left:-1px;top:0;width:2px;height:0;background:var(--accent)}
.p5-tabs [aria-selected="true"] b{color:var(--ink)}
.p5-tabs [aria-selected="true"] span{max-height:60px;opacity:1}
.p5-tabs [aria-selected="true"] i{height:100%;animation:p5-fill var(--p5-dur,5s) linear}
.p5.paused .p5-tabs [aria-selected="true"] i{animation-play-state:paused}
@keyframes p5-fill{from{height:0}to{height:100%}}
@media (max-width:960px){.p5-tabs{flex-direction:row;overflow-x:auto;scrollbar-width:none}.p5-tabs li{flex:0 0 auto}.p5-tabs button{border-left:0;border-bottom:1px solid var(--line);padding:10px 14px}.p5-tabs span{display:none}.p5-tabs i{left:0;top:auto;bottom:-1px;height:2px;width:0}.p5-tabs [aria-selected="true"] i{width:100%;height:2px;animation-name:p5-fillx}}
@keyframes p5-fillx{from{width:0}to{width:100%}}

.p5-win{border:1px solid var(--line);background:var(--surface);box-shadow:0 30px 60px -30px rgba(37,37,37,.25);overflow:hidden;min-width:0}
.p5-bar{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--bg)}
.p5-bar .dots{display:flex;gap:6px}.p5-bar .dots i{width:9px;height:9px;border-radius:50%;background:var(--line-2)}
.p5-bar .url{flex:1;text-align:center;font-family:var(--mono);font-size:11px;color:var(--muted);padding-right:40px}
.p5-app{display:grid;grid-template-columns:150px minmax(0,1fr);height:440px}
@media (max-width:600px){.p5-app{grid-template-columns:minmax(0,1fr);height:420px}.p5-nav{display:none!important}}
.p5-nav{display:flex;flex-direction:column;gap:2px;padding:14px 10px;border-right:1px solid var(--soft);font-size:13px;color:var(--muted)}
.p5-nav img{width:20px;height:20px;margin:0 0 12px 8px}
.p5-nav span{padding:7px 8px;border-radius:2px;transition:background .25s,color .25s}
.p5-nav span.on{background:var(--soft);color:var(--ink);font-weight:500}
.p5-screens{position:relative;overflow:hidden}
.p5-screen{position:absolute;inset:0;padding:20px 22px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.p5-hi{margin:0 0 2px;font-size:17px;font-weight:500;letter-spacing:-0.015em}
.p5-hi small{color:var(--muted);font-weight:400;font-size:14px}
.p5-list{display:flex;flex-direction:column}
.p5-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--soft);font-size:13.5px}
.p5-row > span:first-child{display:flex;flex-direction:column;gap:1px;min-width:0}
.p5-row b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p5-row small{color:var(--muted);font-size:12.5px}
.p5-card{border:1px solid var(--soft);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.p5-card .p5-row{border:0;padding:0}
.p5-prog,.p5-dl{height:4px;background:var(--soft);overflow:hidden}
.p5-dl{width:90px;flex:none}
.p5-prog i,.p5-dl i{display:block;height:100%;width:var(--to);background:var(--ink)}
.p5-dl i{background:var(--accent)}
.p5-player{position:relative;aspect-ratio:16/7;background:#252525;color:#E8E7E3;display:grid;place-items:center}
.p5-player svg{width:34px;height:34px}
.p5-time{position:absolute;right:10px;bottom:8px;font-family:var(--mono);font-size:11px}
.p5-timeline{position:relative;height:4px;background:var(--soft)}
.p5-head{position:absolute;left:0;top:0;height:100%;width:40%;background:var(--ink)}
.p5-timeline .pin{position:absolute;top:-5px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--accent);border:2px solid var(--surface)}
.p5-acts{display:flex;gap:8px;justify-content:flex-end;margin-top:auto}
.p5-btn{display:inline-flex;align-items:center;padding:8px 12px;background:var(--ink);color:#F5F3EF;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.p5-btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line-2)}
.p5-pay{position:relative;display:inline-grid}
.p5-pay > *{grid-area:1 / 1;justify-self:end}
.p5-pay .paid{opacity:0}
.p5-sw{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.p5-sw i{aspect-ratio:1.6;border:1px solid var(--soft)}

/* animation: each screen's rows rise in, bars fill, pins drop, invoice flips to paid */
.p5-screen.show .a{animation:p5-in .5s cubic-bezier(.2,.7,.2,1) both}
.p5-screen.show .a:nth-of-type(2){animation-delay:.08s}.p5-screen.show .a:nth-of-type(3){animation-delay:.16s}.p5-screen.show .a:nth-of-type(4){animation-delay:.24s}
.p5-screen.show .p5-list .a:nth-child(1){animation-delay:.12s}.p5-screen.show .p5-list .a:nth-child(2){animation-delay:.22s}.p5-screen.show .p5-list .a:nth-child(3){animation-delay:.32s}.p5-screen.show .p5-list .a:nth-child(4){animation-delay:.42s}
@keyframes p5-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.p5-screen.show .p5-prog i,.p5-screen.show .p5-dl i{animation:p5-bar 1.6s .5s cubic-bezier(.3,.6,.2,1) both}
@keyframes p5-bar{from{width:0}to{width:var(--to)}}
.p5-screen.show .p5-head{animation:p5-head 4s .3s linear both}
@keyframes p5-head{from{width:0}to{width:40%}}
.p5-screen.show .pin{animation:p5-pin .4s cubic-bezier(.3,1.6,.5,1) both}
.p5-screen.show .pin:nth-of-type(1){animation-delay:1s}.p5-screen.show .pin:nth-of-type(2){animation-delay:2.4s}
@keyframes p5-pin{from{transform:scale(0)}to{transform:scale(1)}}
.p5-screen.show .p5-pay .due{animation:p5-out .3s 2.6s both}
.p5-screen.show .p5-pay .paid{animation:p5-pop .4s 2.7s cubic-bezier(.3,1.6,.5,1) both}
@keyframes p5-out{to{opacity:0;transform:scale(.8)}}
@keyframes p5-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}

@media (prefers-reduced-motion:reduce){
  .h5-logo,.p5-screen.show *,.p5-tabs i{animation:none!important}
  .p5-pay .due{opacity:0}.p5-pay .paid{opacity:1}
  .p5-tabs [aria-selected="true"] i{height:100%}
  .w5-media img{transition:none}@media (hover:hover) and (pointer:fine){.w5-item:hover .w5-media img{transform:none}}
}
.p5-player{aspect-ratio:2.6}
.p5-app{height:480px}
#ps-1{gap:10px}
#ps-1 .p5-row{padding:8px 0}

/* v6: what we do, closer to v2 — heavier, larger names with the description underneath and the price on the right */
.s5-list a{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px 40px;padding:34px 0 30px}
.s5-info{display:contents}
.s5-list h3{grid-column:1;grid-row:1;font-size:clamp(2.6rem,7.6vw,7.4rem);line-height:.86;font-weight:900;letter-spacing:-0.05em}
.s5-info > span{grid-column:1;grid-row:2;max-width:560px;font-size:16px;line-height:1.5;color:var(--body)}
.s5-info > b{grid-column:2;grid-row:1;align-self:end;padding-bottom:.6em;font-size:16px;white-space:nowrap}
@media (max-width:760px){.s5-list a{grid-template-columns:minmax(0,1fr);padding:24px 0}.s5-list h3{font-size:clamp(2.2rem,11vw,3.2rem)}.s5-info > b{grid-column:1;grid-row:3;padding:0}}

/* v7: our work as a compact carousel. Swipe on phones, arrows on desktop; about three tiles in view, the next one peeking in. */
.w5-car{display:flex;flex-direction:column;gap:20px;min-width:0}
.w5-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px) / 3.2);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain;outline-offset:6px}
.w5-track::-webkit-scrollbar{display:none}
.w5-track .w5-item{scroll-snap-align:start}
.w5-track .w5-cap p{font-size:14px}
@media (max-width:960px){.w5-track{grid-auto-columns:calc((100% - 20px) / 2.2)}}
@media (max-width:600px){.w5-track{grid-auto-columns:80%;gap:14px}}
.w5-ctrl{display:flex;align-items:center;gap:16px}
.w5-count{font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.w5-count b{color:var(--ink);font:inherit}
.w5-bar{flex:1;height:2px;background:var(--line);position:relative;overflow:hidden}
.w5-bar i{position:absolute;left:0;top:0;height:100%;width:100%;transform-origin:0 0;transform:scaleX(.25);background:var(--accent,#D87739);transition:transform .35s cubic-bezier(.23,1,.32,1)}
.w5-arrow{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line-2);background:transparent;color:var(--ink);cursor:pointer;transition:background .2s,border-color .2s,opacity .2s}
.w5-arrow svg{width:18px;height:18px}
@media (hover:hover) and (pointer:fine){.w5-arrow:hover:not(:disabled){background:var(--ink);border-color:var(--ink);color:#F5F3EF}}
.w5-arrow:disabled{opacity:.35;cursor:default}
.w5{padding:64px 0 56px}

/* v7: portal walkthrough. A cursor moves and clicks; each click changes the screen the way the real portal does. */
.p5-win{position:relative}
.p5-cur{position:absolute;left:0;top:0;z-index:5;width:0;height:0;pointer-events:none;transform:translate(78%,92%);transition:transform .75s cubic-bezier(.45,.05,.25,1)}
.p5-cur svg{position:absolute;left:-5px;top:-4px;width:22px;height:22px;fill:var(--ink);stroke:#FBFAF7;stroke-width:1.4;filter:drop-shadow(0 2px 3px rgba(37,37,37,.25))}
.p5-cur .tap{display:none;position:absolute;left:-13px;top:-13px;width:26px;height:26px;border-radius:50%;background:rgba(37,37,37,.22);border:2px solid #FBFAF7;box-shadow:0 2px 6px rgba(37,37,37,.2)}
.p5-cur .ring{position:absolute;left:-16px;top:-16px;width:32px;height:32px;border-radius:50%;border:2px solid var(--accent,#D87739);opacity:0}
.p5-cur.click .ring{animation:p5-ring .5s ease-out}
.p5-cur.click svg,.p5-cur.click .tap{animation:p5-press .25s ease-out}
@keyframes p5-ring{from{opacity:.9;transform:scale(.3)}to{opacity:0;transform:scale(1.4)}}
@keyframes p5-press{50%{transform:scale(.82)}}
@media (max-width:600px){.p5-cur svg{display:none}.p5-cur .tap{display:block}}

.p5-row,.p5-nav span,.p5-btn,.tag{transition:background .2s,box-shadow .2s,color .2s}
.p5-row.hov{background:var(--soft);box-shadow:0 0 0 6px var(--soft)}
.p5-nav span.hov:not(.on){background:var(--soft)}
.p5-btn.done{background:var(--forest,#344C3D);border-color:var(--forest,#344C3D);color:#F5F3EF}
.tag.done{background:var(--ok-soft,#E1E6DA);color:var(--ok,#344C3D)}

/* review: playback starts on click, comments drop in where the cursor pins them */
.p5.live #ps-1 .p5-head{animation:none;width:0}
.p5.live #ps-1.play .p5-head{animation:p5-head 5s linear both}
.p5.live #ps-1 .p5-player svg{transition:opacity .3s}
.p5.live #ps-1.play .p5-player svg{opacity:.25}
.p5.live #ps-1 .pin{animation:none;transform:scale(0);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.p5.live #ps-1.c1 .pin:nth-of-type(1),.p5.live #ps-1.c2 .pin:nth-of-type(2){transform:scale(1)}
.p5.live #ps-1 .p5-row.c{opacity:0;transform:translateY(8px);transition:opacity .35s,transform .35s cubic-bezier(.2,.7,.2,1)}
.p5.live #ps-1.c1 .p5-row.c:nth-child(1),.p5.live #ps-1.c2 .p5-row.c:nth-child(2){opacity:1;transform:none}
/* files: bars fill when Download all is clicked */
.p5.live #ps-2 .p5-dl i{animation:none;width:0}
.p5.live #ps-2.dl .p5-dl i{animation:p5-bar 1.6s cubic-bezier(.3,.6,.2,1) both}
/* billing: the invoice flips to paid when Pay is clicked */
.p5.live #ps-3 .p5-pay .due{animation:none;opacity:1}
.p5.live #ps-3 .p5-pay .paid{animation:none;opacity:0}
.p5.live #ps-3.payd .p5-pay .due{animation:p5-out .3s both}
.p5.live #ps-3.payd .p5-pay .paid{animation:p5-pop .4s .1s cubic-bezier(.3,1.6,.5,1) both}
/* brand kit: copying a colour shows a small confirmation */
.p5-sw i{position:relative}
.p5-tip{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);padding:5px 8px;background:var(--ink);color:#F5F3EF;font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;white-space:nowrap;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none}
#ps-4.copied .p5-tip{opacity:1;transform:translate(-50%,0)}
.p5-sw{margin-top:30px}

/* phones: the portal's sidebar becomes a row of tabs along the top, like the real portal on a phone */
@media (max-width:600px){
  .p5-app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:520px}
  .p5-nav{display:flex!important;flex-direction:row;gap:2px;padding:8px 8px;border-right:0;border-bottom:1px solid var(--soft);font-size:11.5px;overflow:hidden}
  .p5-nav img{display:none}
  .p5-nav span{padding:6px 7px;white-space:nowrap}
  .p5-screen{padding:16px 16px}
}

/* v8: the portal is now real video clips, one per feature. Selected feature shows in orange text, no bars. */
.p5-video{position:relative;aspect-ratio:880 / 560;background:var(--surface)}
.p5-video video{display:block;width:100%;height:100%;object-fit:cover}
.p5-playbtn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border:0;border-radius:50%;background:rgba(37,37,37,.86);color:#F5F3EF;cursor:pointer}
.p5-playbtn svg{width:24px;height:24px;margin-left:3px}
.p5-tabs i{display:none!important}
.p5-tabs button,.p5-tabs [aria-selected="true"]{background:none!important}
.p5-tabs [aria-selected="true"] b{color:var(--accent,#D87739)!important}
@media (hover:hover) and (pointer:fine){.p5-tabs button:hover b{color:var(--ink)}}
.p5-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--surface)}
.p5-playbtn{z-index:2}
/* hover preview video on work cards (index.html script) */
.w5-pv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s ease;pointer-events:none}
.w5-media.pv-on .w5-pv{opacity:1}
/* 3D "Our work" carousel (carousel.js adds .w5-3d and sets each tile's transform and --w5-dim from the scroll position):
   the middle tile floats in front, the ones either side sit back, smaller and turned in */
.w5-car.w5-3d{container-type:inline-size}
.w5-3d .w5-track{position:relative;grid-auto-columns:24cqi;gap:0;padding:56px 38cqi 64px;scroll-padding-inline:38cqi;scroll-snap-type:x mandatory;scroll-behavior:auto}
.w5-3d .w5-track .w5-item{position:relative;scroll-snap-align:center;--w5-dim:1}
.w5-3d .w5-in{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0;transform-origin:50% 40%;will-change:transform}
.w5-3d .w5-in::before{content:"";position:absolute;left:0;right:0;top:0;aspect-ratio:9/16;border-radius:16px;box-shadow:0 36px 70px -24px rgba(22,32,46,.45),0 12px 24px -12px rgba(22,32,46,.25);opacity:calc(1 - var(--w5-dim));pointer-events:none}
.w5-3d .w5-media{z-index:1;border-radius:6px;aspect-ratio:9/16} /* the videos are 9:16: shown whole, never cropped */
.w5-3d .w5-media::after{content:"";position:absolute;inset:0;background:var(--bg,#F5F3EF);opacity:calc(var(--w5-dim) * .38);pointer-events:none;z-index:3}
.w5-3d .w5-cap{opacity:calc(1 - var(--w5-dim) * 1.4);transition:none}
.w5-3d .w5-item:not(.is-front) .w5-play,.w5-3d .w5-item:not(.is-front) .w5-cap a{pointer-events:none}
.w5-3d .w5-item:not(.is-front){cursor:pointer}
#work .w5-3d .w5-item:not([hidden]){animation:wt-mist3d .25s cubic-bezier(.23,1,.32,1) both}
@keyframes wt-mist3d{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}
@media (max-width:960px){.w5-3d .w5-track{grid-auto-columns:38cqi;padding-inline:31cqi;scroll-padding-inline:31cqi}}
@media (max-width:600px){.w5-3d .w5-track{grid-auto-columns:62cqi;padding-inline:19cqi;scroll-padding-inline:19cqi;padding-top:36px;padding-bottom:44px}}
@media (prefers-reduced-motion:reduce){#work .w5-3d .w5-item{animation:none}}
/* rounded corners on every work card tile (videos, coming soon, see all) */
.w5-car .w5-media,.w5-car .w5-media.more{border-radius:16px}
/* video viewer (same as /work): dimmed page, centred rounded card, close on the card, name + arrows under it */
.viewer{position:fixed;inset:0;z-index:300;background:rgba(12,14,18,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overscroll-behavior:contain;touch-action:none;display:flex;align-items:center;justify-content:center;padding:16px}
.viewer[hidden]{display:none}
.viewer .vwrap{--vw:min(calc(100vw - 32px),calc(min(76vh,76dvh,760px) * 9 / 16));width:var(--vw);display:flex;flex-direction:column;gap:12px}
.viewer.wide .vwrap{--vw:min(calc(100vw - 32px),1000px,calc(min(70vh,70dvh) * 16 / 9))}
.viewer .vcard{position:relative;width:100%;aspect-ratio:9/16;border-radius:20px;overflow:hidden;background:#000;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.viewer.wide .vcard{aspect-ratio:16/9}
.viewer video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.viewer .iconbtn{width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#16202E;display:grid;place-items:center;cursor:pointer}
.viewer .vclose{position:absolute;top:10px;right:10px;z-index:2;background:rgba(0,0,0,.5);color:#FFFFFF;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.viewer .vfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#FFFFFF}
.viewer .meta{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:16px}
.viewer .meta strong{font-weight:500}
.viewer .meta span{font-size:14px;opacity:.75}
.viewer .meta a{color:#FFFFFF;font-size:14px}
.viewer .navs{display:flex;gap:8px;flex:none}
/* carousel tiles without a photo (coming soon, see all work) are solid, so the tiles behind never show through */
.w5-3d .w5-media.soon,.w5-3d .w5-media.more{background:#E9EBEE!important;background:color-mix(in srgb,#16202E 5%,var(--bg,#F5F3EF))!important}
.w5-3d .w5-media.soon::before{display:none}
/* dark mode: the photo-less carousel tiles get a lifted surface + fine edge (the light-mode fill vanished into the dark page), and a deeper shadow */
html[data-theme="dark"] .w5-3d .w5-media.soon,html[data-theme="dark"] .w5-3d .w5-media.more{background:#181B22!important;box-shadow:inset 0 0 0 1px #2B303B!important;border-color:transparent}
html[data-theme="dark"] .w5-3d .w5-in::before{box-shadow:0 34px 70px -22px rgba(0,0,0,.75),0 12px 26px -12px rgba(0,0,0,.6)}
.w5-3d .w5-media img{transform:none!important} /* no hover zoom: the whole frame stays in view */
/* the carousel's previous/next arrows sit either side of the tiles, level with the middle of the videos */
.w5-car.w5-3d{position:relative}
.w5-3d .w5-arrow{position:absolute;z-index:200;top:calc(56px + 21.33cqi);transform:translateY(-50%);width:48px;height:48px;border:0;background:var(--frost-card,rgba(255,255,255,.82));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 6px 20px -6px rgba(22,32,46,.28),0 0 0 1px rgba(22,32,46,.08)}
.w5-3d .w5-arrow[data-dir="-1"]{left:0}
.w5-3d .w5-arrow[data-dir="1"]{right:0}
.w5-3d .w5-arrow svg{width:22px;height:22px}
@media (max-width:960px){.w5-3d .w5-arrow{top:calc(56px + 33.78cqi)}}
@media (max-width:600px){.w5-3d .w5-arrow{top:calc(36px + 55.11cqi);width:44px;height:44px}}
/* Home carousel auto-play (index.html): a still taken from the video when there's no cover image, and a thin line
   along the bottom of the front tile showing how much of its section has played */
.w5-media video.w5-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.w5-prog{position:absolute;left:14px;right:14px;bottom:8px;height:2px;border-radius:2px;background:rgba(255,255,255,.28);overflow:hidden;opacity:0;transition:opacity .25s ease;pointer-events:none;z-index:2}
.w5-prog i{position:absolute;inset:0;background:#fff;transform-origin:0 0;transform:scaleX(0)}
.w5-item.is-front .w5-media.pv-on .w5-prog{opacity:1}
/* Carousel videos in their own shape (index.html sets --ar = width / height on the tile, and .w5-wide on landscape
   ones): the video fills its rounded tile edge to edge, never cropped. Landscape tiles are two columns wide so they
   show big; every video is centred on the height of a 9:16 one, so the row stays level, with its caption straight underneath.
   --col is one column's width at each screen size (matching grid-auto-columns above) and --span the tile's columns. */
.w5-car.w5-3d{--col:24cqi}
@media (max-width:960px){.w5-car.w5-3d{--col:38cqi}}
@media (max-width:600px){.w5-car.w5-3d{--col:62cqi}}
.w5-3d .w5-item{--span:1}
.w5-3d .w5-item.w5-wide{--span:2;grid-column:span 2}
/* phones: two columns would be wider than the screen, so a landscape tile keeps one slot (for swiping) but is drawn
   1.45 slots wide, centred on it, with its neighbours tucked behind as usual */
@media (max-width:600px){.w5-3d .w5-item.w5-wide{--span:1.45;grid-column:span 1}.w5-3d .w5-item.w5-wide .w5-in{width:145%;margin-left:-22.5%}}
.w5-3d .w5-item[style*="--ar"]{--off:calc((var(--col) * 16 / 9 - var(--col) * var(--span) / var(--ar)) / 2)}
.w5-3d .w5-item[style*="--ar"] .w5-media{aspect-ratio:var(--ar);margin-top:var(--off)} /* caption straight under the video */
.w5-3d .w5-item[style*="--ar"] .w5-in::before{top:var(--off);aspect-ratio:var(--ar)}
/* Watch buttons on the carousel videos (2026-11-25): no bubble, just smaller blue text with the play icon. A soft
   light halo (not a background) keeps the blue readable over any footage; the tap area stays 44px tall. */
#work .w5-car .w5-play{left:12px;bottom:10px;gap:6px;min-height:44px;padding:0 6px;background:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0!important;box-shadow:none;color:var(--watch,var(--oxygen,#2A62C6))!important;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;text-shadow:0 0 1px rgb(var(--halo,255,255,255)),0 0 3px rgb(var(--halo,255,255,255)),0 0 12px rgba(var(--halo,255,255,255),.9)}
#work .w5-car .w5-play svg{width:12px;height:12px;fill:currentColor;filter:drop-shadow(0 0 2px rgba(var(--halo,255,255,255),.95)) drop-shadow(0 0 6px rgba(var(--halo,255,255,255),.8))}
@media (hover:hover) and (pointer:fine){#work .w5-car .w5-play:hover{text-decoration:underline;text-underline-offset:3px}}
#work .w5-car .w5-play:focus-visible{outline:2px solid var(--watch,var(--oxygen,#2A62C6));outline-offset:2px;border-radius:4px!important}
#work .w5-car .w5-play{font-weight:600!important} /* beats the sitewide 400 in layers/type.css, for legibility over footage */
/* (the Watch button's colour and glow come from --watch and --halo, set per video by index.html) */
/* (later) The Watch button has its bubble back: a small frosted pill with the text and icon in the video's colour
   (--watch); light colours get a dark pill (--bubble). The glow is no longer needed. */
#work .w5-car .w5-play{left:12px;bottom:12px;min-height:34px;padding:0 13px 0 11px;gap:6px;border-radius:999px!important;background:var(--bubble,var(--frost-card,rgba(251,250,247,.86)))!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 4px 14px -6px rgba(22,32,46,.35);text-shadow:none}
#work .w5-car .w5-play svg{filter:none}
@media (hover:hover) and (pointer:fine){#work .w5-car .w5-play:hover{text-decoration:none;filter:brightness(1.06)}}
#work .w5-car .w5-play:focus-visible{border-radius:999px!important}
#work .w5-car .w5-play::before{content:"";position:absolute;inset:-5px} /* keeps a 44px tap area round the smaller pill */
/* (later) Captions never run over the tiles behind: the side tiles end at about 82% of a 9:16 tile's height, so a
   caption starts no higher than 86% of it. Portrait videos already reach the bottom; a landscape one gets just
   enough space under it (none on desktop, a little on phones). The video itself is the same size. */
.w5-3d .w5-item[style*="--ar"] .w5-media{margin-bottom:max(0px,calc(var(--col) * 16 / 9 * .86 - var(--off) - var(--col) * var(--span) / var(--ar)))}
/* (tidy, 2026-11-25) Side tiles are now never taller than the front video (carousel.js), so the caption goes straight
   under any video again, with no extra space */
.w5-3d .w5-item[style*="--ar"] .w5-media{margin-bottom:0}
/* only the front tile shows its Watch button and progress line; the tiles behind show just their picture */
.w5-3d .w5-item .w5-play,.w5-3d .w5-item .w5-prog{transition:opacity .25s ease}
.w5-3d .w5-item:not(.is-front) .w5-play,.w5-3d .w5-item:not(.is-front) .w5-prog{opacity:0}
/* phones: a tighter shadow under the front video, so it fades out inside the carousel area instead of being cut off
   in a hard grey rectangle at the screen edge and under the caption */
@media (max-width:600px){.w5-3d .w5-in::before{box-shadow:0 14px 24px -14px rgba(22,32,46,.35),0 6px 12px -8px rgba(22,32,46,.2)}html[data-theme="dark"] .w5-3d .w5-in::before{box-shadow:0 14px 24px -14px rgba(0,0,0,.7),0 6px 12px -8px rgba(0,0,0,.5)}}
/* filtering fades the videos in, with reduced motion on too (opacity only, no movement) */
@media (prefers-reduced-motion:reduce){#work .w5-3d .w5-item:not([hidden]){animation:wt-fade .25s ease both}}
@keyframes wt-fade{from{opacity:0}to{opacity:1}}
/* (2026-11-25) Minimal arrows on the sides of the carousel, level with the middle of the videos: a thin chevron, no
   circle or background, lightly tinted and full strength on hover or tap. A faint glow keeps it visible where it
   crosses footage. The tap area stays generous (44x56) though the mark is small. On phones they sit on the
   carousel's very edges, half in the page margin. */
.w5-3d .w5-arrow,.w5-3d .w5-arrow:hover:not(:disabled){width:44px;height:56px;border:0;border-radius:0;background:transparent!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;color:var(--ink)}
.w5-3d .w5-arrow svg{width:26px;height:26px;stroke-width:1.4;opacity:.45;filter:drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 8px rgba(255,255,255,.6));transition:opacity .2s ease,transform .2s cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){.w5-3d .w5-arrow:hover:not(:disabled) svg{opacity:.9}.w5-3d .w5-arrow[data-dir="-1"]:hover svg{transform:translateX(-2px)}.w5-3d .w5-arrow[data-dir="1"]:hover svg{transform:translateX(2px)}}
.w5-3d .w5-arrow:active svg{opacity:.9}
.w5-3d .w5-arrow:focus-visible{outline:2px solid var(--oxygen,#2A62C6);outline-offset:-4px;border-radius:8px}
html[data-theme="dark"] .w5-3d .w5-arrow{color:#F5F3EF}
html[data-theme="dark"] .w5-3d .w5-arrow svg{opacity:.55;filter:drop-shadow(0 0 2px rgba(0,0,0,.9)) drop-shadow(0 0 8px rgba(0,0,0,.6))}
@media (max-width:760px){.w5-3d .w5-arrow{width:36px}.w5-3d .w5-arrow[data-dir="-1"]{left:-18px}.w5-3d .w5-arrow[data-dir="1"]{right:-18px}.w5-3d .w5-arrow svg{width:22px;height:22px}}
/* phones: the chevrons sit over the edges of the side tiles, so a touch bolder to be found easily (still no circle) */
@media (max-width:760px){.w5-3d .w5-arrow svg{width:24px;height:24px;stroke-width:1.8;opacity:.72}html[data-theme="dark"] .w5-3d .w5-arrow svg{opacity:.8}}
/* the side arrows follow the middle of the front video (carousel.js sets --w5-mid as the row fits its height to it) */
.w5-car.w5-3d .w5-arrow{top:var(--w5-mid,calc(56px + 21.33cqi))}
.w5-3d .w5-track{overflow-y:hidden}
/* Sound button (2026-11-25): a small frosted circle in the top-right corner of the front video only, like the Watch
   button. It shows a speaker with waves while the sound is on and a crossed-out speaker while it's off (or until the
   browser lets sound play). Hidden where auto-play doesn't run (Data Saver). */
.w5-mute{display:none}
.w5-car.w5-sound .w5-mute{position:absolute;top:10px;right:10px;z-index:4;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:999px;background:var(--frost-card,rgba(251,250,247,.86));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 4px 14px -6px rgba(22,32,46,.35);color:var(--ink);cursor:pointer;transition:opacity .25s ease,transform .15s ease}
.w5-car.w5-sound .w5-mute::before{content:"";position:absolute;inset:-5px} /* a 44px tap area round the small circle */
.w5-mute svg{width:16px;height:16px}
.w5-mute .i-off,.w5-muted .w5-mute .i-on{display:none}
.w5-muted .w5-mute .i-off{display:block}
.w5-3d .w5-item:not(.is-front) .w5-mute{opacity:0;pointer-events:none}
.w5-mute:focus-visible{outline:2px solid var(--oxygen,#2A62C6);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.w5-mute:hover{transform:scale(1.06)}}
/* (fix) the row fits the front video by pulling the tiles up and ending sooner (carousel.js sets --trim-top and
   --trim-bot), and the browser mustn't move the page to make up for that change in height */
.w5-3d .w5-track>.w5-item{margin-top:calc(var(--trim-top,0px) * -1);margin-bottom:calc(var(--trim-bot,0px) * -1)}
#work{overflow-anchor:none}
/* the browser's own "keep your place" scrolling is off for this page: as the carousel fits each video, the content
   under it is meant to move, not the page */
html,body{overflow-anchor:none}
/* (fix) the carousel handles sideways swipes itself (carousel.js); the browser keeps up-and-down page scrolling.
   Pictures and text in the tiles can't be dragged out or selected while swiping. */
.w5-3d .w5-track{touch-action:pan-y;-webkit-user-select:none;user-select:none}
.w5-3d .w5-track img,.w5-3d .w5-track video{-webkit-user-drag:none;user-drag:none}
@media (hover:hover) and (pointer:fine){.w5-3d .w5-track{cursor:grab}.w5-3d .w5-track.w5-grabbing{cursor:grabbing}}
/* "See all work" tile (2026-11-26): a drifting collage of our stills and content-type icon cards (three tilted
   columns, alternating up and down, each running twice over so the loop is seamless), a soft veil, and a frosted
   pill button in the middle. Built by index.html; the drift pauses while the carousel is off screen. */
.w5-media.more.w5-collage-tile{display:block;padding:0;border:0;overflow:hidden;isolation:isolate}
.w5-collage{position:absolute;inset:-30% -35%;display:flex;gap:8px;justify-content:center;transform:rotate(-12deg);z-index:0}
.w5-col{display:flex;flex-direction:column;gap:8px;flex:0 0 31%;animation:w5-drift-up 38s linear infinite;will-change:transform}
.w5-col:nth-child(2){animation-name:w5-drift-down;animation-duration:44s}
.w5-col:nth-child(3){animation-duration:34s;animation-delay:-12s}
.w5-car:not(.w5-seen) .w5-col{animation-play-state:paused}
@keyframes w5-drift-up{from{transform:translateY(0)}to{transform:translateY(calc(-50% - 4px))}}
@keyframes w5-drift-down{from{transform:translateY(calc(-50% - 4px))}to{transform:translateY(0)}}
.w5-cc{position:relative;display:block;flex:none;aspect-ratio:3 / 4;border-radius:10px;overflow:hidden;background:#dfe3ea}
.w5-cc img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9)}
.w5-ci{aspect-ratio:1;display:grid;place-items:center;align-content:center;gap:6px;color:#fff;
  background:linear-gradient(150deg,rgba(var(--tone),.95),rgba(var(--tone),.7))}
.w5-ci svg{width:34%;height:auto}
.w5-ci b{font-family:"Sora","Inter",sans-serif;font-weight:600;font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.92}
/* the veil: lighter at the edges, a touch stronger in the middle behind the button, in the page's own colour */
.w5-veil{position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse 75% 45% at 50% 50%,color-mix(in srgb,var(--bg,#F5F3EF) 55%,transparent),color-mix(in srgb,var(--bg,#F5F3EF) 18%,transparent))}
.w5-more-pill{position:absolute;left:50%;top:50%;z-index:2;translate:-50% -50%;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  padding:13px 20px;border-radius:999px;background:var(--frost-card,rgba(251,250,247,.9));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 10px 26px -10px rgba(22,32,46,.45),0 0 0 1px rgba(22,32,46,.06);color:var(--ink,#16202E);font-size:15px;font-weight:600;letter-spacing:-.01em;transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .2s}
.w5-more-pill svg{width:16px;height:16px;color:var(--oxygen,#2A62C6);transition:transform .2s cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){.w5-item.is-front .w5-collage-tile:hover .w5-more-pill{transform:scale(1.04);box-shadow:0 14px 30px -10px rgba(22,32,46,.5),0 0 0 1px rgba(22,32,46,.06)}.w5-item.is-front .w5-collage-tile:hover .w5-more-pill svg{transform:translate(2px,-2px)}}
.w5-collage-tile:focus-visible .w5-more-pill{outline:2px solid var(--oxygen,#2A62C6);outline-offset:3px}
/* on a tile at the side the pill steps back, so the collage reads as a picture there */
.w5-3d .w5-item:not(.is-front) .w5-more-pill{opacity:.85}
html[data-theme="dark"] .w5-cc:not(.w5-ci){background:#20242c}
html[data-theme="dark"] .w5-veil{background:radial-gradient(ellipse 75% 45% at 50% 50%,rgba(12,14,19,.6),rgba(12,14,19,.22))}
html[data-theme="dark"] .w5-more-pill{box-shadow:0 10px 26px -10px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.08)}
@media (max-width:600px){.w5-more-pill{padding:11px 16px;font-size:14px}.w5-ci b{font-size:9px}}
/* the old "See all work" styles size, colour and nudge every icon in the tile; inside the collage they shouldn't */
.w5-collage-tile .w5-ci svg{width:34%!important;height:auto!important;color:#fff!important;transform:none!important;transition:none}
.w5-collage-tile .w5-more-pill svg{width:16px!important;height:16px!important;color:var(--oxygen,#2A62C6)!important}
